Skip to content

Commit

Permalink
Merge pull request #14 from BlinkID/feature/v1.2.0
Browse files Browse the repository at this point in the history
v1.2.0
  • Loading branch information
juraskrlec authored Nov 16, 2023
2 parents cfc2f7c + 08715bc commit 751f420
Show file tree
Hide file tree
Showing 37 changed files with 205 additions and 114 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v1.2.0

- Introduced `BlurPolicy`, `GlarePolicy`, `TiltPolicy` which are used to enable `strict`, `normal`, `relaxed` or `disabled` policies.
- Analyzer settings changes:
- replaced `tiltThreshold` with `tiltPolicy`
- replaced `ignoreGlare` with `glarePolicy`
- replaced `ignoreBlur` with `blurPolicy`

## v1.1.1

- No changes
Expand Down
10 changes: 5 additions & 5 deletions CaptureCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>CaptureCore.framework/CaptureCore</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>CaptureCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>CaptureCore.framework/CaptureCore</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>CaptureCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,48 @@ typedef NS_ENUM(NSInteger, MBCCCaptureStrategy) {
MBCCCaptureStrategySingleFrame
};

/// Policy used to detect tilted documents.
typedef NS_ENUM(NSInteger, MBCCTiltPolicy) {
/// Disables tilt detection
MBCCTiltPolicyDisabled,
/// Strict tilt detection
/// Enables capture of document with minimum tilt tolerance.
MBCCTiltPolicyStrict,
/// Trade-off for strict and relaxed
MBCCTiltPolicyNormal,
/// Relaxed tilt detection
/// Enables capture of documents with higher tilt tolerance.
MBCCTiltPolicyRelaxed
};

/// Policy used to discard frames with blurred documents.
typedef NS_ENUM(NSInteger, MBCCBlurPolicy) {
/// Disables blur detection
MBCCBlurPolicyDisabled,
/// Strict blur detection
/// Enables capture of documents with minimum blur degradation.
MBCCBlurPolicyStrict,
/// Trade-off for strict and relaxed
MBCCBlurPolicyNormal,
/// Relaxed blur detection
/// Enables capture of documents with relaxed blur degradation, allowing capture of more blurry documents.
MBCCBlurPolicyRelaxed
};

/// Policy used to discard frames with glare detected on the document.
typedef NS_ENUM(NSInteger, MBCCGlarePolicy) {
/// Disables glare detection
MBCCGlarePolicyDisabled,
/// Strict glare detection
/// Enables capture of documents with minimum glare degradation.
MBCCGlarePolicyStrict,
/// Trade-off for strict and relaxed
MBCCGlarePolicyNormal,
/// Relaxed glare detection
/// Enables capture of documents with relaxed glare detection, allowing capture of documents with more glare.
MBCCGlarePolicyRelaxed
};

/// See ``MBCCLightingThresholds`` for more details.
@class MBCCLightingThresholds;

Expand All @@ -44,25 +86,11 @@ MBCC_CORE_FINAL
/// Default: `YES`
@property (nonatomic) BOOL returnTransformedDocumentImage;

/// Defines whether to discard frames with blurred documents.
///
/// If enabled, the capture process is allowed to finish with blurry documents.
///
/// Default: `NO`
@property (nonatomic) BOOL ignoreBlur;

/// Defines whether to return an image of the transformed document with applied margin used during document framing.
///
/// Default: `NO`
@property (nonatomic) BOOL keepMarginOnTransformedDocumentImage;

/// Defines whether to discard frames with glare detected on the document.
///
/// If enabled, the capture process is allowed to finish with glare on the document.
///
/// Default: `NO`
@property (nonatomic) BOOL ignoreGlare;

/// Enables document capture with a margin defined as the percentage of the dimensions of the framed document.
///
/// Both margin and document are required to be fully visible on camera frame in order to finish capture.
Expand All @@ -82,16 +110,6 @@ MBCC_CORE_FINAL
/// Default: `0.05f`
@property (nonatomic) CGFloat handOcclusionThreshold;

/// Threshold for detecting tilted documents.
/// Frames with documents tilted more than defined by this threshold are discarded.
///
/// Allowed values are from 0 to 1.
///
/// - Throws: `MBCCInvalidTiltTresholdException` if the quantity is less than 0 and more than 1.
///
/// Default:` 0.17f`
@property (nonatomic) CGFloat tiltThreshold;

/// Configures capture strategy used to select the best frame.
/// See ``MBCCCaptureStategy`` for more details.
@property (nonatomic) MBCCCaptureStrategy captureStrategy;
Expand All @@ -118,6 +136,24 @@ MBCC_CORE_FINAL
/// Default: `YES`
@property (nonatomic) BOOL adjustMinimumDocumentDpi;

/// Policy used to detect tilted documents.
/// See ``MBCCTiltPolicy`` for more details.
///
/// Default: `MBCCTiltPolicyNormal`
@property (nonatomic) MBCCTiltPolicy tiltPolicy;

/// Policy used to discard frames with blurred documents.
/// See ``MBCCBlurPolicy`` for more details.
///
/// Default: `MBCCBlurPolicyNormal`
@property (nonatomic) MBCCBlurPolicy blurPolicy;

/// Policy used to discard frames with glare detected on the document.
/// See ``MBCCGlarePolicy`` for more details.
///
/// Default: `MBCCGlarePolicyNormal`
@property (nonatomic) MBCCGlarePolicy glarePolicy;

@end

