CodexIT.OmrKit.Abstractions 5.0.0

dotnet add package CodexIT.OmrKit.Abstractions --version 5.0.0
                    
NuGet\Install-Package CodexIT.OmrKit.Abstractions -Version 5.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodexIT.OmrKit.Abstractions" Version="5.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodexIT.OmrKit.Abstractions" Version="5.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CodexIT.OmrKit.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodexIT.OmrKit.Abstractions --version 5.0.0
                    
#r "nuget: CodexIT.OmrKit.Abstractions, 5.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodexIT.OmrKit.Abstractions@5.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodexIT.OmrKit.Abstractions&version=5.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CodexIT.OmrKit.Abstractions&version=5.0.0
                    
Install as a Cake Tool

CodexIT.OmrKit.Abstractions

Stable public contracts for Codex OMR Kit package consumers.

NuGet package ID: CodexIT.OmrKit.Abstractions
C# namespace remains Codex.OmrKit.Abstractions.

Package Purpose

This is the shared contract layer used by:

  • CodexIT.OmrKit.Core
  • consumer applications (such as SmartSchool)

Contains

  • Generation contracts (TestSheetSpec, AnswerSheetSpec, AnswerSheetFormSpec, AnswerSheetStudentSpec, GeneratedAnswerSheetBatch)
  • Answer-key template scan (TemplateScanResult, TemplateScannedAnswer); reserved template PaperId is defined in Core (AnswerKeyTemplate.ReservedPaperId) and must not be used for student sheets
  • Batch student scan output (OmrAnswerSheetScanBatch, OmrAnswerSheetScanItem) returned by IOmrKit.ScanAnswerSheets in Core
  • Self-describing scan results (OmrScanResult); scan inputs are only the paper bytes and optional engine selection
  • Shared inputs (OmrQuestion, OmrQuestionItem, InstitutionInfo, StudentInfo)
  • Output contracts (OmrScanResult, ScanEngineResult, ScannedQuestion)
  • Enums (PaperLanguage, QuestionType, ChoiceOption, AnswerMarkStatus, OmrEngineKind)
  • Typed exceptions (OmrKitException and derived classes)

Sample API and UI request/response DTOs are intentionally excluded. They live in the non-packaged Codex.OmrKit.Api.Contracts project so Core and reusable consumers do not inherit application-specific test, student, institution-logo, or scan-session models.

Migration Notes (v5.0.0)

  • Template scan: TemplateScanResult / TemplateScannedAnswer replace ad-hoc mapping from OmrScanResult for teacher keys.
  • Batch scan results: OmrAnswerSheetScanBatch / OmrAnswerSheetScanItem (UploadIndex, PageIndex, Result) from IOmrKit.ScanAnswerSheets in Core.
  • Breaking (Core): GenerateSheet(TestSheetSpec) removed — use AnswerSheetSpec or TestSheetSpec.ToAnswerSheetSpec().
  • Reserved template PaperId must not be assigned to student registrations (constant in Core: AnswerKeyTemplate.ReservedPaperId).

See CHANGELOG.md at the repository root for the full 5.0.0 notes.

Migration Notes (v4.0.0)

  • QR readers support schema versions 1 through 7; writers emit schema version 7 only.

  • Historical layouts remain version-bound. Consumers must preserve the QR's version, language, and layout metadata and must not substitute unknown layouts.

  • Legacy token QR fields are interpreted as PaperId only when they contain a valid GUID.

  • ScannedQuestion.Confidence and OptionConfidence.Value are unitless ink-fill scores from 0.0 to 1.0, not correctness probabilities. MarkedBubble.ConfidencePercentage expresses the same score from 0 to 100 and is rounded to two decimal places.

  • Breaking: QuestionType numeric values changed.

    • QuestionType.MultipleChoice = 1
    • QuestionType.TrueFalse = 2
  • If you persist or send these as integers, remap stored values. Name-based C# mapping is unchanged.

  • Use only:

    • QuestionType.MultipleChoice
    • QuestionType.TrueFalse
  • Exception model now includes:

    • Code (stable machine-readable key)
    • MessageKey (localization key)
    • Context (diagnostic metadata such as stage and engine kind)

Exception Contract

Always catch OmrKitException in consumer code and branch on Code.

Common codes:

  • validation_error
  • quality_gate_rejected
  • alignment_failed
  • decode_error
  • configuration_error
  • engine_error
  • payload_error

Localization behavior:

  • Exception messages are localized to English/Arabic.
  • Language source is DefaultLanguage configured through AddCodexOmrKit(...) in CodexIT.OmrKit.Core.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CodexIT.OmrKit.Abstractions:

Package Downloads
CodexIT.OmrKit.Core

Core OMR generation and scanning engine for Codex OMR Kit.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 47 11/22/2026
4.0.0 143 9/27/2026
3.0.0 123 9/21/2026
2.0.0 127 9/16/2026

5.0.0 - Template scan and batch scan contracts.
- TemplateScanResult and TemplateScannedAnswer for answer-key template scans.
- OmrAnswerSheetScanBatch and OmrAnswerSheetScanItem for IOmrKit.ScanAnswerSheets results.
- See CHANGELOG.md and Core 5.0 migration notes for breaking API changes.