faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.36k stars 347 forks source link

What version of matplotlib are you guys using? #228

Closed ashishsamant2311 closed 1 year ago

ashishsamant2311 commented 1 year ago

The code runs fine for me except the visualization bit. I am getting the following error. Considering the fact that the code is working for most people, I feel that this error has something to do with the version of matplotlib that I have. Any help would be appreciated.


TypeError Traceback (most recent call last) Input In [8], in <cell line: 3>() 1 # plot the text predictions 2 fig, axs = plt.subplots(nrows=len(images), figsize=(10, 20)) ----> 3 for ax, image, predictions in zip(axs, images, prediction_groups): 4 keras_ocr.tools.drawAnnotations(image=image, 5 predictions=predictions, 6 ax=ax)

TypeError: 'AxesSubplot' object is not iterable