Webcam Help

BlitzMax Forums/BlitzMax Programming/Webcam Help

Ghizzo(Posted 2006) [#1]
Hi!

Does someone can help me and my webcam? :) I would like to be able to capture the image from the webcam... how?? I've already tried the example made by Mirko available in the code archives, but it doesn't works for me... it just display a black window :(


MarkAM(Posted 2006) [#2]
Hi.

I think you have the same problem as me. The images generated by the webcam are in YUV format not RGB. I am working on code to solve this using Mirkos code as a base. I can see the shapes within the image but the coluring is still wrong.

see http://www.blitzbasic.com/Community/posts.php?topic=55440#618983

I'll let you know once its fixed. If you can help with the YUV conversion issue, it would be great.


Ghizzo(Posted 2006) [#3]
My problem is different.... on my system the code crash! :( Exactly when the application try to connect the capture window:

Local res:Int = Webcam_SendMessage(Handle,WM_CAP_DRIVER_CONNECT, i, 0)

the program hang up, and i've to use the task manager to kill it.... my webcam works fine and is installed correctly... all the other applications can use it without any problem.


MarkAM(Posted 2006) [#4]
I have updated the class to support 8bpp, 32 bpp and 12bpp YUV (typical for intel webcams).

The source can be found at http://www.kita.org.uk/software.html