/// Parameters for lighting estimation.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</data>
<key>Headers/MBCCAnalyzerSettings.h</key>
<data>
PQl/YASquU7G3nnik4hy75gDAys=
XnsG6XMZyZ2hUgUxLlPNpufEX10=
</data>
<key>Headers/MBCCCameraFrameAdjuster.h</key>
<data>
Expand Down Expand Up @@ -62,43 +62,43 @@
</data>
<key>Info.plist</key>
<data>
2TLQMkHW8TSSYzsaR2y9eEFwWCg=
zjfxfzw/urM/namlyLA3iKqnt2k=
</data>
<key>Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop</key>
<data>
vB27+AHs2Qa9qtvSpMgjh50F+7c=
wI79Ct27+07HULn2STDcqa4I1P4=
</data>
<key>Model_0c0458bedf340ad5858a25dd463e63f57ddb42e69c3c5ff0c572a528356b020d.strop</key>
<key>Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop</key>
<data>
ReEol0mAts0hkQlDqmkTDdD4OXI=
ADfMRAeQMjFShI0j/ppaRXHoqRw=
</data>
<key>Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop</key>
<data>
vsV1lpHc8QuoRcgUlsaqyn1HWjU=
NsY0XMWFpbBJ8WetsmfMNs62lDk=
</data>
<key>Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop</key>
<data>
6OD05wScAwf8FqOMtUQGs/eKRec=
ATa+CpgpZqTv6tNPxkphzPREvI0=
</data>
<key>Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop</key>
<data>
y+FGt1SroxHEL0sggu0PxktX+v8=
KTTtYCKW7zy93hbU6TutBWpUPNM=
</data>
<key>Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop</key>
<data>
WbE65il7x8NcqsbKQQAbgadwpCU=
ieH2Mhd7txYMuxsHWDz/TT3ZPSI=
</data>
<key>Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop</key>
<data>
T5rzy8Vn05NELgkysNcNRewJgxI=
ygfyg/rSV0CYJ3YTtSg7A6+8wXk=
</data>
<key>Modules/module.modulemap</key>
<data>
0zmGUM39pHsw+5Mes9K2S3aQ9lg=
</data>
<key>conan.xcconfig</key>
<data>
jTQgC4qxrssRXcVajwUz25+nyHI=
yt6Wiq5hDvunyKlsWvDm6ain4+g=
</data>
</dict>
<key>files2</key>
Expand Down Expand Up @@ -135,7 +135,7 @@
<dict>
<key>hash2</key>
<data>
6IqFVjxd4j3rAI5rO7r9TOP6zjLZ7GiA2fdhyX0p/ug=
T9GPWsznVzQSCDw4g9ph0pl9NekA1g49x8WCWyNGLPM=
</data>
</dict>
<key>Headers/MBCCCameraFrameAdjuster.h</key>
Expand Down Expand Up @@ -205,49 +205,49 @@
<dict>
<key>hash2</key>
<data>
4J7u0ZTG00FolZdN4CigL0DseIBRzJANLut2LLrD+fs=
/XRnunyGYspJTHHV56/EaARWbTdncWWs2S5UAEtwYfw=
</data>
</dict>
<key>Model_0c0458bedf340ad5858a25dd463e63f57ddb42e69c3c5ff0c572a528356b020d.strop</key>
<key>Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop</key>
<dict>
<key>hash2</key>
<data>
3WwljOThW9gqV2Z3FCXdOeYKxbkXHh6pWvww/+Db478=
2twuAtO2kE+Xeoclz1FAR1Fd72Mu3tgvPN/vnqz/6Wg=
</data>
</dict>
<key>Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop</key>
<dict>
<key>hash2</key>
<data>
SOVeB8SXCzbEfzZTNj/ATJ/2kBwqvwHEFkyGWNKdOUw=
Ec1HZd4FmTC3qkHbSW+wpwYtDjvP6OQNfEXI+8Pr76s=
</data>
</dict>
<key>Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop</key>
<dict>
<key>hash2</key>
<data>
UWF3N+8CpuTTam06OEDHFsAlJjSOmuB4vqjKbK20ZO0=
+CPakF7yx34IWUZvdkg/cdfEpuv5hciF8MMuXZCA094=
</data>
</dict>
<key>Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop</key>
<dict>
<key>hash2</key>
<data>
V8P0TFdCXX70Im8sEU/s0ZWU3K94oVLkczJBBKwRij4=
yB33I7bfNEuMBnvHki5LLENSVmhmWgWU2kVQjJVkzm8=
</data>
</dict>
<key>Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop</key>
<dict>
<key>hash2</key>
<data>
w2iVRJX6JoJHOj5/V4K4QD4TliX9w0Utrpj2+K5PXoo=
W8lhojSf90Amgezy/i6ekTjIXNrU4znfgvzTZ8qLLgA=
</data>
</dict>
<key>Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop</key>
<dict>
<key>hash2</key>
<data>
yAjEPBXu2FSRQqAFESZFOQGcpr+WGWwGJ+lKk65AsU4=
oAv3pkal/2g2kIy34dcCT5W76SR0UHJLFUcVQuaULSs=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand All @@ -261,7 +261,7 @@
<dict>
<key>hash2</key>
<data>
0ziThTqjSBi9FL6rzwe8Znww+zKePMADpUFhlLUGds8=
pKKWgkWOnWH9krYo/6SHnHkAZq93KxD/E/Sx0emm2rk=
</data>
</dict>
</dict>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Version settings
MARKET_VERSION = 1.1.1
MARKETING_VERSION = 1.1.1
CURRENT_PROJECT_VERSION = 1.1.1
MARKET_VERSION = 1.2.0
MARKETING_VERSION = 1.2.0
CURRENT_PROJECT_VERSION = 1.2.0

// Build
ONLY_ACTIVE_ARCH[config=DevRelease] = YES
Expand Down
Binary file not shown.
Loading

0 comments on commit 751f420

Please sign in to comment.