please give me some suggestion

asked 2020-07-11 09:09:24 -0500

Pratik gravatar image

image description

gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'  [tcp @ 000001bce696a840] Connection to tcp://25.91.54.11:8080 failed: Error number -138 occurred
edit retag flag offensive close merge delete

Comments

1

what is unclear about _src.empty() ?

berak gravatar imageberak ( 2020-07-11 09:35:35 -0500 )edit
2

and please, absolutely NO SCREENSHOTS of code or errormsgs here (those are all useless, as ppl can't try your code, it can't be indexed for search, etc.

please remove, and replace with TEXT, thank you.

berak gravatar imageberak ( 2020-07-11 09:39:15 -0500 )edit
1

Try this video = cv2.VideoCapture(0)

supra56 gravatar imagesupra56 ( 2020-07-11 22:09:59 -0500 )edit