handwriting-ocr icon indicating copy to clipboard operation
handwriting-ocr copied to clipboard

Testing Code File

Open HiteshG opened this issue 5 years ago • 6 comments

Which code file is required to directly test images dataset.

HiteshG avatar Apr 03 '19 10:04 HiteshG

For evaluation there is notebooks/OCR.ipynb it should cover whole process, just change the location of image. RIght now it supports only one type of model. For different methods look into the notebooks/ocr_evaluator.ipynb. Along with that you have to download pretrained models, for more information look into the models/ directory. Keep in mind that the current models haven't been trained on the new datasets so they can perform quite poorly on some types of handwriting.

Breta01 avatar Apr 03 '19 17:04 Breta01

in notebooks/ocr_evaluuator.ipynb what is " images, labels = load_words_data('../data/sets/test.csv', is_csv=True) " There is no set folder in data. Do i have to create test.csv for my test input ? If yes then how ?

HiteshG avatar Apr 03 '19 19:04 HiteshG

I want to test a single image of the page for Bi-RNN and CNN, so how to use ocr_evaluator.ipynb.

HiteshG avatar Apr 03 '19 20:04 HiteshG

Ok, I admit that the documentation is bad (there isn't any documentation). However I get notified about your comments and there's no need to send me two emails on top of that. This is open source projects and I have a lot of other stuff to do. Be patient or donate the project.

If you want to evaluate a single image, look into the OCR.ipynb, there's no need to create test.csv. Then replace the code for recognition of words with the code for recognition of words using CTC from ocr_evaluator.ipynb.

Breta01 avatar Apr 05 '19 07:04 Breta01

Yeah sure, I will contribute to the documentation :)

HiteshG avatar Apr 05 '19 07:04 HiteshG

Thanks, that would be great.

Breta01 avatar Apr 05 '19 09:04 Breta01