Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Ultralytics logo

🚀 YOLO Flutter - Ultralytics Official Plugin

Ultralytics Actions .github/workflows/ci.yml codecov

Ultralytics Discord Ultralytics Forums Ultralytics Reddit

Welcome to the Ultralytics YOLO Flutter plugin! Integrate cutting-edge Ultralytics YOLO computer vision models seamlessly into your Flutter mobile applications. This plugin at https://pub.dev/packages/ultralytics_yolo supports both Android and iOS platforms, offering APIs for object detection, image classification, instance segmentation, pose estimation, and oriented bounding box detection.

✨ Why Choose YOLO Flutter?

FeatureAndroidiOS
Detection
Classification
Segmentation
Pose Estimation
OBB Detection
  • Official Ultralytics Plugin - Direct from YOLO creators
  • Real-time Performance - Up to 30 FPS on modern devices
  • 5 AI Tasks - Detection, Segmentation, Classification, Pose, OBB
  • Cross-platform - iOS & Android with single codebase
  • Production Ready - Performance controls & optimization built-in
  • Dynamic Model Loading - Switch models on-the-fly without restarting camera
  • Frame Capture - Capture frames with detection overlays for sharing or saving

⚡ Quick Start (2 minutes)

import 'package:ultralytics_yolo/ultralytics_yolo.dart'; // Add this widget and you're detecting objects! YOLOView( modelPath: 'yolo11n', task: YOLOTask.detect, onResult: (results) { print('Found ${results.length} objects!'); for (final result in results) { print('${result.className}: ${result.confidence}'); } }, )

▶️ Try the Live Demo | 📖 Full Setup Guide

🎯 What You Can Build

TaskDescriptionUse CasesPerformance
DetectionFind objects & their locationsSecurity, Inventory, Shopping25-30 FPS
SegmentationPixel-perfect object masksPhoto editing,15-25 FPS
ClassificationIdentify image categoriesContent moderation, Tagging30+ FPS
Pose EstimationHuman pose & keypointsFitness apps, Motion capture20-30 FPS
OBB DetectionRotated bounding boxesAerial imagery20-25 FPS

📱 See Examples → | ⚡ Performance Guide →

🚀 Installation

1. Add to pubspec.yaml

dependencies: ultralytics_yolo: ^0.1.26

2. Install dependencies

flutter pub get

3. Add a model

You can get the model in one of the following ways:

  1. Download from the release assets of this repository

  2. Get it from Ultralytics HUB

  3. Export it from Ultralytics/ultralytics (CoreML/TFLite)

For YOLO26, use the same steps and grab the yolo26* artifacts from the v0.2.0 release (e.g., yolo26n.tflite / yolo26n.mlpackage).

Export Models for iOS

# Detection REQUIRES nms=True YOLO("yolo11n.pt").export(format="coreml", nms=True) # All other tasks use nms=False (default) YOLO("yolo11n-seg.pt").export(format="coreml")

📥 Download Models

Bundle the model with your app using the following method.

For iOS: Drag and drop mlpackage/mlmodel directly into ios/Runner.xcworkspace and set target to Runner.

For Android: Create a folder called android/app/src/main/assets and place tflite files in it.

4. Platform-Specific Setup

🔧 Setup Guide

🏆 Trusted by Developers

  • Official Ultralytics Plugin - Maintained by YOLO creators
  • Production Tested - Used in apps with many users
  • Active Development - Regular updates & feature additions
  • Community Driven - Open source with responsive support

Performance: Up to 30 FPS on modern devices | Model Size: Optimized from 6MB | Platforms: iOS 13.0+ & Android API 21+

📚 Documentation

GuideDescriptionFor
Installation GuideInstallation, setup, requirementsNew users
Quick Start2-minute setup guideNew users
Usage GuideCommon use cases & code samplesAll users
Performance OptimizationInference control & tuningProduction apps
API ReferenceComplete technical referenceDevelopers
TroubleshootingCommon issues & solutionsAll users

🤝 Community & Support

Ultralytics Discord Ultralytics Forums Ultralytics Reddit

💡 Contribute

Ultralytics thrives on community collaboration, and we deeply value your contributions! Whether it's bug fixes, feature enhancements, or documentation improvements, your involvement is crucial. Please review our Contributing Guide for detailed insights on how to participate. We also encourage you to share your feedback through our Survey. A heartfelt thank you 🙏 goes out to all our contributors!

Ultralytics open-source contributors

📄 License

Ultralytics offers two licensing options to accommodate diverse needs:

  • AGPL-3.0 License: Ideal for students, researchers, and enthusiasts passionate about open-source collaboration. This OSI-approved license promotes knowledge sharing and open contribution. See the LICENSE file for details.
  • Enterprise License: Designed for commercial applications, this license permits seamless integration of Ultralytics software and AI models into commercial products and services, bypassing the open-source requirements of AGPL-3.0. For commercial use cases, please inquire about an Enterprise License.

🔗 Related Resources

Native iOS Development

If you're interested in using YOLO models directly in iOS applications with Swift (without Flutter), check out our dedicated iOS repository:

👉 Ultralytics YOLO iOS App - A native iOS application demonstrating real-time object detection, segmentation, classification, and pose estimation using Ultralytics YOLO models.

This repository provides:

  • Pure Swift implementation for iOS
  • Direct Core ML integration
  • Native iOS UI components
  • Example code for various YOLO tasks
  • Optimized for iOS performance

📮 Contact

Encountering issues or have feature requests related to Ultralytics YOLO? Please report them via GitHub Issues. For broader discussions, questions, and community support, join our Discord server!


Ultralytics GitHub space Ultralytics LinkedIn space Ultralytics Twitter space Ultralytics YouTube space Ultralytics TikTok space Ultralytics BiliBili space Ultralytics Discord
```

关于 About

Flutter plugin for Ultralytics YOLO
aiandroidappcoremldartflutteriosmobileobject-detectiontfliteultralyticsyolo

语言 Languages

Kotlin37.3%
Swift33.0%
Dart28.4%
C++0.8%
Ruby0.4%
CMake0.1%
Objective-C0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
156
Total Commits
峰值: 33次/周
Less
More

核心贡献者 Contributors