v2.0.0flutter_vision
Yolov5, Yolov8 और Yolov11 को प्रबंधित करने के लिए प्लगइन, LiteRT (TensorFlow Lite) के साथ एक्सेस करता है। Android पर वस्तु डिटेक्शन और सेगमेंटेशन सपोर्ट करता है। iOS, कार्यरत अवस्था में।
Yolov5 मॉडल और Tesseract v4 के प्रबंधन के लिए एक Flutter प्लगइन, TensorFlow Lite 2.x के साथ एक्सेस करता है। iOS और Android दोनों पर ऑब्जेक्ट डिटेक्शन, सेगमेंटेशन और OCR सपोर्ट करता है।
^0.11.2{"sdk":"flutter"}^1.9.0^2.1.5^5.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Flutter plugin for managing Yolov5, Yolov8, and Yolov11 accessing with LiteRT (TensorFlow Lite). Support object detection and segmentation on Android. iOS not updated, working in progress.
Add flutter_vision as a dependency in your pubspec.yaml file.
In android/app/build.gradle, add the following setting in android block.
android{
aaptOptions {
noCompress 'tflite'
noCompress 'lite'
}
}
Coming soon ...
assets folder and place your labels file and model file in it. In pubspec.yaml add: assets:
- assets/labels.txt
- assets/yolovx.tflite
import 'package:flutter_vision/flutter_vision.dart';
FlutterVision vision = FlutterVision();
modelVersion: yolov5 or yolov8 or yolov8seg or yolo11 or yolov11await vision.loadYoloModel(
labels: 'assets/labelss.txt',
modelPath: 'assets/yolov5n.tflite',
modelVersion: "yolov5",
quantization: false,
numThreads: 1,
useGpu: false);
confThreshold work with yolov5 other case it is omited.Make use of camera plugin
final result = await vision.yoloOnFrame(
bytesList: cameraImage.planes.map((plane) => plane.bytes).toList(),
imageHeight: cameraImage.height,
imageWidth: cameraImage.width,
iouThreshold: 0.4,
confThreshold: 0.4,
classThreshold: 0.5);
final result = await vision.yoloOnImage(
bytesList: byte,
imageHeight: image.height,
imageWidth: image.width,
iouThreshold: 0.8,
confThreshold: 0.4,
classThreshold: 0.7);
await vision.closeYoloModel();
result is a List<Map<String,dynamic>> where Map have the following keys:
Map<String, dynamic>:{
"box": [x1:left, y1:top, x2:right, y2:bottom, class_confidence]
"tag": String: detected class
}
result is a List<Map<String,dynamic>> where Map have the following keys:
Map<String, dynamic>:{
"box": [x1:left, y1:top, x2:right, y2:bottom, class_confidence]
"tag": String: detected class
"polygons": List<Map<String, double>>: [{x:coordx, y:coordy}]
}
Screenshot_2022-04-08-23-59-05-652_com vladih dni_scanner_example Home Detection Segmentation