Converting Datamatrix to binary string ?
Posted: 2012-05-15T10:46:14-07:00
do anyone know if it is possible to convert a datamatrix (or similar) to a binary string ?
The following can be given:
Source is a 1 bit BMP image (B/W), square, f.ex 16x16 pixel, containing only a datamatrix barcode. Each dot in the matrix is 1 pixel in size. This is of course not printable, but to simplify the task.
As output I would like a binary string / binary text file containing just 2 different characters, f.ex 1 or 0 (could also be * or space), where one is for black the other for white. It does not matter if the characters are line by line, or all in one line.
I think I have heard that ImageMagick can convert images to text ?
Thanks for any input
The following can be given:
Source is a 1 bit BMP image (B/W), square, f.ex 16x16 pixel, containing only a datamatrix barcode. Each dot in the matrix is 1 pixel in size. This is of course not printable, but to simplify the task.
As output I would like a binary string / binary text file containing just 2 different characters, f.ex 1 or 0 (could also be * or space), where one is for black the other for white. It does not matter if the characters are line by line, or all in one line.
I think I have heard that ImageMagick can convert images to text ?
Thanks for any input