Barcode 39 working?

  • Anonymous - 2012-01-04

    I'm having trouble scanning barcode 39, they are never detected. I made sure the size and resolution were more than sufficient and I tested multiple file formats to no avail…
    In case my barcodes had something wrong, I even tried to scan the code 39 codes sample on Wikipedia:
    But they can't be read either!

    I must be doing something wrong? I tried using zbarimg and also python this way:

    import zbar
    import Image

    fname = 'Wiki262px-Code_3_of_9.svg.png'
    img ='L')
    width, height = img.size

    scanner = zbar.ImageScanner()
    zbar_img = zbar.Image(width, height, 'Y800', img.tostring())

    # scan the image for barcodes

    for symbol in zbar_img:
        print symbol
        print dir(symbol)
        print "components: ", dir(symbol.components)
        print "count: ", symbol.count
        print "data: ",
        print "location: ", symbol.location
        print "quality: ", symbol.quality
        print "type: ", symbol.type

    Any idea what might go wrong here? I'm using Ubuntu if it matters.

  • gaoyang

    gaoyang - 2012-02-24

    I meet the similar issue. code39 cannot be read;

  • Lisa Huang

    Lisa Huang - 2012-02-27

    I looked at the link to bc.png. The characters are code-39, but it's missing the start & stop characters which renders the code meaningless.

    @gaoyangm, if you have a sample image of the barcode you're trying to decode I can take a look at it.
    And please create a new forum thread if it's a different image from tickon's.

  • mariah

    mariah - 2013-09-23

    have you tried this code 39 barcode reader?


Log in to post a comment.