{"id":14992238,"url":"https://github.com/BinciLuo/Rust-opencv-Application","last_synced_at":"2025-09-25T14:31:00.011Z","repository":{"id":177375168,"uuid":"657535839","full_name":"BinciLuo/Rust-opencv-Application","owner":"BinciLuo","description":"Implementation of an application based on OpenCV written in Rust.","archived":false,"fork":false,"pushed_at":"2023-07-14T06:23:13.000Z","size":26575,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-24T16:09:49.596Z","etag":null,"topics":["detection","opencv","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BinciLuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-06-23T09:23:44.000Z","updated_at":"2024-09-14T03:48:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"444c45ab-efb1-4508-895b-bd397684e609","html_url":"https://github.com/BinciLuo/Rust-opencv-Application","commit_stats":null,"previous_names":["binciluo/rust-opencv-camera","binciluo/rust-opencv-application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinciLuo%2FRust-opencv-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinciLuo%2FRust-opencv-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinciLuo%2FRust-opencv-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinciLuo%2FRust-opencv-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinciLuo","download_url":"https://codeload.github.com/BinciLuo/Rust-opencv-Application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234200175,"owners_count":18795139,"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":["detection","opencv","rust","rust-lang"],"created_at":"2024-09-24T15:00:53.231Z","updated_at":"2025-09-25T14:30:53.924Z","avatar_url":"https://github.com/BinciLuo.png","language":"Rust","funding_links":[],"categories":["Image and Video Processing"],"sub_categories":[],"readme":"# Rust Stream and Frame Processing  Powered by opencv\n中文版在[这里](#Chinese)\n## Introduction\nA tool that can detect body, face, QR Code and take photo. The stream or frame sources from video, camera or pictures. \n### If you meet any Error, please check [Trouble Shooting](#troubleshooting) first\n`TODO`:\n- [x] Body Detection\n- [x] Face Detection\n- [x] Moving Object Detection\n- [x] Support for single frame\n- [x] QR Code Detection and Decode\n## Preview \n![](for_readme/2023-07-01[04:37:31].jpeg)\n![](for_readme/2023-06-25[01:12:06].jpeg)\n![](for_readme/2023-06-25[01:13:19].jpeg)\n\n\u003cspan id=\"Requirements\"\u003e\u003c/span\u003e\n## Requirements\n### Install opencv \n\nMacos: \n`brew install opencv` \n\nLinux: \n1. Download opencv-4.x.x source code in https://opencv.org/releases/\n2. unzip it to anywhere you want\n3. `cd opencv-4.x.x`\n4. `mkdir build \u0026\u0026 cd build`\n5. `cmake -D WITH_TBB=ON -D WITH_EIGEN=ON -D OPENCV_GENERATE_PKGCONFIG=ON  -D BUILD_DOCS=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF  -D WITH_OPENCL=OFF -D WITH_CUDA=OFF -D BUILD_opencv_gpu=OFF -D BUILD_opencv_gpuarithm=OFF -D BUILD_opencv_gpubgsegm=O -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..`\n6. `make -j8`\n7. `make install`\n8. `sudo -i vim /etc/ld.so.conf.d/opencv.conf` and then add `/usr/local/lib` in it\n9. `sudo echo 'PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig' \u003e\u003e /etc/bash.bashrc` \n10. `sudo echo 'export PKG_CONFIG_PATH' \u003e\u003e /etc/bash.bashrc`\n## Usage\n- Clone this repository \n`git clone https://github.com/BinciLuo/Rust-opencv-Application.git` \n`cd Rust-opencv-Application`\n- Build \n`cargo build`\n- Run \n`cargo run` \nIt wiil create folders `pics`,`pics/Camera`,`pic/Capture` if they don't exist.\n\n## TroubleShooting\n### Macos\nTemporarily None\n### Linux\n#### `openssl`\n- Message: `failed to run custom build command for openssl-sys v0.9.60` \n- Solution: `sudo apt install libssl-dev`\n#### `llvm`\n- Message: `Could not execute 'llvm-config' one or more times` \n- Solution: `sudo apt install llvm clang libclang-dev`\n#### `videoio compile error`\n- Message: `function or associated item not found in 'VideoCapture'` \n- Solution: OpenCV version too old. first exec `sudo apt-get purge *libopencv* \u0026\u0026 sudo apt-get autoremove \u0026\u0026 sudo apt-get autoclean` to uninstall old opencv and then install it again following tips in [Requirements](#Requirements).\n#### `gtk`\n- Message: `Failed to load module acnberra-gtk-module` \n- Solution: `sudo  apt install libcanberra-gtk-moudle`\n#### `'limits' file not found`\n- Message: `'limits' file not found`\n- Soulution `sudo apt install libstdc++-12-dev` \n\n\u003cspan id=\"Chinese\"\u003e\u003c/span\u003e\n\n# Rust流和帧处理，由OpenCV驱动\n## 简介\n一个可以检测身体、面部、二维码并拍照的工具。流或帧可以来自视频、相机或图片。\n### 如果遇到任何错误，请首先查看[故障排除](#故障排除)\n`TODO`：\n- [x] 身体检测\n- [x] 面部检测\n- [x] 运动物体检测\n- [x] 支持单帧\n- [x] 二维码检测和解码\n## 预览 \n![](for_readme/2023-07-01[04:37:31].jpeg)\n![](for_readme/2023-06-25[01:12:06].jpeg)\n![](for_readme/2023-06-25[01:13:19].jpeg)\n\n\u003cspan id=\"Requirements\"\u003e\u003c/span\u003e\n## 系统要求\n### 安装OpenCV \n\nMacOS: \n`brew install opencv` \n\nLinux: \n1. 在 https://opencv.org/releases/ 下载opencv-4.x.x源代码\n2. 解压缩到任意位置\n3. `cd opencv-4.x.x`\n4. `mkdir build \u0026\u0026 cd build`\n5. `cmake -D WITH_TBB=ON -D WITH_EIGEN=ON -D OPENCV_GENERATE_PKGCONFIG=ON  -D BUILD_DOCS=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF  -D WITH_OPENCL=OFF -D WITH_CUDA=OFF -D BUILD_opencv_gpu=OFF -D BUILD_opencv_gpuarithm=OFF -D BUILD_opencv_gpubgsegm=O -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..`\n6. `make -j8`\n7. `make install`\n8. `sudo -i vim /etc/ld.so.conf.d/opencv.conf`，然后在其中添加`/usr/local/lib`\n9. `sudo echo 'PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig' \u003e\u003e /etc/bash.bashrc` \n10. `sudo echo 'export PKG_CONFIG_PATH' \u003e\u003e /etc/bash.bashrc`\n## 使用方法\n- 克隆此存储库 \n`git clone https://github.com/BinciLuo/Rust-opencv-Application.git` \n`cd Rust-opencv-Application`\n- 构建 \n`cargo build`\n- 运行 \n`cargo run` \n如果不存在，将创建文件夹`pics`，`pics/Camera`和`pic/Capture`。\n\n## 故障排除\n### MacOS\n暂无\n### Linux\n#### `openssl`\n- 错误信息：`failed to run custom build command for openssl-sys v0.9.60` \n- 解决方法：`sudo apt install libssl-dev`\n#### `llvm`\n- 错误信息：`Could not execute 'llvm-config' one or more times` \n- 解决方法：`sudo apt install llvm clang libclang-dev`\n#### `videoio`编译错误\n- 错误信息：`function or associated item not found in 'VideoCapture'` \n- 解决方法：OpenCV版本太旧。首先执行 `sudo apt-get purge *libopencv* \u0026\u0026 sudo apt-get autoremove \u0026\u0026 sudo apt-get autoclean` 来卸载旧的OpenCV，然后根据[系统要求](#Requirements)中的提示重新安装。\n#### `gtk`\n- 错误信息：`Failed to load module acnberra-gtk-module` \n- 解决方法：`sudo  apt install libcanberra-gtk-moudle`\n#### `'limits' file not found`\n- 错误信息：`'limits' file not found`\n- 解决方法：`sudo apt install libstdc++-12-dev` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBinciLuo%2FRust-opencv-Application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBinciLuo%2FRust-opencv-Application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBinciLuo%2FRust-opencv-Application/lists"}