goncalopp / simple-ocr-opencv

A simple python OCR engine using opencv
GNU Affero General Public License v3.0
524 stars 175 forks source link

Ocr test #40

Closed mouchqi closed 2 years ago

mouchqi commented 2 years ago

this pull request is linked to the problem of classification, and using this lines of codes can classify the picturs already detected

mouchqi commented 2 years ago

thanks for your answer, of course I will share with you my training data. for the flatten, yes you should use "Flatten" and it's very important for 2-Dimensional arrays.

goncalopp commented 2 years ago

Thank you for the PR @mouchqi , we appreciate the fixes and model. For your example, would you mind moving it into a examples directory? Perhaps examples/keras.py?

mouchqi commented 2 years ago

yes of course I did it you can check now thank you for your attention

goncalopp commented 2 years ago

Thanks mouchqi. It looks like tests/OCRTraining.py is still there?

mouchqi commented 2 years ago

you can check now that the file is in Example and not in tests

goncalopp commented 2 years ago

All looks good, thank you for the contribution!