Former NYPD Chief of Department Louis Anemone, an architect of the department’s CompStat strategy that is credited with driving down crime to record lows since the 1990s, blames Mayor de Blasio for the abuse NYPD officers are enduring at the hands of foul-mouthed, water-lobbing punks.

Recent events in Brooklyn, Harlem and on the subway involving acts of disrespect toward police officers in uniform have provoked the sentiment of anger and shame in me.

Let me explain — I am angry as hell at the “woke,” “progressive,” political establishment of New York City, who are a disgrace to the city of New York.

They collectively have created a situation that can only get worse for the rule of law in New York. They have replaced common sense, impartiality and honesty in the pursuit of happiness in the city with crazy theories about our subconscious prejudices and minority privilege.

The educational and criminal justice systems in this city are under attack by these “progressives,” with not a care for the consequences of these deranged theories.

Our mayor has indicated on a number of occasions now that he had “the talk” with his son about how not to enrage the racist police of the city if he is ever stopped by them.

Mr. Mayor, it is now time for you to have a different “talk” with your supporters in each of the boroughs.

You should begin by explaining to your supporters that you were wrong to attack the motives of the men and women of the NYPD.

You should then apologize to those men and women of the NYPD who put it all on the line, 24/7, 365 days a year for all people in the city — residents or tourists, businesspersons or employees, the homeless or condo dwellers, citizens or aliens.

Your next step should be training and teaching the youth of the city in correct, courteous behavior that is the norm in most civilized cities in the world.

You may also mention the fact that in the future, parents will be held responsible for the behavior of their minor children, while adult children will be answerable to the courts for their behavior.

People must expect consequences for their anti-social and criminal behavior. No excuses, no hard-luck stories, no placing the blame on our institutions of education, health and policing for the lack of civility, rude and dangerous, threatening behavior by far too many youths and adults in our city.

I am ashamed that members of my beloved NYPD — when confronted with behavior that could just have easily been life-threatening — did nothing. They turned their backs on a threat, walked away defeated, all the while in uniform.

We who have served understand that when you wear the uniform, it is not about you anymore.

These people have now become emboldened to take perhaps more serious action against a police officer thinking that there will be no consequences for them. This is a very dangerous situation for the other officers in that precinct, who may meet these same people on the street a day, a week, a month later.

I have been retired for 20 years now, but I have known and witnessed true American heroes who wore that NYPD uniform with pride and courage during their careers. How dare any members of the department disgrace that same uniform by giving in to their selfish fears? Worries about what the department or the public might think of your actions are no justification for not stepping up and doing the right thing.

Shame on you. Resign now.

God bless the men and women of the NYPD. Walk tall, hold your heads high, and never back down.