58 bool detected =
false;
63 m_scanner.set_config(zbar::ZBAR_NONE, zbar::ZBAR_CFG_ENABLE, 1);
64 unsigned int width = I.getWidth();
65 unsigned int height = I.getHeight();
68 zbar::Image img(width, height,
"Y800", I.bitmap, (
unsigned long)(width * height));
74 for (zbar::Image::SymbolIterator symbol = img.symbol_begin(); symbol != img.symbol_end(); ++symbol) {
78 std::vector<vpImagePoint> polygon;
79 for (
unsigned int i = 0; i < static_cast<unsigned int>(symbol->get_location_size()); i++) {
80 polygon.push_back(
vpImagePoint(symbol->get_location_y(i), symbol->get_location_x(i)));
86 img.set_data(
nullptr, 0);