{"id":45878810,"url":"https://github.com/liuliuod/rust-face-detection","last_synced_at":"2026-02-27T13:02:02.493Z","repository":{"id":206627531,"uuid":"717335535","full_name":"liuliuOD/Rust-Face-Detection","owner":"liuliuOD","description":"This project demonstrates face detection using Rust and OpenCV. It includes a comparison between the original video and the video with face detection applied.","archived":false,"fork":false,"pushed_at":"2024-04-20T18:02:38.000Z","size":39155,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-20T19:23:02.120Z","etag":null,"topics":["docker","haarcascade","opencv","rust"],"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/liuliuOD.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}},"created_at":"2023-11-11T06:29:26.000Z","updated_at":"2024-04-20T18:02:42.000Z","dependencies_parsed_at":"2023-11-11T07:36:45.145Z","dependency_job_id":null,"html_url":"https://github.com/liuliuOD/Rust-Face-Detection","commit_stats":null,"previous_names":["liuliuod/rust-face-detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liuliuOD/Rust-Face-Detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuliuOD%2FRust-Face-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuliuOD%2FRust-Face-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuliuOD%2FRust-Face-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuliuOD%2FRust-Face-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuliuOD","download_url":"https://codeload.github.com/liuliuOD/Rust-Face-Detection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuliuOD%2FRust-Face-Detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29896314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","haarcascade","opencv","rust"],"created_at":"2026-02-27T13:02:01.556Z","updated_at":"2026-02-27T13:02:02.480Z","avatar_url":"https://github.com/liuliuOD.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Face Detection\n\n## Overview\nThis project demonstrates face detection using `Rust` and `OpenCV`. It includes a comparison between the original video and the video with face detection applied.\n\n## Demo\n\u003ccenter\u003e\n\n|Origin|Detection|\n|:-:|:-:|\n|![demo origin](./resources/demo-origin.gif)|![demo detection](./resources/demo-detection.gif)|\n\n\u003c/center\u003e\n\n## Environment\n\n- **Operating System:** MacOS M2\n    - **Dependencies:**\n        - OpenCV: ^4.0\n- **Programming Language:** Rust\n    - **Dependencies:**\n        - OpenCV: ^0.91.0\n\n## Execution\n\n### Local\n\n  ```shell\n  $ brew install opencv\n  $ cargo run\n  ```\n\n### Docker\n\n  ```shell\n  $ docker build -t rust-face-detection .\n  # hint: you need to bind the devices into your own docker container\n  $ docker run -idtv $PWD:/app --device=\"{replace to the path of your device}:/dev/video0\" rust-face-detection\n  ```\n\n## Q \u0026 A\n\n### Q: `dyld: Library not loaded: @rpath/libclang.dylib`\n\n[Answer:](https://crates.io/crates/opencv/0.75.0)\n```shell\n$ export DYLD_FALLBACK_LIBRARY_PATH=\"$(xcode-select --print-path)/usr/lib/\"\n```\n\n## References\n\n- [YouTube Tutorial](https://www.youtube.com/watch?v=iWficV_pmxY)\n- [--device=\"/dev/video0:/dev/video0\"](https://stackoverflow.com/questions/62929645/unable-to-open-camera-using-cv2-videocapture0-in-docker-ubuntu-host)\n- [VideoCapture Save as Video](https://stackoverflow.com/questions/30509573/writing-an-mp4-video-using-python-opencv)\n- [Haar Cascades](https://github.com/opencv/opencv/tree/master/data/haarcascades)\n- [OpenCV Documentation](https://docs.opencv.org/3.4/d4/d15/group__videoio__flags__base.html#gga023786be1ee68a9105bf2e48c700294dacf10e9692c4166f74de62b7d00c377d0)\n- [OpenCV-Rust Documentation](https://github.com/twistedfall/opencv-rust#getting-opencv)\n- [OpenCV-Rust Documentation](https://docs.rs/opencv/latest/opencv/index.html)\n- [Demo Video by Mikhail Nilov from Pexels](https://www.pexels.com/video/a-woman-smelling-the-fragrance-of-an-essential-oil-6707352)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuliuod%2Frust-face-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuliuod%2Frust-face-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuliuod%2Frust-face-detection/lists"}