WenmuZhou / PytorchOCR

基于Pytorch的OCR工具库,支持常用的文字检测和识别算法
1.39k stars 306 forks source link

rec dataset split error #215

Closed morestart closed 2 years ago

morestart commented 2 years ago

https://github.com/WenmuZhou/PytorchOCR/blob/0b2b3a67814ae40b20f3814d6793f5d75d644e38/torchocr/datasets/RecDataSet.py#L40

in document, txt use \t to split data.....

and img path is error too

https://github.com/WenmuZhou/PytorchOCR/blob/0b2b3a67814ae40b20f3814d6793f5d75d644e38/torchocr/datasets/RecDataSet.py#L43

bowenliu1996 commented 2 years ago

how to solve it?please help me . I have the same question!!!

morestart commented 2 years ago

@bowenliu1996

params = m_line.split('\t') m_image_name = m_image_name

bowenliu1996 commented 2 years ago

Thanks