It may work, but it will be difficult. From the images you provided, I think you may have a good chance of finding isolated bees, but it will be difficult to find those that are crowded together. In the latter case, it is difficult to see the outline of the shape of each bee, and some bees cover other bees. But you wonβt know until you try. :)
Also, be aware that a cascading object detector does not handle rotation in the plane. This means that you will have to train several detectors for different bee orientations. You can use the trainCascadeObjectDetector function to train the detectors.
You will need at least several hundred positive samples of each orientation. You can use the Image Image Labeler application , which comes with the latest version of the Computer Vision System Toolbox for marking bees in images.
You will also need a lot of honeycomb images without any bees on it for use as negative images.
As for the functions, I would start with HOG or LBP, because they are much faster than Haar. If you get encouraging results, you can try Haar to see if you can improve your accuracy.
Dima
source share