SURVIVE repository which contains 3 ways of detecting cars running red light. Two of them are hardware based, an ultrasonic sensor and a pressure sensor, and the third solely uses computer vision. The computer vision one, has an area of effect that only checks for cars.
The software is fully open source, MIT licensed.