{"id":18086324,"url":"https://github.com/rainyl/dartcv","last_synced_at":"2025-04-06T00:43:45.803Z","repository":{"id":257820233,"uuid":"869848319","full_name":"rainyl/dartcv","owner":"rainyl","description":"C wrappers for opencv, used for opencv_dart","archived":false,"fork":false,"pushed_at":"2024-12-19T08:37:09.000Z","size":442,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T09:12:11.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainyl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-09T02:02:27.000Z","updated_at":"2024-12-19T08:37:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"d461f9e8-0601-4ad1-a70a-a27913d80bdc","html_url":"https://github.com/rainyl/dartcv","commit_stats":null,"previous_names":["rainyl/dartcv"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainyl%2Fdartcv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainyl%2Fdartcv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainyl%2Fdartcv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainyl%2Fdartcv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainyl","download_url":"https://codeload.github.com/rainyl/dartcv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419815,"owners_count":20936012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T16:07:36.450Z","updated_at":"2025-04-06T00:43:45.786Z","avatar_url":"https://github.com/rainyl.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dartcv\n\nC wrappers for opencv, used for [opencv_dart](https://github.com/rainyl/opencv_dart)\n\n## build\n#### 1. Install dependencies\n\n- Windows: Install Visual Studio 2019 or Later, cmake\n- Linux: Ubuntu as example\n\n```bash\nsudo apt-get install build-essential libgtk-3-dev cmake\n```\n\n- macOS: XCode, cmake\n\n#### 2. clone this repo\n\n```bash\ngit clone https://github.com/rainyl/dartcv.git\ncd dartcv\n```\n\n#### 3. compile\n\n- Windows:\n\n```pwsh\nmkdir -Force build \u0026\u0026 cd build\ncmake -S .. `\n  -DFFMPEG_USE_STATIC_LIBS=OFF `\n  -DCMAKE_INSTALL_PREFIX=install `\n  -DDARTCV_ENABLE_INSTALL=ON `\n  -DCMAKE_BUILD_TYPE=Release `\n  -DDARTCV_WITH_VIDEOIO=ON `\n  -DDARTCV_WITH_HIGHGUI=ON\n\ncmake --build . --config Release --target install\n```\n\n- Linux\n\n```bash\nmkdir -p build \u0026\u0026 cd build\ncmake -S .. \\\n  -DCMAKE_INSTALL_PREFIX=install \\\n  -DDARTCV_WITH_VIDEOIO=ON \\\n  -DDARTCV_ENABLE_INSTALL=ON \\\n  -DCMAKE_BUILD_TYPE=Release\n\ncmake --build . --config Release --target install\n```\n\n- android\n\nIf you want to use your own NDK instead of conan maintained one, please set `ANDROID_NDK_HOME`\nor `ANDROID_NDK_ROOT` environment variable, e.g., `export ANDROID_NDK_HOME=/opt/android-ndk-r26c`\n\n```bash\nmkdir -p build \u0026\u0026 cd build\ncmake -S .. \\\n  -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \\\n  -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=False \\\n  -DANDROID_PLATFORM=android-24 \\\n  -DCMAKE_BUILD_TYPE=Release \\\n  -DANDROID_STL=c++_static \\\n  -DANDROID_ARM_NEON=ON \\\n  -DDARTCV_WITH_VIDEOIO=ON \\\n  -DDARTCV_ENABLE_INSTALL=ON \\\n  -DANDROID_ABI=\"armeabi-v7a\" \\\n  -DCMAKE_INSTALL_PREFIX=\"install\"\n\ncmake --build . --config Release --target install\n```\n\n- MacOS: use [DartCvMacOS](https://cocoapods.org/pods/DartCvMacOS) from cocoapods or build `.dylib` using:\n```bash\nmkdir -p build \u0026\u0026 cd build\ncmake -S .. \\\n  -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake \\\n  -DPLATFORM=MAC \\\n  -DDEPLOYMENT_TARGET=\"10.15\" \\\n  -DENABLE_BITCODE=OFF \\\n  -DENABLE_ARC=OFF \\\n  -DENABLE_VISIBILITY=OFF \\\n  -DCMAKE_INSTALL_PREFIX=install \\\n  -DDARTCV_WITH_VIDEOIO=ON \\\n  -DDARTCV_WITH_HIGHGUI=ON \\\n  -DDARTCV_ENABLE_INSTALL=ON \\\n  -DCMAKE_BUILD_TYPE=Release\n\ncmake --build . --config Release --target install\n```\n\n- ios: use [DartCvIOS](https://cocoapods.org/pods/DartCvIOS) from cocoapods\n\n#### 4. test\n\n- Set `DARTCV_LIB_PATH` environment variable to the path of the compiled dynamic library,\n  e.g., `export DARTCV_LIB_PATH=`pwd`/linux/libdartcv.so`\n  or `$ENV:DARTCV_LIB_PATH=$PWD\\windows\\dartcv.dll`\n- or append the lib path to the library search path of your system\n- If you want to test using vscode, add above variable to `\"dart.env\"` in `settings.json`\n\n## Note\n\n- windows: use Visual Studio 2019 and above\n- more options refer to CMakeLists.txt\n- set `-DDARTCV_DISABLE_DOWNLOAD_OPENCV=ON` to disable download prebuilt opencv sdk from [opencv.full](https://github.com/rainyl/opencv.full.git), you need to explicitly set `OpenCV_DIR`\n- set `OPENCV_VERSION` to change the version of `opencv.full`, e.g., `-DOPENCV_VERSION=\"4.10.0+9\"`\n- set `DARTCV_CACHE_DIR` to cache opencv sdk and avoid downloading every time\n- `videoio`, `highgui` requires FFMPEG, they were attached in the `libopencv` downloaded from opencv.full\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainyl%2Fdartcv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainyl%2Fdartcv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainyl%2Fdartcv/lists"}