prajadimas / rust-facedetection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Belajar OpenCV on Rust (Face Detection)

Steps to reproduce on Linux - OpenCV: Installation in Linux with some adjustment:

  1. Install dependencies (cmake, g++/gcc, wget, unzip)
  2. Install OpenCV (3.2, 3.4, 4.x)
  • Manual
    1. Download from OpenCV Repo - Latest 4.5.3 (wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip)
    2. Unpack downloaded OpenCV (unzip opencv.zip)
    3. Create build directory (mv opencv-master opencv && mkdir -p build && cd build)
    4. Pre-Configure (rm ../opencv/CMakeCache.txt)
    5. Configure with libgtk2.0 disable qt (cmake -D WITH_QT=OFF ../opencv)
    6. Build (make), you can run compilation processes in parallel by using (make -j4)
    7. Run installation, you need elevated privileges (sudo make install)
    8. Post-Configure (export OpenCV_DIR=<*.cmake location> && export LD_LIBRARY_PATH=<*.so location>)
  • Prebuilt version
  1. Run Apps (cargo run)

Results

Alt text Alt text

About


Languages

Language:Rust 100.0%