Logo von Id Capture Android

Id Capture Android

Organisation
Scandit
id-capture-android

Scandit ID Capture (`IdCapture`) in native Android (Kotlin or Java) projects — scanning passports, driver's licenses, ID cards, residence permits, health-insurance cards, visas via MRZ, VIZ, PDF417 barcode, or mobile documents. Use for integration, accepted-document and scanner configuration, CapturedId result handling, rejection rules, AAMVA verification, anonymization, overlay UI, camera lifecycle, and Scandit Android SDK version migration.

Übersicht

HerausgeberScandit
Repositoryskills
Skill-Nameid-capture-android
Sterne
21
Forks
2
Mitgelieferte Dateien
3
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 3 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von Scandit auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Id Capture Android in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/Scandit/skills/tree/dist/skills/id-capture-android
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Scandit/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/id-capture-android .claude/skills/id-capture-android
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Id Capture Android in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Id Capture Android automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Id Capture Android nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

ID Capture Android (Kotlin/Java) Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit ID Capture APIs. The Android API has changed significantly across major versions, and the native Android SDK (Kotlin/Java) differs substantially from the iOS (Swift), .NET, Flutter, and React Native SDKs. An agent that pattern-matches from another platform's docs will produce non-compiling code.

Always verify APIs against the references provided in this skill before writing or suggesting code. The most common sources of wrong code:

  • The v6 API — supportedDocuments (a bitmask of IdDocumentType like ID_CARD_VIZ/DL_VIZ), supportedSides, and session-based callbacks (onIdCaptured(idCapture, session, frameData)) were all replaced in v7. Do not emit any of these.
  • The v7.x API — settings.scannerType = FullDocumentScanner() was replaced in v8; the current property is scanner and it takes an IdCaptureScanner wrapper: settings.scanner = IdCaptureScanner(FullDocumentScanner()).
  • Cross-platform drift — iOS uses IdCapture(context:settings:), .NET uses IdCapture.Create(...), Flutter uses a different builder. The Android API is the static factory IdCapture.forDataCaptureContext(context, settings).
  • Zone result property names — on Android the zone results are capturedId.mrz, capturedId.viz, capturedId.barcode (and capturedId.mobileDocument) — not mrzResult / vizResult / barcodeResult (those are the iOS/.NET-style names).
  • Enum casing — Android enums are UPPER_SNAKE_CASE: IdCaptureRegion.ANY, IdCaptureRegion.EU_AND_SCHENGEN, RejectionReason.DOCUMENT_EXPIRED, IdAnonymizationMode.FIELDS_AND_IMAGES — not the Swift .any / .documentExpired camelCase.
  • Standalone verifier classes — AamvaBarcodeVerifier / DataConsistencyVerifier are not used here. Verification is settings-driven: set rejectForgedAamvaBarcodes = true / rejectInconsistentData = true and read capturedId.verificationResult.
  • Image opt-in — Android uses settings.setShouldPassImageTypeToResult(IdImageType.FACE, true) — not the iOS setIncludeImage(_:for:).
  • NFC — NFC chip reading exists on native Android but is not covered by this skill. If the user asks about NFC, refer them to the official documentation.

Forbidden APIs (commonly hallucinated — do NOT emit these)

Do NOT writeUse instead
IdCapture(context, settings) (iOS) / IdCapture.Create(...) (.NET) / new IdCapture(...)IdCapture.forDataCaptureContext(context, settings)
settings.supportedDocuments = [...] / IdDocumentType bitmasksettings.acceptedDocuments = listOf(IdCard(IdCaptureRegion.ANY), ...)
settings.supportedSides = ...settings.scanner = IdCaptureScanner(SingleSideScanner(...))
settings.scannerType = FullDocumentScanner() (v7 API)settings.scanner = IdCaptureScanner(FullDocumentScanner())
settings.setIncludeImage(true, ...) (iOS)settings.setShouldPassImageTypeToResult(IdImageType.CROPPED_DOCUMENT, true)
IdCaptureRegion.Any / .us / RejectionReason.documentExpired (camelCase/PascalCase)IdCaptureRegion.ANY / IdCaptureRegion.US / RejectionReason.DOCUMENT_EXPIRED (UPPER_SNAKE)
AamvaBarcodeVerifier(...) / AamvaBarcodeVerifier.create(...)settings.rejectForgedAamvaBarcodes = true + read capturedId.verificationResult?.aamvaBarcodeVerification
DataConsistencyVerifier(...)settings.rejectInconsistentData = true + read capturedId.verificationResult?.dataConsistency
capturedId.mrzResult / capturedId.vizResult / capturedId.barcodeResultcapturedId.mrz / capturedId.viz / capturedId.barcode
DataCaptureContext.initialize(licenseKey:) (iOS) / .ForLicenseKey(...) (.NET)DataCaptureContext.forLicenseKey("...")
IdCaptureOverlay(idCapture, view) (iOS-style constructor)IdCaptureOverlay.newInstance(idCapture, dataCaptureView)

