Pedestrian crosing camera - bintang
I passed a set of traffic lights at a pedestrian crossing on amber. They changed to red as my A pillar drew level. There was no flash but there were small black, hooded cameras mounted high over the crossing and angled sharply down to it, possibly with smaller, unhooded cameras pointed up and down the road (difficult to say owing to foliage of surrounding trees).

What is the prurpose of these cameras? Am I likely to be hearing from the poilice?
Pedestrian crosing camera - mfarrow
They're most likely proximity sensors for the crossing and road. Don't worry about them.
Pedestrian crosing camera - Bromptonaut
If these are like the items on traffic lights here (Northampton) they seem to be part of the system that detects the presence of vehicles. Enforcement cameras are usually a few feet from the junction to a give clear view of the offence.

You would have a case to answer though. Amber means stop but with the possibility of a defence around it being unsafe to stop. Passing red is an absolute offence.
Pedestrian crosing camera - Dynamic Dave
The camera is called a microwave vehicle detector, its purpose is to monitor traffic flow.

A stop line detector loop is cut into the road surface where cars stop waiting for the signals to change. The detectors help the signals respond to the changing flow of traffic throughout the day.