شعار Id Capture Ios

Id Capture Ios

مؤسسة
Scandit
id-capture-ios

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

نظرة عامة

الناشرScandit
المستودعskills
اسم المهارةid-capture-ios
النجوم
21
التفريعات
2
الملفات المرفقة
3
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها Scandit على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Id Capture Ios في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Scandit/skills/tree/dist/skills/id-capture-ios
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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-ios .claude/skills/id-capture-ios
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Id Capture Ios في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Id Capture Ios تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Id Capture Ios بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

ID Capture iOS (Swift/UIKit) Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit ID Capture APIs. The iOS Swift API has changed significantly across major versions, and the native iOS SDK differs substantially from the Android (Kotlin/Java), .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 enum like .idCardVIZ/.dlVIZ), supportedSides, and session-based callbacks (didCaptureIn 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(physicalDocument: FullDocumentScanner()).
  • ObjC prefixes — the Objective-C SDK uses an SDC prefix on all types (SDCIdCapture, SDCCapturedId, etc.). These prefixes do not appear in Swift. Never emit SDCIdCapture, SDCIdCaptureSettings, etc. in Swift code.
  • Cross-platform drift — Android uses IdCapture.forDataCaptureContext(...), .NET uses IdCapture.Create(...), Flutter uses a different builder. The Swift API is IdCapture(context:settings:).
  • Standalone verifier classes — AamvaBarcodeVerifier and DataConsistencyVerifier do not exist in the native iOS SDK. Verification is settings-driven: set rejectForgedAamvaBarcodes = true / rejectInconsistentData = true and read capturedId.verificationResult.
  • NFC — NfcScanner exists on native iOS 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.Create(context, settings) / IdCapture.forDataCaptureContext(...)IdCapture(context: context, settings: settings)
settings.supportedDocuments = [.idCardVIZ, .dlVIZ, ...]settings.acceptedDocuments = [IdCard(region: .any), ...]
settings.supportedSides = .frontOnlysettings.scanner = IdCaptureScanner(physicalDocument: SingleSideScanner(...))
settings.scannerType = FullDocumentScanner() (v7 API)settings.scanner = IdCaptureScanner(physicalDocument: FullDocumentScanner())
new AamvaBarcodeVerifier(...) / AamvaBarcodeVerifier.Create(...)settings.rejectForgedAamvaBarcodes = true + read capturedId.verificationResult.aamvaBarcodeVerification
new DataConsistencyVerifier(...)settings.rejectInconsistentData = true + read capturedId.verificationResult.dataConsistency
capturedId.barcodeResultcapturedId.barcode
capturedId.Images / capturedId.VerificationResult (PascalCase, .NET style)capturedId.images / capturedId.verificationResult (camelCase)
SDCIdCapture / SDCCapturedId / any SDC-prefixed type in SwiftIdCapture / CapturedId (no prefix in Swift)
DataCaptureContext.ForLicenseKey(...) (.NET) or DataCaptureContext.forLicenseKey(...) (Android)DataCaptureContext.initialize(licenseKey: "...") then DataCaptureContext.shared

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.notAcceptedDocumentType.
  • 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 didReject not just didCapture. Rejections (RejectionReason.timeout, .notAcceptedDocumentType, .documentExpired, .holderUnderage, .forgedAamvaBarcode, .inconsistentData, …) are how the user learns why a scan didn't succeed.
  • 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). Attach each mode to the context (its iOS constructor IdCapture(context:settings:) / BarcodeCapture(context:settings:)), 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 nil, 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 mrzResult/vizResult/barcode) → read references/integration.md and follow it.
  • USDL verification (forged barcodes, data inconsistency, frontReviewImage), anonymization, BarcodeCapture co-existence, overlay customization, or custom feedback → read references/advanced.md and follow it.
  • Upgrading the Scandit iOS 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 packages", code that still uses supportedDocuments / IdDocumentType / didCaptureIn session:) → 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. Fetch the index page and follow links from there.

Licence key

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

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 ios, 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 (iOS)Get Started (iOS Swift)
Advanced topicsAdvanced Configurations (iOS)
SDK version migrationreferences/migration.md · Migrate 6→7 · Migrate 7→8
Full API referenceID Capture API (iOS)

API surface this skill covers

