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