Ask Your Question
0

Fish detection. Is haartraining a good approach ?

asked 2012-06-27 09:36:20 -0600

zx9r gravatar image

updated 2012-07-04 08:49:02 -0600

Kirill Kornyakov gravatar image

I would like to count the number of fishes in a given image. All the fishes are from the same specie, so they are more or like the same shape.

This is an image example of what i'm going to see (not so blurry): http://i49.tinypic.com/w19uvn.jpg

Is it ok to train haar cascade or can I use another method (more accurate/faster) ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-06-27 11:03:16 -0600

zx9r gravatar image

Thank you for your answers. I will try using blobs, indeed I only need to count fishes and they are the only objects that will appear in the images.

One last question. If some fishes are partially overlapped, is it still possible to get good results with blobs ?

edit flag offensive delete link more

Comments

1

Overlapping fishes is the difficult case. You can try erode blobs before counting to separate blobs from each other.

Ilya Lysenkov gravatar imageIlya Lysenkov ( 2012-06-28 11:50:02 -0600 )edit

ok very good

bidoki gravatar imagebidoki ( 2017-04-26 05:12:55 -0600 )edit
1

answered 2012-06-27 09:49:55 -0600

icedecker gravatar image

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.

edit flag offensive delete link more

Comments

Agree. In the image attached intensity gradients are weak. That means that Haar will not be able to detect important features. It also performs bad if the object is rotated, but it is normal for fish. So, I agree that you should consider some custom algorithm, like blob counting.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-06-27 10:43:28 -0600 )edit

You should probably forget about fishes and try general object counting approaches. Check people counting approaches: http://scholar.google.ru/scholar?&q=people+counting.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-06-27 10:46:25 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2012-06-27 09:36:20 -0600

Seen: 4,488 times

Last updated: Jun 27 '12