Lego detection using OpenCV (Mark II)

Electric Soup

Arkwood was concerned that Lego policemen were watching him smoke marijuana. To ease his paranoia, I created an OpenCV haar cascade classifier for detecting Lego policemen. I attached a webcam to my Raspberry Pi computer to take photos of the plants on Arkwood’s windowsill, where he was convinced the cops were patrolling. Python code ran on the Raspberry Pi, using the classifier to detect police officers in each of the webcam snaps. My initial post somewhat relaxed his addled brain.

‘But what if the policemen are only on their lunch break!’ he sobbed, ‘I have to stub out my reefer unnecessarily.’ No matter how hard I tried, I could not placate his crazy notions. ‘Okay,’ I said, ‘I will create an additional classifier, that will detect the police motorbike. That way, you will only be alerted if the fuzz are on duty.’

In order to create a classifier for detecting…

View original post 334 more words

Advertisements
By emoztar

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s