It depends on where you live I think. If you step outside the US, the attitude towards officers of the law tend to be different, though I'm quite sure there are places like the US. For instance, I knew a guy from Turkey who professed to me that all the police in Turkey are corrupt. They pull you over and try to fuck you so you have to bribe them. It's not that bad in the US, obviously, though I am sure that happens some places.
I am a professed cop hater myself, but when I think about it, it's actually the job that disgusts me. The issue I have with police is that by and large (in my small town and the surrounding small towns) they simply exist as revenue streams for the municipality, and that disgusts me. I despise how they look at everyone with distrust, as if we are all liars and thieves. I also despise how police are allowed to get away with crimes themselves with little nor no repercussions. As an example: in 2005-ish a police officer accidentally ran a stop sign, hit a car killing the 16 and 17 year old occupants (two sisters), and his name was with held from the media and he did not even lose his job. He simply got transferred to a different department. The upsetting thing is the special treatment. It sucks what happened to those girls, but accidents do happen. Don't forget about the cops attacking that kid in Philly, the charges against him dropped because someone was actually filming the event, unbeknownst to the officers. There was a video I saw of a cop pulling over an ambulance that was on it's way to the hospital with an injured person inside of it, lights on and everything.
A lot of that is media, so that is clearly part of the issue here (though most media sources participate in outright hero worship of police). In my experiences, there is a neighboring police department (Clinton Township) who are the most unbearable pricks. If you are driving late, they will pull you over, no matter what. I used to work with behaviorally disturbed kids and be driving home late at night, many times past midnight. I would get pulled over at least once a week. Just for driving late.
I have had a few positive experiences with cops though. I will not say they are all bad. Not all police or municipalities are bad. I was once driving in a town, I got pulled over, and when the cop asked if I knew why he pulled me over I said I did not know, to which he answered: "I thought you looked lost and was seeing if you needed help". He was very pleasant and definitely improved my overall opinion of police. There was another time I was driving a moving van from Phoenix AZ to Eastern PA and I accidentally drove through the EZ pass lane (or whatever it was called in whichever state I was in). So, I pulled over to wait for the people who I was caravaning with and a police officer pulled over with his lights on. I got my papers ready and he simply asked if I was alright. He wanted to make sure there was no problems with my or my vehicle. Very pleasant guy.