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.
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.
- apple_vision_recognize_text
Flutter plugin to use Apple Vision Text Recognition in an image or live camera feed.
56Compare - nsfw_detect
On-device NSFW and explicit content detection for images, videos, and camera feeds.
66Compare - hand_landmarker
Real-time hand landmark detection on Android using Google MediaPipe and JNI.
54Compare
Works with
Packages commonly used together with google_mlkit_object_detection: ones it builds on, ones built on it, and its own family.
- google_mlkit_commonsgoogle_mlkit_object_detection depends on itCommon classes and utility methods for Google's ML Kit plugins
- google_mlkit_text_recognitionSame familyFlutter plugin to use Google's ML Kit Text Recognition on Android and iOS.
- google_mlkit_barcode_scanningSame familyA Flutter plugin to use Google's ML Kit Barcode Scanning on Android and iOS.
- google_mlkit_face_detectionSame familyFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- google_mlkit_translationSame familyFlutter plugin for Google's ML Kit On-Device Translation.
- google_mlkit_selfie_segmentationSame familyFlutter plugin to use Google's ML Kit Selfie Segmentation API.
- google_mlkit_language_idSame familyDetermine the language of a text string using Google's ML Kit.
- google_mlkit_pose_detectionSame familyFlutter plugin for Google ML Kit Pose Detection on Android and iOS.