1 | initial version |
The aspect ratio of cars and moterbikes may be relatively less. But, cars will have more width (and length) You can check the length and width of each blob and set a threshold to classify the vehicles.
Also, you can check the blob properties in an ROI (the junction) to make it more effective. The blob area and aspect ratio wouldn't vary that much within the ROI