← 返回命令列表

Linux command

dmtxread 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Read Data Matrix barcode from image

dmtxread [image.png]

Read from multiple images

dmtxread [image1.png] [image2.png]

Output in verbose mode

dmtxread -v [image.png]

Set timeout for scanning

dmtxread -m [5000] [image.png]

Stop after decoding

dmtxread -N [1] [image.png]

Output newline-separated

dmtxread -n [image.png]

Read from webcam

fswebcam -r 640x480 - | dmtxread

说明

dmtxread decodes Data Matrix barcodes from image files. Data Matrix is a 2D barcode format commonly used for small item marking, electronics, and industrial applications where high data density in small space is needed. The tool processes various image formats (PNG, JPEG, TIFF, etc.) and searches for Data Matrix patterns. Multiple barcodes can be detected in a single image. The decoded text is output to stdout. dmtxread is part of the libdmtx library, which provides Data Matrix encoding and decoding functionality. The library handles error correction built into the Data Matrix format.

参数

-v, --verbose
Verbose output showing scan progress.
-n, --newline
Print newline after each decoded message.
-m, --milliseconds _ms_
Maximum scan time in milliseconds.
-N, --stop-after _n_
Stop after decoding n barcodes.
-c, --codewords
Print codewords instead of decoded message.
-e, --min-edge _pixels_
Minimum edge length to consider.
-E, --max-edge _pixels_
Maximum edge length to consider.

FAQ

What is the dmtxread command used for?

dmtxread decodes Data Matrix barcodes from image files. Data Matrix is a 2D barcode format commonly used for small item marking, electronics, and industrial applications where high data density in small space is needed. The tool processes various image formats (PNG, JPEG, TIFF, etc.) and searches for Data Matrix patterns. Multiple barcodes can be detected in a single image. The decoded text is output to stdout. dmtxread is part of the libdmtx library, which provides Data Matrix encoding and decoding functionality. The library handles error correction built into the Data Matrix format.

How do I run a basic dmtxread example?

Run `dmtxread [image.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in dmtxread?

Verbose output showing scan progress.