+ All Categories
Home > Documents > Raspdrones

Raspdrones

Date post: 07-Jan-2016
Category:
Upload: aquarius
View: 23 times
Download: 2 times
Share this document with a friend
Description:
Using pattern recognition to make homes a little safer. Raspdrones. 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 - PowerPoint PPT Presentation
18
Raspdrones Using pattern recognition to make homes a little safer
Transcript
Page 1: Raspdrones

Raspdrones

Using pattern recognition to make homes a little safer

Page 2: Raspdrones

What is pattern recognition?

Extract features from data

Use features in equations

Equations give likelyhood of recognition

Page 3: Raspdrones

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

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

Inspired by the goalkeeper

Page 6: Raspdrones

Shopping list

One raspberry One usb-interface

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

and electronic components

Page 7: Raspdrones

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

Some code

OpenCV Haar-features to

detect faces Custom code to

recognise the faces

Page 9: Raspdrones

Training the recognizer

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

Page 10: Raspdrones

Extracting the faces

Haar-cascades Getting thousands of

images Storing them (Manual) sorting them

Page 11: Raspdrones

Normalize the faces

Detect eyes, nose, mouth, facial edges

Rotate the face to a standard(normalization)

Page 12: Raspdrones

Extract meaningful data

Measuring distances That's it! Well, actually we

have to store it somewhere

Lots of generic code

Page 13: Raspdrones

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

(De-)Soldering

Also not enough time

Page 15: Raspdrones

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

Testing it

Testing on a normal pc/laptop

Page 17: Raspdrones

Problems...

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

Friend or Foe?

Page 18: Raspdrones

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/