Development of the ocr part of AOI
Samo Penic
2018-12-01 77dabf283bd5962109c5e3498e2dfe85628ed637
Changed the recognition netwtork...
4 files modified
6 ■■■■ changed files
aoi_ocr/__pycache__/Ocr.cpython-36.pyc patch | view | raw | blame | history
aoi_ocr/__pycache__/sid_process.cpython-36.pyc patch | view | raw | blame | history
aoi_ocr/filename.joblib patch | view | raw | blame | history
aoi_ocr/sid_process.py 6 ●●●● patch | view | raw | blame | history
aoi_ocr/__pycache__/Ocr.cpython-36.pyc
Binary files differ
aoi_ocr/__pycache__/sid_process.cpython-36.pyc
Binary files differ
aoi_ocr/filename.joblib
Binary files differ
aoi_ocr/sid_process.py
@@ -84,7 +84,11 @@
        # cv2.rectangle(image,(x,y),( x + w, y + h ),(0,255,0),2)
        cv2.imwrite("/tmp/sid_no_{}.png".format(i), roi)
        sid_no = sid_no + str(classifier.predict(roi.reshape(1, -1) / 255.0)[0])
        sid_currno= str(classifier.predict(roi.reshape(1, -1) / 255.0)[0])
        sid_no = sid_no + sid_currno
        fname="/tmp/SID/"+str(sid_currno)+"/sid"+str(np.random.randint(0,1000000))+".png"
        print("Writing all the sid images ", fname)
        cv2.imwrite(fname, roi)
    return sid_no