Recommendation Needed: Pretrained Open-Vocabulary Object Detection Model for Android (3,250+ Labels)

Hi everyone,

I’m developing an Android application that performs real-time object detection using the phone’s camera. I’m looking for a suitable pretrained model that can recognize a large custom vocabulary without requiring training or fine-tuning initially.

My requirements:

  • Approximately 3,250 object labels covering food, drinks, animals, appliances, electronics, clothing, kitchenware, and everyday objects.

  • Recognition of specific Indian dishes, including baingan bharta, aloo gobi, biryani, butter chicken, dal makhani, dosa, pav bhaji, and many others.

  • Bounding boxes, class names, and confidence scores.

  • Android deployment, preferably offline, using TensorFlow Lite or another mobile-compatible runtime.

  • Good inference speed on a real Android phone.

I currently have a vocabulary file containing object names and categories. I’m exploring open-vocabulary detection models such as YOLO-World, YOLOE, Grounding DINO, and any newer alternatives.

My main questions:

  1. Is there a pretrained model that can handle thousands of custom text labels without fine-tuning?

  2. How well do these models recognize fine-grained food categories, particularly Indian dishes such as baingan bharta?

  3. Can the model run efficiently on Android, preferably fully offline?

  4. Would a general-purpose open-vocabulary detector be sufficient, or would combining it with a food-recognition model be a better approach?

  5. Are there any newer models or existing mobile-ready implementations I should evaluate?

My preference is to use an existing pretrained model first and consider fine-tuning only if necessary.

I’d appreciate recommendations from anyone who has worked on open-vocabulary object detection, mobile deployment, or food recognition.

Thanks in advance!

Hmm… While there are quite a few computer-vision models that can run on edge devices such as Android phones, perfectly identifying dishes still seems difficult with current models, even with data-center-scale VLMs. The difficulty of the task itself seems to come first​:thinking::


Short answer to your five questions

I think there is a reasonable pretrained-first route, but I would separate three things: (1) configuring a model with 3,250 text labels, (2) actually distinguishing those objects and dishes in photographs, and (3) running the whole camera system accurately and quickly on your Android device, offline. Success at one does not establish the other two. In particular, some culinary identities depend on ingredients, preparation or naming conventions that are not observable in a single photo. That is a task-definition issue, not just a shortage of GPU power.

1. Is there a pretrained open-vocabulary detector for thousands of custom labels?

There are pretrained candidates worth testing, but I would not assume reliable recognition of all 3,250 arbitrary labels without fine-tuning. My first two detector candidates would be Ultralytics YOLOE / YOLOE-26 and YOLO-World. Both support text-defined detection classes and are more directly suited to bounding boxes than a general chat-oriented VLM. YOLOE permits set_classes() before export; its documentation explicitly says the exported model’s vocabulary is fixed. YOLO-World has a reparameterized/offline inference route and maintainers’ TFLite/INT8 instructions.

Fixed versus changeable vocabulary matters. If the 3,250 names are fixed at build time, precomputing text representations and exporting a static detector can be attractive, subject to class-count and memory tests. If the user must introduce new class names while the app is running, a static YOLOE export alone does not provide that capability: consider runtime embeddings, replaceable precomputed profiles, or a separate image-text matching stage. Also check whether those 3,250 names include synonyms and hierarchical overlaps: 3,250 strings are not necessarily 3,250 visually separable categories.

2. Can it distinguish specific Indian dishes?

Some can likely be recognized usefully in a restricted setting, but exact fine-grained naming is the riskiest requirement. One dish can have very different appearances across kitchens; two dishes can look similar. Different ingredients can be hidden by a sauce, and different recipes may produce nearly indistinguishable images. A VLM may infer a plausible dish or recipe, but that cannot verify ingredients or preparation steps absent from the image.