Product Guidance

  • Accept only the documents you actually need. Ask the user which document types and regions they expect. Documents not in acceptedDocuments will be rejected with RejectionReason.NOT_ACCEPTED_DOCUMENT_TYPE. A narrow list (e.g. just DriverLicense(IdCaptureRegion.US)) is faster and more accurate than IdCaptureRegion.ANY across every document type.
  • Pick the scanner that matches the data you need. Ask the user whether they need data from both sides, a specific zone only, or a mobile-presented ID — then choose FullDocumentScanner, SingleSideScanner, or MobileDocumentScanner accordingly. See references/advanced.md for details.
  • Handle onIdRejected, not just onIdCaptured. Rejections (RejectionReason.TIMEOUT, .NOT_ACCEPTED_DOCUMENT_TYPE, .DOCUMENT_EXPIRED, .HOLDER_UNDERAGE, .FORGED_AAMVA_BARCODE, .INCONSISTENT_DATA, …) are how the user learns why a scan didn't succeed.
  • Callbacks run on a background thread. Both onIdCaptured and onIdRejected are invoked off the main thread — dispatch all UI work with runOnUiThread {} (Activity) or post to the main Handler. Set idCapture.isEnabled = false at the top of the callback while you handle the result, and re-enable it when the user is ready to scan again.
  • Mode co-existence with BarcodeCapture. IdCapture and BarcodeCapture can run together on one DataCaptureContext (e.g. an airport screen reading a boarding-pass barcode and a passport). Create each mode with its forDataCaptureContext factory, give each its own listener, and toggle each with isEnabled — no need to remove one to add the other. See references/advanced.md.
  • Be aware of the default anonymization list. The SDK anonymizes certain fields by default to meet regional legal requirements (e.g. document number on German ID cards). If a field is unexpectedly null, check capturedId.anonymizedFields. See references/advanced.md.
  • Hand off to the data-capture-sdk skill for non-ID-Capture questions. If the user asks about Barcode Capture, SparkScan, MatrixScan, Label Capture, or choosing between products, defer to the data-capture-sdk skill.

Intent Routing

Based on the user's request, load the appropriate reference file before responding:

  • Integrating ID Capture from scratch, or any question about document selection, scanner choice, rejection rules, image capture, or reading results (top-level fields or zone-specific mrz/viz/barcode) → read references/integration.md and follow it.
  • USDL verification (forged barcodes, data inconsistency, frontReviewImage), anonymization, voided detection, EU driving-license back decoding, BarcodeCapture co-existence, mobile documents (mDL), overlay customization, or custom feedback → read references/advanced.md and follow it.
  • Upgrading the Scandit Android SDK version on an existing ID Capture integration (e.g. "migrate from 6.x to 7", "update Scandit to the latest version", "we're on 7.x and the build breaks after bumping dependencies", code that still uses supportedDocuments / IdDocumentType / onIdCaptured(idCapture, session, frameData)) → read references/migration.md and follow it.

API Usage Policy

Only use APIs that are explicitly documented in the Scandit references below. Do not invent or guess method signatures, parameters, or property names. If unsure whether an API exists or how to call it — or if a compile error occurs — fetch the relevant documentation page before responding. Do not tell the user to check the docs themselves. After answering, always include the relevant link so the user can explore further.

