raspdrones using pattern recognition to make homes a little safer

18
Raspdrones Using pattern recognition to make homes a little safer

Upload: natalie-hines

Post on 16-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Raspdrones Using pattern recognition to make homes a little safer

Raspdrones

Using pattern recognition to make homes a little safer

Page 2: 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

Page 3: Raspdrones Using pattern recognition to make homes a little safer

The problem

Some people are not welcome in my home

Politicians, Tax people, bailiff, salesmen

I want to keep them out

But how?

Page 4: Raspdrones Using pattern recognition to make homes a little safer

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!

Page 5: Raspdrones Using pattern recognition to make homes a little safer

Inspired by the goalkeeper

Page 6: Raspdrones Using pattern recognition to make homes a little safer

Shopping list

One raspberry One usb-interface

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

and electronic components

Page 7: Raspdrones Using pattern recognition to make homes a little safer

Prepping the raspberry

Opencv And required libraries Compilers Waiting for the

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

Page 8: Raspdrones Using pattern recognition to make homes a little safer

Some code

OpenCV Haar-features to

detect faces Custom code to

recognise the faces

Page 9: Raspdrones Using pattern recognition to make homes a little safer

Training the recognizer

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

Page 10: Raspdrones Using pattern recognition to make homes a little safer

Extracting the faces

Haar-cascades Getting thousands of

images Storing them (Manual) sorting them

Page 11: Raspdrones Using pattern recognition to make homes a little safer

Normalize the faces

Detect eyes, nose, mouth, facial edges

Rotate the face to a standard(normalization)

Page 12: Raspdrones Using pattern recognition to make homes a little safer

Extract meaningful data

Measuring distances That's it! Well, actually we

have to store it somewhere

Lots of generic code

Page 13: Raspdrones Using pattern recognition to make homes a little safer

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

Page 14: Raspdrones Using pattern recognition to make homes a little safer

(De-)Soldering

Also not enough time

Page 15: Raspdrones Using pattern recognition to make homes a little safer

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

Page 16: Raspdrones Using pattern recognition to make homes a little safer

Testing it

Testing on a normal pc/laptop

Page 17: Raspdrones Using pattern recognition to make homes a little safer

Problems...

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

Friend or Foe?

Page 18: Raspdrones Using pattern recognition to make homes a little safer

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/