Traceback (most recent call last):
File "/Users/hexi/Desktop/数字人文/demo/ocr_chinese-master/predict.py", line 73, in
texts = predict_text(crnn_model, text_recs_all, text_recs_len, img_all, img_name=im_name)
File "/Users/hexi/Desktop/数字人文/demo/ocr_chinese-master/crnn/predict_crnn.py", line 125, in predict_text
img_rec = dumpRotateImage(img_all[img_index], recs_all[i]).convert('L')
File "/Users/hexi/Desktop/数字人文/demo/ocr_chinese-master/crnn/predict_crnn.py", line 94, in dumpRotateImage
img_rec = img_rot.crop((pt1_N[0], pt1_N[1], pt3_N[0], pt3_N[1]))
File "/Users/hexi/miniforge3/envs/mini_envs/lib/python3.8/site-packages/PIL/Image.py", line 1207, in crop
raise ValueError("Coordinate 'right' is less than 'left'",box)
ValueError: ("Coordinate 'right' is less than 'left'", (596, 450, 561, 432))
Traceback (most recent call last): File "/Users/hexi/Desktop/数字人文/demo/ocr_chinese-master/predict.py", line 73, in
texts = predict_text(crnn_model, text_recs_all, text_recs_len, img_all, img_name=im_name)
File "/Users/hexi/Desktop/数字人文/demo/ocr_chinese-master/crnn/predict_crnn.py", line 125, in predict_text
img_rec = dumpRotateImage(img_all[img_index], recs_all[i]).convert('L')
File "/Users/hexi/Desktop/数字人文/demo/ocr_chinese-master/crnn/predict_crnn.py", line 94, in dumpRotateImage
img_rec = img_rot.crop((pt1_N[0], pt1_N[1], pt3_N[0], pt3_N[1]))
File "/Users/hexi/miniforge3/envs/mini_envs/lib/python3.8/site-packages/PIL/Image.py", line 1207, in crop
raise ValueError("Coordinate 'right' is less than 'left'",box)
ValueError: ("Coordinate 'right' is less than 'left'", (596, 450, 561, 432))