Skip to content

Commit

Permalink
Added new framework version (4.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerovec committed Jul 31, 2015
1 parent bd812d7 commit c3fe9c7
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,57 @@
#define PhotoPayFramework_DetectionStatus_h

/**
* Detection status enum.
* Used in UI.
* Status of the object detection in MicroBlink SDK
*/
typedef enum _PPDetectionStatus {
PPDetectionStatusSuccess = 1<<0, // Payment form detected
PPDetectionStatusFail = 1<<1, // Detection failed, form not detected
PPDetectionStatusCameraTooHigh = 1<<2, // Form detected, but the camera is too far above the payment form
PPDetectionStatusCameraAtAngle = 1<<3, // Form detected, but the perspective angle of camera is too high
PPDetectionStatusCameraRotated = 1<<4, // Form detected, but the payment form is rotated and not aligned to the camera edges
PPDetectionStatusQRSuccess = 1<<6, // QR code detected
PPDetectionStatusPdf417Success = 1<<7, // PDF417 code detected
PPDetectionStatusFallbackSuccess = 1<<8, // Detection from fallback
PPDetectionStatusPartialForm = 1<<9, // Form detected, but only partially visible on screen
PPDetectionStatusCameraTooNear = 1<<10 // Form detected, but the camera is too near to the payment form
} PPDetectionStatus;
typedef NS_ENUM(NSInteger, PPDetectionStatus) {

/** Object was successfuly detected. */
PPDetectionStatusSuccess = 1<<0,

/** Object was not detected */
PPDetectionStatusFail = 1<<1,

/** Object was successfully detected, but the camera was too far above the object for processing */
PPDetectionStatusCameraTooHigh = 1<<2,

/** Object was successfully detected, but the perspective angle of camera is too high */
PPDetectionStatusCameraAtAngle = 1<<3,

/** Object was successfully detected, but the object is rotated and not aligned to the camera edges */
PPDetectionStatusCameraRotated = 1<<4,

/** QR code was successfully detected */
PPDetectionStatusQRSuccess = 1<<6,

/** PDF417 barcode was successfully detected */
PPDetectionStatusPdf417Success = 1<<7,

/** Object was successfully detected using a fallback algorithm */
PPDetectionStatusFallbackSuccess = 1<<8,

/** Object was detected, but is only partially visible on screen */
PPDetectionStatusPartialForm = 1<<9,

/** Object was successfully detected, but the camera is too near to the object for processing */
PPDetectionStatusCameraTooNear = 1<<10,
};

// Ignore unused method warning
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wall"

/**
* Method converts PPDetectionStatus value to NSString
*
* @param status Detection status value for which NSString is required
*
* @return NSString value for PPDetectionStatus value
*/
static NSString* stringFromDetectionStatus(PPDetectionStatus status) {

NSString* defaultString = @"Detection status: ";
NSString* res = [NSString stringWithString:defaultString];

if (status & PPDetectionStatusSuccess) {
res = [res stringByAppendingString:@"Success\n"];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@
* For example, malformed PDF417 barcodes which were incorrectly encoded
*
* Use only if necessary because it slows down the recognition process
*
* Default: NO
*/
@property (nonatomic) BOOL scanUncertain;

/**
* Set this to YES to scan barcodes which don't have quiet zone (white area) around it
*
* Use only if necessary because it slows down the recognition process
*
* Default: NO
*/
@property (nonatomic) BOOL allowNullQuietZone;

Expand All @@ -33,6 +37,8 @@
* (i.e. white barcodes on black background)
*
* NOTE: this options doubles the frame processing time
*
* Default: NO
*/
@property (nonatomic) BOOL scanInverse;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,23 @@
*/
@interface PPUsdlRecognizerSettings : PPRecognizerSettings

/**
* Set this to YES to scan even barcode not compliant with standards
* For example, malformed PDF417 barcodes which were incorrectly encoded
*
* Use only if necessary because it slows down the recognition process
*
* Default: NO
*/
@property (nonatomic) BOOL scanUncertain;

/**
* Set this to YES to scan barcodes which don't have quiet zone (white area) around it
*
* Disable if you need a slight speed boost
*
* Default: YES
*/
@property (nonatomic) BOOL allowNullQuietZone;

@end
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion buildCommit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Built from core repository commit cc230982a060afacac80fd57e8d6708852363d9c
Built from core repository commit 042cd95ef2c7734407004b096b9d73fea80c263f

0 comments on commit c3fe9c7

Please sign in to comment.