Question: n You are required to propose and implement an algorithm to count the number of vehicles from a traffic camera. In particular, your input is

n You are required to propose and implement an algorithm to count the number of vehicles from a traffic camera. In particular, your input is an image. And your output is the number of vehicles in the image, and the bounding boxes covering the vehicles. For your simplicity, the vehicles include cars, buses, trucks, and school buses. Write a MATLAB script which reads the input image, performs the vehicle counting, visualizes the bounding boxes, and shows the output. You may use the attached images: test1.jpg, test2.jpg, test3.jpg, test4.jpg, test5.jpg, and test6.jpg to develop and test your algorithm. There are up to 6 vehicles in the testing images. Hint: The vehicles usually have different appearance from the background. You may segment all vehicles from the background first. Then, for all the foreground, you split into different vehicle instances. Finally, you will be able to count the number of vehicles and visualize the bounding boxes. Examples: Number of vehicles in the image: 1 Number of vehicles in the image: 2 

 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!