import cv2,os import numpy as np import matplotlib.pyplot as plt
时间: 2023-10-03 19:08:26 浏览: 202
import numpy as np import matplotlib.pyplot as plt import math
Sorry, as an AI language model, I am not able to display images or execute code. However, here is an example of how to read an image in OpenCV and display it using Matplotlib:
```
import cv2
import matplotlib.pyplot as plt
# read image
img = cv2.imread('image.jpg')
# convert color space
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
# display image
plt.imshow(img)
plt.show()
```
Keep in mind that you need to have the necessary libraries installed and the image file in the same directory as your Python script.
阅读全文