🔄Update: [Lab-1] imshow 图片显示
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import cv2
|
||||
import numpy as np
|
||||
from read_img import read_img
|
||||
|
||||
def show_img(inner_img):
|
||||
cv2.namedWindow("Image is here", cv2.WINDOW_NORMAL)
|
||||
cv2.imshow("Image is here", inner_img)
|
||||
cv2.waitKey(0)
|
||||
cv2.destroyAllWindows()
|
||||
|
||||
if __name__ == '__main__':
|
||||
img = read_img('../img/1.jpeg')
|
||||
show_img(img)
|
||||
Reference in New Issue
Block a user