Skip to content

Latest commit

 

History

History

1.vision_tachometer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Vision Tachometer

If you have any questions, please submit issues or email me: enpeicv@outlook.com, have fun with it!

扫码加入微信WeChat交流群:

1.Demo

demo.mp4

2.Usage

  • Clone the project

Python

  • Create a python=3.8 environment with conda or venv.

  • Install packages like opencv and numpy.

  • Download 1.video_tachometer_demo.mp4 from media files.

  • Move 1.video_tachometer_demo.mp4 to the media directory of the project.

  • # video_path: filename for input video | camera index for stream
    # snap_path: reference snapshot
    # output_path: recorded video path
    
    # example
    python demo.py --video_path media/1.video_tachometer_demo.mp4 --snap_path media/snap.png --output_path result.mp4
  • It will open three windows (raw video, matched, graph).

C++

The overall process is identical to Python's.

  • Build and run:

  • # build
    cmake -S . -B build
    cmake --build build
    
    # run 
    ./build/HelloWorld <video_file> <reference_image>

3.References