Ask Your Question

error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

asked 2020-02-28 20:26:17 -0500

updated 2020-03-02 11:02:33 -0500

LBerger gravatar image

Tengo el siguiente problema (I have the following problem) image description

Como lo puedo solucionar? = How can I solve it?

edit retag flag offensive close merge delete



Please use english, post error message as text (not a screenshot)

LBerger gravatar imageLBerger ( 2020-02-29 02:53:07 -0500 )edit

Are there any other warnings in the output? That assertion fails when your source input is invalid (e.g. dimensions of 0x0)

Ott gravatar imageOtt ( 2020-03-01 13:38:25 -0500 )edit

@wilcar0402.Can you post code img = cv2.imread(....)?

supra56 gravatar imagesupra56 ( 2020-03-02 08:02:47 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-03-02 18:36:24 -0500

lnx gravatar image

check image name you passed this happen only when there is no image or its not in directory where you are working or the value you passed is pointing to null or nothing

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-02-28 20:26:17 -0500

Seen: 354 times

Last updated: Mar 02