Recognising traffic patterns acquired by static cameras