I am working on writing our vision software. I am running opencv on a raspberry pi (which I couldn’t for the life of me install opencv with GTK2 on so am streaming the camera feeds). I am trying to tune my HSV Threshold so that only the targets are visible. I followed the steps described here, but keep running into issues with flickering. One frame the targets are filtered perfectly, then next and ugly blob has overtaken the image.
The issue can be seen here. Please note I only filtered hue values to exaggerate the effect.
My initial thought is that it is caused by flickering of the light. All automatic exposure features have been turned off (as far as I can tell, v4l2 is a bit confusing), which leaves me to think the LEDs aren’t getting the right power. Right now the LEDs are powered from a 4.3 volt wall adapter wired to a converter (image. I don’t have a multimeter at my house, but they appear to be getting enough power (they hum if I crank it up any louder). I am confused because there isn’t a noticeable flickering in the normal image stream (though there is in the HSV colorspace).
What suggestions do you have? If it is a power issue, I will can power it from the VRM at school tomorrow.