I got a damn ticket...

Contest it?? Your word against his. Tried this once, was asked by the judge "now why would I take the word of a citizen that is trying to get out of paying a fine over the word of a sworn officer?"

Because his job is to generate revenue for the city/county/state.