I need to track an object in a video with MATLAB. There is an example frame from the video above. I need to track that car that carries the pendulum. But my problem is there is a bar behind the car that has similar color to the car. So I can not just apply img2bw with certain threshold to find the car.
What can I do to isolate it? Since it is my homework I am not asking for a complete code. I want your advice.