SyntaxFix
Write A Post
Hire A Developer
Questions
If you only have one camera, or you don't care which camera is the correct one, then use "-1" as the index. Ie for your example capture = cv.CaptureFromCAM(-1).
capture = cv.CaptureFromCAM(-1)