cvCreateCameraCapture (Bug #4395)


Added by JHP JHP almost 10 years ago. Updated over 9 years ago.


Status:Done Start date:2015-06-10
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty: HW Platform:x86
Pull request:

Description

I use an IDE (PureBasic) that can only access the OpenCV C-Interface.

OpenCV versions 2.4.7 - 2.4.11 have worked flawlessly (x86 / x64).

OpenCV versions 3.0 beta - 3.0 Gold:
- Windows 7 64bit, Windows 8: Not connecting
- Windows XP 32bit: Connecting

NB*: Either the option window opens with no options (HD Webcam), or the webcam light indicates a connection, but a black screen is displayed.


History

Updated by JHP JHP over 9 years ago

PureBasic Interface to OpenCV: http://www.purebasic.fr/english/viewtopic.php?f=12&t=57457
- OpenCV 2.4.11 x86 / x64
-- 200 examples
- OpenCV 3.0 Gold x86 / x64
-- 184 examples (16 legacy examples removed)

Updated by JHP JHP over 9 years ago

My theory is that the binaries were built without HAVE_VIDEOINPUT HAVE_DSHOW, but I haven't had a chance to test this yet.

Updated by JHP JHP over 9 years ago

I built the binaries with the following added options:
- WITH_VIDEOINPUT
- WINDOWS_SDK_PATH

Still cannot connect the webcam.

Found this link: https://fossies.org/diffs/opencv/2.4.11_vs_3.0.0/
-- to these changes: https://fossies.org/diffs/opencv/2.4.11_vs_3.0.0/modules/highgui/src/cap_dshow.cpp-diff.html

Any in-site would be greatly appreciated.

Updated by JHP JHP over 9 years ago

I forgot to mention...

When I run the Function: cvGetCaptureDomain(*capture) using the working 2.4.11 binaries, the return value is 700 (DirectShow). When I run the same function using the 3.0 Gold binaries, the return value is 200 (VFW - Video for Windows).

Thank you.

Updated by Suleyman TURKMEN over 9 years ago

the reason is this change i think.
https://github.com/Itseez/opencv/pull/2947

JHP JHP wrote:

I built the binaries with the following added options:
- WITH_VIDEOINPUT
- WINDOWS_SDK_PATH

Still cannot connect the webcam.

Found this link: https://fossies.org/diffs/opencv/2.4.11_vs_3.0.0/
-- to these changes: https://fossies.org/diffs/opencv/2.4.11_vs_3.0.0/modules/highgui/src/cap_dshow.cpp-diff.html

Any in-site would be greatly appreciated.

Updated by JHP JHP over 9 years ago

Hi Suleyman TURKMEN,

Thank you for taking the time to respond.

I got it working by adding/updating the latest sources with the old C scripts, compiling a new set of binaries.

Thank you again,

  • Status changed from New to Done
  • % Done changed from 0 to 100

Also available in: Atom PDF