Properties
Configuration properties of the SelphID Widget component.
These properties allow you to customize the behavior of the Document Capture flow.
Constants and typing
SelphID offers types and constants to make implementation easier in typed environments.
import { CameraType, CameraPreferred } from '@facephi/selphid-web-component'In React, the enum CameraPreferred (among others) is also exported from @facephi/sdk-web-react.
Recommendation: Configure the properties through JavaScript, JSX, or your framework bindings (React, Vue, Angular, etc.). Avoid native HTML configuration with attributes (
nombre-atributo="valor"), as it can lose the typing and format expected by the component.
SelphID Widget configuration properties
Capture
allowUncertain: Increases permissiveness for unrecognized documents.
allowUnknown: Allows capturing any document with a photo.
barcode: Enables the barcode and QR reader.
barcodeSide: Side of the document where the code is read.
blurredThreshold: Blur tolerance threshold.
captureRetries: Maximum number of capture retries.
captureTimeout: Capture timeout per attempt (seconds).
codeReader: Optional QR/code capture step during document extraction.
country: Document country in ISO-2. Deprecated: use
countryFilter.countryFilter: Allowed countries in ISO-2. Recommended:
enabledCountries.documentType: Supported document types in capture.
expectedSides: Number of document sides to capture.
maxAllowedMismatches: OCR errors allowed per word.
maxAttempts: Maximum number of document capture attempts.
progressiveMismatches: Increased permissiveness on each retry.
retryCurrentSide: Retries only the current side of the document.
rules: Rules for filtering capture by country.
Extraction
anonymizationMode: Anonymization mode for extracted data.
capturePadding: Margin added to the captured image.
cropFactor: Scale factor for the document crop.
imageFormat: Format of the returned images.
imageQuality: JPEG compression (0.0–1.0).
tokenize: Enables result tokenization.
Camera
cameraHeight: Preferred vertical resolution of the camera.
cameraId: Camera identifier.
cameraSwitch: Shows the button to switch cameras.
cameraType: Camera type (front or rear). Recommended:
cameraPreferred.cameraWidth: Preferred horizontal resolution of the camera.
dpi: DPI of the extracted images.
externalCamera: External video feed for capture.
Customization
audible: Enables text-to-speech reading.
cameraOverflow: Shows the full camera image as the background.
chooseDocument: Enables prior document selection. Recommended:
showDocumentSelector.disableExit: Hides the button to close the widget. Recommended:
showExitButton.disableTutorial: Disables access to the tutorial. Recommended:
showTutorial.enableDocumentFlip: Enables the document flip animation.
initialTip: Shows a tip before capture. Recommended:
showPreviousTip.initialTipHeight: Height of the initial tip in pixels.
initialTipWidth: Width of the initial tip in pixels.
tipAnimations: Initial tip animations (mobile and desktop).
loadingAnimation: Path to the loading animation.
logo: Path to the custom logo.
previewImage: Shows a preview after capture. Recommended:
showResultAfterCapture.tutorialAnimations: Custom tutorial animations.
tutorialModal: Shows the tutorial in modal mode.
Internal configuration
advancedTracking: Enables advanced tracking generation.
androidWebViewBehaviour: Behavior in Android WebView.
engineFallback: Enables the fallback engine.
engineLocation: Path or CDN for the engine resources.
errorTimer: Duration of terminal error views.
settingsStrictness: Shows an error if there are misconfigured parameters.
Video Recording
enableVideoTimer: Shows a timer during recording.
videoRecord: Enables video recording.
videoRecordAudio: Records audio in the local recording.
videoRecordQuality: Video recording quality.
videoRecordRate: Remote recording frame rate.
videoRecordType: Recording type (local or remote).
Developer tools
Property compatibility and validation
Some properties have been renamed. The legacy name remains the primary one and works in this version, while the new name is the recommended. Resolution rules:
Precedence: if you define both the legacy and the new name at the same time, the new one takes precedence and a precedence warning is emitted in the console.
Legacy only: using only the legacy name emits a deprecation warning in the console. The legacy name will be removed in the next major version.
Unknown property: an unrecognized property is silently ignored always.
Validation (settingsStrictness, tolerant by default): in tolerant mode, an invalid value is replaced with its default value and a warning is emitted; in strict mode, it stops the SDK with a blocking error.
Last updated