24namespace jevois {
class StdModule; }
32 "multiple entries are possible and should be separated by / characters. "
33 "Selecting many symbol types or ALL will slow down processing. Supported "
34 "symbols are: QRCODE, EAN2, EAN5, EAN8, EAN13, UPCE, UPCA, ISBN10, ISBN13, "
35 "COMPOSITE, I25, DATABAR, DATABAREXP, CODABAR, CODE39, PDF417, CODE93, "
51 public jevois::Parameter<qrcode::symbol, qrcode::xdensity, qrcode::ydensity>
55 QRcode(std::string
const & instance);
62 void process(zbar::Image & image);
66 void process(zbar::Image & image, std::vector<std::string> & results);
82 void onParamChange(qrcode::symbol
const & param, std::string
const & newval)
override;
QRcode and Barcode detection using ZBar.
void onParamChange(qrcode::symbol const ¶m, std::string const &newval) override
Parse symbol config strings when they change.
void process(zbar::Image &image)
Process a greayscale image.
JEVOIS_DECLARE_PARAMETER(ydensity, int, "Scanner horizontal scan density (pixel stride), or 0 to disable", 1, ParamCateg)
Parameter.
void sendSerial(jevois::StdModule *mod, zbar::Image &img, unsigned int camw, unsigned int camh)
Send serial messages about our detections.
JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK(symbol, std::string, "Type(s) of QR code / barcode symbols searched for, " "multiple entries are possible and should be separated by / characters. " "Selecting many symbol types or ALL will slow down processing. Supported " "symbols are: QRCODE, EAN2, EAN5, EAN8, EAN13, UPCE, UPCA, ISBN10, ISBN13, " "COMPOSITE, I25, DATABAR, DATABAREXP, CODABAR, CODE39, PDF417, CODE93, " "and CODE128", "ALL", ParamCateg)
Parameter.
void drawDetections(jevois::RawImage &outimg, int txtx, int txty, zbar::Image &zgray, int w, int h, size_t nshow)
Draw any markers previously detected by process()
std::shared_ptr< zbar::ImageScanner > itsScanner
JEVOIS_DECLARE_PARAMETER(xdensity, int, "Scanner vertical scan density (pixel stride), or 0 to disable", 1, ParamCateg)
Parameter.