恩培-计算机视觉

 找回密码
 立即注册
搜索
查看: 1886|回复: 0

5.视觉测一下《星际穿越》飞船转速(Python、C++)

[复制链接]

166

主题

109

回帖

4113

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4113
发表于 2024-1-13 17:37:54 | 显示全部楼层 |阅读模式

Vision Tachometer

If you have any questions, please submit issues or email me: [email]enpeicv@outlook.com[/email], have fun with it! 代码:链接: https://pan.baidu.com/s/1oeqUQ29KEnvKbsIwbuaxNA?pwd=1d69 提取码: 1d69

1.Demo

https://www.bilibili.com/video/BV1xa4y117PR/?vd_source=39b1662212679b11469d17d3bee8df4e

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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

恩培-计算机视觉

GMT+8, 2024-11-7 10:57 , Processed in 0.075235 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表