Ask Your Question
0

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

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

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

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

Comments

1

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

LBerger gravatar imageLBerger ( 2020-02-29 02:53:07 -0600 )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 -0600 )edit

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

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

1 answer

Sort by ยป oldest newest most voted
2

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

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

Question Tools

1 follower

Stats

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

Seen: 1,813 times

Last updated: Mar 02 '20