Histogram equalization

I am working on a project using AI edge impulse to detect an actual rat. My supervisor suggested using histogram equalization in the raw images I obtained. However, edge impulse does not seem to have this feature. I was thinking of using OpenCV as it can do histogram equalization. Is it possible to add the histogram equalization block from OpenCV to Edge Impulse?

Hello @Yibin first of all welcome to the Edge Impulse community :wave:

Do you think you can share any of your images to understand the contrast of them? The histogram equalization may be a pre-processing block? Did you try to use something like cv2.equalizeHist()?

In the other hand, did you train your object detection model with Edge Impulse Studio? Is the accuracy good enough?

If you end up training both ways, let us know! I’ve pondered adding histogram equalization to the image dsp block, but I’ve yet to find a dataset where it had much impact on final accuracy.

LSCT260117-04_30_48

these are how the images look like in low light conditions

1 Like