I want to start Opencv300 in VC12 . have everything connected as in the video : [ https://www.youtube.com/watch?v=ScAPinibluA]
with images I can work without any problems , but if I want CONNECTING camera immediately comes error message :
Unhandled exception at at 0x7510812F in Sample1.exe : Microsoft C ++ exception : cv :: Exception at memory location 0x001BD64C .
and the window is :
OpenCV Error : Assertion failed < SCN == 3 SCN== 4 > in cv :: cvtColor , file c: \ builds \ master_PackSlave Win32 VC11 - shared \ OpenCV \ modules \ imgproc \ src \ color . cpp Line 7564
Why is that ? thank you