It is quite risky, but sure camera didn't activate once as you cross the signal when it was green.
It acts only when the singal is Red or sometime yellow when somebody crosses the signal light post.