32#ifndef QRCODE_DRAW_RECTANGLE
33#define QRCODE_DRAW_RECTANGLE FALSE
65 for (
j = 0;
j <
img->h;
j++) {
66 for (i = 0; i <
img->w; i++) {
90 printf(
"zbar_scan_image returned %d\n", n);
99 printf(
"decoded %s symbol \"%s\" at %d %d\n",
struct video_listener * cv_add_to_device(struct video_config_t *device, cv_function func, uint16_t fps, uint8_t id)
Computer vision framework for onboard processing.
void image_draw_line(struct image_t *img, struct point_t *from, struct point_t *to)
Draw a pink line on the image.
void image_create(struct image_t *img, uint16_t width, uint16_t height, enum image_type type)
Create a new image.
uint32_t x
The x coordinate of the point.
uint32_t y
The y coordinate of the point.
@ IMAGE_GRAYSCALE
Grayscale image with only the Y part (uint8 per pixel)
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
#define QRCODE_DRAW_RECTANGLE
zbar_image_scanner_t * scanner
bool drawRectangleAroundQRCode
#define QRCODE_FPS
Default FPS (zero means run at camera fps)
struct image_t * qrscan(struct image_t *img, uint8_t camera_id)
Parse video stream to detect and decode QR-codes using the ZBAR library.
Periodic telemetry system header (includes downlink utility and generated code).
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.