aoi_ocr/sid_process.py
@@ -4,7 +4,7 @@ import pkg_resources templatefile = '/template-8.png' # always use slash templatefile = "/template-8.png" # always use slash template8 = pkg_resources.resource_filename(__name__, templatefile) @@ -40,6 +40,7 @@ image = image[y : y + h, x + 25 - move_left : x + w - 40] # +25,-25 return image def sid_compare(sid_no, sid_mask): """ Function compares student id number with student id mask if the recognised number is valid according to the mask