How to solve error attributeerror:’pngimagefile’object has no attribute’imshow’ Successfully.
AttributeError: ‘PngImageFile’ object has no attribute ‘imshow’
Attribute error: the “pngimagefile” object does not have the attribute “imshow”
Pngimagefile does not have imshow method, but has show method, so the following changes are required!
Modify img.imshow() to img.show()