Skip to main content

Data Structures

This page describes the data structures and enumerations used by the Palm X RGB palm recognition interfaces.

Common Business Structures

Image

RGB palm image structure.

FieldTypeRequiredDescription
DataStringYesBase64-encoded binary content of the palm image (JPEG/PNG). Recommended size ≤ 1 MB per image
ImageTypeImageTypeYesImage type enum, see below. The interfaces in this document always use 1 (RGB)

📸 Capture convention (important): palm images must be uploaded in the front-camera (selfie) view. If the client captures with a rear camera, the image must be horizontally mirrored before upload — otherwise the algorithm will misjudge the left/right palm direction and registration/comparison may fail.

Enum Types

ImageType

Image type.

Returned as Integer.

ValueDescription
1RGB (color image)
2IR (infrared image) — reserved

PalmDirectionType

Palm direction.

Returned as Integer.

ValueDescription
1LEFT_PALM (left hand)
2RIGHT_PALM (right hand)

Notes

  • Field naming across all requests and responses uses PascalCase (e.g. UserId, PalmId).
  • A palmprint is uniquely identified by the PalmId returned from registration, and is always associated with exactly one UserId and one PalmDirection.