mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-23 21:36:28 +08:00
[qrcode] plug into computer vision framework
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
#include "qr_code.h"
|
||||
#include "cv.h"
|
||||
|
||||
#include "zbar.h"
|
||||
#include <stdio.h>
|
||||
@@ -31,6 +32,7 @@
|
||||
void qrcode_init(void)
|
||||
{
|
||||
// TODO: add qrscan to the list of image processing tasks in viewvideo
|
||||
cv_add(qrscan);
|
||||
}
|
||||
|
||||
// Telemetry
|
||||
@@ -39,7 +41,7 @@ void qrcode_init(void)
|
||||
|
||||
zbar_image_scanner_t *scanner = 0;
|
||||
|
||||
void qrscan(struct image_t *img)
|
||||
bool_t qrscan(struct image_t *img)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "../lib/vision/image.h"
|
||||
|
||||
extern void qrcode_init(void);
|
||||
extern void qrscan(struct image_t *img);
|
||||
extern bool_t qrscan(struct image_t *img);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user