Image Capture
Detailed Description
- Functions to capture images from live video devices.
- See im_capture.h
Modules | |
Windows Attributes Names | |
Functions | |
int | imVideoCaptureDeviceCount (void) |
const char * | imVideoCaptureDeviceDesc (int device) |
int | imVideoCaptureReloadDevices (void) |
imVideoCapture * | imVideoCaptureCreate (void) |
void | imVideoCaptureDestroy (imVideoCapture *vc) |
int | imVideoCaptureConnect (imVideoCapture *vc, int device) |
void | imVideoCaptureDisconnect (imVideoCapture *vc) |
int | imVideoCaptureDialogCount (imVideoCapture *vc) |
int | imVideoCaptureShowDialog (imVideoCapture *vc, int dialog, void *parent) |
const char * | imVideoCaptureDialogDesc (imVideoCapture *vc, int dialog) |
int | imVideoCaptureFormatCount (imVideoCapture *vc) |
int | imVideoCaptureGetFormat (imVideoCapture *vc, int format, int *width, int *height, char *desc) |
int | imVideoCaptureSetFormat (imVideoCapture *vc, int format) |
void | imVideoCaptureGetImageSize (imVideoCapture *vc, int *width, int *height) |
int | imVideoCaptureSetImageSize (imVideoCapture *vc, int width, int height) |
int | imVideoCaptureFrame (imVideoCapture *vc, unsigned char *data, int color_mode, int timeout) |
int | imVideoCaptureOneFrame (imVideoCapture *vc, unsigned char *data, int color_mode) |
int | imVideoCaptureLive (imVideoCapture *vc, int live) |
int | imVideoCaptureResetAttribute (imVideoCapture *vc, const char *attrib, int fauto) |
int | imVideoCaptureGetAttribute (imVideoCapture *vc, const char *attrib, float *percent) |
int | imVideoCaptureSetAttribute (imVideoCapture *vc, const char *attrib, float percent) |
const char ** | imVideoCaptureGetAttributeList (imVideoCapture *vc, int *num_attrib) |
Function Documentation
|
Returns the number of available devices.
im.VideoCaptureDeviceCount() -> count: number [in Lua 5] |
|
Returns the device description. Returns NULL in the last device.
im.VideoCaptureDeviceDesc(device: number) -> desc: string [in Lua 5] |
|
Reload the device list. The devices can be dynamically removed or added to the system. Returns the number of available devices.
im.imVideoCaptureReloadDevices() -> count: number [in Lua 5] |
|
Creates a new imVideoCapture object.
im.VideoCaptureCreate() -> vc: imVideoCapture [in Lua 5] |
|
Destroys a imVideoCapture object.
im.VideoCaptureDestroy(vc: imVideoCapture) [in Lua 5] vc:Destroy() [in Lua 5] |
|
Connects to a capture device. More than one imVideoCapture object can be created but they must be connected to different devices.
vc:Connect([device: number]) -> ret: number [in Lua 5] |
|
Disconnect from a capture device.
vc:Disconnect() [in Lua 5] |
|
Returns the number of available configuration dialogs.
vc:DialogCount() -> count: number [in Lua 5] |
|
Displays a configuration modal dialog of the connected device.
vc:ShowDialog(dialog: number, parent: userdata) -> error: number [in Lua 5] |
|
Returns the description of a configuration dialog. dialog can be from 0 to imVideoCaptureDialogCount.
vc:DialogDesc(dialog: number) -> desc: string [in Lua 5] |
|
Returns the number of available video formats.
vc:FormatCount() -> error: number [in Lua 5] |
|
Returns information about the video format.
vc:GetFormat(format: number) -> error: number, width: number, height: number, desc: string [in Lua 5] |
|
Changes the video format of the connected device.
vc:SetFormat(format: number) -> error: number [in Lua 5] |
|
Returns the current image size of the connected device.
vc:GetImageSize() -> width: number, height: number [in Lua 5] |
|
Changes the image size of the connected device.
vc:SetImageSize(width: number, height: number) -> error: number [in Lua 5] |
|
Returns a new captured frame. Use -1 for infinite timeout.
vc:Frame(image: imImage, timeout: number) -> error: number [in Lua 5] |
|
Start capturing, returns the new captured frame and stop capturing.
vc:OneFrame(image: imImage) -> error: number [in Lua 5] |
|
Start capturing.
vc:Live(live: number) -> error: number [in Lua 5] |
|
Resets a camera or video attribute to the default value or to the automatic setting.
vc:ResetAttribute(attrib: string, fauto: number) -> error: number [in Lua 5] |
|
Returns a camera or video attribute in percentage of the valid range value.
vc:GetAttribute(attrib: string) -> error: number, percent: number [in Lua 5] |
|
Changes a camera or video attribute in percentage of the valid range value.
vc:SetAttribute(attrib: string, percent: number) -> error: number [in Lua 5] |
|
Returns a list of the description of the valid attributes.
vc:GetAttributeList() -> attrib_list: table of strings [in Lua 5] |