Aspose.OMR FOSS for Python

API reference for Aspose.OMR FOSS for Python. 68 public types organized by module.

Api

ClassDescription
ImageCollectionAppend-only, case-sensitive name -> image-bytes map for in-memory images referenced by markup (?image=).
OmrEngineThe OMR engine: a stateless factory producing generation results and recognizers.
TemplateProcessorProcesses OMR images against the template it was created from.

Exceptions

ClassDescription
ChildOverflowExceptionRaised when a child element overflows its parent and overflow handling is configured to throw (see OverflowActions / LongWordHandling).
InvalidConfigurationExceptionRaised when a template / element configuration is invalid or unsupported.
MultiselectExceptionRaised when more than one bubble is marked for a question that does not allow multi-select, and FormValidationLogic.Exception is active.
OMRExceptionBase class for every exception raised by the OMR library.
RuntimeExceptionOMRRaised on an internal, unrecoverable generation/recognition failure.

Generation

ClassDescription
AnswerSheetConfigNumbered question/answer bubble matrix.
ArabicRight-to-left; optionally Eastern-Arabic digits.
BaseConfigRoot abstraction; the required fields of every OMR element.
BaseOffsetBase class for generation layout offsets.
BengaliLeft-to-right; optionally Bengali digits.
BlockConfigBordered/padded box; lays out its non-block children with overflow handling.
BorderStyleDescribes the border of ONE side of an element.
CheckBoxConfigLabeled group of blank boxes accepting any mark, with a tunable fill Threshold (default 3%).
ChoiceBoxAnswerConfigOne answer bubble + label.
ChoiceBoxConfigA single question with a fixed set of option bubbles.
ClipTruncate overflowing content at the parent’s border.
CompositeGridConfigFlexible grid with custom symbols; marks merge into one value.
ContainerConfigInvisible layout element arranging child blocks into columns or a footer.
ContentConfigOne styled text line inside a parent.
EmptyLineConfigVertical spacer.
GenerationResultThe result of template generation: the page image(s) plus the .omr template JSON describing element locations.
GlobalPageSettingsDocument-wide defaults applicable to all page elements; per-element overridable.
GridConfigDigit matrix (SectionsCount sections x OptionsCount 0-9 bubbles) merged into one value.
HebrewRight-to-left; optionally Hebrew numbering.
ImageConfigPicture referenced by name.
MemoryGenerationResultWrapper around GenerationResult exposing outputs as in-memory streams.
NoClipDo nothing; overflowing content is drawn past the parent’s border (default).
OverflowActionBase class for child-overflow handling algorithms.
PageConfigOne per physical page.
ParentConfigMarks an element that can contain children.
PersianRight-to-left; optionally Persian digits.
PixelOffsetPixel-unit layout offset (per-edge integer pixel values).
PositionedBlockConfigPlaces children at absolute XPosition/YPosition with optional size.
ReferencePointsSettingsCorner reference marks + rotation-marker rectangle used for de-skew during recognition.
TemplateConfigThe document root that contains everything else (normally PageConfigs).
TextConfigTop-level multi-line raw text block.
UrduRight-to-left; optionally Urdu digits.
WesternDefault writing system: left-to-right, Western (0-9) digits.
WrapRelocate an overflowing child (column reflow / element splitting).
WritingSystemBase writing system (LTR, Western digits).

Enumerations

EnumerationDescription
AlignmentEnumHorizontal alignment of an element relative to its parent.
BarcodeTypeThe symbology used by a BarcodeConfig.
BubblePositionTypeWhere the bubble sits relative to its main content (answer text).
BubbleSizeAnswer-bubble size.
BubbleTypeThe shape of an answer bubble.
ConfigTypeDiscriminator identifying which *Config element a node is.
ContainerTypeEnumHow a ContainerConfig is placed on the page.
ContentTypeHow text content is rendered.
DirectionalityDirection in which elements and text are drawn (RTL/LTR support).
FontStyleFlag-like font style; members may be combined.
GridHeaderTypeEnumThe style of a grid’s header.
LongWordHandlingBehavior when generation meets a word wider than its parent container.
OrientationEnum with 3 members.
PaperSizeOutput page size.
ParagraphTypeEnumHow a ParagraphConfig arranges its children.
QRVersionQR symbol version for a QR-family BarcodeConfig.
RotationPointPositionPlacement of the orientation (rotation) marker relative to the page.
ScoreDisplayControls whether/how a score value is shown.
ScoreGroupTypeDrawing mode of a score-group element.
ScoreHeaderTypeRole of a column header inside a score group.
TriggerTypeBehavior of a trigger (used by CustomTriggerConfig).
VerticalAlignmentVertical positioning of a child element inside its parent.

Model

ClassDescription
IOmrElementThe interface for the OMR elements (one recognized question/element).
RecognitionResultThe result of image recognition.

Recognition

EnumerationDescription
FormValidationLogicControls engine behavior when a template validation rule is broken during recognition.

See Also