import cv2
import sys
import numpy as np
import os
image_path ="D:/Ana/ana1111/random.jpg"
print (os.path.exists(image_path))
img=cv2.imread(image_path)
print(img)
print(img.shape)
windowname='image'
cv2.imshow|(windowname,img)
cv2.waitKey(0)
cv2.destroyAllWindows()
这是用于图像显示的opencv的mycode。
我收到此错误:TypeError: unsupported operand type(s) for |: 'builtin_function_or_method' and 'tuple'