1 | initial version |
If you want to detect any fish (not any specific specie), you can use binarization and blobs. OpenCV have a function that count the total number of blobs.
But if you need to detect only a specific specie of fish (in a picture that have other species), maybe haartraining is enough, but I don't know if it will get good results.