Kofax Mobile SDK API Reference
kfxKEDImage.h
Go to the documentation of this file.
1 // Kofax Mobile Capture API Reference File
2 //
3 // kfxKEDImage.h
4 // KMCEngineData Objects
5 //
6 // Copyright (c) 2012 - 2017 Kofax. Use of this code is with permission pursuant to Kofax license terms.
7 //
8 
9 #import <UIKit/UIKit.h>
10 
11 #ifndef KFXKEDIMAGE
12 #define KFXKEDIMAGE 1
13 
17 #import "kfxKUTErrorInfo.h"
18 
19 
21 
24 typedef enum kedImageRep {
31 
33 
36 typedef enum kedImageMimetype{
43 
45 
52 typedef enum kedFileImageRep {
58 
60 
67 typedef enum
68 {
71 
73 
74 
75 #define KMC_MIN_DPI 25
76 #define DEFAULT_ORIENTATION 0 // Right
77 
79 
157 @interface kfxKEDImage : NSObject <NSCoding>
158 
159 
160 // ==========================================================
161 // R E A D _ O N L Y P R O P E R T I E S
162 // ==========================================================
163 
164 // ==========================================================
166 
171 @property (readonly,atomic) NSString *imageID; //archived
172 
173 #ifdef USE_MANAGER
174 // ==========================================================
176 
181 @property (readonly,atomic) NSString *friendID;
182 #endif
183 
184 
185 // ==========================================================
187 
192 @property (readonly,atomic) NSString *imageSourceID; // archived
193 
194 
195 // ==========================================================
197 
209 @property (atomic, readonly) NSString *imageMetaData; // archived
210 
211 // ==========================================================
213 
218 @property (nonatomic, strong) NSString *imageMicrData; // archived
219 
220 
221 // ==========================================================
223 
240 @property (atomic, readonly) float imageGPSLat; // latitude archived
241 
242 // ==========================================================
244 
261 @property (atomic, readonly) float imageGPSLon; // longitude archived
262 
263 
264 // ==========================================================
266 
277 @property (atomic, readonly) kfxKEDBasicSettingsProfile *basicSettingsProfileUsed DEPRECATED_ATTRIBUTE;
278 
279 
280 // ==========================================================
282 
295 @property (atomic, readonly) kfxKEDImagePerfectionProfile *imagePerfectionProfileUsed DEPRECATED_ATTRIBUTE;
296 
297 
298 // ==========================================================
300 
319 @property (atomic, readonly) KEDImageRepresentation imageRepresentation; // archived
320 
321 
322 // ==========================================================
324 
331 @property (atomic, readonly) KEDFileRepresentation fileRepresentation; //archived
332 
333 
334 // ==========================================================
336 
343 @property (atomic, readonly) int imageFileBufferSize; // archived
344 
345 
346 // ==========================================================
348 
353 @property (atomic, readonly) kfxKEDQuickAnalysisFeedback *imageQuickAnalysisFeedback; // archived
354 
355 
356 // ==========================================================
358 
365 @property (atomic) int imageHeight; // archived
366 
367 
368 // ==========================================================
370 
377 @property (atomic) int imageWidth; // archived
378 
379 
380 // ==========================================================
382 
389 @property (readonly) float attitudePitch; // archived
390 
391 
392 // ==========================================================
394 
401 @property (readonly) float attitudeRoll; // archived
402 
403 
404 // ==========================================================
405 // W R I T E - R E A D P R O P E R T I E S
406 // ==========================================================
407 
408 
409 // ==========================================================
411 
416 @property (retain,atomic) NSString *imageTag; // archived
417 
418 
419 // ==========================================================
421 
427 @property (assign, atomic) int imageDPI; // archived
428 
429 
430 // ==========================================================
432 
438 @property (assign, atomic) int jpegQuality; // archived
439 
440 
441 // ==========================================================
443 
450 @property (assign, atomic) KEDOutputColor imageFileOutputColor; // archived
451 
452 
453 // ==========================================================
455 
461 @property (strong,atomic) NSString *imageCreateDateTime; // archived
462 
463 
464 // ==========================================================
466 
473 @property (assign, atomic) KEDImageMimeType imageMimeType; // archived
474 
475 
476 // ==========================================================
478 
483 @property bool isPositionValid; // archived
484 
485 
486 // ==========================================================
488 
493 @property (nonatomic, retain) NSMutableArray* imageBarCodes; // array of BarCodeResults
494 
495 
496 // ==========================================================
498 
507 @property (nonatomic, retain) NSMutableArray* classificationResults DEPRECATED_ATTRIBUTE;
508 
509 // ==========================================================
511 
516 @property bool isAttitudeValid; // archived
517 
519 
525 @property (nonatomic, assign) CGRect targetFrame;
526 
527 // ==========================================================
528 // M E T H O D S
529 // ==========================================================
530 
531 // ==========================================================
533 
607 - (int) imageWriteToFile;
608 
609 
610 // ==========================================================
612 
651 - (int) imageWriteToFile: (FILE_RESTRICTION) restriction;
652 
653 
654 
655 // =========================================================================
657 
721 - (int) imageWriteToFileBuffer;
722 
723 
724 // =========================================================================
726 
755 - (int) imageWriteToFileBuffer : (FILE_RESTRICTION) restriction;
756 
757 
758 // ==========================================================
760 
769 - (long) getImageSize;
770 
771 // ==========================================================
773 
796 - (int) imageReadFromFile;
797 
798 
799 // ==========================================================================
801 
812 
813 
814 // ==========================================================
816 
829 - (int) deleteFile;
830 
831 
832 // ==========================================================
834 
851 - (int) specifyImageBitmap: (UIImage*) image;
852 
853 
854 // ==========================================================
856 
860 - (UIImage*) getImageBitmap;
861 
862 
863 // ==========================================================
865 
871 - (int) clearImageBitmap;
872 
873 
874 // ==========================================================
876 
883  - (int) clearFileBuffer;
884 
885 
886 // ==========================================================
888 
939 - (const char *) getImageFileBuffer;
940 
941 
942 // ==========================================================
944 
948 - (bool) isValidDateTime;
949 
950 
951 // ==========================================================
953 
959 - (int) specifyImageCreateDateAndtime: (NSString*) dateString;
960 
961 
962 // ==========================================================
964 
972 - (int) specifyFilePath: (NSString*) fullFilePath;
973 
974 
975 // ==========================================================
977 
980 - (NSString *) getFilePath;
981 
982 
983 // ==========================================================
985 
988 - (NSString*) getImageSourceID;
989 
990 
991 // ==========================================================
993 
997 - (NSString*) getImageID;
998 #ifdef USE_MANAGER
999 - (NSString*) getFriendID;
1000 #endif
1001 
1002 
1003 // ==========================================================
1005 
1014 - (NSString*) getImageMetaData;
1015 
1016 
1017 // ==========================================================
1019 
1023 - (float) getImageGPSLat;
1024 
1025 
1026 // ==========================================================
1028 
1032 - (float) getImageGPSLon;
1033 
1034 
1035 // ==========================================================
1037 
1040 - (float) getAttitudePitch;
1041 
1042 
1043 // ==========================================================
1045 
1048 - (float) getAttitudeRoll;
1049 
1050 
1051 // ==========================================================
1053 
1057 
1058 
1059 // ==========================================================
1061 
1066 - (kfxKEDBasicSettingsProfile *) getBasicSettingsProfileUsed DEPRECATED_ATTRIBUTE;
1067 
1068 
1069 // ==========================================================
1071 
1076 - (kfxKEDImagePerfectionProfile *) getImagePerfectionProfileUsed DEPRECATED_ATTRIBUTE;
1077 
1078 
1079 // ==========================================================
1081 
1084 +(NSString*)simpleDateTimeString:(NSDate*)date;
1085 
1086 // ==========================================================
1088 
1091 +(NSDate*)dateFromSimpleDateString:(NSString*)s;
1092 
1093 // ==========================================================
1095 
1100 +(NSString*) ISO8601DateTime;
1101 
1102 
1103 // ==========================================================
1105 
1110 +(NSString *) decodeImageRep: (KEDImageRepresentation) option;
1111 
1112 
1113 // ==========================================================
1115 
1121 +(NSString *) decodeMimetype: (KEDImageMimeType) option;
1122 
1123 
1124 // ==========================================================
1126 
1131 +(NSString *) decodeFileColor: (KEDOutputColor) color;
1132 
1133 
1134 // ==========================================================
1136 
1144 - (id)init;
1145 
1146 
1147 // ==========================================================
1149 
1160 - (id)initWithImage:(UIImage*)image;
1161 
1162 @end
1163 #endif
1164 
Definition: kfxKEDImage.h:29
int clearFileBuffer()
Clear the buffered file image.
bool isAttitudeValid
Boolean to indicate if the attitude is valid.
Definition: kfxKEDImage.h:516
float imageGPSLon
Global longitude of the location where the original photo was taken.
Definition: kfxKEDImage.h:261
Definition: kfxKEDImage.h:25
NSString * getImageID()
Get the image ID of the image.
float attitudePitch
Image Attitude for the pitch when the image was taken.
Definition: kfxKEDImage.h:389
bool isPositionValid
Boolean to indicate if the GPS data is valid.
Definition: kfxKEDImage.h:483
id init()
Initialize an object allocated for use.
int imageReadFromFile()
Initialize the imageBitmap property with the image contained in a file.
Definition: kfxKEDImage.h:54
int imageDPI
Image Dots per Inch.
Definition: kfxKEDImage.h:427
enum kedFileImageRep KEDFileRepresentation
File storage method.
Definition: kfxKEDImage.h:55
NSString * imageCreateDateTime
Object creation date-time string.
Definition: kfxKEDImage.h:461
KEDImageMimeType imageMimeType
Indicates the file storage configuration.
Definition: kfxKEDImage.h:473
KEDOutputColor imageFileOutputColor
Image File Output Color.
Definition: kfxKEDImage.h:450
kfxKEDBasicSettingsProfile * DEPRECATED_ATTRIBUTE()
Get the basic settings profile used in the last image processing operation.
kfxKEDQuickAnalysisFeedback * imageQuickAnalysisFeedback
Image Quick Analysis feedback stores quick analysis results.
Definition: kfxKEDImage.h:353
int imageReadFromFileBuffer()
Read an image from the file buffer into the UIImage imageBitmap property.
KEDOutputColor
Definition: kfxKEDBasicSettingsProfile.h:24
Definition: kfxKEDImage.h:28
Quick Analysis Results Feedback Class.
Definition: kfxKEDQuickAnalysisFeedback.h:39
NSString * getImageMetaData()
Get the image metadata string.
int clearImageBitmap()
Clear the bitmap image.
NSString * imageID
Uniquely identifies this image using a unique ID.
Definition: kfxKEDImage.h:171
kedImageMimetype
Image Mimetype enumeration.
Definition: kfxKEDImage.h:36
Definition: kfxKEDImage.h:27
float getAttitudeRoll()
Get the roll attitude of the camera when the picture was taken.
long getImageSize()
Get the current image size.
kfxKEDQuickAnalysisFeedback * getImageQuickAnalysisFeedback()
Get the quick analysis feedback object from the last quick analysis.
int imageWidth
Image Width in pixels for the image bitmap.
Definition: kfxKEDImage.h:377
float imageGPSLat
Global latitude of the location where the original photo was taken.
Definition: kfxKEDImage.h:240
bool isValidDateTime()
Check date time string validity.
NSString * getImageSourceID()
Get the image ID of the input source image.
NSString * imageTag
App defined tag name to associate with this image.
Definition: kfxKEDImage.h:416
CGRect targetFrame
Target frame used for taking a picture.
Definition: kfxKEDImage.h:525
NSString * ISO8601DateTime()
Generate a compliant date-time string for use in this object.
Definition: kfxKEDImage.h:70
float getImageGPSLon()
Get the GPS longitude associated with this image.
Definition: kfxKEDImage.h:40
NSString * imageSourceID
Identifies the source image used to generate this image.
Definition: kfxKEDImage.h:192
enum kedImageRep KEDImageRepresentation
Image Representation enumeration.
KEDImageRepresentation imageRepresentation
Defines how the image is represented in this object.
Definition: kfxKEDImage.h:319
kedFileImageRep
File storage method.
Definition: kfxKEDImage.h:52
NSString * imageMicrData
MICR data extracted from the image metadata.
Definition: kfxKEDImage.h:218
float attitudeRoll
Image Attitude for the roll when the image was taken.
Definition: kfxKEDImage.h:401
KEDFileRepresentation fileRepresentation
Defines how the file is represented.
Definition: kfxKEDImage.h:331
Definition: kfxKEDImage.h:26
kedImageRep
Image Representation enumeration.
Definition: kfxKEDImage.h:24
UIImage * getImageBitmap()
Get the current bitmap image.
int jpegQuality
jpeg Quality setting
Definition: kfxKEDImage.h:438
FILE_RESTRICTION
File Format restriction.
Definition: kfxKEDImage.h:67
int deleteFile()
Delete the file specified in the file path contained in this object.
NSString * getFilePath()
Get the current file path.
float getImageGPSLat()
Get the GPS latitude associated with this image.
Definition: kfxKEDImage.h:38
An Image object contains an image and associated data.
Definition: kfxKEDImage.h:157
enum kedImageMimetype KEDImageMimeType
Image Mimetype enumeration.
int imageWriteToFile()
Write the image contained in the UIImage to the file path specified in the object.
Definition: kfxKEDImage.h:53
Definition: kfxKEDImage.h:41
const char * getImageFileBuffer()
Get a reference to the image file buffer.
int imageFileBufferSize
Defines how large the file buffer is in bytes.
Definition: kfxKEDImage.h:343
Definition: kfxKEDImage.h:37
Definition: kfxKEDImage.h:56
Definition: kfxKEDImage.h:69
NSMutableArray * imageBarCodes
Array of image barcodes found by processing.
Definition: kfxKEDImage.h:493
Definition: kfxKEDImage.h:39
int imageHeight
Image Height in pixels for the image bitmap.
Definition: kfxKEDImage.h:365
int imageWriteToFileBuffer()
Write the UIImage object in this kfxKEDImage object to file buffer.
NSString * imageMetaData
Image metadata created by the image processing process.
Definition: kfxKEDImage.h:209
float getAttitudePitch()
Get the pitch attitude of the camera when the picture was taken.
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.