Typically, when officers are charged with crimes, their colleagues come to court in a sea of blue uniforms to support them. But on Monday, not one officer appeared in court with Detectives Martins and Hall.

According to a detailed account delivered by a prosecutor, Frank DeGaetano, the incident occurred on Sept. 15, when Detectives Hall and Martins were conducting operations in the Coney Island neighborhood as part of an antidrug unit, Brooklyn South Narcotics. Around 8 p.m., Mr. DeGaetano said, the detectives broke off from the rest of their team and stopped an Infinity coupe in Calvert Vaux Park. The 18-year-old woman was driving, he said; two of her friends, both men, were also in the car.

As the detectives — both in plainclothes — approached the car, one of them shined his flashlight through the window and saw the young woman adjusting her bra. When Detective Hall asked if she was hiding something, she told him she was simply adjusting her nipple piercing, Mr. DeGaetano said. The detectives asked her to prove it, and the young woman lifted up her shirt, showing them her breasts.

A search of the car revealed a small amount of marijuana in a cup holder. The woman also had some marijuana and a few pills of Klonopin, an anti-anxiety drug, in her handbag, Mr. DeGaetano said. At that point, he added, the detectives took the woman from the car, placed her in handcuffs and put her into the second row of their Dodge police van. Driving off, they told her that she would be released within a few hours at the 60th Precinct station house.

Mr. DeGaetano said that Detective Martins used his cellphone to call the woman’s friends and explicitly instructed them not to follow the van, using a blocking function to disguise the number he was calling from.