public interface IImagingCoreAPI
extends java.lang.AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
IImagingCoreAPI.CropOperation
'Crop' operation.
|
static class |
IImagingCoreAPI.DetectDocumentBoundaryOperation
'Detect document boundary' operation.
|
static interface |
IImagingCoreAPI.ExportOperation
Export operation interface.
|
static class |
IImagingCoreAPI.ExportToJpgOperation
Export to JPG operation.
|
static class |
IImagingCoreAPI.ExportToPdfOperation
Export to PDF operation.
|
static class |
IImagingCoreAPI.ExportToPngOperation
Export to PNG operation.
|
static class |
IImagingCoreAPI.ExportToWebPOperation
Export to WebP operation.
|
static interface |
IImagingCoreAPI.ExtendedSettings
Extended CoreAPI configuration settings.
|
static interface |
IImagingCoreAPI.Image
Loaded image
|
static interface |
IImagingCoreAPI.ImageOperation
Image operation interface.
|
static class |
IImagingCoreAPI.QualityAssessmentForOcrOperation
'Quality assessment for OCR' operation.
|
static class |
IImagingCoreAPI.RotateOperation
'Rotate' operation.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release all resources.
|
IImagingCoreAPI.CropOperation |
createCropOperation()
Create 'crop' operation.
|
IImagingCoreAPI.DetectDocumentBoundaryOperation |
createDetectDocumentBoundaryOperation()
Create 'detect document boundary' operation.
|
IImagingCoreAPI.ExportToJpgOperation |
createExportToJpgOperation(java.io.OutputStream outputStream)
Create export to JPG operation.
|
IImagingCoreAPI.ExportToPdfOperation |
createExportToPdfOperation(java.io.OutputStream outputStream)
Create export to PDF operation.
|
IImagingCoreAPI.ExportToPngOperation |
createExportToPngOperation(java.io.OutputStream outputStream)
Create export to PNG operation.
|
IImagingCoreAPI.ExportToWebPOperation |
createExportToWebPOperation(java.io.OutputStream outputStream)
Create export to WebP operation.
|
IImagingCoreAPI.QualityAssessmentForOcrOperation |
createQualityAssessmentForOcrOperation()
Create 'quality assessment for OCR operation.
|
IImagingCoreAPI.RotateOperation |
createRotateOperation()
Create 'rotate' operation.
|
IImagingCoreAPI.ExtendedSettings |
getExtendedSettings()
Extended service configuration settings.
|
IImagingCoreAPI.Image |
loadImage(android.graphics.Bitmap bitmap)
Load image from a bitmap.
|
IImagingCoreAPI.Image |
loadImage(java.nio.ByteBuffer imageBuffer,
int imageWidth,
int imageHeight,
int orientation)
Load image from a byte buffer.
|
IImagingCoreAPI.Image loadImage(java.nio.ByteBuffer imageBuffer, int imageWidth, int imageHeight, int orientation)
imageBuffer
- Image buffer to load. The same buffer as returned from camera or IImageCaptureService.
Currently only buffers in NV21 format are supportedimageWidth
- The width of the imageimageHeight
- The height of the imageorientation
- Orientation of the image. Orientation is used to rotate the final image when getting the resultIImagingCoreAPI.Image loadImage(android.graphics.Bitmap bitmap)
bitmap
- The bitmap to loadIImagingCoreAPI.DetectDocumentBoundaryOperation createDetectDocumentBoundaryOperation()
IImagingCoreAPI.CropOperation createCropOperation()
IImagingCoreAPI.RotateOperation createRotateOperation()
IImagingCoreAPI.QualityAssessmentForOcrOperation createQualityAssessmentForOcrOperation()
IImagingCoreAPI.ExportToPngOperation createExportToPngOperation(java.io.OutputStream outputStream)
outputStream
- The output stream for exportIImagingCoreAPI.ExportToJpgOperation createExportToJpgOperation(java.io.OutputStream outputStream)
outputStream
- The output stream for exportIImagingCoreAPI.ExportToWebPOperation createExportToWebPOperation(java.io.OutputStream outputStream)
outputStream
- The output stream for exportIImagingCoreAPI.ExportToPdfOperation createExportToPdfOperation(java.io.OutputStream outputStream)
outputStream
- The output stream for exportvoid close()
close
in interface java.lang.AutoCloseable
IImagingCoreAPI.ExtendedSettings getExtendedSettings()