Skip to content
pubscout

google_mlkit_object_detection

1.0.3, released 8 days ago by flutter-ml.dev

Detect and track objects in images or live camera feeds using Google's ML Kit.

$ flutter pub add google_mlkit_object_detection
Source repository

What it does

A Flutter plugin providing access to Google's ML Kit Object Detection and Tracking APIs. It enables detecting and tracking objects in static images or live camera streams using a base model, local custom TFLite models, or Firebase-hosted models.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to detect and track bounding boxes of objects in camera feeds or static images.
  • You want to use custom TFLite models for object detection on mobile devices.

Skip it when

  • You are building for Web or desktop platforms, which are not supported.
  • You do not want to manage platform-specific native setup for Android and iOS.

Strengths

  • Supports base model, local custom models, and Firebase models.
  • Handles both single images and live camera streams via DetectionMode.

Weaknesses

  • Mobile-only (Android and iOS); web and other platforms are not supported.
  • Requires manual platform configuration including specific iOS deployment targets and Xcode build settings.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
1

Requires iOS deployment target 15.0+, Xcode 15.3.0+, Swift Package Manager setup with specific linker flags, downloading ML Kit resource bundles, and setting Android minSdkVersion to 21+ with compile/target SDK 36.

final options = ObjectDetectorOptions(
  mode: DetectionMode.stream,
  classifyObjects: true,
  multipleObjects: true,
);
final objectDetector = ObjectDetector(options: options);
final List<DetectedObject> objects = await objectDetector.processImage(inputImage);

Alternatives

Packages that do the same job and could replace google_mlkit_object_detection.

Works with

Packages commonly used together with google_mlkit_object_detection: ones it builds on, ones built on it, and its own family.