Ask Your Question
0

color detection of an image in opencv using c++

asked 2016-11-05 12:56:56 -0600

Prototype gravatar image

I have an image with a black background and some color. How do I print the color of the image in the console. I basically want to first convert the image to hsv and then by setting the boundary values and if my image is within the given range, it should return a value to another variable. If it is true then using if loops it should be able to print the color of the image in the console. How do I go about it? I am new to opencv and if possible please help me with the code.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-06 18:12:03 -0600

Tetragramm gravatar image

Hi, welcome to OpenCV. Check out the tutorials HERE. The first few on that page answer most of your questions, and the rest are in the other tutorials. The tutorials have lots of sample code in them that should get you started.

I hope that helps you.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-05 12:56:56 -0600

Seen: 5,148 times

Last updated: Nov 06 '16