TomStog / curved-text-alignment

A function that takes as input a cropped text line image, and outputs the dewarped image.
15 stars 3 forks source link

LinearGAM gridsearch is slow #3

Closed josef821 closed 6 months ago

josef821 commented 6 months ago

hi. thanks for sharing your code. it works great. is there any faster alternative for LinearGAM library or gridsearch function? it takes 1 second to run and it will make ocr slow (for example run for 20 line in one image)

TomStog commented 6 months ago

Thank you very much, I'm glad that my code helped you. I looked into the LinearGAM documentation and I think the change I made has given it a significant speed boost.

TomStog commented 6 months ago

I would love to see any examples you can share.

josef821 commented 6 months ago

Did you update the codes? so fast? you are amazing. Its speed has changed from 1 second to 0.06 seconds and this is very great. If you can fix the part where you save the file as Excel and read it again, I think the speed of the whole program will be multiplied. In fact, use a variable instead of a file.