Page 1 of 1

webcam

Posted: 2011-07-14T12:30:19-07:00
by spectre
Is it possible to grab an image from a webcam with the C magickwands api ?

regards

spectre

Re: webcam

Posted: 2011-07-14T17:46:15-07:00
by anthony
Depends on the situation.

If the image is actually on a the web (it is a web cam afetr all) then you can just give the URL as the image filename. More typically you may need to run the appropriate application to either pipe the image into your IM, (or using a popen() type library call) or save it to a temporary file for IM to read it. Under UNIX/Linux/MaxOSX that temporary file could be a named pipe, and the application run in background, so that no actual file is saved onto disk, only buffered.

There are many many many techniques that could be used depending on just what you have access to.

Re: webcam

Posted: 2011-07-15T02:00:29-07:00
by spectre
Dear Mr.Anthony,

the webcam is connected directly on the usb of the pc where I run the test program.

I'm a newbie,but if I've understood correctly from your reply,is possible to grab an image from the local webcam without
big problems.

Just I need to study the C magick wand api.

What do you suggest about this ? :) Do you agree ?

regards

Spectre

Re: webcam

Posted: 2011-07-15T21:13:57-07:00
by anthony
There should be some software with the webcam to get images from it. That is the best bet.