Deptford police have agreed to a $35,000 settlement with a man who alleged he was falsely arrested after recording officers.

DEPTFORD -- A man arrested after he recorded cops and carried cracker crumbs in wax paper that police believed resembled crack has agreed to settle his lawsuit against a Gloucester County department for $35,000.

News of the settlement reached earlier this year was first reported Wednesday by NJ Civil Settlements, which compiles lists of settlements paid by New Jersey government agencies and their insurers to those who have sued them.

Plaintiff John Cokos was stopped by Deptford Township police when he was seen walking to Gloucester County College carrying a video camera in November 2011.

Cokos said police told him there has been burglaries in the area and that the camera made him appear suspicious, according to court papers.

The Wenonah resident said he got into a skirmish with police and was forced against a guardrail after he refused their orders to turn off the recorder. While searching him, a detective and another officer uncovered Saltine cracker crumbs in brown wax paper that police believed to be crack cocaine, the suit alleges.

Cokos was then arrested on drug possession charges.

While being held at the police station, Cokos said one of the officers informed him that "the supposed crack cocaine was, in fact, a piece of saltine cracker."

Police then charged Cokos with obstruction of the administration of law.

He was found not guilty of that charge in January 2012, court papers say.

In agreeing to the settlement, Deptford police don't admit to wrongdoing.

EDITOR'S NOTE: John Cokos says he was not intending that the cracker crumbs he was carrying be mistaken for cocaine.

Jeff Goldman may be reached at jeff_goldman@njadvancemedia.com. Follow him on Twitter @JGoldmanNJ. Find NJ.com on Facebook.