Experiment - Displaying images (cv2.imshow, matplotlib)
Problem:You want to display images correctly using two popular Python libraries: OpenCV (cv2.imshow) and Matplotlib (plt.imshow). Currently, your images either do not show up or appear with wrong colors.
Current Metrics:Images either do not display or show incorrect colors (e.g., blue and red channels swapped).
Issue:OpenCV uses BGR color format while Matplotlib uses RGB. Also, cv2.imshow requires a waitKey and destroyAllWindows call to display images properly.