blinkcard / blinkcard-ios Goto Github PK
View Code? Open in Web Editor NEWSDK for scanning and OCR of credit or payment cards. Contains native iOS SDK, code samples and documentation.
SDK for scanning and OCR of credit or payment cards. Contains native iOS SDK, code samples and documentation.
Hi,
We are a happy client of Microblink products (pdf417), currently we are adding capabilities to scan debit/credit cards in our app, our flow does not require the customer to scan the 2 sides of their cards, for several reasons we need the customer to enter their CVV by themselves, is there any way to receive the recognizer's results after scanning the first side of the card.
we run the following version:
iOS iPad supporting everything from iOS 12
PPBlinkID, '~> 5.9.0'
MBBlinkCard, '~> 2.0.0'
I followed the readme documentation to set up a scanner example.
The scanner overlay view controller works well but the direct processing API always returns empty.
func recognizerRunner(_ recognizerRunner: MBCRecognizerRunner, didFinishScanningWith state: MBCRecognizerResultState)
always returns empty results.
Does this API require an additional setup?
Hello.
Seems like the localization documentation posted on Github is outdate.
I'm following the steps posted there, but it doesn't work.
My doubt is: How can I insert the localization file?
My code:
`let settings: MBCBlinkCardOverlaySettings = MBCBlinkCardOverlaySettings()
settings.enableEditScreen = false
/** Crate recognizer collection */
let recognizerList = [CardScanHandler.blinkCardRecognizer!]
let recognizerCollection: MBCRecognizerCollection = MBCRecognizerCollection(recognizers: recognizerList)
/** Create your overlay view controller */
let blinkCardOverlayViewController = MBCBlinkCardOverlayViewController(
settings: settings,
recognizerCollection: recognizerCollection,
delegate: cardScanOverlayViewControllerDelegate)
/** Create recognizer view controller with wanted overlay view controller */
let recognizerRunneViewController: UIViewController = MBCViewControllerFactory.recognizerRunnerViewController(withOverlayViewController: blinkCardOverlayViewController)!
`
Could you please elaborate on why the SDK not longer supports iOS 12.
Thank you.
We are experiencing some crashes which seem to occur after displaying MBRecognizerRunnerViewController
. Our crash stack trace looks like:
3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
2 +[_CFXNotificationTokenRegistration keyCallbacks]
1 objc_exception_throw
We have logs in each app screen, and the flow always look pretty similar. Consider that we have defined MBRecognizerRunnerViewController
with screen name card_camera_reader
. You can see in the examples that after passing through this screen, couple of secs afterwards a crash occurs:
Example 1 | Example 2 | Example 3 | Example 4 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
I would really appreciate if you are able to help us with this issue considering that it's now affecting the user experience in Verse app:
Hi,
We encounter an issue after integrating Microblink libraries, BlinkId and BlinkCard, we are able to build, run and archive our app, but we can not build the app for test plans, when we try to run any test, we get the following error:
Multiple commands produce '/Users/ygdev/Library/Developer/Xcode/DerivedData/Sunbit-gqkznxfxghbfkwbgncsntljjorfr/Build/Products/Debug-iphonesimulator/cocoapods-artifacts-Debug.txt':
1) That command depends on command in Target 'pos' (project 'pos'): script phase “[CP] Prepare Artifacts”
2) That command depends on command in Target 'posTests' (project 'pos'): script phase “[CP] Prepare Artifacts”
We observed that adding these 2 libraries via CocoaPods adds the following phase to all targets in the project:
10E29A52893222C8752510C3 /* [CP] Prepare Artifacts */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-pos demo/Pods-pos demo-artifacts.sh",
"${PODS_ROOT}/MBBlinkCard/BlinkCard.xcframework",
"${PODS_ROOT}/PPBlinkID/Microblink.xcframework",
);
name = "[CP] Prepare Artifacts";
outputPaths = (
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-pos demo/Pods-pos demo-artifacts.sh\"\n";
showEnvVarsInLog = 0;
};
Xcode v12.3
pod 'PPBlinkID', '~> 5.9.0'
pod 'MBBlinkCard', '~> 2.0.0'
BlinkCard version 2.6.0
macOS 12.6
iOS 15+
Xcode 14.1
using SPM
I am using MBCMicroblinkSDK.shared().setLicenseResource("license-key-file", withExtension: "txt", inSubdirectory: "directory-to-license-key", for: Bundle.main, errorCallback: block)
API for scanning purpose with following directory structure
I am using this API by 2 different directory structure approaches as follows
Approach 1 BlinkCardLicenseKey.txt from /Resources
directory
BlinkCardAdapter.swift
MBCMicroblinkSDK.shared().setLicenseResource(
"BlinkCardLicenseKey",
withExtension: "txt",
inSubdirectory: "ScanCard/Resources",
for: .main) { _ in }
ScanningCard Project/
|
|——> ScanningCard.xcodeproj
|——> ScanCard/
| ---------------> Resources/BlinkCardLicenseKey.txt
| ---------------> core/.../Adapters/BlinkCardAdapter.swift
Approach 2 BlinkCardLicenseKey.txt from projects's root directory where .xcodeproj
exists
BlinkCardAdapter.swift
MBCMicroblinkSDK.shared().setLicenseResource(
"BlinkCardLicenseKey",
withExtension: "txt",
inSubdirectory: nil,
for: .main) { _ in }
ScanningCard Project/
|——> ScanningCard.xcodeproj
|——> BlinkCardLicenseKey.txt
|——> ScanCard/
| ---------------> core/.../Adapters/BlinkCardAdapter.swift
Even with both approach I am still seeing the same crash
If I use this API MBCMicroblinkSDK.shared().setLicenseKey("LICENSE-KEY", errorCallback: block)
then it is working as expected.
Am I using inSubdirectory
param in correct way in which it is supposed to be. ?
not getting cardholdername
After adding the pod, I got:
[!] Unable to find a specification for `MBBlinkCard (~> 1.0.1)
I was trying to check is the framework will suit my needs, but apparently the license key in Sample Project has expired on December 11 2019. Could you please update it?
Hi,
I got the following error while trying to install the SDK with Swift Package Manager.
Error:
Showing All Messages
downloaded archive of binary target 'BlinkCard' does not contain expected binary artifact 'BlinkCard.xcframework'
Xcode 12.3
OS Info: 15.6.1
Device Info: iPad 8th Gen
Description: On production enviroment i saw this crash, this is not able to reproduce though here is the stack trace for bug info i got. Wild guess this is crashing while presenting the view controller.
StackTrace:
Crashed: com.microblink.frame.processing
0 BlinkCard 0x23eb10 MBCscanningRegionForFrameInBounds + 1901760
1 BlinkCard 0x23eb10 MBCscanningRegionForFrameInBounds + 1901760
2 libdispatch.dylib 0x3a30 _dispatch_client_callout + 20
3 libdispatch.dylib 0xb124 _dispatch_lane_serial_drain + 668
4 libdispatch.dylib 0xbc80 _dispatch_lane_invoke + 392
5 libdispatch.dylib 0x16500 _dispatch_workloop_worker_thread + 648
6 libsystem_pthread.dylib 0x10bc _pthread_wqthread + 288
7 libsystem_pthread.dylib 0xe5c start_wqthread + 8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.