Detectors
Identity Card
Detect Czech identity card numbers.
Purpose
Use the identity_card detector for Czech identity card numbers (obcansky prukaz).
This detector matches the format of Czech identity card numbers.
Detector Name
identity_cardRegion: cz
Supported Formats
- 9-character alphanumeric format
- Follows specific pattern for Czech identity cards
Usage
from fastpii import FastPII, DEFAULT_PRIORITY
from fastpii.countries.cz import CzechPack
engine = FastPII(priority=DEFAULT_PRIORITY)
engine.register(CzechPack())
result = engine.detect("OP: 12345678")Validation
result = engine.validate("12345678", "identity_card")
# result.is_valid → True/False