If you want to add new opencv API/Module,
- build libdartcv from source
- add new C wrappers in
src
and make sure it is correctly build - add your
.h
file to ffigen in dartcv4 and rundart run ffigen --config ffigen.yaml
- add corresponding dart code in lib
- write testing code and test whether it works as expected
Note: C wrappers should be added to dartcv and dart bindings should be added to dartcv4
git clone https://github.com/rainyl/opencv_dart
- open project in IDE and write doc strings above functions and classes in source codes.
- follow the dart documentation recommendations, https://dart.dev/effective-dart/documentation
For Windows:
git clone https://github.com/rainyl/opencv_dart
- cd
opencv_dart/packages/dartcv
- install dependencies and add dynamic library path to PATH environment variable.
- now write new dart tests and place them in
test/
directory. - run
dart test
- (Optional) add the absolute path of opencv_dart/windows to PATH environment variable, which can ebable the testing sidebar of VSCode.
Other platforms are similar.