Kod bölümü import cv2 import numpy as np import utlis
if __name__ == '__main__': cap = cv2.VideoCapture('vid.mp4') while True: _, img = cap.read() # GET THE IMAGE img = cv2.resize(img,(640,480)) # RESIZE getLaneCurve(img) cv2.waitKey(1)
Hata bölümü Traceback (most recent call last): File "/home/pi/Desktop/My Files/LaneDetectionModule.py", line 9, in <module> img = cv2.resize(img,(640,480)) # RESIZE cv2.error: OpenCV(4.1.0) /home/pi/opencv-4.1.0/modules/imgproc/src/resize.cpp:3718: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
import cv2
import numpy as np
import utlis
if __name__ == '__main__':
cap = cv2.VideoCapture('vid.mp4')
while True:
_, img = cap.read() # GET THE IMAGE
img = cv2.resize(img,(640,480)) # RESIZE
getLaneCurve(img)
cv2.waitKey(1)
Hata bölümü
Traceback (most recent call last):
File "/home/pi/Desktop/My Files/LaneDetectionModule.py", line 9, in <module>
img = cv2.resize(img,(640,480)) # RESIZE
cv2.error: OpenCV(4.1.0) /home/pi/opencv-4.1.0/modules/imgproc/src/resize.cpp:3718: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
@vonderplanitz
Bu mesajda bahsedilenler: @vonderplanitz