Skip to content

Commit

Permalink
Merge pull request #291 from BlinkID/release/real-v6.1.1
Browse files Browse the repository at this point in the history
Release/real v6.1.1
  • Loading branch information
medvedecrobertmb authored Mar 8, 2023
2 parents 8c969bc + c04565e commit 5e47bb0
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ protected List<MenuListItem> createMenuListItems() {
new MenuListItem("Scan document", new Runnable() {
@Override
public void run() {
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.R){
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
startScanning();
} else{
} else {
if (ContextCompat.checkSelfPermission(MainActivity.this,
Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
// request write permission
Expand Down Expand Up @@ -147,7 +147,8 @@ private void storeImage(String imageName, @Nullable Image image) {
}

@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
if (requestCode == REQUEST_WRITE_EXTERNAL_STORAGE) {
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public static byte[] loadBytesFromFileUri(Uri fileUri, Context context) {
return buffer.toByteArray();
} catch (FileNotFoundException e) {
e.printStackTrace();
Toast.makeText(context, com.microblink.libutils.R.string.toast_error_open_file, Toast.LENGTH_SHORT).show();
Toast.makeText(context, R.string.toast_error_open_file, Toast.LENGTH_SHORT).show();
} catch (IOException e) {
e.printStackTrace();
Toast.makeText(context, com.microblink.libutils.R.string.toast_error_read_file, Toast.LENGTH_SHORT).show();
Toast.makeText(context, R.string.toast_error_read_file, Toast.LENGTH_SHORT).show();
} finally {
try {
fileStream.close();
Expand Down
24 changes: 12 additions & 12 deletions BlinkIDSample/LibUtils/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- PaymentData stuff NOTUPTODATE -->
<string name="PPAmount">Betrag</string>
<string name="PPCurrency">Währung</string>
<string name="PPCurrency">W??hrung</string>
<string name="PPAccount">Kontonr.</string>
<string name="PPReference">Referenznr.</string>
<string name="PPReferenceModel">Modell</string>
Expand All @@ -12,17 +12,17 @@
<string name="PPIBAN">IBAN</string>
<string name="PPBIC">BIC</string>
<string name="PPFormID">Belegart</string>
<string name="PPSlipID">Überweisung ID</string>
<string name="PPPayerID">Empfänger ID</string>
<string name="PPSlipID">??berweisung ID</string>
<string name="PPPayerID">Empf??nger ID</string>
<string name="PPPayerName">Auftraggeber</string>
<string name="PPPayerAddress">Auftraggeber Adresse</string>
<string name="PPPayerDetailedAddress">Auftraggeber noch Adresse</string>
<string name="PPRecipientName">Empfänger</string>
<string name="PPRecipientName">Empf??nger</string>
<string name="PPRecipientAddress">Adresse</string>
<string name="PPRecipientDetailedAddress">Noch Adresse</string>
<string name="PPPaymentDescriptionCode">Verwendungszweck ID</string>
<string name="PPPaymentDescription">Verwendungszweck</string>
<string name="PPDueDate">Fälligkeit</string>
<string name="PPDueDate">F??lligkeit</string>
<string name="PPPaymentStatus">Status</string>
<string name="PPPayerAccount">Kontonr.</string>
<string name="PPPayerReference">Referenznr.</string>
Expand All @@ -31,25 +31,25 @@
<string name="PPPayerBankName">Name der Bank</string>
<string name="PPPayerIBAN">IBAN</string>
<string name="PPPaymentDataType">Datentyp</string>
<string name="PPPurposeCode">Geschäftscode</string>
<string name="PPPurposeCode">Gesch??ftscode</string>
<string name="PPTaxNumber">Steuernummer</string>
<string name="PPCustomerData">Kundendaten</string>
<string name="PPPrufziffer">Prüfziffer</string>
<string name="PPPrufziffer">Pr??fziffer</string>
<string name="PPBelegnummer">Belegnr.</string>
<string name="PPContractAccount">Vertragskonto</string>
<string name="PPDisplayData">Anzeige</string>
<string name="PPAuthorityType">Art der Vorlage</string>
<string name="PPExecutionDate">Datum der Ausführung</string>
<string name="PPCreditorId">Gläubiger-ID</string>
<string name="PPExecutionDate">Datum der Ausf??hrung</string>
<string name="PPCreditorId">Gl??ubiger-ID</string>
<string name="PPDateOfSignature">Datum der Unterschrift</string>
<string name="PPFormFunction">Formularfunktion</string>
<string name="PPFormType">Formulartyp</string>
<string name="PPFormVersion">Formularversion</string>
<string name="PPMandateId">Mandats-ID</string>
<string name="PPPeriodicFirstExecutionDate">Periodisches erstes Ausführungsdatum</string>
<string name="PPPeriodicLastExecutionDate">Datum der letzten Ausführung</string>
<string name="PPPeriodicFirstExecutionDate">Periodisches erstes Ausf??hrungsdatum</string>
<string name="PPPeriodicLastExecutionDate">Datum der letzten Ausf??hrung</string>
<string name="PPPeriodicTimeUnit">Periodische Zeiteinheit</string>
<string name="PPPeriodicTimeUnitRotation">Zeitraum Dauer</string>
<string name="PPPostingKey">Buchungsschlüssel</string>
<string name="PPPostingKey">Buchungsschl??ssel</string>

</resources>
28 changes: 14 additions & 14 deletions BlinkIDSample/LibUtils/src/main/res/values-hr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<!-- PaymentData stuff UpToDate -->
<string name="PPAmount">Iznos</string>
<string name="PPCurrency">Valuta</string>
<string name="PPAccount">Broj računa</string>
<string name="PPRecipientAccount">Broj računa primatelja</string>
<string name="PPAccount">Broj ra??una</string>
<string name="PPRecipientAccount">Broj ra??una primatelja</string>
<string name="PPReference">Broj odobrenja</string>
<string name="PPReferenceModel">Model</string>
<string name="PPReferenceStatus">PNB status</string>
Expand All @@ -21,24 +21,24 @@
<string name="PPRecipientName">Ime primatelja</string>
<string name="PPRecipientAddress">Adresa primatelja</string>
<string name="PPRecipientDetailedAddress">Dodatna adresa primatelja</string>
<string name="PPPaymentCode">Kod plaćanja</string>
<string name="PPPaymentDescriptionCode">Kod opisa plaćanja</string>
<string name="PPPaymentDescription">Opis plaćanja</string>
<string name="PPDueDate">Dospijeće plaćanja</string>
<string name="PPPaymentStatus">Status plaćanja</string>
<string name="PPPayerAccount">Broj računa platitelja</string>
<string name="PPPaymentCode">Kod pla??anja</string>
<string name="PPPaymentDescriptionCode">Kod opisa pla??anja</string>
<string name="PPPaymentDescription">Opis pla??anja</string>
<string name="PPDueDate">Dospije??e pla??anja</string>
<string name="PPPaymentStatus">Status pla??anja</string>
<string name="PPPayerAccount">Broj ra??una platitelja</string>
<string name="PPPayerReference">Broj odobrenja platitelja</string>
<string name="PPPayerReferenceModel">Model platitelja</string>
<string name="PPPayerBankCode">Banka platitelja</string>
<string name="PPPayerBankName">Ime banke platitelja</string>
<string name="PPPayerIBAN">IBAN platitelja</string>
<string name="PPPaymentDataType">Tip podataka</string>
<string name="PPPurposeCode">Šifra namjene</string>
<string name="PPPurposeCode">??ifra namjene</string>
<string name="PPTaxNumber">Porezni broj</string>
<string name="PPCustomerData">Korisnik</string>
<string name="PPPrufziffer">Kontrolne znamenke</string>
<string name="PPBelegnummer">Podtip uplatnice</string>
<string name="PPContractAccount">Račun po ugovoru</string>
<string name="PPContractAccount">Ra??un po ugovoru</string>
<string name="PPDisplayData">Podaci za prikaz</string>
<string name="PPOptionalData">Dodatni podaci</string>
<string name="PPIdentificationCode">Identifikacijski kod</string>
Expand All @@ -50,10 +50,10 @@
<string name="PPFormFunction">Funkcija obrasca</string>
<string name="PPFormType">Tip obrasca</string>
<string name="PPFormVersion">Verzija obrasca</string>
<string name="PPMandateId">ID ovlaštenja</string>
<string name="PPPeriodicFirstExecutionDate">Datum prvog izvršenja</string>
<string name="PPPeriodicLastExecutionDate">Datum posljednjeg izvršenja</string>
<string name="PPMandateId">ID ovla??tenja</string>
<string name="PPPeriodicFirstExecutionDate">Datum prvog izvr??enja</string>
<string name="PPPeriodicLastExecutionDate">Datum posljednjeg izvr??enja</string>
<string name="PPPeriodicTimeUnit">Vremenska jedinica perioda</string>
<string name="PPPeriodicTimeUnitRotation">Trajanje perioda</string>
<string name="PPPostingKey">Ključ knjiženja</string>
<string name="PPPostingKey">Klju?? knji??enja</string>
</resources>
4 changes: 2 additions & 2 deletions BlinkIDSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.microblink.com' }
// mavenLocal()
//mavenLocal()
google()
}
}

// versions of libraries that all modules require

project.ext {
blinkIdVersion = '6.1.0'
blinkIdVersion = '6.1.1'
compileSdkVersion = 33
targetSdkVersion = 33
appCompatVersion = '1.4.0'
Expand Down
Binary file modified LibBlinkID-javadoc.jar
Binary file not shown.
Binary file modified LibBlinkID.aar
Binary file not shown.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ With one quick scan, your users will be able to extract information from their i
BlinkID is:

- **Fast**. Real-time data extraction in less than 400ms. Way better than minutes-long form-filling.
- **Secure**. Privacy first, always. Scanning works even if the user?s phone is in airplane mode, meaning personal information never touches a third-party server.
- **Secure**. Privacy first, always. Scanning works even if the user's phone is in airplane mode, meaning personal information never touches a third-party server.
- **Intelligent**. Machine learning models, optimized to read and parse identity documents from more than 180 countries worldwide, automatically, no need to preselect any of them.
- **Lightweight**. Designed to increase your app?s usability, not weight.
- **What you make of it**. Customize and rebrand the default UI or leave it as it is. It?s up to you.
- **Lightweight**. Designed to increase your app's usability, not weight.
- **What you make of it**. Customize and rebrand the default UI or leave it as it is. It's up to you.
- **More than just a powerful ID scanner**. Powerful data extraction, coupled with powerful perks. Get a cropped document image back, spot printed documents or data match both sides of the ID for parity.

<p align="center" >
Expand All @@ -27,7 +27,7 @@ To see all of these features at work download our free demo app:

[![Vision App](https://raw.githubusercontent.com/wiki/blinkid/blinkid-android/images/playstore.png)](https://showcase.page.link/githubAndroid) [![Vision App](https://raw.githubusercontent.com/wiki/blinkid/blinkid-android/images/appgallery.png)](https://appgallery7.huawei.com/#/app/C101961459)

Feeling ready to crack on with the integration? First make sure we support your document type ?? [full list](https://microblink.com/full-list-of-supported-identity-documents/). And then follow the guidelines below.
Feeling ready to crack on with the integration? First make sure we support your document type ➡️ [full list](https://microblink.com/full-list-of-supported-identity-documents/). And then follow the guidelines below.

# Table of contents

Expand Down Expand Up @@ -113,7 +113,7 @@ Add _BlinkID_ as a dependency and make sure `transitive` is set to true

```
dependencies {
implementation('com.microblink:blinkid:6.1.0@aar') {
implementation('com.microblink:blinkid:6.1.1@aar') {
transitive = true
}
}
Expand All @@ -125,7 +125,7 @@ Android studio 3.0 should automatically import javadoc from maven dependency. If

1. In Android Studio project sidebar, ensure [project view is enabled](https://developer.android.com/sdk/installing/studio-androidview.html)
2. Expand `External Libraries` entry (usually this is the last entry in project view)
3. Locate `blinkid-6.1.0` entry, right click on it and select `Library Properties...`
3. Locate `blinkid-6.1.1` entry, right click on it and select `Library Properties...`
4. A `Library Properties` pop-up window will appear
5. Click the second `+` button in bottom left corner of the window (the one that contains `+` with little globe)
6. Window for defining documentation URL will appear
Expand Down Expand Up @@ -1081,7 +1081,7 @@ You need to ensure that the final app gets all resources required by _BlinkID_.
This problem is usually solved with transitive Maven dependencies, i.e. when publishing your AAR to Maven you specify dependencies of your AAR so they are automatically referenced by app using your AAR. Besides this, there are also several other approaches you can try:

- you can ask your clients to reference _BlinkID_ in their app when integrating your SDK
- since the problem lies in resource merging part you can try avoiding this step by ensuring your library will not use any component from _BlinkID_ that uses resources (i.e. built-in activities, fragments and views, except `RecognizerRunnerView`). You can perform [custom UI integration](#recognizer-runner-view) while taking care that all resources (strings, layouts, images, ...) used are solely from your AAR, not from _BlinkID_. Then, in your AAR you should not reference `LibBlinkID.aar` as gradle dependency, instead you should unzip it and copy its assets to your AAR?s assets folder, its `classes.jar` to your AAR?s lib folder (which should be referenced by gradle as jar dependency) and contents of its jni folder to your AAR?s src/main/jniLibs folder.
- since the problem lies in resource merging part you can try avoiding this step by ensuring your library will not use any component from _BlinkID_ that uses resources (i.e. built-in activities, fragments and views, except `RecognizerRunnerView`). You can perform [custom UI integration](#recognizer-runner-view) while taking care that all resources (strings, layouts, images, ...) used are solely from your AAR, not from _BlinkID_. Then, in your AAR you should not reference `LibBlinkID.aar` as gradle dependency, instead you should unzip it and copy its assets to your AAR?s assets folder, its `classes.jar` to your AAR?s lib folder (which should be referenced by gradle as jar dependency) and contents of its jni folder to your AAR's src/main/jniLibs folder.
- Another approach is to use [3rd party unofficial gradle script](https://github.com/adwiv/android-fat-aar) that aim to combine multiple AARs into single fat AAR. Use this script at your own risk and report issues to [its developers](https://github.com/adwiv/android-fat-aar/issues) - we do not offer support for using that script.
- There is also a [3rd party unofficial gradle plugin](https://github.com/Vigi0303/fat-aar-plugin) which aims to do the same, but is more up to date with latest updates to Android gradle plugin. Use this plugin at your own risk and report all issues with using to [its developers](https://github.com/Vigi0303/fat-aar-plugin/issues) - we do not offer support for using that plugin.
Expand Down Expand Up @@ -1215,7 +1215,7 @@ When you have to determine what is the license-relate problem or you simply do n
**Keep in mind:** Versions 5.8.0 and above require an internet connection to work under our new License Management Program.
We?re only asking you to do this so we can validate your trial license key. Data extraction still happens offline, on the device itself.
We're only asking you to do this so we can validate your trial license key. Data extraction still happens offline, on the device itself.
Once the validation is complete, you can continue using the SDK in offline mode (or over a private network) until the next check.

### Other problems
Expand Down Expand Up @@ -1278,7 +1278,7 @@ This usually happens when you attempt to transfer standalone `Result` that conta

When automatic scanning of camera frames with our camera management is used (provided camera overlays or direct usage of `RecognizerRunnerView`), we use a stream of video frames and send multiple images to the recognition to boost reading accuracy. Also, we perform frame quality analysis and combine scanning results from multiple camera frames. On the other hand, when you are using the Direct API with a single image per document side, we cannot combine multiple images. We do our best to extract as much information as possible from that image. In some cases, when the quality of the input image is not good enough, for example, when the image is blurred or when glare is present, we are not able to successfully read the document.

#### <a name="network-required-error"></a> I am getting a ???Network required??? error when I'm on a private network
#### <a name="network-required-error"></a> I am getting a 'Network required' error when I'm on a private network
Online trial licenses require a public network access for validation purposes. See [Licensing issues](#licensing-issues).
Expand Down
3 changes: 3 additions & 0 deletions Release notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release notes

## v6.1.1
- Internal improvements

## v6.1.0
### New features
- new and improved machine learning models for data extraction
Expand Down
2 changes: 1 addition & 1 deletion builtFromCommit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Built from commit f6b387d8dbefd9a3c506e3463058413830f44084
Built from commit c94753b8b23d3549a3abb794c7e1fbddd7fe7816
Binary file modified docs/member-search-index.zip
Binary file not shown.
Binary file modified docs/package-search-index.zip
Binary file not shown.
Binary file modified docs/type-search-index.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microblink</groupId>
<artifactId>blinkid</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
<packaging>aar</packaging>
<name>BlinkID SDK for Android</name>
<description>SDK that enables scanning of ID documents and passports in your Android application</description>
Expand Down

0 comments on commit 5e47bb0

Please sign in to comment.