Can't recognize an image with only '0'
import easyocr
reader = easyocr.Reader(['ch_sim', 'en']) # this needs to run only once to load the model into memory result = reader.readtext('zero.jpg') print(result)
===========================output================= []
I debug the code , find the defualt text_threshhold = 0.7 is too high. I set this value to 0.3, that is ok!
@gurudk is right. The following code works:
import easyocr
reader = easyocr.Reader(['en']) # this needs to run only once to load the model into memory
result = reader.readtext('zero.jpg', text_threshold=0.6)
print(result)
So I guess we need to take the parameters seriously .. and theres a dozen haha:
decoder = 'greedy', beamWidth= 5, batch_size = 1,\ workers = 0, allowlist = None, blocklist = None, detail = 1,\ rotation_info = None, paragraph = False, min_size = 20,\ contrast_ths = 0.1,adjust_contrast = 0.5, filter_ths = 0.003,\ text_threshold = 0.7, low_text = 0.4, link_threshold = 0.4,\ canvas_size = 2560, mag_ratio = 1.,\ slope_ths = 0.1, ycenter_ths = 0.5, height_ths = 0.5,\ width_ths = 0.5, y_ths = 0.5, x_ths = 1.0, add_margin = 0.1, threshold = 0.2, bbox_min_score = 0.2, bbox_min_size = 3, max_candidates = 0,