Skip to content

Commit 8c983ad

Browse files
committed
add photo module
1 parent 23d1481 commit 8c983ad

File tree

12 files changed

+900
-384
lines changed

12 files changed

+900
-384
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ __pycache__
2121
*.a
2222
*.lib
2323
.cache/
24+
small2.mp4
2425

2526
# Files and directories created by pub
2627
.dart_tool/

.pubignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ coverage/
88
*.dll
99
*.so
1010
*.dylib
11+
*.lib
1112
src/opencv/.github/
1213
src/opencv/
1314
src/opencv_contrib/

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.4.0
2+
3+
* :rocket: add support for `photo` module
4+
5+
## 0.3.0
6+
7+
* Please use 0.3.0 or later, tested for android, linux, and windows
8+
19
## 0.2.0
210

311
* :tada: add android `arm64-v8a`, `armeabi-v7a`, `x86`, `x86_64` prebuild binaries, e.g., `dart run opencv_dart:setup -p android -a arm64-v8a` to download prebuilt binaries for android arm64-v8a

README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,28 @@ prebuilt binaries.
1717
- `platform`: `auto` `android` `linux` `windows`
1818
- `arch`: `auto` `x86` `x64` `x86_64`(android only) `arm64-v8a`(android only) `armeabi-v7a`(android only)
1919

20+
**Please use v0.3.0 and later version.**
21+
2022
## Status
2123

22-
| module | Binding status | Test status | description |
23-
| ---------- | ------------------ | ----------------------- | ----------------------- |
24-
| aruco | :white_check_mark: | :white_check_mark: | ArUco module |
25-
| core | :white_check_mark: | :white_check_mark: | Core module |
26-
| features2d | :white_check_mark: | :white_check_mark: | Features2D module |
27-
| highgui | :white_check_mark: | :white_check_mark: | HighGUI module |
28-
| imgcodecs | :white_check_mark: | :white_check_mark: | ImageCodecs module |
29-
| imgproc | :white_check_mark: | :white_check_mark: | ImageProc module |
30-
| objdetect | :white_check_mark: | :white_check_mark: | Object Detection module |
31-
| svd | :white_check_mark: | :white_check_mark: | SVD module |
32-
| video | :white_check_mark: | :white_check_mark: | Video module |
33-
| videoio | :white_check_mark: | :ballot_box_with_check: | VideoIO module |
34-
| asyncarray | :x: | :x: | AsyncArray module |
35-
| calib3d | :x: | :x: | Calib3D module |
36-
| dnn | :x: | :x: | DNN module |
37-
| photo | :x: | :x: | Photo module |
38-
| cuda | :x: | :x: | CUDA module |
39-
| contrib | :x: | :x: | Contrib module |
24+
| module | Binding status | Test status | description |
25+
| ---------- | ------------------ | ------------------ | ----------------------- |
26+
| aruco | :white_check_mark: | :white_check_mark: | ArUco module |
27+
| core | :white_check_mark: | :white_check_mark: | Core module |
28+
| features2d | :white_check_mark: | :white_check_mark: | Features2D module |
29+
| highgui | :white_check_mark: | :white_check_mark: | HighGUI module |
30+
| imgcodecs | :white_check_mark: | :white_check_mark: | ImageCodecs module |
31+
| imgproc | :white_check_mark: | :white_check_mark: | ImageProc module |
32+
| objdetect | :white_check_mark: | :white_check_mark: | Object Detection module |
33+
| svd | :white_check_mark: | :white_check_mark: | SVD module |
34+
| video | :white_check_mark: | :white_check_mark: | Video module |
35+
| videoio | :white_check_mark: | :white_check_mark: | VideoIO module |
36+
| asyncarray | :x: | :x: | AsyncArray module |
37+
| calib3d | :x: | :x: | Calib3D module |
38+
| dnn | :x: | :x: | DNN module |
39+
| photo | :white_check_mark: | :white_check_mark: | Photo module |
40+
| cuda | :x: | :x: | CUDA module |
41+
| contrib | :x: | :x: | Contrib module |
4042

4143
- :x: : not finished
4244
- :ballot_box_with_check: : almost finished
@@ -66,6 +68,7 @@ More examples are on the way...
6668
- [ ] add more examples
6769
- [ ] modify C wrapper to catch exceptions
6870
- [ ] Native Assets
71+
- [ ] async?
6972

7073
## For Developers
7174

@@ -99,7 +102,7 @@ This package is in heavy development, dynamic libraries for Windows and linux ha
99102

100103
6. compile this package along with gocv, windows: `./scripts/build.ps1`, linux: `./scripts/build.sh`, this will generate `libopencv_dart.dll` or `libopencv_dart.so`
101104
7. copy libs to corresponding platform directorys, i.e., `libopencv_dart.dll` to `windows`, `libopencv_dart.so` to `linux`. this is necessary for dart and flutter to load the dynamic library.
102-
8. If you want to test using vscode, add dynamic library path to `"dart.env"` in `settings.json`
105+
8. If you want to test using vscode, add dynamic library path to `"dart.env"` in `settings.json`
103106

104107
## Acknowledgement
105108

bin/setup.dart

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,7 @@ void main(List<String> args) async {
3939
defaultsTo: "auto",
4040
help: "Platform to setup",
4141
);
42-
parser.addOption(
43-
"arch",
44-
abbr: "a",
45-
allowed: [
46-
"auto",
47-
"x86",
48-
"x64",
49-
"x86_64",
50-
"arm64-v8a",
51-
"armeabi-v7a",
52-
],
53-
defaultsTo: "auto",
54-
help: "Architecture to setup",
55-
);
42+
5643
final argsParsed = parser.parse(args);
5744
final platform =
5845
argsParsed["platform"] == OS.auto ? Platform.operatingSystem : argsParsed["platform"] as String;

lib/src/constants.g.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,3 +1941,17 @@ const int HOMOGRAPY_ALL_POINTS = 0;
19411941
const int HOMOGRAPY_LMEDS = 4;
19421942

19431943
const int HOMOGRAPY_RANSAC = 8;
1944+
1945+
const int RECURS_FILTER = 1;
1946+
1947+
const int NORMCONV_FILTER = 2;
1948+
1949+
const int INPAINT_NS = 0;
1950+
1951+
const int INPAINT_TELEA = 1;
1952+
1953+
const int NORMAL_CLONE = 1;
1954+
1955+
const int MIXED_CLONE = 2;
1956+
1957+
const int MONOCHROME_TRANSFER = 3;

lib/src/opencv.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export 'imgcodecs/imgcodecs.dart';
2525
export 'imgproc/imgproc.dart';
2626
export 'objdetect/objdetect.dart';
2727
export 'svd/svd.dart';
28+
export 'photo/photo.dart';
2829

2930
export 'video/video.dart';
3031
export 'video/videoio.dart';

0 commit comments

Comments
 (0)