(surface, matrix, x, y, width, height, btype="CODE128")
return result
Tries to read the barcode at the given position
Tries to read the barcode at the given position
Tries to read the barcode at the given position
def read_barcode(surface, matrix, x, y, width, height, btype="CODE128"):
    """Tries to read the barcode at the given position"""
    result = scan(surface, matrix, x, y, width, height, btype)

    if result == None:
      # Try kfill approach
      result = scan(surface, matrix, x, y, width, height, btype, True)

    return result
def read_barcode ( surface , matrix , x , y , width , height , btype = "CODE128" ) : result = scan ( surface , matrix , x , y , width , height , btype ) if result == None : # Try kfill approach result = scan ( surface , matrix , x , y , width , height , btype , True ) return result