All classes available on the native iOS 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 — IdCapture(context: DataCaptureContext, settings: IdCaptureSettings); isEnabled (get/set); addListener(_:) / removeListener(_:) (IdCaptureListener); static recommendedCameraSettings; feedback (IdCaptureFeedback); reset(); applySettings(_:).
  • IdCaptureSettings — IdCaptureSettings(); properties: scanner (IdCaptureScanner), acceptedDocuments / rejectedDocuments ([any IdCaptureDocument]), rejectVoidedIds, rejectExpiredIds, rejectIdsExpiringIn (Duration?), rejectNotRealIdCompliant, rejectForgedAamvaBarcodes, rejectInconsistentData, rejectHolderBelowAge (Int?), anonymizationMode (IdAnonymizationMode); methods setIncludeImage(_:for:) / includeImage(for:), addAnonymizedField(_:forDocument:), removeAnonymizedField(_:forDocument:).
  • IdCaptureScanner — IdCaptureScanner(physicalDocument: (any PhysicalDocumentScanner)?) and IdCaptureScanner(physicalDocument:mobileDocument:); physicalDocument / mobileDocument properties.
  • Physical scanners: FullDocumentScanner() — both sides, all zones; SingleSideScanner(enablingBarcode:machineReadableZone:visualInspectionZone:) — single side, selected zones; props barcode / machineReadableZone / visualInspectionZone.
  • MobileDocumentScanner — MobileDocumentScanner(enablingIso180135:ocr:); iso180135 / ocr props. iso180135 uses ISO 18013-5 QR + Bluetooth handover; ocr reads a mobile document displayed on another device's screen.
  • Document types (IdCaptureDocument protocol, props region: IdCaptureRegion + documentType: IdCaptureDocumentType): IdCard(region:), DriverLicense(region:), Passport(region:), VisaIcao(region:), ResidencePermit(region:), HealthInsuranceCard(region:), RegionSpecific(subtype: RegionSpecificSubtype).
  • IdCaptureRegion enum — .any, .euAndSchengen, and ~250 region values (.us, .uk, .uae, .germany, …).
  • IdCaptureListener protocol — idCapture(_:didCapture:) (required), idCapture(_:didReject:reason:) (required).
  • CapturedId — fullName / firstName / lastName (String?), sex / sexType, dateOfBirth / dateOfExpiry / dateOfIssue (DateResult?), nationality / nationalityISO, address, age (Int?), isExpired, document ((any IdCaptureDocument)?), issuingCountry (IdCaptureRegion), documentNumber / documentAdditionalNumber, vizResult / mrzResult / barcode / mobileDocumentResult / mobileDocumentOcrResult, images (IdImages), verificationResult (VerificationResult), usRealIdStatus.
  • DateResult — day / month / year (Int).
  • IdImages — face (UIImage?), frame (UIImage?), croppedDocument(side:) (UIImage?).
  • VerificationResult — dataConsistency (DataConsistencyResult?), aamvaBarcodeVerification (AamvaBarcodeVerificationResult?).
  • DataConsistencyResult — allChecksPassed, frontReviewImage (UIImage?).
  • AamvaBarcodeVerificationResult — status (AamvaBarcodeVerificationStatus: .authentic / .likelyForged / .forged).
  • IdCaptureOverlay — IdCaptureOverlay(idCapture:view:); idLayoutStyle (IdLayoutStyle: .rounded / .square), idLayoutLineStyle (IdLayoutLineStyle: .bold / .light), showTextHints, textHintPosition, setFrontSideTextHint(_:) / setBackSideTextHint(_:), capturedBrush / localizedBrush / rejectedBrush.
  • IdCaptureFeedback — IdCaptureFeedback(); idCaptured / idRejected (Feedback); static default.
  • DataCaptureContext — DataCaptureContext.initialize(licenseKey:) then DataCaptureContext.shared; setFrameSource(_:completionHandler:); removeCurrentMode() / removeAllModes().
  • Camera — Camera.default; switch(toDesiredState:) (.on / .off); apply(_:).
  • DataCaptureView — DataCaptureView(context:frame:); autoresizingMask.
  • RejectionReason enum — .notAcceptedDocumentType, .invalidFormat, .documentVoided, .timeout, .documentExpired, .documentExpiresSoon, .notRealIdCompliant, .holderUnderage, .forgedAamvaBarcode, .inconsistentData.
  • IdAnonymizationMode enum — .none, .fieldsOnly, .imagesOnly, .fieldsAndImages.
  • IdImageType enum — .face, .croppedDocument, .frame.
  • IdLayoutStyle / IdLayoutLineStyle / TextHintPosition — overlay appearance enums.

Available on native iOS but NOT covered by this skill

  • NFC (NfcScanner, NfcScannerListener) — native iOS only; covered by a separate skill.
  • Deserializer (IdCaptureDeserializer) — available on iOS native but not in scope here.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Id Capture Ios؟

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

لماذا تستخدم Id Capture Ios على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Id Capture Ios عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Id Capture Ios في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Scandit/skills/tree/dist/skills/id-capture-ios. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Id Capture Ios؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Id Capture Ios؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Id Capture Ios معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Id Capture Ios مجانية؟

نعم. نشرها Scandit على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