DMTXREAD(1)
π DMTXREAD π
okay so bestie, gather round, because this is dmtxread, a lil general commands manual situation, and it is genuinely one of my faves. no cap.
β¨ NAME β¨
dmtxread β scan Data Matrix barcodes π·π¦
β¨ SYNOPSIS β¨
dmtxread [options] [FILE]...
β¨ DESCRIPTION β¨
so here's the vibe: dmtxread goes looking through the input FILEs you name for ECC200 Data Matrix barcodes β like, it hunts them down β then reads what's inside them and writes the decoded messages out to standard output. π
and if you don't name any files at all? or you literally just pass the filename "-"? it reads from standard input instead. she's flexible like that. β¨
β¨ OPTIONS β¨
-c,--codewordsβ only prints the codewords pulled out of a Data Matrix, and NOT the actual decoded message. raw vibes only.-e,--minimum-edge=Nβ the pixel length of the smallest edge you're expecting in the image.-E,--maximum-edge=Nβ the pixel length of the largest edge you're expecting in the image.-g,--gap=Nβ use a scan grid with a gap ofNpixels (or less) between the lines. πΈοΈ-l,--list-formatsβ lists out all the supported input image formats. very "let me show you the menu" energy.-m,--milliseconds=Nβ stop scanning afterNmilliseconds, and yes that's per image. β±οΈ-n,--newlineβ prints a newline character at the end of the decoded data. tiny but iconic.-p,--page=Nβ only scans theNth page of the images. one page, one moment, main character energy.-q,--square-deviation=Nβ the maximum deviation (in degrees) from squareness between adjacent barcode sides. the default isN=40, butN=10is what's recommended for flat applications like faxes and other scanned documents. any barcode regions found with corners<(90-N) or>(90+N) get ignored by the decoder. so pick your N wisely bestie.-r,--resolution=Nβ decoding resolution in dots per inch (DPI). this one is only used for vectorial input images like SVG, PDF, etc... it takes a single argument (eg:300) and also horizontal and vertical resolutions (eg:300x150). the default resolution is72dpi. π-s,--symbol-size=[asr|RxC]β only consider barcodes of a specific size or shape. options are:a= All sizes [default]s= Only squaresr= Only rectanglesRxC= Exactly this many rows and columns (10x10,8x18, etc...)
-t,--threshold=Nβ sets the minimum edge threshold as a percentage of maximum. for example, an edge between a pure white and a pure black pixel would have an intensity of100. edges with intensities below the threshold you indicate get ignored by the decoding process. lowering the threshold increases the amount of work to be done, but it may be necessary for low contrast or blurry images. π tradeoffs, always tradeoffs.-x,--x-range-min=N[%]β don't scan pixels to the left of pixel columnN(orN%).-X,--x-range-max=N[%]β don't scan pixels to the right of pixel columnN(orN%).-y,--y-range-min=N[%]β don't scan pixels below pixel rowN(orN%).-Y,--y-range-max=N[%]β don't scan pixels above pixel rowN(orN%).-C,--corrections-max=Nβ correct at mostNerrors per image (0= correction disabled). zero chill, zero corrections.-D,--diagnoseβ makes a copy of the image with additional diagnostic data. detective mode π-M,--mosaic(experimental) β interpret detected regions as Data Mosaic barcodes.
ok so --mosaic is marked experimental, so like, be aware, it's still figuring itself out. π«Ά
-N,--stop-after=Nβ stop scanning after theNth barcode is returned. she's done, she's leaving the party.-P,--page-numbersβ prints each decoded message with its fax/tiff page number.-R,--cornersβ prefixes the decoded message with the barcode's corner locations. π-S,--shrink=Nβ internally shrinks the image by a factor ofN. the shrinking works by skippingN-1pixels at a time, which often produces significantly faster scan times. it also improves the scan success rate for images taken with poor camera focus, provided the image is sufficiently large. π₯-U,--unicodeβ prints Extended ASCII characters in UTF-8 Unicode. β¨-v,--verboseβ use verbose messages. she will tell you EVERYTHING.-V,--versionβ prints program version information.--helpβ displays this help message and quits. the classic. π
β¨ STANDARDS β¨
ISO/IEC 16022:2000ANSI/AIM BC11 ISS
she's certified, she's official, she's got the paperwork. π
β¨ DIAGNOSTICS β¨
the exit status has the following possible meanings, and honestly they're giving fortune cookie:
0β at least one barcode was found and decoded π1β no barcodes were found π>1β an error occurred that prevented the command from executing normally π
β¨ BUGS β¨
found a bug? email bug reports to mike@dragonflylogic.com π
β¨ AUTHOR β¨
Copyright (C) 2008, 2009 Mike Laughton
okay that's the whole thing bestie, no cap. this was a General Commands Manual situation, and it's dated June 2, 2011. go scan something slay π ππ¦
π¦ where this page comes from
- debian bookworm: dmtx-utils 0.7.6-1.1+b1 Β· LGPL-2.0-or-later
- debian trixie: dmtx-utils 0.7.6-1.1+b4 Β· LGPL-2.0-or-later
- ubuntu jammy: dmtx-utils 0.7.6-1.1build1 Β· LGPL-2.0-or-later
- ubuntu noble: dmtx-utils 0.7.6-1.1build4 Β· LGPL-2.0-or-later
- ubuntu questing: dmtx-utils 0.7.6-1.1build5
- ubuntu resolute: dmtx-utils 0.7.6-1.1build6 Β· LGPL-2.0-or-later
- ubuntu stonking: dmtx-utils 0.7.6-1.2 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms