Skip to main content

flutter_ondevice_kyc 1.2.0 copy "flutter_ondevice_kyc: ^1.2.0" to clipboard
flutter_ondevice_kyc: ^1.2.0 copied to clipboard

PlatformAndroid

On-device KYC scanning for MRZ and card numbers. The scan path makes no network call.

1.2.0 #

The gate is unchanged. A lock still means the ICAO 9303 check digits, the Turkish national id check, or Luhn agreed.

  • Security, data, and model-provenance notes state what a lock means and which training origins are still unverified.

  • CI refuses tracked images, video, and embeddings outside the four specimen screenshots. Example weight digests are checked against MODEL_PROVENANCE.md.

  • A seeded single-character trial on synthetic MRZ text counts checksum collisions and the false locks repair adds, for a uniform edit and an OCR-weighted edit. It is not a device measurement. The device table stays ölçülmedi.

  • Repair candidates are O/0, I/1, Z/2, S/5, and B/8. Every gate, composite included, is checked again before a candidate is kept.

  • Rejected camera frames can vote a character at a time. The same repair and check digits still have to pass. A gallery still clears that vote.

  • Low light, glare, and skew are holding hints. They are not a measured quality score.

  • The example scan screen shows the lock and can drop it from memory. Per-frame time and time-to-lock stay separate. Time-to-lock is unmeasured.

  • The camera looks for the card across the whole frame, focuses on it once it sits still, and only then reads the MRZ. A lock stops the stream. The frame follows the card.

  • The NFC reader is opt-in. Import package:flutter_ondevice_kyc/nfc.dart. It was never part of the published 1.1.0 entrypoint, so nothing that compiled against a release breaks; the main library simply does not pick it up. The Android plugin no longer merges android.permission.NFC, so a host that only scans a card does not ship an NFC permission. The host declares it when it uses the chip path.

  • The Android BAC path is rewritten to the ISO 14443-4 shape: the 80 28 TLV on the mutual-authentication reply, the SSC in every MAC input, EMSA padding on the 32-byte seed, and DO87/DO99/DO8E unwrapped on READ BINARY. It is not verified on a passport. ChipRead.status is the only claim it makes.

  • A missing NFC channel, including every iOS build, reports no-nfc instead of throwing MissingPluginException.

  • The TCKN gate fires only when the issuing state is TUR. An 11-digit run in a foreign optional-data field is no longer treated as a Turkish national id.

  • KycDocumentShape adds the ID-3 passport page to the live guide, and CardTrack.forShape moves the aspect window with it.

  • CardDetector and TextRecognizer are exported, so a host engine can be passed to the KycScanner constructor.

  • KycScanner.fromFiles loads both models from paths plus dictionary text, for a weight downloaded once instead of a bundled asset.

  • KycScanStrings carries the hints, with english and turkish sets. The per-hint constructor parameters still work and win over the set.

  • KycScanError separates a denied camera permission from a missing camera. KycScanView pauses the image stream while the app is backgrounded.

  • Torch toggle and pinch zoom on KycScanView.

  • The frame interval is checked before the camera buffer is copied, so the UI isolate copies at the analysis rate instead of the sensor rate.

  • The guide-quad interpolation ticker stops once the drawn quad reaches the goal.

  • ScanSession holds the hold-lock, soft-miss, and track rules out of the widget, with unit tests.

  • cropToGuide wires the guide crop that the pipeline always described. It is off by default because cropping drops the margin the detector uses.

  • KycExecutionProvider.coreMl is refused on Android with an ArgumentError instead of reaching an undefined native path.

  • THIRD_PARTY_NOTICES.md and third_party/Apache-2.0.txt cover the two Apache-2.0 weights the example ships.

  • camera moves to ^0.12.2. It no longer applies the Kotlin Gradle Plugin itself, so the build warning that names it is gone.

  • A frame's brightness is sampled once. The skew hint reads the quad instead of scanning the image a second time.

  • The Flutter constraint now matches the Dart constraint. 3.24.0 could never resolve against sdk: ^3.13.2.

1.1.0 #

  • The example detector weight is the synthetic-card fine-tune. The checksum gate is unchanged. The host still copies the three model files into its own assets.
  • A private measurement ledger scores lock rate, false locks, and p95. It is not part of the host API.

1.0.0 #

  • KycScanView is the scan surface a host app embeds. It opens the back camera, keeps the preview aspect, draws the card guide and MRZ lane, and locks focus on that lane.
  • Model files are host assets. KycScanner.onnx and KycScanner.detectorOnly require the detector, recognizer, and dictionary paths. This package does not ship the weights.
  • The Android plugin merges CAMERA and a consumer R8 keep rule for ai.onnxruntime.** into the host release build.
  • The public library exports the integration surface. Pipeline helpers stay under lib/src.

0.1.0 #

  • On-device scan path for ICAO TD1, TD2, and TD3, including TCKN when it appears in the MRZ.
  • Luhn and expiry checks for card numbers. A checksum miss is a rejected frame, not an exception.
  • YOLOX-Nano detector and PP-OCRv4 English recognizer through flutter_onnxruntime.
  • Camera preview keeps its aspect, focuses the MRZ band, and reads each MRZ line on its own.
  • Example Android release build keeps the ONNX Runtime classes for R8.