Skip to content

DPAD Service Technical Specifications

1. Introduction

Facephi DPAD Service (Document Presentation Attack Detection) is a C++ REST API service that verifies that the image of a document has not been manipulated. The system has been trained to recognize these types of attacks:

  • Screen Attacks: An attacker presents an image or video of a document in front of the camera.

  • Paper-Print Attacks: Attacks using grayscale or color paper-printed documents.

  • Card-print Attacks: The attacker uses a card printer to simulate the id-card texture. The most used material is the PVC.

  • Photo Replacement Attack: Documents where the data region is shown genuinely but the portrait region has a printed photo. The replacement could be digital or physical.

  • Text Replacement Attack: That is to say, the attackers may a replacement in the text part of the document.

2. Hardware requirements

Minimum requirement Recommended requirement
CPU 2 cores supporting SSE4.2 instructions set extension, >=2GHz 16 cores, AVX2 ISA support
RAM 4 Gb 8 Gb
Disk 4 Gb SSD 4 Gb
Network 100 Mbps 1 Gbps

3. Software requirements

  • Linux x86_64 (Ubuntu 24.04 or higher) with Docker 24.0 or higher.

or

  • Windows 10 x64 with Docker 24.0 or higher.

4. Image requirements

This project has the following image restrictions:

  • Pixels showing the background from around the document of at least 5% of its width.

  • Lowest compression level: JPEG 70.

  • The text of the document must be readable by an OCR.

These requirements are highly recommended:

  • Document centered on image and a document padding higher than 5%.

  • No compression level with formats such as PNG.

  • A well-lit photo without blur or spotlights.