上篇介绍了使用C++ TensorRT模块进行yoloV5的图片推理,接下来进一步介绍处理视频和摄像头的细节。实现方式有很多种,可选取有用部分进行参考。 系统:linux Ubuntu20.04 编译:Vscode + Cmake 完整项目代码已上传至https://github.com/ZhengChuan-1/YoloV5-TensorRT-inference 更多细节基础部分请参考上篇写的C++ TensorRT图片推理 opencv视频和摄像头的使用方法 使用cv::VideoCapture的方法,使用视频则放入视频的地址;使用摄像头则放入摄像头的地址(我的是/dev/video0),有的写0就可以; string video_path = "/home/zc/C++_TensorRT_inference/sample_video/video/1.mp4"; cv::VideoCapture cap(video_path); opencv读取和写入视频...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with struct
Contact struct, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack