Read video from usb/onboard camera using cv::cudacodec::VideoReader
Hi, How can we read video from an onboard/usb camera using opencv cv::cudacodec::VideoReader
?
For this to work you would need to be able to read from the onboard/usb camera using VideoCapture with FFmpeg. That is the following would need to work on your system
VideoCapture cap(0, CAP_FFMPEG);
on my laptop this fails with the inbuilt web cam.
The reason this needs to work is that cv::cudacodec
uses FFmpeg to read video streams which don't come from files.
Out of interest what codec is the video encoded with?
Hello, The main reason for this question is that our OpenCV application we are already getting around 15 FPS with UVUV, but the camera supports 30 FPS with MJPEG. We are trying to make use of it.
There are two ways we think, 1. Using hardware video decoder 2.Using graphics card to decode frames.
Asked: 2020-11-03 06:40:05 -0600
Seen: 714 times
Last updated: Nov 03 '20
OpenCV for Windows (2.4.1): Cuda-enabled app won't load on non-nVidia systems
Can't compile .cu file when including opencv.hpp
cv::gpu::remap comparatively slow
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Using OpenCV's stitching module, strange error when compositing images
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary