Skip to content

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

Notifications You must be signed in to change notification settings

liuliuOD/Rust-Face-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published