Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for properties in dmtxDecodeSetProp #43

Open
jstmn opened this issue Jun 24, 2021 · 1 comment
Open

Documentation for properties in dmtxDecodeSetProp #43

jstmn opened this issue Jun 24, 2021 · 1 comment

Comments

@jstmn
Copy link

jstmn commented Jun 24, 2021

Hi There,

I haven't been able to find any documentation on what the properties in dmtxDecodeSetProp() do. Could you please share what they mean? For refererence, I know that there is a roughly 35x30 px datamatrix somewhere in the image. If I could pass this information along hopefully it can substantially speed up the scan.

   switch(prop) {
      case DmtxPropEdgeMin:
         dec->edgeMin = value;
         break;
      case DmtxPropEdgeMax:
         dec->edgeMax = value;
         break;
      case DmtxPropScanGap:
         dec->scanGap = value; /* XXX Should this be scaled? */
         break;
      case DmtxPropFnc1:
         dec->fnc1 = value;
         break;
      case DmtxPropSquareDevn:
         dec->squareDevn = cos(value * (M_PI/180.0));
         break;
      case DmtxPropSymbolSize:
         dec->sizeIdxExpected = value;
         break;
      case DmtxPropEdgeThresh:
         dec->edgeThresh = value;
         break;
      /* Min and Max values arrive unscaled */
      case DmtxPropXmin:
         dec->xMin = value / dec->scale;
         break;
      case DmtxPropXmax:
         dec->xMax = value / dec->scale;
         break;
      case DmtxPropYmin:
         dec->yMin = value / dec->scale;
         break;
      case DmtxPropYmax:
         dec->yMax = value / dec->scale;
         break;
      default:
         break;
   }

Cheers

@msva
Copy link
Contributor

msva commented Nov 7, 2021

As far as I can see, most of props allows you to advice scanner about the coordinates of matrix, and some metainformation about matrix itself.
And their names mostly describes their purpose, IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants