Belval / TextRecognitionDataGenerator

A synthetic data generator for text recognition
MIT License
3.23k stars 965 forks source link

Generate handwritting process but error #354

Open minnguyen123 opened 1 month ago

minnguyen123 commented 1 month ago

Hello @Belval and community, I run code to have handwriting-picture in colab, but there is no output picture even if it's successful. Then I run it at Visual Studio and it have error in below picture. image

dmacko232 commented 1 month ago

Hello @minnguyen123,

I also tried to use the library but it failed for me the same way as for u (image is None) and I had to make quite many changes in the code to make it work. The code itself has bugs in it where there are exceptions and because of these exceptions the result image is None (ofc the code catches exception but does not print anything just returns None)... Then u find the root cause, fix it, and there are multiple more bugs..

If u need help I can give u all the changes I made.. But in the end the handwritten text image is not that great and I would recommend to use other libraries like https://github.com/ankanbhunia/Handwriting-Transformers