There are meaningful Indian-food baselines: Google’s FoodLens addresses 140+ Indian dishes with a hierarchy and multi-label learning; Khana provides about 131,000 images over 80 Indian-food labels and evaluates several tasks. These results support restricted, dataset-specific food recognition, not arbitrary zero-shot identification of every possible dish or restaurant variant. DiningBench (ACL 2026) evaluates 29 VLMs on challenging food tasks involving 3,021 dish entries, including visually similar alternatives from the same menus; it reports continued difficulty with fine-grained discrimination. That is particularly relevant to the assumption that a much larger VLM automatically solves the issue.

3. Is efficient, fully offline Android inference possible?

The deployment routes exist, but fully offline startup and useful end-to-end speed still depend on the chosen packages, model and phone. For detection, look at Ultralytics export documentation, the YOLO-World TFLite guide, and ONNX Runtime Mobile. Google’s ML Kit object detection plus custom classifier is a useful reference architecture, but its object-count, first-use download and runtime constraints differ from YOLOE’s.

4. One model or a detector plus a food-specific model?

I would compare both, with a two-stage pipeline as the main engineering hypothesis. Use a lightweight detector/tracker for location and broad category; on food regions only, run a separate food classifier, image-text matcher or reference-image retriever. For a video stream, the box can refresh frequently while the detailed dish name updates only when a sharp, stable crop is available. This can save work when only a few crops need refinement, but two models are not automatically faster: crop copies, preprocessing, loading and memory contention have costs.

5. Other model families or implementations worth considering?

For the food stage, compare a food classifier, MobileCLIP2 for image-text ranking, and reference-photo retrieval. MobileCLIP2 is useful as a research baseline, but its pretrained weights are restricted to non-commercial research; they are not a ready-made commercial-app dependency. Google AI Edge Gallery demonstrates on-device retrieval, not Indian-food classification accuracy. A larger grounded model can serve as a desktop comparator rather than a mobile deployment target.

There is no single published result, among the sources I found, that establishes arbitrary 3,250-label accuracy, specific Indian-dish identity, bounding boxes, fully offline operation and real-time Android performance simultaneously. That is why I would run a tiny, discriminative test before committing to the architecture.

A practical default path

I would start with the hardest food distinctions, not with optimizing all 3,250 labels. Keep your preference to avoid fine-tuning initially, and treat specialized training as a fallback rather than a prerequisite.

Check label identifiability
  |-- ambiguous or invisible distinction: coarse label / candidates / context
  |-- plausible visual distinction: compare pretrained manual-crop models
         |-- weak: revisit labels, data, prompt and model
         |-- useful: add detector, compare pipelines, then profile Android

What I would test first (small and cheap)

The seven examples in your post are a reasonable initial panel: baingan bharta, aloo gobi, biryani, butter chicken, dal makhani, dosa, and pav bhaji. This is diagnostic, not a representative benchmark of Indian cuisine. Use a few independent images per dish and add similar dishes that are not among those seven. Where possible, preserve the actual dish identity from a menu, recipe or cook; do not treat a filename or visual guess as proof of the underlying recipe.

First use manual crops, without running an object detector. Compare the same fixed candidate set using (a) names alone, (b) a few carefully written aliases/descriptions, and (c) reference photos where available. Record exact-label Top-1/Top-k, confusion pairs, and how often unknown dishes receive a confident but incorrect exact name. Then run detection and repeat with predicted boxes; the difference isolates losses from localization or cropping. Only if that works should you spend time exporting and profiling on Android.

The rest is supporting detail and implementation references, not a requirement to run a large research project before making a prototype.

Why the food-label problem has to be separated from model accuracy

Visual identification, culinary identity and ground truth

Within-class diversity (one named dish, many appearances), between-class overlap (different names, similar presentations), and hidden properties (ingredients or steps not visible) demand different remedies. Only the last can make exact image-only identification fundamentally unresolvable in particular cases.

Two preparations may be indistinguishable in a photo while differing in hidden ingredients; no image-only method can guarantee which unseen ingredient was used. That conditional information limit is not a claim that all dishes are impossible to recognize.

