{"id":16162427,"url":"https://github.com/sunsided/rust-facedetect","last_synced_at":"2025-03-18T22:31:08.628Z","repository":{"id":63290222,"uuid":"291854267","full_name":"sunsided/rust-facedetect","owner":"sunsided","description":"OpenCV Face Detection in Rust using Haar Cascades","archived":false,"fork":false,"pushed_at":"2025-01-25T13:43:21.000Z","size":26,"stargazers_count":10,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T00:08:49.288Z","etag":null,"topics":["face-detection","haar-cascade","image-processing","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunsided.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-09-01T00:21:56.000Z","updated_at":"2025-03-16T16:04:59.000Z","dependencies_parsed_at":"2024-10-27T19:17:10.270Z","dependency_job_id":"bef69bf8-5771-4814-af81-160fe148c3a0","html_url":"https://github.com/sunsided/rust-facedetect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Frust-facedetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Frust-facedetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Frust-facedetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Frust-facedetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/rust-facedetect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318532,"owners_count":20433929,"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":["face-detection","haar-cascade","image-processing","opencv","rust"],"created_at":"2024-10-10T02:30:06.335Z","updated_at":"2025-03-18T22:31:08.320Z","avatar_url":"https://github.com/sunsided.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCV Face Detection in Rust\n\nAn experiment with [opencv-rust](https://github.com/twistedfall/opencv-rust) and basically not much more than the multi-scale face detection demo\n(using a frontal-face [Haar cascade](https://docs.opencv.org/4.2.0/db/d28/tutorial_cascade_classifier.html)) on the first video capture device that can be found. \n\nTo run it, execute\n\n```bash\ncargo run\n```\n\nTo exit, press `ESC`.\n\n## Startup errors\n\nIf you get errors such as \n\n```\n[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1\n[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (2075) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.\n[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (651) startPipeline OpenCV | GStreamer warning: unable to start pipeline\n[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (1257) setProperty OpenCV | GStreamer warning: no pipeline\nthread 'main' panicked at src/main.rs:41:9:\nUnable to open default camera!\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (616) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created\n```\n\nthen the default camera parameters are incorrect for your device.\nTo select different parameters, use the `CAPTURE_WIDTH`, `CAPTURE_HEIGHT` and `CAPTURE_DEVICE` environment variables:\n\n```shell\nCAPTURE_WIDTH=848 CAPTURE_HEIGHT=480 CAPTURE_DEVICE=1 cargo run --release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Frust-facedetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Frust-facedetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Frust-facedetect/lists"}