如何使用PaddleDetection实时预测摄像头输入视频流?
Created by: vincentpengpeng
基于yolov3框架训练好模型,能成功使用 python -u tools/infer.py -c configs/yolov3_mobilenet_v1_fruit.yml -o weights=output/yolov3_mobilenet_v1_fruit/best_model --infer_img=demo/orange_71.jpg 进行预测单个图片文件。 但是infer.py文件输入参数需要为文件路径或者文件夹路径,如何使用训练好的模型,对cv2实时捕获的视频帧进行预测。