VideoCapture Does Not Work Properly (Bug #959)
Description
Note : I have one Logitech C500 webcam and two Winfast Capture cards installed on my win Xp. Also, I compiled the library in VS 2010.
Please read following code sample:
const int LOGITECH = 0;
const int WINFAST_1 = 2;
VideoCapture cap;
cap.open(LOGITECH);
//cap.open(WINFAST_1);
cap.set(CV_CAP_PROP_FRAME_WIDTH,640);
cap.set(CV_CAP_PROP_FRAME_HEIGHT,480);
When I used Opencv2.1 library with this code sample everything is OK. I mean I can connect to any of installed capture cards and webcam. Also I can set their properties successfully.
But, when I use Opencv2.2 library with this code sample, it just able to connect to default camera. In addition, I can not set properties of capture device, too.
Associated revisions
Merge pull request #959 from SpecLad:qt4-build
Merge remote-tracking branch 'origin/2.4' into merge-2.4
Merged pull requests:
#890 from caorong:patch-1
#893 from jet47:gpu-arm-fixes
#933 from pengx17:2.4_macfix_cont
#935 from pengx17:2.4_filter2d_fix
#936 from bitwangyaoyao:2.4_perf
#937 from bitwangyaoyao:2.4_fixPyrLK
#938 from pengx17:2.4_surf_sample
#939 from pengx17:2.4_getDevice
#940 from SpecLad:autolock
#941 from apavlenko:signed_char
#946 from bitwangyaoyao:2.4_samples2
#947 from jet47:fix-gpu-arm-build
#948 from jet47:cuda-5.5-support
#952 from SpecLad:jepg
#953 from jet47:fix-bug-3069
#955 from SpecLad:symlink
#957 from pengx17:2.4_fix_corner_detector
#959 from SpecLad:qt4-build
#960 from SpecLad:extra-modules
Conflicts:
modules/core/include/opencv2/core/core.hpp
modules/gpu/CMakeLists.txt
modules/gpu/include/opencv2/gpu/device/vec_math.hpp
modules/gpu/perf/perf_video.cpp
modules/gpuimgproc/src/cuda/hough.cu
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/src/pyrlk.cpp
samples/gpu/driver_api_multi.cpp
samples/gpu/driver_api_stereo_multi.cpp
samples/ocl/surf_matcher.cpp
History
Updated by Vadim Pisarevsky almost 14 years ago
is the problem fixed in SVN trunk version?
Updated by Vadim Pisarevsky over 13 years ago
I assume, the bug occurred because videoInput was not working properly in 2.2. The problem should be fixed now.
- Status changed from Open to Done
- (deleted custom field) set to obsolete
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-camera