Label policy is part of the system. A practical policy might associate each label with its canonical name, synonyms, a coarse parent category, plausible look-alike labels, what counts as visual evidence, and whether exact truth requires external provenance. That policy can start with the difficult dishes; there is no need to define it exhaustively for all 3,250 labels before prototyping. One label may describe a visible form (e.g. a flatbread), another a preparation method, and another a restaurant-specific menu title; they should not silently share the same evaluation rule.

Mixed plates create a separate spatial question: does a bounding box enclose a whole meal, an individual bowl, a particular dish within a thali, or an exposed ingredient? You can have perfect dish-name knowledge and still fail a box-based evaluation because the unit of annotation differs. If the app requires multiple individual dishes within one plate, it needs an annotation and detection contract consistent with that goal. An image classifier operating on the entire plate is not automatically an individual-dish recognizer.

A known-menu scenario can still be genuinely easier: location, menu availability and expected serving style shrink the candidates. But correct menu identity is not guaranteed by visual similarity alone. A single restaurant can serve visually similar dishes, and the same dish name can change appearance across branches or seasons. The sensible design is to treat restaurant context as evidence that updates candidates, not as an invisible source of truth about the pixels.

Rather than forcing an exact label on every frame, an interface can have levels of commitment: show a box and coarse class confidently, provide a shortlist for a difficult dish, and abstain on exact naming when evidence is insufficient. This is not surrendering the recognition goal; it is aligning the claimed result with what the available evidence supports. Incorrect exact names can be worse for a food diary or dietary use case than an explicitly uncertain but recoverable suggestion.

Model families, label vocabulary and the single-versus-two-stage choice

Which part should each model do?

Open-vocabulary object detection and open-vocabulary image classification should not be conflated. A detector predicts regions plus object labels. An image-text model usually compares a supplied image (often already cropped) with candidate text descriptions; it does not automatically provide accurate boxes. An image retrieval system compares with known exemplars. A dish-specific supervised classifier predicts among its training labels. Each may be useful, but none is a drop-in substitute for the entire application.

YOLOE: text prompts, prompt-free vocabulary and frozen export

The YOLOE documentation distinguishes text prompting, prompt-free operation and the exported model contract. If you configure classes with set_classes() and export, the current docs say those classes are baked into the weights. That is a strong deployment convenience when labels are fixed, not a promise of dynamic prompts after export. In particular, “the prompt-free model has thousands of built-in categories” and “the model recognizes every item in my separate 3,250-name list” are different claims.

A sensible smoke test is to configure only a few ordinary objects and food names first, record the model revision and exact class order, export, and compare its output to the Python model on fixed photographs. Then increase the number of candidate labels and measure both accuracy and performance. The impact of class count depends on the head, postprocessing and export path; parameter count alone cannot predict it. Even a “nano” backbone can have class-dependent outputs and postprocessing costs.

YOLO-World: do not skip the decoder contract

YOLO-World’s repository and its TFLite conversion guide are particularly useful because they expose implementation details rather than only benchmark charts. The guide specifies a reparameterized model and an export without the bounding-box decoder for its INT8 path. That means the app must handle the resulting output convention correctly; it is not enough to load tensors and attach label names. Input layout, normalization, coordinate transforms, decoder, NMS and class index ordering all belong to the inference contract.

Choosing the food stage

There are three distinct pretrained-first options:

  1. Text-image matching: rank short descriptions such as “a plate of aloo gobi” against a single crop. Try bare names, aliases and consistently structured descriptions separately. This may expose an inexpensive prompt sensitivity problem, but a better prompt is not proof that the target dishes have become unambiguously recognizable.
  2. Exemplar retrieval: compare the crop with a small bank of verified photos, especially known menu items. The model weights need not change to add photos, but the gallery must contain representative versions of the dishes and be legally usable. Similarity means visual resemblance, not guaranteed recipe identity.
  3. Food-specific closed-set classifier: use a published checkpoint only for classes it actually covers. If the target subset is truly discriminable yet pretrained methods fail, training or adapting only this stage may be a much smaller commitment than retraining the whole detection system.

A softmax over seven CLIP-style candidate scores is not a calibrated probability of the true recipe. It is usually a relative ranking over the candidate set you supplied. Change that set and the normalized score can change even with an identical photograph. Exact acceptance thresholds and an unknown decision need their own validation examples.

Two-stage engineering is an option, not a law

For general household objects, a single configured detector may be simplest. For food, separate recognition can buy flexibility in prompts, retrieval and future training. But the pipeline should be benchmarked as a whole:

Camera frame
  |
Detector + tracker (coarse class, box, stable track ID)
  |                 
  +-- non-food: ordinary detection result
  |
  +-- food: selected, good-quality crop
         |
         +-- image/text comparison, gallery retrieval or food classifier
         |
         +-- exact label if supported; otherwise coarse label or shortlist

Tracking can let you classify only when an object first appears, when its crop improves, or when a previous result is uncertain. Avoid classifying every camera frame without evidence that it improves the user experience. Conversely, delayed refinement can harm fast-moving scenes or multi-object coverage. Budget detector frequency, number and size of crops, second-stage batches and acceptable label delay.

Minimal evaluation and what each failure means

A compact evaluation ladder

G0: Define what counts as truth. For each difficult dish, record its canonical label, synonyms, broad category, source of identity (menu/chef/recipe), visually similar alternatives, and whether exact identity is even observable. If categories overlap by definition, record permissible answers or an ambiguity flag before calculating accuracy. A photo with an unverified internet caption may be useful exploratory material but is weak ground truth.

G1: Build a small diagnostic panel. Start with the seven example dishes, a few images per class from different sources, and visually similar foods outside the seven. Add at least one mixed plate and one unfamiliar presentation if those matter to the camera use case. Group near-duplicate frames and photographs from the same recipe or venue; do not count them as independent evidence. Keep easy cases, hard negatives, unknown cases and doubtful ground truth in separate groups rather than reporting a blended number alone.

G2: Isolate food recognition using manual crops. Test model A versus model B on exactly the same crop and candidates; compare bare labels, consistent descriptions and reference retrieval as separate conditions. Record exact-label Top-1, Top-k, leading confusion pairs, score margins, and failures by source/restaurant. The first objective is to learn whether useful visual discrimination exists, not to win a paper benchmark.

G3: Test unknown and ambiguous foods. A closed-set classifier must choose among the available categories even when the right name is missing. Include “none of the named dishes,” ambiguous photos and visually similar outsiders. Evaluate the fraction of incorrect exact labels among answers the system actually makes, and how often it declines to make an exact claim. Report both the error rate among accepted labels and the fraction of examples receiving an answer; rejecting nearly everything is not success.

G4: Add boxes. Compare three paths on matched images: manually cropped dish, automatically detected crop, and (optionally) whole image. If manual crops work but automatic crops fail, suspect missed detections, insufficient resolution, bounding-box geometry or preprocessing. If whole images work but tight crops fail, context is probably carrying signal. If all fail on the same food pairs, further box optimization is unlikely to solve the culinary distinction.

G5: Qualify the export. Keep a few golden photographs and expected predictions. Compare preprocessing, output shape, boxes, classes and scores across native Python inference, ONNX/TFLite export and the runtime. Re-run after quantization. A parity regression at this point is a deployment issue, not a new discovery about recipe ambiguity.

G6: Measure the phone, end to end. Fix the device, Android version, SoC, runtime/backend, model revision, resolution, class profile and quantization. Measure median and slow-tail frame time, memory, dropped frames, first-use behavior and performance after sustained operation. Report detector-only, recognizer-only and combined results so the actual bottleneck remains visible.

Score interpretation matters

