Ask Your Question
-2

anyone know how to solve this error??

asked 2018-08-30 00:34:05 -0600

hendra84 gravatar image

updated 2019-02-12 14:58:51 -0600

LBerger gravatar image

hsv = cv2.cvtColor(frame,cv2.COLOR_BGR2HSV)

cv2.error: OpenCV(4.0.0-pre) /home/pi/opencv-3/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

edit retag flag offensive close merge delete

Comments

I tried to run the same code on two different computers, in which exactly same python and opencv version and libraries are installed. However, only one computer would make it run. ( I was importing the exactly same .avi video) so there must not be a None output issue i think.

godgear gravatar imagegodgear ( 2018-10-31 04:33:52 -0600 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2019-11-12 06:02:11 -0600

Tarviha gravatar image

I was facing this issue and by removing special characters from the image_file_name the issue was resolved.

Example: Renaming "48172454-thymianblätter.jpg" to "48172454-thymian.jpg".

edit flag offensive delete link more
0

answered 2018-08-30 01:41:00 -0600

andylanzhiyong gravatar image

updated 2018-09-01 04:04:45 -0600

berak gravatar image

frame is None (invalid)

edit flag offensive delete link more

Comments

Thanks for responses everyone. It very helpful. Thanks :)

hendra84 gravatar imagehendra84 ( 2018-09-04 00:37:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-08-30 00:34:05 -0600

Seen: 20,680 times

Last updated: Nov 12 '19