Skip to content

Commit

Permalink
changed new Anyline SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas committed Jan 10, 2018
1 parent c2904d7 commit 5fe9bf0
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/RNExampleApp/config/EnergyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
tintColor: 'F21C0A',
offset: {
x: 0,
y: 500
y: 400
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/config/IbanConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
ocr: {
"scanMode": "AUTO",
"tesseractLanguages": ["eng_no_dict", "deu"],
"traineddataFiles": ["trainedData/eng_no_dict.traineddata", "trainedData/deu.traineddata"],
"traineddataFiles": ["tessdata/eng_no_dict.traineddata", "tessdata/deu.traineddata"],
"charWhitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
"validationRegex": "^[A-Z]{2}([0-9A-Z]\\s*){13,32}$",
"minConfidence": 65,
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/config/VoucherConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
ocr: {
"scanMode": "AUTO",
"tesseractLanguages": ["anyline_capitals"],
"traineddataFiles": ["trainedData/anyline_capitals.traineddata"],
"traineddataFiles": ["tessdata/anyline_capitals.traineddata"],
"charWhitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
"validationRegex": "[A-Z0-9]{8}$",
"minConfidence": 85
Expand Down
4 changes: 2 additions & 2 deletions example/RNExampleApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"reinstall": "yarn remove anyline-ocr-react-native-module && yarn add ../../plugin && react-native link",
"reinstall-pods": "cd ios/ && rm -rf Pods Podfile.lock && pod install --verbose && cd .. && react-native link",
"test": "jest",
"bundleAndroid": "react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/",
"bundleiOS": "react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios"
"bundleAndroid": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/",
"bundleiOS": "react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios"
},
"dependencies": {
"anyline-ocr-react-native-module": "../../plugin",
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ansi@^0.3.0, ansi@~0.3.1:
resolved "https://registry.yarnpkg.com/ansi/-/ansi-0.3.1.tgz#0c42d4fb17160d5a9af1e484bace1c66922c1b21"

anyline-ocr-react-native-module@../../plugin:
version "3.19.0"
version "3.20.0"

anymatch@^1.3.0:
version "1.3.2"
Expand Down
2 changes: 1 addition & 1 deletion plugin/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ repositories {
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'io.anyline:anylinesdk:3.19.0@aar'
compile 'io.anyline:anylinesdk:3.20.0@aar'
compile 'com.google.android.gms:play-services-vision:10.0.1'
compile 'com.android.support:design:25.1.0'
compile "com.facebook.react:react-native:+" // From node_modules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ protected void onCreate(Bundle savedInstanceState) {
String[] languages = new String[languageArray.length()];
for (int i = 0; i < languages.length; i++) {
languages[i] = languageArray.getString(i);
Log.d("languages", languages[i]);
}
ocrConfig.setLanguages(languages);
}
Expand Down

0 comments on commit 5fe9bf0

Please sign in to comment.