VF EXPORT_SYM void camera_close | ( | ) |
Cleanup the current camera instance.
VF EXPORT_SYM int camera_load_config | ( | const char * | name | ) |
Loads the config file specified by name.
name | The configuration to load. Configuration file names are case sensitive. |
VF EXPORT_SYM int camera_open | ( | ) |
Opens the default system camera for use at LOW_RES (160x120).
VF EXPORT_SYM int camera_open_at_res | ( | enum Resolution | res | ) |
Opens the default system camera for use at a given resolution.
res | The resolution the camera should operate at. This can be:
|
VF EXPORT_SYM int camera_open_device | ( | int | number, |
enum Resolution | res | ||
) |
Opens a camera for use.
number | The camera's id. 0 is the first camera, 1 is the second camera, etc. |
res | The resolution the camera should operate at. This can be:
|
VF EXPORT_SYM int camera_update | ( | void | ) |
Pulls a new image from the camera for processing.
VF EXPORT_SYM const unsigned char* get_camera_frame | ( | ) |
Retrieves the current camera frame as a BGR (BGR888) array. The returned pointer is invalid after camera_update() is called again.
VF EXPORT_SYM const unsigned char* get_camera_frame_row | ( | unsigned | row | ) |
Retrieves the current camera frame row as a BGR (BGR888) array. The returned pointer is invalid after camera_update() is called again.
VF EXPORT_SYM int get_camera_height | ( | void | ) |
Gets the camera's y resolution.
VF EXPORT_SYM pixel get_camera_pixel | ( | point2 | p | ) |
p | The point at which the pixel lies. |
VF EXPORT_SYM int get_camera_width | ( | void | ) |
Gets the camera's x resolution.
VF EXPORT_SYM int get_channel_count | ( | void | ) |
VF EXPORT_SYM int get_object_area | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM rectangle get_object_bbox | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM point2 get_object_center | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM point2 get_object_centroid | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM double get_object_confidence | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM int get_object_count | ( | int | channel | ) |
channel | The channel to scan for objects. |
VF EXPORT_SYM const char* get_object_data | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM int get_object_data_length | ( | int | channel, |
int | object | ||
) |
VF EXPORT_SYM void set_camera_config_base_path | ( | const char *const | path | ) |
Sets the path in which to look for camera configurations.
path | the absolute directory path in which to look for camera configurations. |
VF EXPORT_SYM void set_camera_height | ( | int | height | ) |
Sets the camera's y resolution.
width | The height in pixels |
VF EXPORT_SYM void set_camera_width | ( | int | width | ) |
Sets the camera's x resolution.
width | The width in pixels |