liuliuOD / Rust-Face-Detection

This project demonstrates face detection using Rust and OpenCV. It includes a comparison between the original video and the video with face detection applied.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Face Detection

Overview

This project demonstrates face detection using Rust and OpenCV. It includes a comparison between the original video and the video with face detection applied.

Demo

Origin Detection
demo origin demo detection

Environment

  • Operating System: MacOS M2
    • Dependencies:
      • OpenCV: ^4.0
  • Programming Language: Rust
    • Dependencies:
      • OpenCV: ^0.91.0

Execution

Local

$ brew install opencv
$ cargo run

Docker

$ docker build -t rust-face-detection .
# hint: you need to bind the devices into your own docker container
$ docker run -idtv $PWD:/app --device="{replace to the path of your device}:/dev/video0" rust-face-detection

Q & A

Q: dyld: Library not loaded: @rpath/libclang.dylib

Answer:

$ export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/usr/lib/"

References

About

This project demonstrates face detection using Rust and OpenCV. It includes a comparison between the original video and the video with face detection applied.


Languages

Language:Rust 94.2%Language:Dockerfile 5.8%