Skip to content

Commit 42d8313

Browse files
committed
Can transfer frames from dart to cpp, need to fix laggy frames
1 parent 651289b commit 42d8313

File tree

291 files changed

+13466
-870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+13466
-870
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
2+
.vscode/
23
.flutter-plugins
34
.flutter-plugins-dependencies
45
ios/opencv2.framework

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Please install OpenCV iOS Framework and put it at location ios/opencv2.framework
1212
* [About FFI](https://www.youtube.com/watch?v=2MMK7YoFgaA)
1313
* [Android config](https://www.flutterclutter.dev/flutter/tutorials/implementing-edge-detection-in-flutter/2020/1509/)
1414
* [iOS config](https://www.raywenderlich.com/21512310-calling-native-libraries-in-flutter-with-dart-ffi#toc-anchor-015)
15-
15+
* [Flutter CameraController](https://flutter.dev/docs/cookbook/plugins/picture-using-camera)
16+
* [Flutter startImageStream](https://pub.dev/documentation/camera/latest/camera/CameraController/startImageStream.html)
17+
* [Image Format Group](https://github.com/flutter/flutter/issues/26348#issuecomment-796566914)
1618
## Known Issues
1719

1820
* [image_picker crashes when picking images on simulator running on Apple Silicon M1 #71943](https://github.com/flutter/flutter/issues/71943)
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,67 @@
11
# ninja log v5
2-
0 1267 1627642278 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
3-
1268 1325 1627642278 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
4-
1 1230 1627643856 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
5-
1230 1298 1627643856 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
6-
1 1418 1627643932 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
7-
1418 1491 1627643932 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
8-
1 1358 1627644836 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
9-
1358 1423 1627644836 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
10-
1 1246 1627645596 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
11-
1246 1313 1627645596 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
12-
2 1235 1627653376 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
13-
1235 1333 1627653376 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
14-
2 1328 1627713413 CMakeFiles/gaussian.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/gaussian.cpp.o 6fa66400d25d1fd5
15-
1328 1412 1627713414 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libgaussian.so 86df22e806903077
2+
0 1309 1627748773 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
3+
1310 1378 1627748773 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
4+
1 1250 1627758580 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
5+
1250 1321 1627758581 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
6+
1 1342 1627758789 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
7+
1342 1414 1627758789 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
8+
1 1250 1627759512 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
9+
1250 1317 1627759512 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
10+
1 1269 1627759793 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
11+
1269 1338 1627759793 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
12+
1 1285 1627796453 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
13+
1285 1360 1627796453 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
14+
2 1446 1627796621 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
15+
1446 1517 1627796621 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
16+
1 2691 1627797217 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
17+
2691 2793 1627797218 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
18+
1 1279 1627815122 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
19+
1279 1350 1627815122 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
20+
1 1276 1627815255 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
21+
1276 1346 1627815255 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
22+
1 1372 1627815523 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
23+
1372 1445 1627815523 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
24+
1 1339 1627820331 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
25+
1340 1413 1627820331 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
26+
1 1348 1627821698 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
27+
1349 1425 1627821698 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
28+
1 1643 1627821861 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
29+
1643 1720 1627821861 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
30+
1 1505 1627822127 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
31+
1505 1578 1627822127 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
32+
1 1657 1627822227 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
33+
1657 1731 1627822227 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
34+
1 1682 1627822637 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
35+
1682 1804 1627822637 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
36+
1 1600 1627822770 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
37+
1600 1688 1627822770 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
38+
1 1469 1627823116 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
39+
1470 1543 1627823116 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
40+
1 1395 1627825695 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
41+
1395 1474 1627825695 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
42+
1 1331 1627825943 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
43+
1331 1405 1627825943 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
44+
1 1398 1627826036 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
45+
1398 1477 1627826036 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
46+
2 1435 1627826107 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
47+
1435 1508 1627826107 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
48+
1 1446 1627826253 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
49+
1446 1518 1627826253 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
50+
1 1457 1627826353 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
51+
1457 1526 1627826353 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
52+
1 1556 1627826631 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
53+
1557 1653 1627826631 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
54+
1 1267 1627826853 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
55+
1268 1367 1627826853 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
56+
2 1297 1627827395 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
57+
1297 1367 1627827395 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
58+
2 1359 1627828357 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
59+
1359 1446 1627828357 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
60+
1 1672 1627828636 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
61+
1672 1896 1627828636 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
62+
2 1548 1627833078 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
63+
1548 1623 1627833078 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
64+
2 1366 1627833514 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
65+
1367 1443 1627833514 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb
66+
1 1377 1627833667 CMakeFiles/OpenCV_ffi.dir/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/lib/opencv-cpp/main.cpp.o 5638126f1b756b05
67+
1377 1449 1627833667 /Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/build/app/intermediates/cmake/debug/obj/arm64-v8a/libOpenCV_ffi.so d3efc8243411fcb

android/app/.cxx/cmake/debug/arm64-v8a/CMakeCache.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ANDROID_ABI:UNINITIALIZED=arm64-v8a
2121
ANDROID_NDK:UNINITIALIZED=/Users/adityasingh/Library/Android/sdk/ndk/21.1.6352462
2222

2323
//No help, variable specified on the command line.
24-
ANDROID_PLATFORM:UNINITIALIZED=android-16
24+
ANDROID_PLATFORM:UNINITIALIZED=android-21
2525

2626
//No help, variable specified on the command line.
2727
ANDROID_STL:UNINITIALIZED=c++_shared
@@ -205,7 +205,7 @@ CMAKE_STRIP:FILEPATH=/Users/adityasingh/Library/Android/sdk/ndk/21.1.6352462/too
205205
CMAKE_SYSTEM_NAME:UNINITIALIZED=Android
206206

207207
//No help, variable specified on the command line.
208-
CMAKE_SYSTEM_VERSION:UNINITIALIZED=16
208+
CMAKE_SYSTEM_VERSION:UNINITIALIZED=21
209209

210210
//The CMake toolchain file
211211
CMAKE_TOOLCHAIN_FILE:FILEPATH=/Users/adityasingh/Library/Android/sdk/ndk/21.1.6352462/build/cmake/android.toolchain.cmake
@@ -216,15 +216,15 @@ CMAKE_TOOLCHAIN_FILE:FILEPATH=/Users/adityasingh/Library/Android/sdk/ndk/21.1.63
216216
// Studio IDE projects all commands are done without /nologo.
217217
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
218218

219+
//Dependencies for the target
220+
OpenCV_ffi_LIB_DEPENDS:STATIC=general;lib_opencv;
221+
219222
//Value Computed by CMake
220223
Project_BINARY_DIR:STATIC=/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/android/app/.cxx/cmake/debug/arm64-v8a
221224

222225
//Value Computed by CMake
223226
Project_SOURCE_DIR:STATIC=/Users/adityasingh/Desktop/Codes/Experimental/opencv_flutter_ffi/android/app
224227

225-
//Dependencies for the target
226-
gaussian_LIB_DEPENDS:STATIC=general;lib_opencv;
227-
228228

229229
########################
230230
# INTERNAL cache entries

0 commit comments

Comments
 (0)