I am working in a vehicle detection algorithm,in which I am facing issues due to light from environment and from vehicle headlight. I am using background subtraction and findContor methods for identifying vehicles.
In the below picture a vehicle headlight is being detected as an object. If I use threshold method for reducing this problem during night time, then during day time I am facing issues. Can any one suggest me a direction in which I have to do research for solving this problem.traffic