Hello, I am trying to make an AI to identify insects using openCV.
My scenario will be something like a glue trap for insects, and I have to detect and count the species in that trap (more importantly the fruitfly)
This is an example of an image i would have to detect:
I am a beginner with openCV, so i was wondering what would be the best aproach for this problem, Hog + SVM was one of the aproaches i could find online, but I would like more opinions on this.
If you need any more information feel free to ask,
Thank you!
In my image we should be able to identify and count how many fruit flies(the small orange ones) are in the trap. I only care about the fruit flies, maybe its also good to be able to identify others for comparision but i mostly need to identify the fruit fly.
Sorry for the fingers this was just an example, it should usually be only the trap, but i cant really find a good example.
Yes, from what i have seen, HOG might have trouble with this kind of data… i have seen YOLO and CNN working better but i am not sure if i can use them with only openCV.
About the “single class” i have seen an example where people use one class for more than one species to make it up for the lack of images in the dataset, but this is just stuff i researched, i dont have experience.
Yes, getting the images will maybe be a problem, its a one person job and i havent really found any datasets online about this. that is also why its hard for me to test which algorithm would work, i would need to know from experience
This pipeline will be necessary for both training and inference.
Try classical computer-vision methods starting with simple methods like blob size and color. Advance with feature-descriptor methods as mentioned (ORB HOG etc.)
If not sufficient, you will have the dubiously fun (yikes!) job of labelling a dataset.
For a CNN architecture, try reading up and implementing a Siamese-Network.
Hi man! Did you get anything out of this project? Now I’m doing exactly the same and I have no idea about image processing with opencv!! hopefully you can help me!