Open sanbuphy opened 10 months ago
imgaug 年久失修,若imshow需要修改源码:
python3.10/site-packages/imgaug/imgaug.py
fig, ax = plt.subplots(figsize=(w, h), dpi=dpi) fig.canvas.set_window_title("imgaug.imshow(%s)" % (image.shape,)) # cmap=gray is automatically only activate for grayscale images ax.imshow(image, cmap="gray")
其中需要把 fig.canvas.set_window_title 修改为 fig.canvas.manager.set_window_title
imgaug 年久失修,若imshow需要修改源码:
python3.10/site-packages/imgaug/imgaug.py
其中需要把 fig.canvas.set_window_title 修改为 fig.canvas.manager.set_window_title