45 .sensor_size = { .w = 1280, .h = 720 },
46 .crop = { .x = 0, .y = 0, .w = 1280, .h = 720 },
47 .dev_name =
"front_camera",
49 .format = V4L2_PIX_FMT_UYVY,
54 .camera_intrinsics = {
65 .sensor_size = { .w = 320, .h = 240 },
66 .crop = { .x = 40, .y = 0, .w = 240, .h = 240 },
67 .dev_name =
"bottom_camera",
69 .format = V4L2_PIX_FMT_UYVY,
74 .camera_intrinsics = {
121 printf(
"[video_thread_nps] Added %s to camera array.\n",
Computer vision framework for onboard processing.
Image helper functions like resizing, color filter, converters...
Capture images from a V4L2 device (Video for Linux 2)
struct img_size_t output_size
Output image size.
char * dev_name
path to device
#define VIDEO_THREAD_MAX_CAMERAS
Start a Video thread and grab images.
void video_thread_init(void)
Initialize the view video.
struct video_config_t * cameras[VIDEO_THREAD_MAX_CAMERAS]
void video_thread_stop(void)
Stops the streaming of all cameras This could take some time, because the thread is stopped asynchron...
bool add_video_device(struct video_config_t *device)
Keep track of video devices added by modules.
struct video_config_t front_camera
Video thread dummy for simulation.
void video_thread_periodic(void)
A dummy for now.
void video_thread_start(void)
Starts the streaming of a all cameras.
struct video_config_t bottom_camera
This header gives NPS access to the list of added cameras.