You are on page 1of 6

DM36x IPNC:

Face Detect & Recognition

Document Version 1.0

DM36X Face Detection


Face Detection (FD)
Face Detection is available as hardware IP and can detect up to 35 faces
in different directions.
User can set the confidence level for detecting a face. The angle of tilt is
also provided along with each face detected.
Works on 8-bit gray scale data only with input resolution of 320x192
Can detect minimum face size of 20x20 in an input of 320x192
Comes with a Linux kernel driver as part of DVSDK on DM365
Comes as part of IPNC Reference Design in the form of application code
as well as kernel driver

Performance
On ARM@297 MHz and DDR@270 MHz, FD engine can operate at
135MHz
It takes 15 milli sec to detect multiple faces of size of 20x20 in a 320x192
input image.
The input image to FD is scaled down from the full-size YUV data.
ARM load is of the order of 1% due to the Face detection

TI Information Selective Disclosure

DM36X Face Recognition


Face Recognition (FR)
Face Recognition is an ARM based implementation for recognizing the
face from a pre-loaded database of faces
Algorithm supports run-time addition and deletion of registered faces in
the database.
It uses the information from hardware FD engine for the co-ordinates of
face and angle of tilt
Algorithm has the option of configuring the confidence threshold to control
false recognition.

Performance
On ARM@297 MHz and DDR@270 MHz, for input size of 320x192 and
the face recognition database of 10 faces
It takes 180-190 msec to identify a face against the database. This is worst
case when all the faces have to be compared and best match is to be reported.
It takes 185 msec for registering a new face to the database. The register
process includes detection and storing the information in the database.

Memory requirement ~500-600KB (For 10 faces in database). Each


additional face adds nearly 0.5KB

TI Information Selective Disclosure

DM36X Face detection / recognition

Without Face Detection /


Recognition

With Face Detection

With Face Recognition


recognized as User 1

* estimated
TI Information Selective Disclosure

DM36x Face Detection


Face Detection APIs
DRV_faceDetectOpen Allocates required memory and initialize
the face detection hardware engine. Memory can be allocated
outside in the application too.
DRV_faceDetectRun Detects the Faces in the current frame and
reports the co-ordinates, confidence level and angle of tilt.
DRV_faceDetectClose Release the memory and disable the
face detection.

Face Detection Control Parameters


Threshold  confidence threshold from 0 to 15. Algorithm will
return success for face detection if it meets the minimum threshold
condition
Direction  Search direction. Possible values UP, RIGHT, LEFT
MinimumFaceSize Minimum Face Size to search. Possible
values are 20x20,25x25,32x32,40x40

TI Information Selective Disclosure

DM36x Face Recognition


Face Recognition APIs
ALG_facialFeatureOpen - Allocates required memory and initialize the Face Recognition.
ALG_facialFeatureRun
Register the face(s) which was detected by FD in to the internal database (save the
face data) or
Identify (Recognize) the face(s) which was detected by FD from the faces registered in
to the internal data base.
ALG_facialFeatureClose - Release the memory and disable the face Recognition.
ALG_facialFeature_DeleteUser Used to delete a particular user_id from the album
database
ALG_facialFeature_DeleteAllUser Used to delete all user details from the album
database
ALG_facialFeatureGetMem Used to do all memory allocation done to run this algorithm
ALG_facialFeatureRelMem Used to relase all memory after closing the algorithm
ALG_fffr_SetRegConfig Sets confidence value for Face Register functionality
ALG_fffr_SetIdentifyConfig Sets confidence value for Face Recognition functionality

Face Recognition Control Parameters

MaxUserNum  Maximum number of users that can be stored in database/album


MaxDataNumMaximum number of images/user registered in album
FaceRegistrationConfidence  Confidence level for the registered face
FaceRecognitionConfidenceThreshold  Threshold for the input face confidence when
compared to the faces in the database
searchMethod  Verify against a particular face in database OR Identify the input face
comparing with all faces in the database

TI Information Selective Disclosure

You might also like