TKFRvisionOfficial / bszet_substitution_plan

Parsing and Image creation service of the BSZET substitution plan bot
GNU Affero General Public License v3.0
2 stars 0 forks source link

fixing #24 #33

Closed PBahner closed 2 years ago

PBahner commented 2 years ago

The problem was that an empty recognized text (I'm not sure where it came from) expanded the determined table size. The size of the table was bigger as it was in real. That affected line 99 where the image-part with the date is cropped. Because the values which were used to crop the image were wrong, it returned an empty image. Finally the empty image couldn't be resized... I don't know why it worked outside a Docker.

25 is still a big problem...

I also deleted imwrite because it was only necessary for tests.