Professionally, I write code for VMware R&D. I also code for myself, from automating some of my workflows to working on full-blown projects. You can find some interesting ones on Computer Vision, Deep Learning and Game AIs in my GitHub profile.
More about me:
I have a YouTube channel where I try my best to share knowledge on code
I have also authored a couple of courses on OpenCV: Packt Pub
I've helped digitise the workflow for several small businesses
Member @Preflet, a start-up which aims to bring one-click ML to the masses
Breaking Bad is the best TV show on the planet (go ahead, try to change my mind)
OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-kh7iq4w7\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
what to do
Hello,
When I run test.py, I get the following error:
[ WARN:0] global /tmp/pip-wheel-frffvd08/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Traceback (most recent call last):
File "/home/pi/Documents/handy-master/test.py", line 5, in
hist = handy.capture_histogram(source=0)
File "/home/pi/Documents/handy-master/handy.py", line 27, in capture_histogram
frame = cv2.resize(frame, (1000,600))
cv2.error: OpenCV(4.4.0) /tmp/pip-wheel-frffvd08/opencv-python/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
Who can help me? What's going wrong and what is the solution?