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
<PackageReference Include="CodexIT.OmrKit.Abstractions" Version="5.0.0" />
<PackageVersion Include="CodexIT.OmrKit.Abstractions" Version="5.0.0" />
<PackageReference Include="CodexIT.OmrKit.Abstractions" />
paket add CodexIT.OmrKit.Abstractions --version 5.0.0
#r "nuget: CodexIT.OmrKit.Abstractions, 5.0.0"
#:package CodexIT.OmrKit.Abstractions@5.0.0
#addin nuget:?package=CodexIT.OmrKit.Abstractions&version=5.0.0
#tool nuget:?package=CodexIT.OmrKit.Abstractions&version=5.0.0
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 templatePaperIdis defined in Core (AnswerKeyTemplate.ReservedPaperId) and must not be used for student sheets - Batch student scan output (
OmrAnswerSheetScanBatch,OmrAnswerSheetScanItem) returned byIOmrKit.ScanAnswerSheetsin 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 (
OmrKitExceptionand 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/TemplateScannedAnswerreplace ad-hoc mapping fromOmrScanResultfor teacher keys. - Batch scan results:
OmrAnswerSheetScanBatch/OmrAnswerSheetScanItem(UploadIndex,PageIndex,Result) fromIOmrKit.ScanAnswerSheetsin Core. - Breaking (Core):
GenerateSheet(TestSheetSpec)removed — useAnswerSheetSpecorTestSheetSpec.ToAnswerSheetSpec(). - Reserved template
PaperIdmust 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
tokenQR fields are interpreted asPaperIdonly when they contain a valid GUID.ScannedQuestion.ConfidenceandOptionConfidence.Valueare unitless ink-fill scores from 0.0 to 1.0, not correctness probabilities.MarkedBubble.ConfidencePercentageexpresses the same score from 0 to 100 and is rounded to two decimal places.Breaking:
QuestionTypenumeric values changed.QuestionType.MultipleChoice = 1QuestionType.TrueFalse = 2
If you persist or send these as integers, remap stored values. Name-based C# mapping is unchanged.
Use only:
QuestionType.MultipleChoiceQuestionType.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_errorquality_gate_rejectedalignment_faileddecode_errorconfiguration_errorengine_errorpayload_error
Localization behavior:
- Exception messages are localized to English/Arabic.
- Language source is
DefaultLanguageconfigured throughAddCodexOmrKit(...)inCodexIT.OmrKit.Core.
| Product | Versions 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. |
-
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.
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.