-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from BlinkID/release/v3.5.0
Release/v3.5.0
- Loading branch information
Showing
146 changed files
with
15,824 additions
and
708 deletions.
There are no files selected for viewing
236 changes: 98 additions & 138 deletions
236
BlinkIDDemo/BlinkIDDemo/src/main/java/com/microblink/blinkid/MenuActivity.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
...m/microblink/libresult/extract/romania/RomanianIDFrontSideRecognitionResultExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package com.microblink.libresult.extract.romania; | ||
|
||
import android.content.Context; | ||
|
||
import com.microblink.libresult.R; | ||
import com.microblink.libresult.extract.RecognitionResultEntry; | ||
import com.microblink.libresult.extract.mrtd.MRTDRecognitionResultExtractor; | ||
import com.microblink.recognizers.BaseRecognitionResult; | ||
import com.microblink.recognizers.blinkid.romania.front.RomanianIDFrontSideRecognitionResult; | ||
import com.microblink.util.Log; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by Boris on 03/03/17. | ||
*/ | ||
|
||
public class RomanianIDFrontSideRecognitionResultExtractor extends MRTDRecognitionResultExtractor { | ||
public RomanianIDFrontSideRecognitionResultExtractor(Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
public List<RecognitionResultEntry> extractData(BaseRecognitionResult result) { | ||
|
||
if (result == null) { | ||
return mExtractedData; | ||
} | ||
|
||
if (result instanceof RomanianIDFrontSideRecognitionResult) { | ||
RomanianIDFrontSideRecognitionResult romanianIdFrontResult = (RomanianIDFrontSideRecognitionResult) result; | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPLastName, | ||
romanianIdFrontResult.getLastName() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPFirstName, | ||
romanianIdFrontResult.getFirstName() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPIdentityCardNumber, | ||
romanianIdFrontResult.getIdentityCardNumber() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPSeries, | ||
romanianIdFrontResult.getIdentityCardSeries() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPCNP, | ||
romanianIdFrontResult.getCNP() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPParentNames, | ||
romanianIdFrontResult.getParentNames() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPNationality, | ||
romanianIdFrontResult.getNationality() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPPlaceOfBirth, | ||
romanianIdFrontResult.getPlaceOfBirth() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPAddress, | ||
romanianIdFrontResult.getAddress() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPIssuingAuthority, | ||
romanianIdFrontResult.getIssuedBy() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPSex, | ||
romanianIdFrontResult.getSex() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPValidFrom, | ||
romanianIdFrontResult.getValidFrom() | ||
)); | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPValidUntil, | ||
romanianIdFrontResult.getValidUntil() | ||
)); | ||
|
||
Log.e(this, "Before super"); | ||
super.extractMRZData(romanianIdFrontResult); | ||
Log.e(this, "After super"); | ||
} | ||
|
||
return mExtractedData; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
.../java/com/microblink/libresult/extract/simnumber/SimNumberRecognitionResultExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.microblink.libresult.extract.simnumber; | ||
|
||
import android.content.Context; | ||
|
||
import com.microblink.libresult.R; | ||
import com.microblink.libresult.extract.IBaseRecognitionResultExtractor; | ||
import com.microblink.libresult.extract.RecognitionResultEntry; | ||
import com.microblink.recognizers.BaseRecognitionResult; | ||
import com.microblink.recognizers.blinkbarcode.simnumber.SimNumberScanResult; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* Created by Boris on 03/02/17. | ||
*/ | ||
public class SimNumberRecognitionResultExtractor implements IBaseRecognitionResultExtractor { | ||
|
||
|
||
private RecognitionResultEntry.Builder mBuilder; | ||
private List<RecognitionResultEntry> mExtractedData; | ||
|
||
public SimNumberRecognitionResultExtractor(Context context) { | ||
mBuilder = new RecognitionResultEntry.Builder(context); | ||
mExtractedData = new ArrayList<>(); | ||
} | ||
|
||
@Override | ||
public List<RecognitionResultEntry> extractData(BaseRecognitionResult result) { | ||
|
||
if (result == null){ | ||
return mExtractedData; | ||
} | ||
|
||
if (result instanceof SimNumberScanResult){ | ||
// result is obtained by scanning of sim number | ||
SimNumberScanResult simNumberResult = (SimNumberScanResult) result; | ||
|
||
mExtractedData.add(mBuilder.build( | ||
R.string.PPSimNumber, | ||
simNumberResult.getSimNumber() | ||
)); | ||
} | ||
|
||
return mExtractedData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri Sep 30 14:38:40 CEST 2016 | ||
#Fri Mar 17 12:53:27 CET 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.