raspdrones using pattern recognition to make homes a little safer

Post on 16-Jan-2016

219 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Raspdrones

Using pattern recognition to make homes a little safer

What is pattern recognition?

Extract features from data

Use features in equations

Equations give likelyhood of recognition

The problem

Some people are not welcome in my home

Politicians, Tax people, bailiff, salesmen

I want to keep them out

But how?

Solution

Use pattern recognition Detect and recognize their face Interface with some hardware Finally a great use for the Raspberry We get to write some code And even get to solder stuff!

Inspired by the goalkeeper

Shopping list

One raspberry One usb-interface

board (KA8055) Projectile weapons Servo-motors Webcam Various connectors

and electronic components

Prepping the raspberry

Opencv And required libraries Compilers Waiting for the

installation to finish... Add powered usb-hub And wait some more

Some code

OpenCV Haar-features to

detect faces Custom code to

recognise the faces

Training the recognizer

It watches online videos of course And classics from my own collection

Extracting the faces

Haar-cascades Getting thousands of

images Storing them (Manual) sorting them

Normalize the faces

Detect eyes, nose, mouth, facial edges

Rotate the face to a standard(normalization)

Extract meaningful data

Measuring distances That's it! Well, actually we

have to store it somewhere

Lots of generic code

Recognizing

We do the same steps as before

But now we try to match up the data

If there's a match, we have recognized someone

Almost never exact match

Sadly not enough time

Setup is there though

(De-)Soldering

Also not enough time

Connecting it all

Just attach it to the usb-ports

Run the code And get one frame

per 10s Lowering video

quality should improve this

Testing it

Testing on a normal pc/laptop

Problems...

Avoiding friendly fire Making it cat safe Make it run faster Better recognition Tons of libraries

Friend or Foe?

Presentation & code available next week

www.vankoert.org/talks/20130331

awesome cat video: http://www.youtube.com/watch?v=PXRX47L_3yE

OpenCV:

http://opencv.org/

top related