Metric Useful for Does not establish
Top-1 / Top-k image accuracy Ranking given the specified labeled candidate set Correct boxes, open-set recognition or robustness to new restaurants
mAP / recall for detection Box localization and class assignment under an IoU protocol Recipe identity in an already-cropped photo
VLM multiple-choice accuracy Choice among the answer options supplied Free-form recognition across 3,250 arbitrary dishes
Accuracy among accepted predictions Precision of the system’s committed labels That the abstention rate is acceptable
Reject/unknown performance Handling unsupported foods Good recognition of the supported ones
Frame latency / FPS Runtime characteristics of that device and setup Semantic correctness or performance on another phone

Published percentages from different columns should not be compared as though they share a denominator. Also distinguish validation from independent test sets, dataset-specific fine-tuning from zero-shot, and easy random negatives from near-identical dish pairs. A reported 90% on a restricted dish-classification dataset and a lower mAP on in-the-wild multi-food detection can both be true without one model being intrinsically inferior.

A useful failure map

Could not label the photograph correctly
  |
  +-- Is the correct identity visually observable?
  |      +-- No/uncertain: revise claim, label policy or extra context
  |
  +-- Is the image crop adequate?
  |      +-- No: detector, resolution or crop strategy
  |
  +-- Is the intended class in the candidate vocabulary?
  |      +-- No: unknown policy, synonyms, class profiles
  |
  +-- Does a pretrained recognizer rank it correctly?
  |      +-- No: image/text alignment, hard negatives, model/data choice
  |
  +-- Does the exported/runtime model reproduce desktop behavior?
         +-- No: preprocessing, class mapping, decoder, quantization
Android deployment, offline operation and pitfalls

A model file is not the same as a working camera app

For Android, separate export success, mobile runtime correctness, and useful sustained camera performance. They are independent gates. A .tflite or .onnx file can exist but require unsupported operators, run partly on CPU, return raw tensors that need a custom decoder, or become unusably slow when combined with camera preprocessing. Device generation, chip, resolution and enabled backends matter at least as much as an advertised desktop FLOP count.

Relevant implementation references are Ultralytics model export, YOLO-World’s quantized TFLite instructions, ONNX Runtime Mobile, and Google’s ML Kit custom image-classification pipeline. These are different integration paths, not interchangeable plug-ins. For example, ML Kit detects at most five objects per image; it is not a generic substitute for arbitrary dense detection.

ONNX Runtime’s Mobile Usability Checker can flag operators and accelerator partitioning concerns before Android integration. An accelerator need not be faster if unsupported operations repeatedly return to the CPU. Compare supported CPU, XNNPACK, NNAPI and other acceleration paths on the target device rather than trusting a nominal NPU specification. Quantization may reduce storage and compute, but its class-ranking or localization changes should be checked using representative photos, including hard food pairs.

What to compare across export boundaries

Keep model and preprocessing revisions fixed. Test the original checkpoint and each exported artifact on the same images, then compare pixel preprocessing, letterboxing, channel order, normalization, input shape, output tensor layout, bounding-box coordinate system, score threshold, label index map, decoder and NMS. If you create profiles for different label groups, track the profile identity and class order with the model file. Otherwise a plausible score channel attached to the wrong class name can look like a semantic recognition error.

The total camera budget is not merely model inference. A useful breakdown is:

Camera capture and format conversion
 + resize / orientation / crop / upload
 + detector inference and output decoding
 + tracking and candidate selection
 + optional food embedding/classification/retrieval
 + label postprocessing and drawing
 = user-visible response time

A two-stage system is helpful when it can avoid unnecessary detailed classification; it can also be slower when many objects trigger the second stage, images are copied repeatedly, or the second model competes for memory. Record the full pipeline’s latency, not only model timings on a prepared input tensor. For live UI, slow-tail latency, frame drops, delayed labels and a thermal test over several minutes may be more useful than peak single-frame FPS.

Offline means more than disconnected inference

