Skip to content

Appendix A. Specifications#

Runtime performance#

Mobile environment#

Face detection performance depends on input image parameters such as resolution and bit depth as well as the size of the detected face. The iOS platform uses mobilenet by default.

Input data characteristics:

  • Image resolution: 640x480px;
  • Image format: 24 BPP RGB;
  • Typical face size: ~260x260px.

IOS#

  Performance measurements are presented for ARM of iPhones X, 7 and 6 in tables below. Measured values are averages of at least 100 experiments. Mobilenet is used by default. The number of threads auto means that will be taken the maximum number of available threads. For this mode use the -1 value for the numThreads parameter in the runtime.conf. This number of threads is equal to according number of available processor cores. We strongly recommend you to follow this recommendation; otherwise, performance can be significantly reduced. Description of accoding settings you can find in "Configuration Guide - Runtime settings".

"Performance of iPhone 7. Extractor and matcher"

Type Model NumThreads Average Units
Extractor 56 1 89.2 ms
56 auto 92.4
Matcher 56 - 1.0 M matches/sec

"Performance of iPhone 7. Extractor batch"

Type Model NumThreads Average (ms) Batch Size
Extractor Batch 56 auto 94.0 1
56 auto 109.0 4
56 auto 114.0 8

"Performance of iPhone 7. Detection and estimation"

Measurement Threads Average (ms) Batch Size
Detector (FaceDetV2) 1 13.0 / 12.0 / 51.0 -
(Easy/complex/6 faces) auto 13.0 / 12.0 / 51.0 -
-
Warper 1 2.0 -
auto 2.0 -
Head Pose by Image 1 0.9 -
auto 0.9 -
Head Pose Batch auto 0.9 1
auto 0.8 4
auto 0.8 8
Eyes 1 5.0 -
auto 5.0 -
Eyes Batch auto 4.9 1
auto 4.8 4
auto 4.8 8
AGS 1 0.9 -
auto 0.9 -
AGS Batch auto 0.8 1
auto 0.8 4
auto 0.8 8
Best Shot Quality 1 1.0 -
auto 1.0 -
Best Shot Quality Batch auto 0.9 1
auto 0.9 4
auto 0.9 8

"Performance of iPhone 6. Extractor and matcher"

Measurement Model Threads Average Units
Extractor 56 1 182.0 ms
56 auto 184.0
Matcher 56 - 0.25 M matches/sec

"Performance of iPhone 6. Extractor batch"

Measurement Model Threads Average (ms) Batch Size
Extractor Batch 56 auto 183.0 1
56 auto 218.0 4
56 auto 298.0 8

"Performance of iPhone 6. Detection and estimation"

Measurement Threads Average (ms) Batch Size
Detector (FaceDetV2) 1 30.0 / 25.0 /111.0 -
(Easy/complex/6 faces) auto 28.0 / 25.2 /111.0 -
-
Warper 1 4.4 -
auto 4.3 -
Head Pose by Image 1 2.0 -
auto 2.0 -
Head Pose Batch auto 2.0 1
auto 1.7 4
auto 1.6 8
Eyes 1 16.0 -
auto 16.0 -
Eyes Batch auto 16.0 1
auto 17.0 4
auto 18.0 8
AGS 1 4.0 -
auto 4.0 -
AGS Batch auto 4.0 -
auto 3.2 -
auto 3.1 -
Best Shot Quality 1 4.0 -
auto 4.0 -
Best Shot Quality Batch auto 4.0 1
auto 3.3 4
auto 3.2 8

Descriptor size#

The table below shows size of serialized descriptors to estimate memory requirements.

"Descriptor size"

Descriptor version Data size (bytes) Metadata size (bytes) Total size
CNN 54 512 8 520

Metadata includes signature and version information that may be omitted during serialization if the NoSignature flag is specified.

When estimating individual descriptor size in memory or serialization storage requirements with default options, consider using values from the "Total size" column.

When estimating memory requirements for descriptor batches, use values from the "Data size" column instead, since a descriptor batch does not duplicate metadata per descriptor and thus is more memory-efficient.

These numbers are for approximate computation only, since they do not include overhead like memory alignment for accelerated SIMD processing and the like.

Feature matrix#

Mobile versions come in two editions: the frontend edition (or FE for short) and the complete edition.

The table below shows FaceEngine features supported by different editions of mobile platform.

"Feature matrix"

Facility Module Complete Frontend
Core Yes Yes
Face detection & alignment Face detector Yes Yes
Parameter estimation BestShotQuality estimation Yes Yes
Color estimation Yes Yes
Eye estimation Yes Yes
Head pose estimation Yes Yes
AGS estimation Yes Yes
Face descriptors Descriptor extraction Yes No
Descriptor matching Yes No
Descriptor batching Yes No
Descriptor search acceleration Yes No

See file "doc/FeatureMapMobile.htm" for more details.

Back to top