CodexIT.OmrKit.Core
4.0.0
dotnet add package CodexIT.OmrKit.Core --version 4.0.0
NuGet\Install-Package CodexIT.OmrKit.Core -Version 4.0.0
<PackageReference Include="CodexIT.OmrKit.Core" Version="4.0.0" />
<PackageVersion Include="CodexIT.OmrKit.Core" Version="4.0.0" />
<PackageReference Include="CodexIT.OmrKit.Core" />
paket add CodexIT.OmrKit.Core --version 4.0.0
#r "nuget: CodexIT.OmrKit.Core, 4.0.0"
#:package CodexIT.OmrKit.Core@4.0.0
#addin nuget:?package=CodexIT.OmrKit.Core&version=4.0.0
#tool nuget:?package=CodexIT.OmrKit.Core&version=4.0.0
CodexIT.OmrKit.Core
Core runtime for answer-sheet generation and OMR scanning.
NuGet package ID: CodexIT.OmrKit.Core
C# namespace remains Codex.OmrKit.Core.
Package Boundary
This is the production runtime package.
- Owns layout, rendering, QR payload behavior, alignment, and bubble detection.
- Depends on
CodexIT.OmrKit.Abstractionsfor stable contracts. - Is independent from API/UI hosts.
Install
dotnet add package CodexIT.OmrKit.Core --version 4.0.0
This also pulls CodexIT.OmrKit.Abstractions.
License
This package requires a permanent LicenseKey.
To request a license, contact WhatsApp: 00218917128473 (open chat).
Migration Notes (v4.0.0)
- Breaking:
QuestionTypenumeric values changed.QuestionType.MultipleChoice = 1QuestionType.TrueFalse = 2
- Breaking:
OmrLicense.Issueis no longer public. Generate keys from the sample API/UI (/licenses), then pasteLicenseKeyinto consumer appsettings.
DI Registration
services.AddCodexOmrKit(options =>
{
configuration.GetSection("CodexOmrKit").Bind(options);
});
SmartSchool appsettings.json:
{
"CodexOmrKit": {
"LicenseKey": "OMRKIT....",
"DefaultLanguage": "Arabic",
"PrimaryEngine": "OpenCvOtsu",
"SecondaryEngine": "OpenCvAdaptiveMean"
}
}
Generate the LicenseKey from the sample API/UI (/licenses), then paste it here.
GeneratePdf and Scan fail with configuration_error until a valid key is configured.
If you build a standalone console/service host, also reference Microsoft.Extensions.DependencyInjection
to call BuildServiceProvider(). ASP.NET hosts already provide it.
Exception Mapping for SmartSchool
Catch OmrKitException and map behavior by ex.Code:
validation_error: invalid test/question inputquality_gate_rejected: scan image quality is too lowalignment_failed: sheet markers/alignment faileddecode_error: unsupported or corrupted uploadconfiguration_error: runtime configuration/engine registration issuepayload_error: invalid QR payload contract
try
{
var scan = scanService.Scan(fileBytes, spec);
}
catch (OmrKitException ex)
{
logger.LogWarning("OMR error {Code} key={Key} stage={Stage}", ex.Code, ex.MessageKey, ex.Context?.Stage);
throw;
}
| 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
- CodexIT.OmrKit.Abstractions (>= 4.0.0)
- Docnet.Core (>= 2.6.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- OpenCvSharp4 (>= 4.13.0.20260627)
- OpenCvSharp4.runtime.win (>= 4.13.0.20260627)
- QRCoder (>= 1.8.0)
- QuestPDF (>= 2026.8.0)
- System.Drawing.Common (>= 10.0.0)
-
net8.0
- CodexIT.OmrKit.Abstractions (>= 4.0.0)
- Docnet.Core (>= 2.6.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- OpenCvSharp4 (>= 4.13.0.20260627)
- OpenCvSharp4.runtime.win (>= 4.13.0.20260627)
- QRCoder (>= 1.8.0)
- QuestPDF (>= 2026.8.0)
- System.Drawing.Common (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
4.0.0 - Breaking release.
- QuestionType numeric values are now MultipleChoice = 1 and TrueFalse = 2.
- OmrLicense.Issue is no longer public. Consumers must use a LicenseKey issued from the sample API/UI.