Skip to content

Commit

Permalink
Merge pull request #13 from BlinkID/feature/v1.3.0
Browse files Browse the repository at this point in the history
Merged feature/v1.3.0
  • Loading branch information
Cerovec committed Feb 8, 2016
2 parents 6aa7b3d + cd9a8ba commit 7d2bf19
Show file tree
Hide file tree
Showing 175 changed files with 7,656 additions and 478 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode7
osx_image: xcode7.2

install: true
before_install: ./travis/before_script.sh
Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
## 1.3.0

- Added better integration for Swift

- Added Nullability Attributes
- Added modulemap file
- Added sample app in Swift

- Added recognizers for scanning barcodes

- for scanning PDF417 barcodes, use PPPdf417Recognizer
- for scanning Code128 and Code39 barcodes, use PPBarDecoderRecognizer
- for scanning QR codes, and other barcode types, use PPZxingRecognizer

- Refactored `PPMetadataSettings`

- Added debug metadata settings for debugging payslip detection and image processing
- `successfulScanFrame` renamed to `successfulFrame`
- `currentVideoFrame` renamed to `currentFrame`

- Exposed `PPModernViewfinderOverlaySubview` overlay subview class in public headers. This enables you to more easily recreate default overlay UI in your custom Overlay view controllers.

- Added *Detector API*, a completely new feature which enables you to detect various document types on images. Detector API allows two types of document detections

- MRTD detection (based on OCR line detection, for MRTD documents like passports, visas, ...)
- Document Detection (based on edge detection, for ID cards, plastic cards, credit cards, ...)

- in `PPCoordinator`, renamed method `isScanningUnsupported:` to `isScanningUnsupportedForCameraType:error:`. This was introduced to provide more granularity in checking if scanning is supported.

- Fixed issues in obtaining images in scanning, most notably in MyKad scanning.

- Fixed issues with Direct API processing of UIImages in some orientations

- Fixed issues with scanning MRZ lines on arm7 devices.

## 1.2.0

- Added recognition of Malysian ID cards (MyKads). To use MyKad recognition initialize the scanning library using `PPMyKadRecognizerSettings`
Expand Down
File renamed without changes
File renamed without changes
Binary file added MicroBlink.bundle/Info.plist
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added MicroBlink.bundle/ocr_model.zzip
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/MicroBlink.framework/Headers

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/IDCard.png

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/[email protected]

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/PPbeep.wav

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/en.strings

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/ocr_model.zzip

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/torchoff.png

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/[email protected]

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/[email protected]

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/torchon.png

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/[email protected]

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/torchon_pressed.png

This file was deleted.

1 change: 0 additions & 1 deletion MicroBlink.embeddedframework/Resources/[email protected]

This file was deleted.

33 changes: 33 additions & 0 deletions MicroBlink.framework/Headers/MicroBlink.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// MicroBlink.h
// MicroBlinkFramework
//
// Created by Jurica Cerovec on 3/29/12.
// Copyright (c) 2015 MicroBlink Ltd. All rights reserved.
//

#ifndef PhotoPayFramework_MicroBlink_h
#define PhotoPayFramework_MicroBlink_h

// Basic class Attributes
#import "PPMicroBlinkDefines.h"

// Include basic API
#import "PPSettings.h"
#import "PPScanDelegate.h"
#import "PPCoordinator.h"

// Include Recognizers in BlinkID
#import "PPBlinkIDRecognizers.h"

// Include Overlay view controller headers
#import "PPBaseOverlayViewController.h"
#import "PPModernBaseOverlayViewController.h"

// Include Overlay subview headers
#import "PPModernOcrResultOverlaySubview.h"
#import "PPOcrResultOverlaySubview.h"
#import "PPModernViewfinderOverlaySubview.h"
#import "PPOverlaySubview.h"

#endif
120 changes: 120 additions & 0 deletions MicroBlink.framework/Headers/PPBarDecoderRecognizerResult.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
//
// PPBarDecoderRecognizerResult.h
// Pdf417Framework
//
// Created by Jura on 11/07/15.
// Copyright (c) 2015 MicroBlink Ltd. All rights reserved.
//

#import "PPRecognizerResult.h"
#import "PPBarcodeDetailedData.h"

/**
* Type of the barcode which BarDecoderRecognizer returnes
*/
typedef NS_ENUM(NSUInteger, PPBarDecoderBarcodeType){
/** Code 128 */
PPBarDecoderBarcodeTypeCode128,
/** Code 39 */
PPBarDecoderBarcodeTypeCode39
};

NS_ASSUME_NONNULL_BEGIN

/**
* Result of scanning with BarDecoder Recognizer
*
* Contains raw Barcode detailed data, barcode type, and methods for getting string representation of results.
*/
PP_CLASS_AVAILABLE_IOS(6.0) @interface PPBarDecoderRecognizerResult : PPRecognizerResult

/**
* Type of the barcode scanned
*
* @return Type of the barcode
*/
- (PPBarDecoderBarcodeType)barcodeType;

/**
* Flag indicating uncertain scanning data
* E.g obtained from damaged barcode.
*/
- (BOOL)isUncertain;

/**
* Byte array with result of the scan
*/
- (NSData *)data;

/**
* Retrieves string content of the scanned data using guessed encoding.
*
* If you're 100% sure you know the exact encoding in the barcode, use stringUsingEncoding: method.
* Otherwise stringUsingDefaultEncoding.
*
* This method uses NSString stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: method for
* guessing the encoding.
*
* @return created string, or nil if encoding couldn't be found.
*/
- (NSString *)stringUsingGuessedEncoding;

/**
* Retrieves string content of the scanned data using given encoding.
*
* @param encoding The encoding for the returned string.
*
* @return String created from data property, using given encoding
*/
- (NSString *)stringUsingEncoding:(NSStringEncoding)encoding;

/**
* Raw barcode detailed result
*/
- (PPBarcodeDetailedData *)rawData;


/**
* Byte array with extended result of the scan, if available.
*/
- (NSData *)extendedData;

/**
* Retrieves string content of the extended scanned data using guessed encoding.
*
* If you're 100% sure you know the exact encoding in the barcode, use stringUsingEncoding: method.
* Otherwise stringUsingDefaultEncoding.
*
* This method uses NSString stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: method for
* guessing the encoding.
*
* @return created string, or nil if encoding couldn't be found.
*/
- (NSString *)extendedStringUsingGuessedEncoding;

/**
* Retrieves string content of the extended scanned data using given encoding.
*
* @param encoding The encoding for the returned string.
*
* @return String created from extendedData property, using given encoding
*/
- (NSString *)extendedStringUsingEncoding:(NSStringEncoding)encoding;

/**
* Extended Raw barcode detailed result
*/
- (PPBarcodeDetailedData *)extendedRawData;

/**
* Method which gives string representation for a given PPBarDecoderBarcodeType enum value.
*
* @param type PPBarDecoderBarcodeType enum value
*
* @return String representation of a given PPBarDecoderBarcodeType enum value.
*/
+ (NSString *)toTypeName:(PPBarDecoderBarcodeType)type;

@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit 7d2bf19

Please sign in to comment.