function unique_vehicle_detection(f) ⊲ record frames f of
vehicles traveling in the opposite direction
for each consecutive frames fi and fi+1 do
N =count_si f t_f eatures(fi , f(i+1)); ⊲ Compare with the threshold
if N > 15 then
unique(i)=f alse;
else
unique(i)=true;
end if
end for
end function
function Increase Count(unique) ⊲ Increase the count if the
unique vehicle is being seen minimum 5 times
count=count ++
end function