ingenuitas/SimpleCV — pull request #148 by jayrambhia (2012-07-12 07:36:47+00:00)
Title: VirtualCamera filename/type error

Hey guys, would you please consider adding this ?
I wasted around 2 hours figuring out what the problem was.

vc = VirtualCamera("video","videotest.mp4")

was giving me problems since I had switched the parameters. I recompiled OpenCV once.

It prints warning now.

So now when I do,

vc = VirtualCamera("video","videotest.mp4")

I get,

Error: In VirtualCamera(), Incorrect Source option. "videotest.mp4"
Usage:
VirtualCamera("filename","video")
VirtualCamera("filename","image")
VirtualCamera("./path_to_images","imageset")

And when I give some incorrect filename, it prints

Error: In VirtualCamera()
"filename" was not found.