Distinguish (a) a fully bundled cold-start package (weights, vocabulary, tokenizer, preprocessing and metadata) from (b) a first-run download followed by local inference. Some ML Kit configurations require a component download before first use; configuring YOLOE text prompts can also require assets fetched during preparation. Both may be reasonable products, but only the first can support a cold-start offline guarantee. Test a fresh install in airplane mode, then separately test after a connected first run; a warm cache is not proof of cold-start offline support. Also check updates and optional telemetry separately from the inference path.

Licenses are a separate deployment gate

Check source code, trained weights, training/evaluation photographs and application distribution rights independently. Ultralytics licensing and YOLO-World’s repository license are relevant for a distributable detector. Apple MobileCLIP2’s code repository identifies MIT-licensed code but separate research-only model terms. A public dataset paper does not by itself grant rights to redistribute its images inside an app. These checks should not be confused with model accuracy, but they are worth doing before committing to a production stack.

Prior research: what has actually been measured

Useful precedents, with the evaluation conditions attached

There are already serious food-recognition studies. Their strongest contribution here is not a universal answer about 3,250 arbitrary labels, but evidence about which restricted tasks have worked, which cases remain difficult, and how benchmarks make those tasks measurable.

Indian cuisine and specialized training. FoodLens (2025) uses roughly 30,000 images covering more than 140 popular Indian dishes and builds a hierarchy and multi-label training method to handle multiple foods and fine distinctions. The authors report improved classification compared with their baselines. Khana defines 80 Indian cuisine classes with approximately 131,000 images and reports supervised model baselines for classification, segmentation and retrieval. These are substantive results for bounded, supervised label sets, not zero-shot guarantees on a different vocabulary or unknown restaurants.

Fine-grained ambiguity. FoodX-251 provides 251 fine-grained food classes with verified evaluation labels. Its authors explicitly filtered out classes without human visual consensus; the evaluation set was also human-verified. DiningBench (ACL 2026) has 3,021 dish entries and tests 29 VLMs on perception and reasoning, including hard visually similar negatives taken from the same menus. Its fine-grained task uses restricted answer choices, not unrestricted identification across all 3,021 entries; the reported failures are still relevant. The candidate set and eligibility rules are part of the result, not incidental details.

Human variability and correction. FoodNExTDB / the CVPR Workshops 2025 study uses expert annotations and an evaluation metric sensitive to expert disagreement. Its expert-weighted evaluation explicitly models annotator variation rather than treating every image label as unquestionable. MyFoodRepo-273 evaluates detection/segmentation using images from actual food logging and practical correction workflows. It reported mAP 0.568 in round 4 of its detection benchmark. This is not comparable to a crop-classification Top-1 figure or a within-menu VLM multiple-choice score.

Visible ingredients versus recipes. FoodSeg103 selected ingredient categories and images that could be visibly segmented. This illustrates an annotation boundary: a hidden spice or dissolved ingredient cannot be directly segmented from visible pixels. Food segmentation may help when ingredients are visible, but identifying exposed ingredients is not the same as proving an entire recipe’s composition.

Mobile and retrieval examples. ML Kit’s detection/classification documentation, Google AI Edge Gallery, the Apple MobileCLIP2 implementation and the YOLO-World deployment guide establish useful implementation patterns. They do not combine into a published measured claim that all the original Android-plus-3,250-label requirements have been met.

Practical synthesis

I would not discard the 3,250-label idea, nor insist on training a large bespoke model immediately. I would keep YOLOE-26 and YOLO-World as detection baselines, check the seven difficult dish labels with manual crops, and only then decide whether food-specific image-text matching, reference retrieval or a small specialized classifier buys enough accuracy to justify a two-stage system. Boxes can remain a live, lightweight task even when dish-name refinement is slower. Fixed labels, dynamic labels, known restaurant menus and exact recipe identification are different product branches.

Most importantly, “the model accepts the label,” “the photo contains enough evidence,” and “the phone can produce the result in real time” are three separate things to validate. If the image does not establish the precise dish identity, a coarse category, candidate list or explicit uncertainty is a sensible, useful result. If it does, the remaining problem becomes much more tractable to benchmark and optimize.