cvtColor gives me a very red image or a blue image. I am unable to get the correct colors in it. I am using opencv 3.4.9.

asked 2020-06-09 17:12:58 -0500

rr gravatar image

I am using opencv 3.4.9. I am using it with a camera SDK.

edit retag flag offensive close merge delete


please explain, what you're doing. show somw code, and tell us the expected outcome.

berak gravatar imageberak ( 2020-06-10 00:01:15 -0500 )edit

OpenCV uses BGR color model instead of RGB - for historic reasons. Most likely this is your problem.

holger gravatar imageholger ( 2020-06-11 19:17:08 -0500 )edit

^^ since it's guessing time again -- op is probably staring at a hsv image and finds it weird ..

berak gravatar imageberak ( 2020-06-12 01:17:05 -0500 )edit

:-) XD XD XD - of cause this could also be the case. "Guessing Time" - i love this term. Sounds like some kind of gaming show on tv.

"Welcome ladies and gentleman to another episode of "Guessing Time" - your favorite computer vision game show"

holger gravatar imageholger ( 2020-06-12 02:46:47 -0500 )edit