Hello everyone,

I am involved in a document management project in which some files will simply be an image with a barcode on it. I know how to create the barcode with my necessary data, my issue is trying to decode it without using a scanner.

Any help would be greatly appreciated.

Thanks

    josesan wrote:

    Hello everyone,

    I am involved in a document management project in which some files will simply be an image with a barcode on it. I know how to create the barcode with my necessary data, my issue is trying to decode it without using a scanner.

    Any help would be greatly appreciated.

    Thanks

    have you searched for
    Google: "php barcode"

    Looks like there are several php applications for this.

      yep ... plenty of modules to create the barcodes but not to read them on the fly.

        Are the barcode images consistent in size, layout, and color?

          Yes ... I have complete control over their size and barcode type.

            Seems to me it would be possible to use the GD image functions to read an image file, then basically read a row (or column) of pixels, establishing the position and width of each bar in the image, probably using [man]imagecolorat/man in a for loop. However, I do not know the barcode protocol(s), so i don't have any real feel as to how you convert that data into the numbers/letters represented by that pattern of bars.

              Write a Reply...