Is it possible to grab an image from a webcam with the C magickwands api ?
regards
spectre
webcam
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: webcam
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.
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: webcam
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
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: webcam
There should be some software with the webcam to get images from it. That is the best bet.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/