It depends on the traffic lights. Some have some form of sensors to detect traffic, so that if vehicles are coming one way and no one is waiting from the other direction, the can go or stay green. Some traffic lights have sensors mounted over the road and some use an inductive loop in the road itself.
Of course, they may just be regular CCTV cameras. Nothing much you can do about it apart from sit and wait to see if a letter arrives.