Never construct or guess documentation URLs. When you need a specific class or property's API page:

  1. First check whether the page you already fetched contains a direct hyperlink to it — topic pages link directly to relevant API symbols. Always request links alongside content in your fetch prompt.
  2. If no direct link was found, fetch the API index (see Full API reference in the table below), extract the actual link from it, and follow that.

URL structures can vary (e.g. an api/ui/ subdirectory) and guessing will lead to 404s.

Licence key

Scanning needs a Scandit licence key. For this skill the licence product is native and the licence platform is android.

Work through these in order — never block the user on MCP:

  1. The Scandit MCP server is connected — call ensure_scanner_setup with product native and platforms android, app_identifier (the app's bundle or application id; for web, its production domain, never localhost) and env_var SCANDIT_LICENSE_KEY. Do not run the command it returns. Then call get_license_key with the key's id, from that result or from list_license_keys; if list_license_keys shows the key is not a trial, ask the user before fetching it. Show at most a masked preview in chat; never print a full key.

  2. It is not connected — tell the user once that they can connect the remote Scandit MCP server, https://ssl.scandit.com/mcp, in their MCP client, then continue from step 1. Do not edit MCP client configuration yourself.

    Authentication is browser-based, so it is not supported headless or in CI. The server provisions trial keys only; it never creates, revokes, or modifies production licences.

  3. The user declines, or has no MCP client — they generate a key themselves at https://ssl.scandit.com (no account yet: https://ssl.scandit.com/dashboard/sign-up?p=test) and paste it in.

Then put the key into the code: write it into the licence-key call in place of the placeholder — the key get_license_key returned, or the one the user pastes or gives you — still showing only a masked preview in chat. Do not search the project, its files or the environment for a key.

References

TopicResource
Get Started (Android)Get Started (Android)
Advanced topicsAdvanced Configurations (Android)
SDK version migrationreferences/migration.md · Migrate 6→7 · Migrate 7→8
Full API referenceID Capture API (Android)

API surface this skill covers

All classes available on the native Android SDK. The modern document/scanner API (acceptedDocuments, IdCaptureScanner, FullDocumentScanner) landed at 7.0; the rejection flags and verification result model at 7.6/8.0. This skill targets the current 8.x stable release.

  • IdCapture — static IdCapture.forDataCaptureContext(context: DataCaptureContext, settings: IdCaptureSettings); isEnabled (get/set); addListener(IdCaptureListener) / removeListener(...); static createRecommendedCameraSettings(); feedback (IdCaptureFeedback); reset(); applySettings(settings).
  • IdCaptureSettings — IdCaptureSettings(); properties: scanner (IdCaptureScanner), acceptedDocuments / rejectedDocuments (List<IdCaptureDocument>), rejectVoidedIds, rejectExpiredIds, rejectIdsExpiringIn (Duration?), rejectNotRealIdCompliant, rejectForgedAamvaBarcodes, rejectInconsistentData, rejectHolderBelowAge (Int?), decodeBackOfEuropeanDrivingLicense, anonymizationMode (IdAnonymizationMode), anonymizeDefaultFields; methods setShouldPassImageTypeToResult(IdImageType, Boolean), addAnonymizedField(document, IdFieldType).
  • IdCaptureScanner — IdCaptureScanner(physicalDocument: PhysicalDocumentScanner?) and IdCaptureScanner(physicalDocument:, mobileDocument:).
  • Physical scanners: FullDocumentScanner() — both sides, all zones; SingleSideScanner(barcode: Boolean, machineReadableZone: Boolean, visualInspectionZone: Boolean) — single side, selected zones.
  • MobileDocumentScanner — MobileDocumentScanner(iso180135: Boolean, ocr: Boolean) (also MobileDocumentScanner() and an elementsToRetain overload). iso180135 uses ISO 18013-5 QR + Bluetooth handover; ocr reads a mobile document displayed on another device's screen.
  • Document types (IdCaptureDocument, props region + documentType): IdCard(IdCaptureRegion), DriverLicense(IdCaptureRegion), Passport(IdCaptureRegion), VisaIcao(IdCaptureRegion), ResidencePermit(IdCaptureRegion), HealthInsuranceCard(IdCaptureRegion), RegionSpecific(RegionSpecificSubtype).
  • IdCaptureRegion enum — ANY, EU_AND_SCHENGEN, and ~250 region values (US, UK, UAE, GERMANY, …), all UPPER_SNAKE_CASE.
  • IdCaptureListener — onIdCaptured(mode: IdCapture, id: CapturedId), onIdRejected(mode: IdCapture, id: CapturedId?, reason: RejectionReason). (These are the SDK's interface parameter names, also used by the official samples; Kotlin allows renaming them in your override.)
  • CapturedId — fullName / firstName / lastName (String?), sex / sexType, dateOfBirth / dateOfExpiry / dateOfIssue (DateResult?), nationality, address, age (Int?), isExpired, document (IdCaptureDocument?), issuingCountry (IdCaptureRegion), documentNumber / documentAdditionalNumber, viz / mrz / barcode / mobileDocument (VizResult?/MrzResult?/BarcodeResult?/MobileDocumentResult?), images (IdImages), verificationResult (VerificationResult? — nullable), anonymizedFields.
  • DateResult — day / month (Int?), year (Int), localDate / utcDate (java.util.Date).
  • IdImages — face (Bitmap?), frame (Bitmap?), getCroppedDocument(side: IdSide) (Bitmap?).
  • VerificationResult — dataConsistency (DataConsistencyResult?), aamvaBarcodeVerification (AamvaBarcodeVerificationResult?).
  • DataConsistencyResult — allChecksPassed, frontReviewImage (Bitmap?).
  • AamvaBarcodeVerificationResult — status (AamvaBarcodeVerificationStatus: AUTHENTIC / LIKELY_FORGED / FORGED).
  • IdCaptureOverlay — IdCaptureOverlay.newInstance(idCapture, dataCaptureView); idLayoutStyle (IdLayoutStyle: ROUNDED / SQUARE), idLayoutLineStyle (IdLayoutLineStyle: BOLD / LIGHT), showTextHints, setFrontSideTextHint(...) / setBackSideTextHint(...), capturedBrush / localizedBrush / rejectedBrush.
  • IdCaptureFeedback — IdCaptureFeedback(); idCaptured / idRejected (Feedback); static defaultFeedback().
  • DataCaptureContext — DataCaptureContext.forLicenseKey("..."); setFrameSource(camera); removeCurrentMode() / removeAllModes().
  • Camera — Camera.getDefaultCamera(IdCapture.createRecommendedCameraSettings()); switchToDesiredState(FrameSourceState.ON / OFF).
  • DataCaptureView — DataCaptureView.newInstance(context, dataCaptureContext).
  • RejectionReason enum — NOT_ACCEPTED_DOCUMENT_TYPE, INVALID_FORMAT, DOCUMENT_VOIDED, TIMEOUT, SINGLE_IMAGE_NOT_RECOGNIZED, DOCUMENT_EXPIRED, DOCUMENT_EXPIRES_SOON, NOT_REAL_ID_COMPLIANT, HOLDER_UNDERAGE, FORGED_AAMVA_BARCODE, INCONSISTENT_DATA.
  • IdAnonymizationMode enum — NONE, FIELDS_ONLY, IMAGES_ONLY, FIELDS_AND_IMAGES.
  • IdImageType enum — FACE, CROPPED_DOCUMENT, FRAME.
  • IdSide enum — FRONT, BACK.

Available on native Android but NOT covered by this skill

  • NFC chip reading — native Android only; refer to the official documentation.
  • Deserializer (IdCaptureDeserializer) — available on Android native but not in scope here.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Id Capture Android?

Scandit ID Capture (`IdCapture`) in native Android (Kotlin or Java) projects — scanning passports, driver's licenses, ID cards, residence permits, health-insurance cards, visas via MRZ, VIZ, PDF417 barcode, or mobile documents. Use for integration, accepted-document and scanner configuration, CapturedId result handling, rejection rules, AAMVA verification, anonymization, overlay UI, camera lifecycle, and Scandit Android SDK version migration.

Warum Id Capture Android in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Id Capture Android besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Id Capture Android in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Scandit/skills/tree/dist/skills/id-capture-android ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Id Capture Android nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Id Capture Android verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Id Capture Android damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Id Capture Android kostenlos?

Ja. Der Skill wird von Scandit auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