Differentiate cars and motorcycles in image processing
2 次查看(过去 30 天)
显示 更早的评论
I'm currently doing a project of transportation counting but is it possible to count cars and motorcycles separately? Is it possible to count the cars and motorcycles separately by their area of the vehicle? If it is possible, how do I draw a boundary around them and compare both areas of the vehicles? Thanks in advance.
0 个评论
回答(2 个)
Walter Roberson
2018-6-29
No, it is not possible. See my illustrated proof at https://www.mathworks.com/matlabcentral/answers/264009-i-need-a-coding-to-detect-the-cars-in-an-images
0 个评论
Florian Morsch
2018-6-29
Depending on your surrounding it might be possible.
You could use a cascade object detector and train it to recognize motorcycles from a specific angle. therefor you would need thousands of motorcycle pictures from that specific angle. The same goes for cars, train another detector for cars in the same specific angle.
If you now take a video in said angle you can use those detectors to find and track the cars/motorcycles. Thats just a general idea, i also might not work, but with enough time and training those detectors are really useful for such things.
5 个评论
Florian Morsch
2018-6-29
Depending on your setup. If you plan to carry around a camera and film different spots then most likly no. If you have a static camera it might work (take a look at the link with gaussian mixture models i posted).
The object detector will need a lot of training data (for so many cars id say 5k-10k positiv images and 20-40k negative maybe?). And then you would have to train another for motorbikes ( no, you cant use one detector for both ^^ )
The other option would be a CNN.
Walter Roberson
2018-6-29
You can use nearly exactly the same shell but different engines and one would be a car and the other would be a motorcycle. Maybe the grill would have to be slightly different for cooling purposes, I don't know. So you cannot differentiate between the two based on area or color or profile.
Because aerodynamics do not change, until you get to rocket powered vehicles, the profiles of light racing vehicles converge regardless of whether the vehicle is car or motorcycle or direct human power (bicycle / tricycle) or human power with capacity for storing energy (even if just flywheel). The competition human powered vehicle I posted the image of before looks a lot like some car images I found such as for cars competing for low energy consumption. But the car version has to be counted and the bicycle must not be.
In the area that I live in, the electric bicycle that I posted the image of is classified as a motorcycle for licence purposes, which is unfortunate because the insurance rates for motorcycles are much higher than for cars (the accident rate is lower, but accidents between cars and motorcycle or bicycle are much less serious for the car driver). So all of the apparent bicycles have to be closely examined to see if they have a motor assist anywhere, including carefully recognizing models because two or more manufacturers specialize in hidden motor assist. Scooters that have motor assist are likewise legally motorcycle class here. But in some jurisdictions, motor assist does not change the class of vehicle until 1/2 horsepower or 3/4 horsepower
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Recognition, Object Detection, and Semantic Segmentation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!