Object Detection App Development: From Pretrained Model to Real-World Accuracy

How object detection apps work, when a pretrained model is enough, how custom training works and how to tell whether your model is ready.
Victor Marchitan
Victor Marchitan
Brand Strategy Lead
7 min read / November 30, 2026
Phone detecting cartons on warehouse shelves and flagging a damaged one

An object detection app uses the phone camera to find objects in a photo or live video, draw a box around each one and give it a label such as "bottle", "helmet", "damaged carton" or the name of your product. It is the most widely used computer vision feature in business apps because it answers a simple, valuable question: what is in front of the camera, and where exactly is it?

A working demo can be put together in a day. Making it accurate enough for real users, on your own objects and in your own conditions, is the actual project. This guide explains what sits between the two: choosing between a pretrained and a custom model, preparing training data, measuring accuracy properly and getting the model to run well on a phone.

What is the difference between classification, detection and segmentation?

  • Image classification describes the whole image with one label: "a shelf".

  • Object detection finds each object and its position: "three bottles, here, here and here".

  • Segmentation traces the exact outline of each object, pixel by pixel.

The same shelf shown with image classification, object detection and segmentation

Detection sits in the middle. It is precise enough to locate and count objects, and light enough to run on live video on a phone. Segmentation is worth the extra processing only when the exact shape matters, for example when measuring an area.

Where is object detection used?

  • Retail: spotting empty shelf space, misplaced products or missing price labels.

  • Inventory and logistics: counting cartons, pallets and parcels, and reading their labels.

  • Quality inspection: finding scratches, dents, defects or missing components.

  • Workplace safety: checking that helmets and high-visibility vests are worn, or that exits are clear.

  • Agriculture: counting plants or fruit and spotting signs of disease.

  • Accessibility: describing the surroundings to people with low vision.

Is a pretrained model enough?

Pretrained models already recognise everyday objects such as people, vehicles, bottles, chairs and animals. If your objects fall into those categories and the conditions are ordinary, a pretrained model may be all you need.

Custom training becomes necessary when:

  • the objects are specific to your business: your products, your parts, your types of defect;

  • the model must tell apart items that look almost identical;

  • the conditions are unusual: warehouse lighting, steep angles, motion blur, reflective packaging.

Most business projects need custom training. The encouraging part is that it rarely starts from zero. Teams take a pretrained model and fine-tune it on their own images, which requires far less data than training a new model.

How does custom training work?

  1. Define the classes. Decide exactly which objects the model should find and where the boundaries lie. Is a dented carton its own class, or simply a carton?

  2. Collect images. Use photos that resemble what users will capture: similar phones, distances, angles and lighting. A few hundred examples per class is a common starting point, and difficult cases need more.

  3. Label the images. Draw a box around every object in every photo. It is slow, manual work, and consistent labels matter as much as the number of images.

  4. Train and evaluate on a separate set of images the model has never seen.

  5. Convert the model and test it on the phone, where both speed and accuracy can change.

  6. Collect the failures from real use, label them and retrain. Accuracy improves most in this loop.

Custom object detection workflow: define, collect, label, train, test on the phone and improve

How do you know whether the model is good enough?

Accuracy is never a single number. These are the measures worth agreeing on before training starts:

Measure

What it tells you

When it matters most

Precision

Of everything the model flagged, how much was correct

When false alarms are costly, such as automatic alerts or rejections

Recall

Of everything that was there, how much the model found

When a miss is costly, such as safety checks or defects

Speed (frames per second)

How fast the model runs on the target phones

Live camera features

Model size

How much the model adds to the app download

Older phones and slow connections

Precision and recall usually pull against each other, so decide which one matters more for your use case. Then agree on a test set of real photos from the real environment. A model that scores highly on clean test images and struggles on the shop floor was simply tested on the wrong images.

Which model should you choose?

Several families of detection models are designed for phones, and new versions appear regularly. Two practical checks matter more than the latest benchmark table:

  • Speed on your users' phones, measured on the devices themselves rather than on a development laptop.

  • The licence. Some popular detection models are published under licences that require you to release your own app's source code or buy a commercial licence. Check this before building on a model, not after launch.

On iPhone, models are usually converted to Core ML so they can run on the Neural Engine. On Android, LiteRT (formerly TensorFlow Lite) is the common choice, and ONNX Runtime works across both platforms.

What happens after launch?

A detection model is not finished on release day. New products, new packaging, seasonal displays and different lighting all shift what the camera sees. Before launch, make sure your team has:

  • A way to collect difficult images, with user consent, so failures can be reviewed and labelled.

  • A retraining routine, monthly or quarterly depending on how quickly your objects change.

  • A way to ship new model versions, either inside app updates or as a separate download, without rebuilding the whole app.

Common mistakes

  • Training on stock photos instead of images from the environment where the app will be used.

  • Inconsistent labelling, with different people drawing boxes to different rules.

  • Testing on images that resemble the training set, which inflates the results.

  • Measuring speed only after the model is chosen.

  • No plan for new objects such as new products or packaging.

  • Skipping the licence check on the model.

Frequently asked questions

How many images do we need? It depends on how much your objects vary and how varied the conditions are. A few hundred labelled examples per class is a common starting point; classes that look alike need more.

Can object detection run offline? Yes. Detection models run comfortably on modern phones without a connection, which also keeps images on the device.

How do you count objects with detection? The app detects each object and then tracks it from frame to frame, so the same item is not counted twice as the camera moves.

Can the app learn new objects by itself after launch? In most setups, no. New images are collected and labelled, the model is retrained, and an updated version is shipped to users.

Where The Noughty Fox fits

We build computer vision features that run on the phone, from detection and tracking to measurement and 3D capture. If you need an app that recognises your own objects reliably in real conditions, book a call.

Keep reading
All articles
©2026 The Noughty Fox
The noughty fox