Ask Your Question
0

Cascade Classifier Tutorial: Int. webcam not opening on Windows 10

asked 2016-07-27 13:43:00 -0600

Good afternoon:

First, thank you to whoever did the Cascade Classifier tutorial. We very much appreciate your work and contribution.

We are building and running your tutorial AS IS with no modifications. (Kudos!)

Here on Windows 10 (64 bit), the tutorial pops up a console and the OpenCV UI (?). The OpenCV UI window is flat gray with a heavy cross-hairs cursor. Nothing appears there -- even after, say, 10 minutes of waiting.

My webcam is working: I can use it with the Windows 10 camera app. And while it's in use the Cascade Classifier Tutorial provokes a different window to select a webcam. But when I run it by itself, it doesn't display anything -- it's just gray.

Any help, suggestions, or even questions would be greatly appreciated.

Thanks,

- Dave Ferreira
edit retag flag offensive close merge delete

Comments

I would also suggest to run your code in debug mode in your development area, step through the code line by line and see if mat's get filled with data or not. It is easier this way to decide whether your camera is actually returning data or not!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-07-28 03:29:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-27 23:48:55 -0600

berak gravatar image

can you try to open the capture like:

capture.open(0); // <-- different device id

or even:

capture.open(0|CAP_DSHOW); // <-- *force* direct show

the default (-1) there uses the VFW graph under the hood, and opens a dialog box with a camera to choose.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-27 13:43:00 -0600

Seen: 182 times

Last updated: Jul 27 '16