Development of the ocr part of AOI
Samo Penic
2018-11-17 e0996e35862256114826a6314dc649972972a60c
sid_process.py
@@ -210,11 +210,11 @@
    cv2.imwrite("enhancedSID.png", image)
    sid_no = segment_by_contours(image, image_original, classifier, sid_mask)
    print(sid_no)
    if len(sid_no) != len(sid_mask) or not sid_compare(sid_no, sid_mask):
        sid_warn.append("Trying second SID algorithm.")
        sid_no = segment_by_7segments(image, image_original, sid_mask, classifier)
    print(sid_no)
    if (len(sid_no)) != len(sid_mask):
        sid_no = segment_by_sid_len(image, image_original, sid_mask, classifier)
        sid_warn.append("Trying third SID algorithm.")