DocScanningSDK Framework

Classes

NameSummary
PxBundledOcrDataResolves the directory of OCR data that ships bundled inside the SDK, so text-orientation detection works offline on a fresh install with no network download.
PxCatchExceptionsA helper for catching the SDK’s Objective-C exceptions from Swift, where @catch is not available.
PxCutoutA document (or other) region detected in a picture, described as an array of points linked in clockwise order.
PxExceptionAn error raised by the SDK to signal misuse or an internal failure.
PxFrameObserverDetects when a document’s corners are stable across camera frames, so the app knows when it is safe to capture a still.
PxImageWriterWrites one or more PxPictures to a file in a chosen image or PDF format, optionally with an embedded recognised-text layer.
PxLanguageDownloaderDownloads an OCR language data file and decrypts it into a local directory, reporting progress and completion to a delegate.
PxLicenseActivates an SDK license and exposes the active license’s details.
PxNativeExceptionAn error raised when a native (C++) exception crosses into the SDK’s Objective-C layer.
PxPictureAn image plus its scanning metadata (orientation, flash status, and so on), and the operations to detect a document in it and refine it.
PxRefineFeaturesA builder describing the refinement steps to apply to a PxPicture.
PxSDKSDK-wide information, such as the version of the Document Scanning SDK.
PxTextAttributeOne node in a recognised-text result: a page, block, paragraph, line, word, or symbol, together with the properties available at that level.
PxTextDetectorDetects the orientation of the text in a picture, using the bundled OSD (orientation and script detection) model.
PxTextReaderRecognises (OCRs) the text in a picture, producing a PxTextResult.
PxTextResultThe result of a text-recognition scan: the recognised text and the per-element attributes (pages, blocks, paragraphs, lines, words, symbols) behind it.

Protocols

NameSummary
PxLanguageDownloaderDelegateReceives progress and completion callbacks from a PxLanguageDownloader.
PxTextReaderDisplayCallbackReceives the scanned picture for display while PxTextReader works.
PxTextReaderProgressCallbackReceives progress and cancellation callbacks from PxTextReader.

Structures

NameSummary
PxDimensionA single paper measurement: a magnitude together with its unit.
PxMatrixFA 3x3 2D transformation matrix with single-precision elements, in row-major order.
PxMatrixIA 3x3 2D transformation matrix with integer elements, in row-major order.
PxPaperPaper parameters for PxImageWriter: page size and margins.
PxPointDA 2D point with double-precision coordinates.
PxPointFA 2D point with single-precision coordinates.
PxPointIA 2D point with integer coordinates.
PxRectDA 2D rectangle with double-precision corners; also used to carry a line segment.
PxRectFA 2D rectangle with single-precision corners; also used to carry a line segment.
PxRectIA 2D rectangle with integer corners; also used to carry a line segment.

Functions

NameSummary
exifFromUIOrientationConverts a UIKit image orientation to the equivalent EXIF orientation.
exifToUIOrientationConverts an EXIF orientation to the equivalent UIKit image orientation.
rotateExifOrientationRotates an EXIF orientation by a number of 90-degree steps.
rotateUIOrientationRotates a UIKit image orientation by a number of 90-degree steps.

Enumerations

NameSummary
PxAttrLevelThe granularity of a recognised-text attribute: the level in the page hierarchy (page, block, paragraph, line, word, or symbol) it applies to.
PxColorHintA hint about an image’s colour content, used to guide processing.
PxColorProfileThe colour profile to binarise a picture into during refinement.
PxCutoutFlagBit flags describing the state of the currently detected document cutout, combined into the value returned by PxFrameObserver’s observe: methods.
PxDimension_UnitsThe unit a PxDimension value is expressed in.
PxFlashStatusWhether the camera flash fired when an image was captured.
PxImageWriter_CompressionLevelA predefined compression level for setCompressionLevel:. Higher compression means a smaller file at lower quality.
PxImageWriter_TypeThe output format a PxImageWriter produces.
PxLicenseFeatureA product feature that a license can grant. The features mask combines these.
PxLicenseStatusThe result of validating an SDK license key.
PxOrientationImage orientation, matching the EXIF orientation values.
PxPaper_OrientationPaper orientation.
PxPaper_SizeA predefined paper size.
PxScanFlagsFlags controlling how recognised text is laid out and marked, combined into the flags passed when creating a PxTextReader.
PxScanStatusThe outcome of a text-recognition scan.
Top