Red light cameras should effectively catch 95%+ of people who blow through them. Speeding cameras (that are actually on, looking at you NYC) that are super visible are a known deterrent to speeding in Europe. Even parking - in some modern garages they have sensors to tell you when spots are full/empty. Why can't they use similar tech for parking tickets, street cleaning, etc?
I feel like I wouldn't be upset about rule enforcement if I knew everyone was more or less following them. What makes me ignore rules is when I see people taking advantage of them over and over without repercussions. Then, introducing human elements where the cop gets to decide who to ticket adds a bunch of bias that we haven't been able to correct. It's one of the countless examples of humans over-complicating things to the point of dysfunction.