{"id":32268005,"url":"https://github.com/vladih/flutter_vision","last_synced_at":"2026-02-21T08:02:08.726Z","repository":{"id":37403150,"uuid":"483521466","full_name":"vladiH/flutter_vision","owner":"vladiH","description":"A Flutter plugin for managing both Yolov5 model and Tesseract v4, accessing with TensorFlow Lite 2.x. Support object detection, segmentation and OCR on both iOS and Android.","archived":false,"fork":false,"pushed_at":"2025-09-11T02:31:10.000Z","size":100675,"stargazers_count":87,"open_issues_count":23,"forks_count":47,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-22T22:13:53.144Z","etag":null,"topics":["detection-model","ocr-recognition","segmentation-models","yolov5","yolov8"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_vision","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladiH.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-20T05:38:57.000Z","updated_at":"2025-10-06T13:21:15.000Z","dependencies_parsed_at":"2025-08-22T07:19:22.325Z","dependency_job_id":null,"html_url":"https://github.com/vladiH/flutter_vision","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vladiH/flutter_vision","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladiH%2Fflutter_vision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladiH%2Fflutter_vision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladiH%2Fflutter_vision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladiH%2Fflutter_vision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladiH","download_url":"https://codeload.github.com/vladiH/flutter_vision/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladiH%2Fflutter_vision/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29676981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["detection-model","ocr-recognition","segmentation-models","yolov5","yolov8"],"created_at":"2025-10-22T22:06:30.350Z","updated_at":"2026-02-21T08:02:08.720Z","avatar_url":"https://github.com/vladiH.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_vision\n\nA Flutter plugin for managing [Yolov5, Yolov8, and Yolov11](https://github.com/ultralytics/ultralytics) accessing with LiteRT (TensorFlow Lite). Support object detection and segmentation on Android. iOS not updated, working in progress.\n\n# Installation\nAdd flutter_vision as a dependency in your pubspec.yaml file.\n\n## Android\nIn `android/app/build.gradle`, add the following setting in android block.\n\n```gradle\n    android{\n        aaptOptions {\n            noCompress 'tflite'\n            noCompress 'lite'\n        }\n    }\n```\n## iOS\nComing soon ...\n\n# Usage\n## For YoloV5, YoloV8, and YoloV11 MODEL\n1. Create a `assets` folder and place your labels file and model file in it. In `pubspec.yaml` add:\n\n```\n  assets:\n   - assets/labels.txt\n   - assets/yolovx.tflite\n```\n\n2. Import the library:\n\n```dart\nimport 'package:flutter_vision/flutter_vision.dart';\n```\n\n3. Initialized the flutter_vision library:\n\n```dart \n FlutterVision vision = FlutterVision();\n```\n\n4. Load the model and labels:\n`modelVersion`: yolov5 or yolov8 or yolov8seg or yolo11 or yolov11\n```dart\nawait vision.loadYoloModel(\n        labels: 'assets/labelss.txt',\n        modelPath: 'assets/yolov5n.tflite',\n        modelVersion: \"yolov5\",\n        quantization: false,\n        numThreads: 1,\n        useGpu: false);\n```\n### For camera live feed\n5. Make your first detection:\n`confThreshold` work with yolov5 other case it is omited.\n\u003e _Make use of [camera plugin](https://pub.dev/packages/camera)_\n\n```dart\nfinal result = await vision.yoloOnFrame(\n        bytesList: cameraImage.planes.map((plane) =\u003e plane.bytes).toList(),\n        imageHeight: cameraImage.height,\n        imageWidth: cameraImage.width,\n        iouThreshold: 0.4,\n        confThreshold: 0.4,\n        classThreshold: 0.5);\n```\n\n### For static image\n5. Make your first detection or segmentation:\n\n```dart\nfinal result = await vision.yoloOnImage(\n        bytesList: byte,\n        imageHeight: image.height,\n        imageWidth: image.width,\n        iouThreshold: 0.8,\n        confThreshold: 0.4,\n        classThreshold: 0.7);\n```\n\n6. Release resources:\n\n```dart\nawait vision.closeYoloModel();\n```\n\n# About results\n## For Yolo v5, v8, or v11 in detection task\nresult is a `List\u003cMap\u003cString,dynamic\u003e\u003e` where Map have the following keys:\n\n ``` dart\n    Map\u003cString, dynamic\u003e:{\n     \"box\": [x1:left, y1:top, x2:right, y2:bottom, class_confidence]\n     \"tag\": String: detected class\n    }\n```\n\n## For YoloV8 in segmentation task\nresult is a `List\u003cMap\u003cString,dynamic\u003e\u003e` where Map have the following keys:\n\n ``` dart\n    Map\u003cString, dynamic\u003e:{\n     \"box\": [x1:left, y1:top, x2:right, y2:bottom, class_confidence]\n     \"tag\": String: detected class\n     \"polygons\": List\u003cMap\u003cString, double\u003e\u003e: [{x:coordx, y:coordy}]\n    }\n```\n\n# Example\n![Screenshot_2022-04-08-23-59-05-652_com vladih dni_scanner_example](https://user-images.githubusercontent.com/32783435/164163922-2eb7c8a3-8415-491f-883e-12cc87512efe.jpg)\n\u003cimg src=\"https://github.com/vladiH/flutter_vision/assets/32783435/8fbbb9da-062e-4089-b1f6-1d4b2795664c\" alt=\"Home\" width=\"250\" height=\"555\"\u003e\n\u003cimg src=\"https://github.com/vladiH/flutter_vision/assets/32783435/51098356-8ed7-4c72-bce0-cf64d56976cd\" alt=\"Detection\" width=\"250\" height=\"555\"\u003e\n\u003cimg src=\"https://github.com/vladiH/flutter_vision/assets/32783435/0368ae2f-89ad-4a1a-a4c3-0548f0948421\" alt=\"Segmentation\" width=\"250\" height=\"555\"\u003e\n\n\n# \u003cdiv align=\"center\"\u003eContact\u003c/div\u003e\n\n- For flutter_vision bug reports and feature requests please visit [GitHub Issues](https://github.com/vladiH/flutter_vision/issues)\n- For direct contact: yurihuallpavargas@gmail.com\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://linktr.ee/randpoint\" style=\"text-decoration:none;\"\u003e\n    \u003cimg src=\"https://github.com/vladiH/flutter_vision/assets/32783435/75d2c677-65b5-4b9d-b332-d9d08602f024\" width=\"3%\" alt=\"\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladih%2Fflutter_vision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladih%2Fflutter_vision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladih%2Fflutter_vision/lists"}