'FreeTypeFont' object has no attribute 'getsize'
eikaramba opened this issue · comments
Eike Thies commented
Robert Knight commented
See Belval/TextRecognitionDataGenerator#323 for some notes on handling this change in a related project. The way Pillow recommends migrating getsize
to getbbox
in the official docs gives different output. The docs say getbbox
returns (left, right, top, bottom)
so you'd expect height = bottom - top
, but actually to get the same output as before, just use the bottom
coordinate.
Dalao commented
Can u maek a PR to merge?