|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Traceback (most recent call last):
File "C:/Users/dell/Desktop/ (2).py", line 28, in <module>
cv.imshow("input image",src)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
import cv2 as cv
import numpy as np
def video_demp():
capture = VideoCapture(0)
while True:
ret,frame = capture.read()
frame = cv.flip(frame,1)
cv.imshow("video",frame)
c = cv.waitKey(50)
if c == 27:
break
def get_image_into(image):
print(type(image))
print(image.shape)
print(image.size)
print(image.dtype)
print(pixel_deta)
print("Hello python world")
src = cv.imread("D:/rabbit.png")
cv.namedWindow("input image",cv.WINDOW_AUTOSIZE)
cv.imshow("input image",src)
cv.waitKey(0)
cv.destroyAllWindows()
|
|