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)
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