패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 함수 접근
  • 경량 래퍼

적합한 대상

  • 컴퓨터 비전이 필요한 플러터 개발자
  • 이미지 분석이 필요한 앱
  • 모바일 및 데스크톱 비전 프로젝트
  • 프로토타입 시각 기능
  • 성능 중심의 이미지 처리

고려 사항

  • 네이티브 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

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.