Professional Documents
Culture Documents
Face Recognition On The Edge - Reduce Cost, Complexity, and Power Consumption of Your Design PDF
Face Recognition On The Edge - Reduce Cost, Complexity, and Power Consumption of Your Design PDF
COOPER CARNAHAN
APRIL 2020
PUBLIC
Face Recognition Target Applications
• Anywhere you want to embed user personalization and identification
for advanced human/machine interfaces and access control
2 PUBLIC
Minimize Cost, Power Requirements, and Design Complexity
3 PUBLIC
4 PUBLIC
Agenda
• i.MXRT106F Solution Overview
− Features
− Use-cases
− What is a “Solution?”
• Oasis-Lite Inference Engine Overview
− Inference Engine Highlights
• Out-of-Box Demonstration
− Detecting + Registering Faces
− Emotion Recognition
− Verbose Mode Debug Logging
− Detection Resolution
• Q&A
5 PUBLIC
i.MX RT106F – MCU-Based Solution for Face Recognition
• MCU-based face & emotion
recognition
− Arm Cortex-M7, 600 MHz, 1 MB
SRAM
− Lowers BOM cost ~50% compared
to MPU implementations
• Offline
− Eliminates cost, complexity & privacy
issues of cloud-based solutions
• Slashes time-to-market
− Fullreference design, software
source, schematics, BOM & layout
− From concept to launch in <6 months
6 PUBLIC
SLN-VIZN-IOT Dual Camera Adapter
• Uses combination IR + RGB camera
− Cheaper than 3D time-of-flight solutions
• Liveness/anti-spoofing capable
- Designed for consumer security apps
− Defends against color and grayscale pictures
as well as phone displays
• Low-light face recognition
− Good for nighttime applications
• **3D Time-of-flight in development**
7 PUBLIC
MCU-based Face Recognition – Example Use Cases
• Secure Access Hurry up, Dad, get in
− Use: Replace key, card, BLE/phone with user face range with your
− Example Application: Residential Smart Lock phone so I can get in
the house…
• User Authorization
− Use: Control equipment access levels / authorities by
user face
− Example Application: Cooktop, Forklift
• User Identification
− Use: Identify and catalog users (by name or
anonymously – Friction Free Identification)
− Example Application: Retail loyalty program at POS
8 PUBLIC
What is a “Solution?” – Certified, Production Grade HW & SW
OOB HW/SW Software Source
• Production-ready hardware
− Cost and form-factor optimized
9 PUBLIC
i.MX RT106F MCU based solution for face recognition – HW
Parallel
• More information
http://www.nxp.com/mcu-vision
10 PUBLIC
i.MX RT106F MCU solution for face recognition – SW
• Pre-integrated software
minimizes development time
11 PUBLIC
Jumpstart Your Design
MCUXpresso-Compatible SDK
12 PUBLIC
Import Example Projects and Real Source Code
13 PUBLIC
For more information… http://www.nxp.com/mcu-vision
CC [2]5
14 PUBLIC
Slide 15
15 PUBLIC
Slide 16
Face Rec
Image Liveness Face Quality Face Face Face Feature
Image Capturing Face Detection Display
Preprocessing Detection Classification Alignment Recognition Algorithm
Update
16 PUBLIC
Slide 17
• High Accuracy
- The quantization algorithm keeps the accuracy same or very close to raw floating-point data model.
- Benchmark test result confirmed the same accuracy with raw model for facial recognition.
17 PUBLIC
18 PUBLIC
Out of Box Experience
• Face Recognition
− Detection + recognition
− Registering a face
• Emotion Recognition
−3 different configurations enabled by
default
• Debug Logging
−3 different configurations
− Useful for communication with external
devices
• Detection Resolution
− Configureresolution for higher range or
higher performance
• Additional Features
19 PUBLIC
Detecting and Registering Faces
• Point-and-click
• Detection indicated by red LED and box around user’s face
• Press button on-board or use serial command to begin registering a face
20 PUBLIC
21 PUBLIC
“Friction Free” Interface
• Automatically registers unrecognized with unique identifier
• Useful for applications where user input is limited
22 PUBLIC
Enable Emotion Recognition SHELL>> emotion 0
SHELL>> emotion recognition is disabled
Command: “emotion <0|2|4|7>”
SHELL>> emotion 4
2
2 Emotion 4 Emotion 7 Emotion SHELL>> 4
2 types emotion recognition is set
Emotion
Mode Mode Mode
SHELL>> emotion 4
Neutral X X X SHELL>> 4 types emotion recognition is set
Surprised X X
Sad X
Fear X
Disgust X
23 PUBLIC
24 PUBLIC
Debug Messages
• Command: “verbose <0|1|2|3>” Ex. Message:
25 PUBLIC
26 PUBLIC
Configuring Detection Resolution – VGA vs QVGA
VGA Command: “detection resolution <vga|qvga>”
(Face detected
at ~1.4m)
Detection & Detection
Requires
Mode Resolution Recognition Inference
SDRAM?
Range Speed
27 PUBLIC
Additional Out of Box Features
SHELL>> help “camera white_pwm <value>”: PWM pulse width for white led, value should
be between 0 (inactive) to 100
“help”: List all the registered commands
“version”: The version information
“exit”: Exit program
“save n”: Save database into flash memory
“list”: list all registered users
“mode <auto|manual>”: User add mode “updateotw”: Reboot the board and start the OTW firmware update
“add –s”: Stop the former add command issued “emotion”: Emotion recognition types <0|2|4|7>
“del –a”: Delete all users “detection resolution <qvga|vga>”: Set detection resolution and reset
“rename oldusername newusername”: Rename user
“display”: display output_mode <rgb|ir>
“verbose <0|1|2|3> (none-all)”: Debug message detail level setting
“display”: display output_device <usb|riverdi>
“camera ir_pwm <value>”: PWM pulse width for IR led, value should be between 0
(inactive) to 100 “display”: display interface <loopback|infobar>
28 PUBLIC
Arrow Engineering Services
Expertise where you need it – across the entire design cycle
Design & Prototype &
Ideation Validation Testing
I N N O VAT E
New Product Certification Software/Cloud
Introduction Services Implementation
29 PUBLIC
29
Learn, Design & Buy – arrow.com
BUY
Purchase: https://www.arrow.com/en/products/sln-vizn-iot/nxp-semiconductors
Support: Contact your local Arrow FAE for support or send email to: NXPFaceRecognition@arrow.com
30 PUBLIC
30