Answer the question
In order to leave comments, you need to log in
How to count the number of objects in a photo in openCV python?
Hello.
Please, tell a beginner what method or approach is better to apply to determine the number of cars in the photo. The photo will be taken, for example, from a bridge over the road, that is, the cars are visible from above.
Viewed the material. Determination of contours, angles...
But there is a problem, how to define different cars, if one partly overlaps the other?
I'd love to hear more advice.
Answer the question
In order to leave comments, you need to log in
Try Haar cascades:
https://pythonspot.com/en/car-tracking-with-cascades/
Here is another example with cars https://github.com/andrewssobral/vehicle_detection...
You just need to find a suitable cascade or train it yourself (there are some examples in the examples)
It is more difficult to determine overlapping cars, but you can come up with some solutions (well, or build a cascade with two cars at once)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question