def test_orc_problems2(): """Tricky OCR situations""" img = Image.open(os.path.join(get_dir('codebase'), r"tests/ocr/num2.png")) result = get_ocr_float(img) assert result == 3.94
def _recognize_number(self): self.recognized_number = get_ocr_float(self.preview) log.info(f"Recognized number is: {self.recognized_number}") self.signal_update_label.emit('tesseract_label', str(self.recognized_number))