CodexIT.OmrKit.Core
2.0.0
See the version list below for details.
dotnet add package CodexIT.OmrKit.Core --version 2.0.0
NuGet\Install-Package CodexIT.OmrKit.Core -Version 2.0.0
<PackageReference Include="CodexIT.OmrKit.Core" Version="2.0.0" />
<PackageVersion Include="CodexIT.OmrKit.Core" Version="2.0.0" />
<PackageReference Include="CodexIT.OmrKit.Core" />
paket add CodexIT.OmrKit.Core --version 2.0.0
#r "nuget: CodexIT.OmrKit.Core, 2.0.0"
#:package CodexIT.OmrKit.Core@2.0.0
#addin nuget:?package=CodexIT.OmrKit.Core&version=2.0.0
#tool nuget:?package=CodexIT.OmrKit.Core&version=2.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 2.0.0
This also pulls CodexIT.OmrKit.Abstractions.
Migration Notes (v2.0.0)
- Breaking:
GeneratePdfnow requiresincludeWritingArea.GeneratePdf(spec, true)to draw the writing area.GeneratePdf(spec, false)to keep that area blank.
- Breaking: essay question support was removed from question contracts and validation.
- Added localized structured exceptions with
Code,MessageKey, andContext.
DI Registration
services.AddCodexOmrKit(options =>
{
options.PrimaryEngine = OmrEngineKind.OpenCvOtsu;
options.SecondaryEngine = OmrEngineKind.OpenCvAdaptiveMean;
options.DefaultLanguage = PaperLanguage.English; // Controls localized exception message language
});
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 (>= 2.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 (>= 2.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.
2.0.0 - Breaking release.
- GeneratePdf now requires includeWritingArea flag.
- Removed all Essay question handling from core scanning/generation flow.
- Added localized and structured package exceptions for SmartSchool integration.
- Added stronger exception wrapping around decode/alignment/engine stages.