OpenCV VideoCapture with H264 CODEC
问题 I am using new logitech camera c920 for my project to do object recognition . My camera can support H264 codec and can display H264 HD output. But How I can set CODEC type as H264 in my below code to get out put as H264 DECODED STREAM by using OpenCV instruction . I am capturing video by using below logic : ref:this link #include "opencv2/opencv.hpp" using namespace cv; int main(int, char**) { VideoCapture cap(0); // open the default camera if(!cap.isOpened()) // check if we succeeded return