Overview

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.

The core distribution contains the following resources:

  • Docker container. The container is available in the Docker FacePhi repository and is based on Ubuntu 24.04. The container contains the service and all the dependencies needed to run it.
  • Online documentation. The documentation is available in the following URL: https://doc-dpad-service.facephi.dev/