🗒️
notes
  • Journal
  • URLs
  • Java Card
    • SCP02
    • Rapid Notes
    • _FIXVALS_
    • Mifare
    • Chain Of Trust
  • Encoding
    • CBEFF
    • Bytes
  • Snippets
    • JNI_OnLoad
  • float to byte[]
  • Protobuf
  • C/C++
    • Containers
    • Basics
    • JNI
    • gcov
    • Castings
  • chess
    • Untitled
  • Compression
    • Untitled
  • Snippets
    • Untitled
  • Build Systems
    • Maven
    • Windows
  • Gradle
  • CMake
  • Java
    • Untitled
    • Certificates
  • Android
    • Mifare
  • Python
    • ctypes
  • WebSub
    • References
  • Spring Boot
    • Form-based Authentication
    • Basic Access Authentication
    • JWT Authentication
  • QR Code
    • Denso QR Code
  • Philosophical Inquiry
    • First
  • XML
    • xmlstarlet
Powered by GitBook
On this page
  • Overview
  • Additional Details
  • Summary
  • OID
  • Decode

Was this helpful?

  1. Encoding

CBEFF

Common Biometric Encoding File Format

PreviousChain Of TrustNextBytes

Last updated 4 years ago

Was this helpful?

Overview

The exact format of a BDB can be proprietary, unpublished. Here is excerpt:

----oOo----

Those boxes in dark gray are not needed. But those in light gray are are.

The first 14 bytes is fixed:

  • 46 41 43 00 (format identifier)

  • 30 31 30 00 (version no.)

  • 00 01 48 EF (length of record)

  • 00 01 (number of face images)

0000000 46 41 43 00 30 31 30 00 00 01 48 ef 00 01 00 01  >FAC.010...H.....<
0000020 48 e1 00 00 00 00 00 00 00 00 00 00 00 00 00 00  >H...............<
0000040 00 00 01 01 02 80 01 e0 01 05 00 00 00 00 00 00  >................<
0000060 00 0c 6a 50 20 20 0d 0a 87 0a 00 00 00 14 66 74  >..jP  ........ft<
0000100 79 70 6a 70 32 20 00 00 00 00 6a 70 32 20 00 00  >ypjp2 ....jp2 ..<
0000120 00 47 6a 70 32 68 00 00 00 16 69 68 64 72 00 00  >.Gjp2h....ihdr..<
0000140 01 e0 00 00 02 80 00 03 07 07 00 00 00 00 00 0f  >................<
0000160 63 6f 6c 72 01 00 00 00 00 00 10 00 00 00 1a 72  >colr...........r<
0000200 65 73 20 00 00 00 12 72 65 73 63 99 ca 00 01 99  >es ....resc.....<
0000220 ca 00 01 00 00 00 00 00 00 6a 70 32 63 ff 4f ff  >.........jp2c.O.<

The next 20 bytes is also fixed.

  • 00 01 48 E1 (facial record data length)

  • 00 00 (number of feature points)

  • 00 (gender)

  • 00 (eye color)

  • 00 (hair color)

  • 00 00 00 (property mask)

  • 00 00 (expression)

  • 00 00 00 (pose angle)

  • 00 00 00 (pose angle uncertainty)

Image Information 12 bytes:

  • 01 (face image type)

  • 01 (image data type)

  • 02 80 (width)

  • 01 E0 (height)

  • 01 05 (image color space)

  • 00 (source type)

  • 00 00 (device type)

  • 00 00 (quality)

Additional Details

More details can be found in Face_Image_Data_Standard_Ver1.0.pdf. For example, details such as eye color:

Summary

Correction: image color space is 1 byte only

OID

Decode

"data" : "base64urlencode(header).base64urlencode(payload).base64urlencode(signature)
https://www.ibia.org/cbeff/iso/bdb-format-identifiers
https://www.ibia.org/cbeff/iso
https://www.nist.gov/itl/iad/image-group/resources/incits-standardized-biometric-data
https://www.nist.gov/itl/iad/image-group/resources/biometric-special-databases-and-software
https://docs.mosip.io/platform/modules/id-authentication/id-authentication-functionality
https://github.com/mosip/documentation/blob/f23cd13dc2600be34ce743caf573eb5a7b2f240e/docs/Secure-Biometric-Interface-Specification.md
OID 1.1.19785.0.257.0.8 face-image reference info
CBEFF-Tilton-2009-short.pdf
https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=914210
https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=914210
https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=914210
griffin-face-std-m1.pdf
Face_Image_Data_Standard_Ver1.0.pdf
Face_Image_Data_Standard_Ver1.0.pdf
Face_Image_Data_Standard_Ver1.0.pdf
Face_Image_Data_Standard_Ver1.0.pdf
Face_Image_Data_Standard_Ver1.0.pdf
BiometricDataInterchangeFormatsPart5FaceImageData.pdf
Face_Image_Data_Standard_Ver1.0.pdf
BiometricDataInterchangeFormatsPart5FaceImageData.pdf