Classes
The following classes are available globally.
-
The output configuration for a camera session.
See moreDeclaration
Objective-C
@interface GSKCameraSessionConfiguration : NSObjectSwift
class GSKCameraSessionConfiguration : NSObject -
The GSKCameraSession class manages the interactions with the device camera.
See moreDeclaration
Objective-C
@interface GSKCameraSession : NSObjectSwift
class GSKCameraSession : NSObject -
A GSKCameraViewController is a ready-to-use camera interface for scanning documents.
See moreDeclaration
Objective-C
@interface GSKCameraViewController : UIViewController <GSKCameraSessionDelegate>Swift
class GSKCameraViewController : UIViewController, GSKCameraSessionDelegate -
Entry point of the SDK. Use this to initialize the SDK with your license key.
See moreDeclaration
Objective-C
@interface GSK : NSObjectSwift
class GSK : NSObject -
GSKPDF encapsulate the generation of a PDF document.
See moreDeclaration
Objective-C
@interface GSKPDF : NSObjectSwift
class GSKPDF : NSObject -
GSKTIFF encapsulate the generation of a TIFF document.
See moreDeclaration
Objective-C
@interface GSKTIFF : NSObjectSwift
class GSKTIFF : NSObject -
Undocumented
See moreDeclaration
Objective-C
@interface GSKDocumentDetectorConfiguration: NSObject + (instancetype)defaultConfiguration; /** A configuration that favors speed over precision. */ + (instancetype)fastConfiguration; /** A configuration that favors precision over speed. */ + (instancetype)highPrecisionConfiguration; @endSwift
class GSKDocumentDetectorConfiguration : NSObject -
The result of the quadrangle detection operation.
See moreDeclaration
Objective-C
@interface GSKDocumentDetectionResult : NSObjectSwift
class GSKDocumentDetectionResult : NSObject -
- Performance: A document detector can be expensive to create: it’s recommended to keep a reference to it if it’s needed several times in a row.
Declaration
Objective-C
@interface GSKDocumentDetector : NSObjectSwift
class GSKDocumentDetector : NSObject -
The view to edit the quadrangle to edit the perspective correction.
It displays an editable quadrangle overlaid on the original image.
See moreDeclaration
Objective-C
@interface GSKEditFrameView : UIViewSwift
class GSKEditFrameView : UIView -
The GSKEditFrameViewController lets the user change a quadrangle.
The quadrangle is a drawn as an overlay over an image. This typically lets the user edit the edges of a document to crop it more accurately.
See moreDeclaration
Objective-C
@interface GSKEditFrameViewController : UIViewControllerSwift
class GSKEditFrameViewController : UIViewController -
Undocumented
See moreDeclaration
Objective-C
@interface GSKEditableFrame : UIView @property (nonatomic, strong) GSKQuadrangle *quadrangle; @property (nonatomic, weak, nullable) id <GSKEditableFrameDelegate> delegate; /** The color of the area outside of the quadrangle. */ @property (nonatomic, copy) UIColor *outsideShadeColor; /** The color of the area inside of the quadrangle. */ @property (nonatomic, copy) UIColor *insideShadeColor; /** The color of the area inside of the quadrangle. */ @property (nonatomic, copy) UIColor *shadeColor DEPRECATED_MSG_ATTRIBUTE("Deprecated in favor of `insideShadeColor`."); /** The color of the edges and grid lines. */ @property (nonatomic, copy) UIColor *lineColor; /** The width of the handle that signify that corners can be dragged. Default: 5 */ @property (nonatomic, assign) CGFloat handleWidth; @property (nonatomic, assign) BOOL noCrop; @endSwift
class GSKEditableFrame : UIView -
An object to control the logging of the Genius Scan SDK.
See moreDeclaration
Objective-C
@interface GSKLog : NSObjectSwift
class GSKLog : NSObject -
Undocumented
See moreDeclaration
Objective-C
@interface GSKMagnifierView : UIView /** The style of the crosshair */ @property (nonatomic, assign) GSKMagnifierViewCenterStyle centerStyle; /** Default line width for the crosshair. */ @property (nonatomic, assign) CGFloat crosshairLineWidth; /** Default line width for the quadrangle. */ @property (nonatomic, assign) CGFloat quadrangleLineWidth; /** The color of the quadrangle crosshair. This only applies when the crosshair is of style GSKMagnifierCrosshairStyleQuadrangle. */ @property (nonatomic, copy) UIColor *quadrangleColor; - (void)setSourceImage:(UIImage *)sourceImage; - (void)setSourceImagePosition:(CGPoint)position quadrangle:(GSKQuadrangle *)quadrangle; @endSwift
class GSKMagnifierView : UIView -
Describes the structure of a PDF document for the PDF generator.
See moreDeclaration
Objective-C
@interface GSKPDFDocument : NSObjectSwift
class GSKPDFDocument : NSObject -
A configuration for the PDF generator
See moreDeclaration
Objective-C
@interface GSKPDFGeneratorConfiguration : NSObjectSwift
class GSKPDFGeneratorConfiguration : NSObject -
Undocumented
Declaration
Objective-C
@interface GSKPDFNoopImageProcessor : NSObject <GSKPDFImageProcessor> @endSwift
class GSKPDFNoopImageProcessor : NSObject, GSKPDFImageProcessor -
Describes a page of a PDF document for the PDF generator.
See moreDeclaration
Objective-C
@interface GSKPDFPage : NSObjectSwift
class GSKPDFPage : NSObject -
Physical size of a PDF page in inches. If the aspect ratio doesn’t match the aspect ratio of the page in pixels, margins will be added on both sides of the page image. If 0 is provided for the width or height, it is computed to match the aspect ratio of the image. Eg, for a receipt, we usually use width = 3.54f and height = 0.
See moreDeclaration
Objective-C
@interface GSKPDFSize : NSObjectSwift
class GSKPDFSize : NSObject -
Represents a quadrangular area of the photo, generally the document for which to correct the perspective.
A quadrangle should always be expressed in the coordinates of the “up” image
A normalized quadrangle: corners expressed in fraction of the image dimensions. Each coordinate will be a floating point between 0 and 1.
See moreDeclaration
Objective-C
@interface GSKQuadrangle : NSObjectSwift
class GSKQuadrangle : NSObject -
A scan, the result of the camera output. It encapsulates a simple file path as well as additional information on the capture.
See moreDeclaration
Objective-C
@interface GSKScan : NSObjectSwift
class GSKScan : NSObject -
A GSKCurvatureCorrectionConfiguration defines the behavior of a GSKScanProcessor when applying curvature correction.
See moreDeclaration
Objective-C
@interface GSKCurvatureCorrectionConfiguration : NSObjectSwift
class GSKCurvatureCorrectionConfiguration : NSObject -
A GSKPerspectiveCorrectionConfiguration defines the behavior of a GSKScanProcessor when applying perspective correction.
See moreDeclaration
Objective-C
@interface GSKPerspectiveCorrectionConfiguration : NSObjectSwift
class GSKPerspectiveCorrectionConfiguration : NSObject -
A GSKEnhancementConfiguration defines the behavior of a GSKScanProcessor when applying legibility enhancements.
See moreDeclaration
Objective-C
@interface GSKEnhancementConfiguration : NSObjectSwift
class GSKEnhancementConfiguration : NSObject -
A GSKRotationConfiguration defines the behavior of a GSKScanProcessor when rotating the processed image.
See moreDeclaration
Objective-C
@interface GSKRotationConfiguration : NSObjectSwift
class GSKRotationConfiguration : NSObject -
A GSKResizeConfiguration defines the behavior of a GSKScanProcessor when resizing the processed image.
See moreDeclaration
Objective-C
@interface GSKResizeConfiguration : NSObjectSwift
class GSKResizeConfiguration : NSObject -
A configuration that defines the output of the processing.
See moreDeclaration
Objective-C
@interface GSKOutputConfiguration : NSObjectSwift
class GSKOutputConfiguration : NSObject -
Undocumented
See moreDeclaration
Objective-C
@interface GSKProcessingResult: NSObject /// The output file. /// It's located in the temporary directory, so you need to move it to a permanent destination. @property (nonatomic, readonly) NSString *processedImagePath; /// The quadrangle that was used for perspective correction @property (nonatomic, strong, readonly) GSKQuadrangle *appliedQuadrangle; /// The filter that was applied during the enhancement phase @property (nonatomic, assign, readonly) GSKFilterType appliedFilter; /** The rotation applied during the rotation phase. If you specified a rotation angle as part of GSKRotationConfiguration, you will get this angle back here. If you requested an automatic orientation detection as part of the GSKRotationConfiguration, appliedRotation will correspond the rotation applied by the SDK to rotate the image according to the estimated orientation. Note: The output of the processing is always an up-oriented image, even if the original image had an EXIF orientation (see UIImage's imageOrientation property). `appliedRotation` doesn't include the rotation applied to the image buffer to remove the EXIF information. The `appliedRotation` only includes the "visual" rotation needed to display the image to the user: - If the input image imageOrientation is UIImageOrientationUp, and you request a clockwise rotation, appliedRotation will be GSKRotationClockwise. - If the input image imageOrientation is UIImageOrientationUp, and you request an automatic rotation, which detects that the image must be rotated clockwise to look "straight", appliedRotation will be GSKRotationClockwise. - If the input image imageOrientation is UIImageOrientationRight, and you request a clockwise rotation, appliedRotation will be GSKRotationClockwise. The output image orientation will be UIImageOrientationUp. - If the input image imageOrientation is UIImageOrientationUp, and you request an automatic rotation, which detects that the image must be rotated clockwise to look "straight", appliedRotation will be GSKRotationClockwise. The output image orientation will be UIImageOrientationUp. */ @property (nonatomic, assign, readonly) GSKRotation appliedRotation; @endSwift
class GSKProcessingResult : NSObject -
The result of a resizing operation
See moreDeclaration
Objective-C
@interface GSKResizeResult : NSObjectSwift
class GSKResizeResult : NSObject -
The configuration object to configure the GSKProcessor’s behavior.
You can use the default constructors.
See moreDeclaration
Objective-C
@interface GSKProcessingConfiguration : NSObjectSwift
class GSKProcessingConfiguration : NSObject -
The document processor is the central class of the GSSDK’s image processing algorithms.
With the document processor, you can correct the distortion in your documents, as well as improve their legibility. If you are only interested in the detecting a document in an image, please refer to GSKDocumentDetector.
See moreDeclaration
Objective-C
@interface GSKScanProcessor : NSObjectSwift
class GSKScanProcessor : NSObject -
A view to simulate a camera shutter effect.
See moreDeclaration
Objective-C
@interface GSKShutterView : UIViewSwift
class GSKShutterView : UIView -
The text layout of a scan
This is part of the output of the OCR recognition, but can also be part of the input of the PDF generation.
See moreDeclaration
Objective-C
@interface GSKTextLayout : NSObjectSwift
class GSKTextLayout : NSObject -
Converts a text layout to its textual representation
The goal is to properly recreate lines, paragraphs etc.
See moreDeclaration
Objective-C
@interface GSKTextLayoutToTextConverter : NSObjectSwift
class GSKTextLayoutToTextConverter : NSObject -
Undocumented
See moreDeclaration
Objective-C
@interface GSKTextLayoutToTextConverterResult : NSObject - (nonnull instancetype)initWithStatus:(GSKTextLayoutToTextConverterStatus)status text:(nonnull NSString *)text averageWordConfidence:(int32_t)averageWordConfidence wordCount:(int32_t)wordCount; + (nonnull instancetype)textLayoutToTextConverterResultWithStatus:(GSKTextLayoutToTextConverterStatus)status text:(nonnull NSString *)text averageWordConfidence:(int32_t)averageWordConfidence wordCount:(int32_t)wordCount; /** The status of the conversion. If failure, the other values in the result must not be used. */ @property (nonatomic, readonly) GSKTextLayoutToTextConverterStatus status; /** The text reconstructed from the text layout. */ @property (nonatomic, readonly, nonnull) NSString * text; /** * The average word confidence of the recognized text. * A value between 0 and 100 */ @property (nonatomic, readonly) int32_t averageWordConfidence; /** * The number of words in the recognized text. * This is the number of words on which the average word confidence has been computed. */ @property (nonatomic, readonly) int32_t wordCount; @endSwift
class GSKTextLayoutToTextConverterResult : NSObject -
An object to determine when there is enough stability to trigger a photo.
See moreDeclaration
Objective-C
@interface GSKTriggerDecider : NSObjectSwift
class GSKTriggerDecider : NSObject -
Undocumented
See moreDeclaration
Objective-C
@interface GSKView : UIView // Handle interface orientation change - (void)initializeRotationWithInterfaceOrientation:(UIInterfaceOrientation)orientation; - (void)rotateWithCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator; // Displays the focus indicator at the requested location - (void)animateFocusAtLocation:(CGPoint)location; /// Updates the quadrangle overlay. Removes the quadrangle if @param quadrangle is nil. - (void)updateQuadrangle:(GSKQuadrangle *)quadrangle; - (void)setCaptureSession:(AVCaptureSession *)session; /** Freeze the capture preview. This is very fast as this doesn't interrupt the camera session. */ - (void)pausePreview; /** Resumes the capture preview. */ - (void)resumePreview; @property (nonatomic, readonly) UIView *previewView; /** The document frame layer */ @property (nonatomic, readonly) CAShapeLayer *frameLayer; @property (nonatomic, readonly) CAShapeLayer *snapFrameLayer; @property (nonatomic, copy) UIColor *overlayColor; @property (nonatomic, weak) id <GSCViewDelegate> delegate; @endSwift
class GSKView : UIView
-
The result of an OCR operation.
See moreDeclaration
Objective-C
@interface GSKOCRResult : NSObjectSwift
class GSKOCRResult : NSObject -
The configuration for an OCR operation
See moreDeclaration
Objective-C
@interface GSKOCRConfiguration : NSObjectSwift
class GSKOCRConfiguration : NSObject -
Provides OCR capability for your application.
See moreWarning
The SDK must be initialized with [GSK initWithLicenseKey:error:] first.Declaration
Objective-C
@interface GSKOCR : NSObjectSwift
class GSKOCR : NSObject -
The configuration for text recognition
See moreDeclaration
Objective-C
@interface GSKScanFlowOCRConfiguration : NSObjectSwift
class GSKScanFlowOCRConfiguration : NSObject -
Enables configuration of the GSKScanFlow.
Set the desired configuration on an instance of GSKScanFlowConfiguration and pass it to the initializer of GSKScanFlow to build the desired scan flow.
See moreDeclaration
Objective-C
@interface GSKScanFlowConfiguration : NSObjectSwift
class GSKScanFlowConfiguration : NSObject -
The result of the text recognition.
See moreDeclaration
Objective-C
@interface GSKScanFlowOCRResult : NSObjectSwift
class GSKScanFlowOCRResult : NSObject -
A page captured by the scan flow.
See moreDeclaration
Objective-C
@interface GSKScanFlowScan : NSObjectSwift
class GSKScanFlowScan : NSObject -
The result of a scan flow
See moreDeclaration
Objective-C
@interface GSKScanFlowResult : NSObjectSwift
class GSKScanFlowResult : NSObject -
A high-level scanner module.
You present it and when the user is done, you obtain a result object containing the scanned documents.
The scan flow can be customized with a GSKScanFlowConfiguration.
See moreDeclaration
Objective-C
@interface GSKScanFlow : NSObjectSwift
class GSKScanFlow : NSObject -
The output result from the scan flow.
See moreDeclaration
Objective-C
@interface GSKScanFlowScanInternal : NSObjectSwift
class GSKScanFlowScanInternal : NSObject
Classes Reference