unified_apple_vision 🍎

License: MIT Pub Version

A plugin for using Apple Vision Framework with Flutter, designed to integrate multiple APIs into one plugin and process multiple analysis requests at once.

Features ⚙️ & Requirements 🧩

Status: ✅ Complete ⚠️ Problematic 👨‍💻 In Progress ❌ Not Yet

Vision API Request Status iOS macOS
Saliency Analysis Generate Attention Based Saliency Image 13.0+ 10.15+
Generate Objectness Based Saliency Image 13.0+ 10.15+
Object Tracking Track Rectangle ⚠️ 11.0+ 10.13+
Track Object ⚠️ 11.0+ 10.13+
Rectangle Detection Detect Rectangle 11.0+ 10.13+
Face and Body Detection Detect Face Capture Quality 13.0+ 10.15+
Detect Face Landmarks 11.0+ 10.13+
Detect Face Rectangles 11.0+ 10.13+
Detect Human Rectangles 13.0+ 10.15+
Body and Hand Pose Detection Detect Human Body Pose 14.0+ 11.0+
Detect Human Hand Pose 14.0+ 11.0+
3D Body Pose Detection Detect Human Body Pose 3D 17.0+ 14.0+
Animal Detection Recognize Animals
(only dogs and cats...😓)
13.0+ 10.15+
Animal Body Pose Detection Detect Animal Body Pose 17.0+ 14.0+
Trajectory Detection Detect Trajectories 14.0+ 11.0+
Contour Detection Detect Contours 14.0+ 11.0+
Optical Flow Generate Optical Flow 14.0+ 11.0+
Track Optical Flow 17.0+ 14.0+
Barcode Detection Detect Barcodes 11.0+ 10.13+
Text Detection Detect Text Rectangles 11.0+ 10.13+
Text Recognition Recognize Text 13.0+ 10.15+
Horizon Detection Detect Horizon 11.0+ 10.13+
Image Alignment Translational Image Registration 11.0+ 10.13+
Track Translational Image Registration 17.0+ 14.0+
Homographic Image Registration 11.0+ 10.13+
Track Homographic Image Registration 17.0+ 14.0+
Image Background Removal Generate Foreground Instance Mask 17.0+ 14.0+

Install 📦

Add this to your pubspec.yaml:

unified_apple_vision: ^latest

Usage 🕹

// initialize
final vision = UnifiedAppleVision();

// create input image
final input = VisionInputImage(
  bytes: image.bytes,
  size: image.size,
);

// analyze
final res = await vision.analyze(input, [
  // add requests you wish to perform
  const VisionRecognizeTextRequest(),
]);

Documents 📘

License 📜

This project is licensed under the MIT License - see the LICENSE file for details.