Closed JL-plusUltra closed 2 years ago
I have got the same error, have you solved this problem ?
's' is a deprecated synonym for the 'text' parameter that is used in the keras_ocr.tools.drawAnnotations () funtion.
Facing the same issue. Is there a fix planned for this ?
If you're getting annotate() missing 1 required positional argument: 's'
, it means you are on an old version of matplotlib
because the parameter changed from s
to text
in matplotlib v3.3.0.
To fix this, you have two options:
matplotlib
to >= 3.3.0, which supports the new text
parameter. keras-ocr
to <= v0.8.7, which uses the older s
parameter.@faustomorales thanks,that was helpful
Worked like a charm! Thanks @faustomorales
The change from s
to text
seems to have been revoked in newer versions.
I got the error stated in the issue using matplotlib==3.2.2
It work well when I downgraded to matplotlib==3.0.0
Using Google Colab (as of August 16 2022):
s
works, text
does not (matplotlib==3.2.2
)On my local machine:
text
works, s
does not (matplotlib==3.5.1
)
I used the fixed annotated() version where s=text for an old project I had, but I still get the error that one positional argument is missing. The code works to extract text from one image, but the error stops it from getting the rest. Any help and suggestions would be awesome. Thanks! Here is a pic: