Functions | |
int | camera_open () |
int | camera_open_black () |
int | camera_open_at_res (enum Resolution res) |
int | camera_open_device (int number, enum Resolution res) |
int | camera_open_device_model_at_res (int number, enum Model model, enum Resolution res) |
int | camera_load_config (const char *name) |
void | set_camera_width (int width) |
void | set_camera_height (int height) |
int | get_camera_width (void) |
int | get_camera_height (void) |
int | camera_update (void) |
pixel | get_camera_pixel (point2 p) |
int | get_channel_count (void) |
int | get_object_count (int channel) |
const char * | get_object_data (int channel, int object) |
int | get_object_data_length (int channel, int object) |
double | get_object_confidence (int channel, int object) |
int | get_object_area (int channel, int object) |
rectangle | get_object_bbox (int channel, int object) |
point2 | get_object_centroid (int channel, int object) |
point2 | get_object_center (int channel, int object) |
void | camera_close () |
void | set_camera_config_base_path (const char *const path) |
const unsigned char * | get_camera_frame_row (unsigned row) |
const unsigned char * | get_camera_frame () |
void camera_close | ( | ) |
Cleanup the current camera instance.
int camera_load_config | ( | const char * | name | ) |
Loads the config file specified by name. The system will look for the config in the base path.
name | The configuration to load. Configuration file names are case sensitive. |
int camera_open | ( | ) |
Opens the default system camera for use at LOW_RES (160x120).
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:
|
int camera_open_black | ( | ) |
Opens the default system camera for use at LOW_RES (160x120). This will improve frame rates for the black Logitech camera
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:
|
int camera_open_device_model_at_res | ( | int | number, |
enum Model | model, | ||
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:
|
model | The camera model
|
int camera_update | ( | void | ) |
Pulls a new image from the camera for processing.
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.
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.
int get_camera_height | ( | void | ) |
Gets the camera's y resolution.
Gets the color of a pixel.
p | The point at which the pixel lies. |
int get_camera_width | ( | void | ) |
Gets the camera's x resolution.
int get_channel_count | ( | void | ) |
int get_object_area | ( | int | channel, |
int | object | ||
) |
rectangle get_object_bbox | ( | int | channel, |
int | object | ||
) |
point2 get_object_center | ( | int | channel, |
int | object | ||
) |
point2 get_object_centroid | ( | int | channel, |
int | object | ||
) |
double get_object_confidence | ( | int | channel, |
int | object | ||
) |
int get_object_count | ( | int | channel | ) |
channel | The channel to scan for objects. |
const char* get_object_data | ( | int | channel, |
int | object | ||
) |
int get_object_data_length | ( | int | channel, |
int | object | ||
) |
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. |
void set_camera_height | ( | int | height | ) |
Sets the camera's y resolution.
width | The height in pixels |
void set_camera_width | ( | int | width | ) |
Sets the camera's x resolution.
width | The width in pixels |