On Wed, Dec 21, 2011 at 9:49 PM, Carl Karsten <[email protected]> wrote:
> I want to put a barcode of a db pk on a report.    Later I will scan
> the report, decode the barcode and have a link back to the data that
> generated the printout.  (it will have hand written notes, otherwise
> this would be nuts)
>
> I have done this kind of thing before, but I can't remember how.  I am
> hoping someone has it at their fingertips.
>
> The worst thing I see right now is I don't know what barcode formats
> gocr supports, and that is what I plan on using to decode.
>
> Ideally something I can apt-get install into ubuntu.

Here is a demo of what reportlab can do - not sure if it can do more,
but don't care:
http://www.reportlab.com/examples/rml/test/test_006_barcodes.pdf

I converted that to an image, then ran it though gocr, and looked for
what it could decode.  It looks like type 128 or upc is good.

Does the dabo report tool have a hook into this?

gs -SDEVICE=pnm -r600x600 -sPAPERSIZE=letter -sOutputFile=a_%04d.pnm
-dNOPAUSE -dBATCH -- test_006_barcodes.pdf

carl@dc10:~/temp$ gocr a_0001.pnm |grep barcode
_<barcode type="unknown" />
_<barcode type="unknown" />
_<barcode type="128" chars="11" code="AB-12345678" crc="0" error="0.123" />
_<barcode type="128" chars="11" code="AB-12345678" crc="0" error="0.085" />
his shows a few different barcodes and the techniques for using them.
There are two
barcode x≡ '' 1 cm '' y≡ '' 1 cm '' code≡ '' Code 1 2 8 '' >AB- 1 2 3
4 5 6< /barcode>
here are many other attributes defined in the rml.dtd file, but in
general barcodes know
carl@dc10:~/temp$ gocr a_0002.pnm |grep barcode
_<barcode type="UPC" chars="13" code="1234567890128" crc="0" error="0.018" />
_<barcode type="UPC" chars="13" code="1234567890128" crc="0" error="0.018" />
_<barcode type="UPC" chars="9" code="012345670" crc="0" error="0.014" />
_0_0_0  _ 0000           _<barcode type="UPC" chars="13"
code="2222222222222" crc="0" error="0.019" />
        _<barcode type="UPC" chars="13" code="3333333333338" crc="0"
error="0.008" />
0R 2d barcode contributed by Germán M. Bravo <[email protected]>
carl@dc10:~/temp$ evince barcodes.pdf


-- 
Carl K
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/CADmzSShHwtp9P8XACddsSrBYDiz29oc3mRteU5Sve=te1up...@mail.gmail.com

Reply via email to