Ask Your Question
0

Normalize illumination variable in a color image (real-time tracking C++)

asked 2014-10-03 10:10:44 -0600

SergioDiaz07 gravatar image

updated 2014-10-03 17:23:25 -0600

Hi community c: I'm doing my final university test and i'm trying to track color objects in real time, specifically blue (i'm noob in opencv). I achieved this but when i change of environment, and light obviously changes, the program doesn't track the object anymore or just track a part of it that had a similar color of the first environment. I investigate about it and i found a lot of information about histogram equalization and normalization by gamma and Gaussian Blur correction, but i didn't get the results that i expected, and to be honest i didn't get it like as i would have like, and also i'm not sure if that methods work in color images...

Doing a summary of the code that i use, i convert RGB to HSV and then threshold the frames captured to find a specific color with a specific interval. Then apply the track code that find the white pixels.

So my question is, how can I eliminate the illumination variable to detect a blue object in differents environments?

I'll appreciate a lot if you could guide me with this, i'm doing my best. thanks :)

edit retag flag offensive close merge delete

Comments

You won't simply fix this. Illuminations is somewhat the hardest parameter to completely remove. There is still alot of active research in it. You should go further than simply segmentation, trying to train a detector for your object.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-06 07:40:37 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-03 18:58:32 -0600

I think it's better if you will put your sample code in github, then put a link in here, so people can test what's the problem

edit flag offensive delete link more

Comments

Thanks for the advice, but I really expect to learn it since the beginning because the code that i used in relation with the histogram, gamma and gaussian methods was just copied and tested, without understand why apply it and how use it correctly. Well and also i dont know if that methods are useful to my case ><

SergioDiaz07 gravatar imageSergioDiaz07 ( 2014-10-03 19:20:54 -0600 )edit

Question Tools

Stats

Asked: 2014-10-03 10:10:44 -0600

Seen: 1,946 times

Last updated: Oct 03 '14