41 #include <visp3/core/vpConfig.h>
47 #include <visp3/detection/vpDetectorDataMatrixCode.h>
64 bool detected =
false;
73 DmtxTime *dmtx_timeout = NULL;
75 dmtx_timeout =
new DmtxTime;
76 *dmtx_timeout = dmtxTimeNow();
83 dec = dmtxDecodeCreate(img, 1);
88 reg = dmtxRegionFindNext(dec, dmtx_timeout);
91 msg = dmtxDecodeMatrixRegion(dec, reg, DmtxUndefined);
94 std::vector<vpImagePoint> polygon;
96 DmtxVector2 p00, p10, p11, p01;
98 p00.X = p00.Y = p10.Y = p01.X = 0.0;
99 p10.X = p01.Y = p11.X = p11.Y = 1.0;
100 dmtxMatrix3VMultiplyBy(&p00, reg->fit2raw);
101 dmtxMatrix3VMultiplyBy(&p10, reg->fit2raw);
102 dmtxMatrix3VMultiplyBy(&p11, reg->fit2raw);
103 dmtxMatrix3VMultiplyBy(&p01, reg->fit2raw);
112 m_message.push_back((
const char *)msg->output);
118 dmtxMessageDestroy(&msg);
122 dmtxRegionDestroy(®);
126 dmtxDecodeDestroy(&dec);
127 dmtxImageDestroy(&img);
134 #elif !defined(VISP_BUILD_SHARED_LIBS)
137 void dummy_vpDetectorDataMatrixCode(){};