18
Facial Recognition and Learning with Embedded Computing on Raspberry Pi by Kelly Deckelman Brandon and Jigar Jadav SMARTER NYU-Poly

Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

Facial Recognition and Learning with Embedded

Computing on Raspberry Pi by

Kelly Deckelman Brandon and Jigar JadavSMARTER NYU-Poly

Page 2: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Prof. Vikram Kapila – for the opportunity

• Jared Frank – for all the help, support, and laughs

• Valentin Siderskiy – for KNN

• David Lopez - for his insight on Single Board Computers

• The Grad Students, High School Students, and Teachers - for all their help and support and for their beautiful test faces

Acknowledgements

Page 3: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

CAESAR’s Mental Issues ☺

• Two problems associated with the “brain”:

1.Processing and control – embedded computing (Hardware)

2.Face recognition and learning – algorithms and data structures (Software)

Page 4: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

Face Recognition & Learning

Recognition

• Detect face in video frame

• Compare face to existing stored images

• Predict label for detected face

Learning

• Analyze strength of prediction

• Conditions for weak prediction

● A new perspective of a known

● A never-seen-before face

(FRL)

Page 5: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Laptop running on Ubuntu (Linux)

• Using OpenCV and Fisherfaces

• Detecting two known subjects with confusion

FRL Current Conditions

Page 6: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Use the Local Binary Pattern Histogram (LBPH) model from OpenCV instead of Fisherfaces

• Use a modified K Nearest Neighbors (KNN) algorithm to improve recognition and introduce Learning

• Use a Threshold and comparison of subsequent KNN blocks to tweak and further improve recognition and learning

FRL Proposed Solution

Page 7: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

System Flow

Page 8: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Threshold may vary from location to location depending on lighting (can this be automated?)

• Improving recognition of a face by storing a new image without prompt is risky

● A face in the wrong face file ruins recognition for both faces

● Currently such a file can only be manually deleted

FRL Challenges

Page 9: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• System is currently setup for testing

• Tests run less than 1 minute (as seen in demo)

• Participants may be recorded numerically for anonymity

• Some testing run this morning

FRL Testing

Page 10: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

● Run Kelly’s code on the Raspberry Pi without any modifications

● Hardware options:● Gumstix - bigger learning curve, smaller

community, expert users● Raspberry Pi - smaller learning curve, bigger

community, beginner level● Winner - Raspberry Pi

Hardware - Embedded Computing onSingle Board Computer (SBC)

Raspberry Pi (Rpi)

Page 11: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Laptop physically connected to CESAR

• Laptop running face detection program

• Not mobile

Current Hardware Setup

Page 12: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Using a Single Board Computer like Raspberry Pi

• Connect wirelessly on WI-FI for any control• Overclocking the Rpi to speed up face

detection on Rpi• Use openGL library for image processing (at

software level)

Proposed Hardware Solution

Page 13: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

● Started with GumStix - 4 weeks not enough● Raspberry Pi - Broken board● SSH and VNC wireless connection● Compiling openCV libraries ● Unable to support 640x480 resolution● Tweaking the hardware:

● Overclocking the CPU ● Reassigning RAM to GPU and CPU

Single Board Computer Challenges

Page 14: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

• Rpi is currently setup to run on the follow

specs:

• CPU: Overclocked to 900Mhz

• RAM: Evenly split between CPU and GPU

• No SSH or VNC connections

• Unmodified face detection algorithm of Kelly

running at 160x120 resolution

Rpi Testing

Page 15: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

FRL Demo on Ubuntu

Page 16: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

Rpi - Setup and Proof of Concept

Raspberry Pi Setup Rpi - Proof of concept

Page 17: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

● Understanding limitations of Single Board Computers (SBC) and look at alternate SBCs

● Test FRL for learning & recognition efficacy, and possible changing variables: K, Threshold, Recognition Model

● Modify the FRL to run on SBC

● Modified CPU to specifically run processor hungry computer vision applications

Next Steps

Page 18: Facial Recognition and Learning with Embedded Computing on ...engineering.nyu.edu/mechatronics/smart/pdf/SMARTER2013/kelly_jigar_ppt.pdf · Facial Recognition and Learning with Embedded

Questions