grabber-grab

Synopsis

(grabber-grab grabber-object)

Parameters

  • grabber-object

Description

(grabber-grab grabber-object) grabs an image from a grabber object and returns that image as a colormap. The dimensions of the resulting RGB colormap are determined by the grabber object (as negotiated during grabber-create).

Side Effects

Return Value

The grabbed image (colormap) is returned.

Example

> (define grabber (grabber-create "/dev/video0" 640 480))
grabber
> grabber
#<grabber device:/dev/video0 width:640 height:480 format:MJPG fd:3>
> (grabber-grab grabber)
#<colormap orow:-1 ocol:-1 xres:-1 yres:-1 w:640 h:480>
>