Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev2.2.2

opencv_dart

Bindings do OpenCV4 para Flutter, usando dart:ffi.

AndroidiOSmacOSWindowsLinux
Downloads em 30 dias
17,5 mil
Curtidas
137
Pontos Pub
140

Instalar pacote

flutter pub add opencv_dart

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

O opencv_dart fornece vinculações do OpenCV4 para o Flutter usando o dart:ffi, permitindo capacidades de visão computacional e processamento de imagens em aplicativos multiplataforma. Ele permite que desenvolvedores aproveitem a extensa biblioteca de algoritmos do OpenCV — como filtragem de imagem, detecção de objetos e extração de características — diretamente em apps Flutter para Android, iOS, macOS, Windows e Linux. O pacote conecta funcionalidades nativas do OpenCV com código Dart, oferecendo alto desempenho por meio de chamadas diretas ao sistema. Ideal para integrar processamento de câmera em tempo real, OCR ou análise avançada de imagens em aplicativos móveis e desktop.

Casos de uso

  • Processamento de imagem em tempo real
  • Integração OCR
  • Detecção de objetos
  • análise baseada em câmera
  • Reconhecimento facial

Principais recursos

  • Suporte multiplataforma
  • Usa dart:ffi para desempenho
  • Compatibilidade com OpenCV4
  • Acesso à função nativa do OpenCV
  • Embrulho leve

Indicado para

  • Desenvolvedores Flutter que precisam de visão computacional
  • Aplicativos que exigem análise de imagem
  • Projetos de visão móvel e desktop
  • Recursos de visão de protótipo
  • processamento de imagem crítico para desempenho

Considerações

  • Requer bibliotecas nativas do OpenCV
  • Pode ser necessário configurar especificamente para a plataforma
  • Documentação limitada
  • Aumento potencial no tamanho do pacote do aplicativo
  • Depurar código nativo pode ser complexo

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

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

Categorias

Dependências

Lista de dependências 1 itens

  • dartcv4^2.2.2

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.