A man facing court for a minor traffic ticket ended up in handcuffs after accidentally dropping a bag of cocaine right in front of the judge.

Lemar Reed, 39, fronted Lorain Municipal Court in Cleveland, Ohio last week to enter his plea on the traffic charge.

But when Reed walked up to speak to the judge, he unknowingly dropped the drugs onto the floor.

Scroll down for video

Lemar Reed, 39, fronted Lorain Municipal Court in Cleveland, Ohio last week to enter his plea on a minor traffic charge before he accidentally dropped a bag of cocaine on the floor

Security cameras from inside the courtroom captured Reed fidgeting with his hat as the judge sorted through his documents.

As Reed flipped his hat and placed it under his arm, the small bag of cocaine could be seen tumbling to the ground.

Soon after, an oblivious Reed left the courtroom with a fine.

The cocaine remained on the floor for about an hour before the courtroom's security officer noticed the drugs.

Security cameras from inside the courtroom captured Reed fidgeting with his hat as he stepped up to enter his traffic ticket plea

As Reed flipped his hat and placed it under his arm, the small bag of cocaine could be seen tumbling to the ground (pictured at his feet)

'He picked it up, looked at it, and saw a white powdery substance. We had it field tested by the Lorain Police Department and it tested positive for cocaine,' Judge Mark Mihok told Fox8.

Court officials reviewed the surveillance footage until they pinpointed the moment the drugs were dropped.

A warrant was immediately put out of Reed's arrest.

'He was only here for a traffic ticket. He made a simple traffic ticket with only the penalty of a fine into a felony. So, not a good day for him,' Judge Mihok said.