パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.2.2

opencv_dart

dart:ffi を使用した Flutter 向け OpenCV4 バインディング。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
1.5万
いいね数
137
Pub ポイント
140

パッケージをインストール

flutter pub add opencv_dart

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

opencv_dart は dart:ffi を使用して Flutter 用の OpenCV4 バインディングを提供し、クロスプラットフォームアプリケーションでコンピュータビジョンおよび画像処理機能を可能にします。開発者は、Android、iOS、macOS、Windows、Linux の Flutter アプリで、画像フィルタリング、オブジェクト検出、特徴抽出などの OpenCV の広範なアルゴリズムライブラリを直接利用できます。このパッケージはネイティブ OpenCV 機能と Dart コードを接続し、直接システムコールを通じて高いパフォーマンスを実現します。リアルタイムカメラ処理、OCR、または高度な画像解析をモバイルおよびデスクトップアプリに統合するのに最適です。

用途

  • リアルタイム画像処理
  • OCR 統合
  • オブジェクト検出
  • カメラベースの分析
  • 顔認識

主な機能

  • クロスプラットフォーム対応
  • パフォーマンス向上のため dart:ffi を使用
  • OpenCV4互換性
  • ネイティブ OpenCV 関数へのアクセス
  • 軽量ラッピング

適している対象

  • コンピュータビジョンが必要なFlutter開発者
  • 画像分析を必要とするアプリ
  • モバイルおよびデスクトップビジョンプロジェクト
  • プロトタイプ視覚機能
  • パフォーマンスが重要な画像処理

注意事項

  • ネイティブOpenCVライブラリが必要です
  • プラットフォーム固有の設定が必要になる場合があります
  • 限られたドキュメント
  • アプリバンドルのサイズが増加する可能性
  • ネイティブコードのデバッグは複雑になることがあります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

opencv_dart

OpenCV Bindings for Dart Language. Support both asynchronous and synchronous!

Star on Github License: Apache-2.0
Native Assets Build Discord Server
Package Link Description
dartcv4 OpenCV bindings for Dart Language.
opencv_dart OpenCV for Flutter, from 2.x , it is a wrapper of dartcv4 to keep compatibility.

[!NOTE] WIP, APIs may change in the future, contributions are welcome!

Demos

Screenshot Link
example example
videoio texture renderer
dnn_minist DNN MNIST inference
stitching stitching
stitching camera
stitching videoio

Supported Platforms

Platform Supported Tested Platforms
Android :white_check_mark: :white_check_mark: x86_64, arm64-v8a, armeabi-v7a
iOS :white_check_mark: :white_check_mark: arm64, x64+arm64(Simulator)
Linux :white_check_mark: :white_check_mark: x64, arm64
Windows :white_check_mark: :white_check_mark: x64, arm64
macOS :white_check_mark: :white_check_mark: x64, arm64

Status

Core Modules
module Binding status Test status description
core :white_check_mark: :white_check_mark: Core module
calib3d :white_check_mark: :white_check_mark: Calib3D module
dnn :white_check_mark: :white_check_mark: DNN module
features2d :white_check_mark: :white_check_mark: Features2D module
gapi :x: :x: GAPI module
highgui :white_check_mark: :white_check_mark: HighGUI module
imgcodecs :white_check_mark: :white_check_mark: ImageCodecs module
imgproc :white_check_mark: :white_check_mark: ImageProc module
ml :x: :x: ML module
objdetect :white_check_mark: :white_check_mark: Object Detection module
photo :white_check_mark: :white_check_mark: Photo module
stitching :ballot_box_with_check: :ballot_box_with_check: Stitching module
svd :white_check_mark: :white_check_mark: SVD module
video :white_check_mark: :white_check_mark: Video module
videoio :white_check_mark: :white_check_mark: VideoIO module
Contrib Modules
module Binding status Test status description
aruco :white_check_mark: :white_check_mark: ArUco module
img_hash :white_check_mark: :white_check_mark: Image hashing module
cuda :x: :x:
wechat_qrcode :white_check_mark: :white_check_mark:
bgsegm :x: :x:
superres :x: :x:
xfeatures2d :x: :x:
ximgproc :white_check_mark: :white_check_mark:
xobjdetect :white_check_mark: :white_check_mark:
xphoto :x: :x:
quality :white_check_mark: :white_check_mark:
  • :x: : not finished
  • :ballot_box_with_check: : partially supported
  • :white_check_mark: : finished
  • modules not in the above table are not considered, contributions are welcome
  • videoio: cv.VideoCapture from file is not supported yet supported now.

Usage

Pure Dart
import 'package:dartcv4/dartcv.dart' as cv;

void main() {
  final img = cv.imread("test/images/lenna.png", flags: cv.IMREAD_COLOR);
  final gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY);
  print("${img.rows}, ${img.cols}");

  cv.imwrite("test_cvtcolor.png", gray);
}
Flutter

see awesome-opencv_dart and share yours

TODO

  • [x] compile libs for android, linux
  • [x] support for iOS, macOS
  • [x] add more examples
  • [ ] documentation
  • [x] modify C wrapper to catch exceptions
  • [x] Native Assets, see native-assets branch
  • [x] async
  • [x] more/full test coverage
  • [x] directly include opencv source code, refactor cmakelists.txt

Contributors

rainyl
rainy liu
abdelaziz-mahdy
Abdelaziz Mahdy
einsitang
爱因斯唐
Gold872
Gold87
diegolopezrm
Diego López
Jiinwoo
JinWoo Jung
westito
westito
heyarny
Arnold Stark
dupuchba
Baptiste DUPUCH
Escaton615
Escaton615
mdeleau
mdeleau
pariterre
Pariterre
lennartalff
Thies Lennart Alff
jasaw
jasaw
totemat
Matteo T.

Acknowledgement

Star History

Star History Chart

License

Apache-2.0 License

カテゴリー

依存関係

依存関係一覧 1 件

  • dartcv4^2.2.2

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。