It may very by state, but here in WA, the easiest way to get a dismissal of a photo enforcement ticket is to claim you were not the person who was driving the vehicle. All you do is fill out a form called Declaration of Non-Responsibility.
Once the document is filed with the court is that one of the clerks dismisses the ticket in the system. A judge does not even review the form. The form Declaration of Non-Responsibility asked you who was driving the vehicle. You do not need to incriminate any other party, but just so you know if you put a person’s name there the court does not follow up and then send them a ticket. Under law Automated traffic safety cameras may only take pictures of the vehicle and vehicle license plate and only while an infraction is occurring. The picture must not reveal the face of the driver or of passengers in the vehicle. The ticket is just dismissed. You can make up a name as well; John Smith and put an address, and the court would not be the wiser and will dismiss the ticket. Your declaration is enough for the court to dismiss the ticket. JUST REMEMBER, you do not need to go to court or to contested hearing to proceed with this option, all you do if file this with the court once you get the ticket. If you to present this at a contested hearing in person.
The city actually loses money when a ticket goes to court. The court must go through the standard process of producing a docket and arranging for a judge to hear the case. With the additional cost and labor, dismissal of the ticket becomes a more practical option.
I have never received one, but being the most of the revenue goes to Arizona-based American Traffic Solutions (ATS) the camera providers, I would not fill guilty for following the above process.