Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# image analysis library [closed]

I have to develop a small application that gets some images and then counts the items in the image. It is something like a satellite image with a road and I need to count the cars.

Can you give me some hints where to start? I am completely lost.

Thanks a lot, Radu

like image 695
Radu D Avatar asked Nov 24 '25 12:11

Radu D


2 Answers

Have you checked out OpenCV? Emgu CV provides the .NET bindings

like image 96
steinar Avatar answered Nov 26 '25 02:11

steinar


Image processing library:

OpenCV or if you have Matlab with the image processing toolbox it would be very nice.

Algorithm wise

Counting cars on a road is not as simple as it appears. Lets suppose they have a invariant scale (say 1.0).

  1. Create yourself a Hough transform algo to vote for rectangles with about the same width and height as your cars.
  2. In your vote buffer find the 'n' greatest vote scores and this is your number of cars.

This is not so complicated and OpenCV can be pretty useful. You can estimate the maximum value of your hough score for each car so you can set thresholds to skip outliers.

like image 21
code-gijoe Avatar answered Nov 26 '25 01:11

code-gijoe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!