Go to the documentation of this file.00001 #ifndef __QRDETECTOR_H__
00002 #define __QRDETECTOR_H__
00003 #include "cv.h"
00004
00005 #include <vector>
00006 #include <utility>
00007 #include <string>
00008 #include "detector_base.h"
00009 #include <zbar.h>
00010
00011 namespace detectors{
00012 namespace qrcode{
00013 class Detector : public DetectorBase{
00014 private:
00015 zbar::ImageScanner scanner_;
00016 public:
00017 Detector();
00018 bool detect(cv::Mat& image, int timeout=1000, unsigned int offsetx = 0, unsigned int offsety = 0);
00019 };
00020 }
00021 }
00022 #endif