Skip to content

Commit

Permalink
Merge branch 'release/20'
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Müller committed Mar 14, 2020
2 parents b64450d + 14d44e8 commit 438455f
Show file tree
Hide file tree
Showing 22 changed files with 919 additions and 247 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Anyline, AnylineSDK
Copyright (c) 2018 Anyline GmbH All rights reserved.
Copyright (c) 2020 Anyline GmbH All rights reserved.

Community Version User License Agreement

Expand Down
86 changes: 41 additions & 45 deletions example/RNExampleApp/config/DocumentConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,48 @@ export default {
'NE9tUzVraWdNUVZLaW8vaWlJS2tIVEVUdUxjYWJEWWtacExZdVR2YnU1S1hIc0R6\n' +
'b1NxUUJTL3ZFS3VYUHhhCjNnanZnS285M3lrSjJKQjVBZjZiSkE9PQo=',
options: {
"camera": {
"captureResolution": "720p",
"pictureResolution": "1080p",
"pictureAspectRatios": ["16:9"]
},
"flash": {
"mode": "manual",
"alignment": "bottom_left",
"offset": {
"x": 10,
"y": 0
}
},

"viewPlugin": {
"plugin": {
"id": "DOCUMENT",
"documentPlugin": {
}
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"maxHeightPercent": "100%",
"widthPercent" : "100%",
"width": 1080,
"ratioFromSize": {
"width": 10,
"height": 18
"camera": {
"captureResolution": "720p",
"pictureResolution": "1080p",
"pictureAspectRatios": ["16:9"]
},
"flash": {
"mode": "manual",
"alignment": "bottom_left",
"offset": {
"x": 10,
"y": 0
}
},
"alignment": "center",
"strokeWidth": 2,
"cornerRadius": 0,
"strokeColor": "00000000"
},
"scanFeedback": {
"beepOnResult": true,
"vibrateOnResult": true,
"blinkAnimationOnResult": true,
"style": "contour_rect",
"strokeWidth": 2,
"strokeColor": "0099FF"

},
"cancelOnResult": true
"viewPlugin": {
"plugin": {
"id": "DOCUMENT",
"documentPlugin": {
}
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"maxHeightPercent": "100%",
"widthPercent": "100%",
"width": 1080,
"ratioFromSize": {
"width": 10,
"height": 18
},
"alignment": "center",
"strokeWidth": 2,
"cornerRadius": 0,
"strokeColor": "00000000"
},
"scanFeedback": {
"beepOnResult": true,
"vibrateOnResult": true,
"blinkAnimationOnResult": true
},
"cancelOnResult": true
},
quality: 90
},
quality: 90
},
}
84 changes: 40 additions & 44 deletions example/RNExampleApp/config/DocumentConfigUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,48 @@ export default {
'NE9tUzVraWdNUVZLaW8vaWlJS2tIVEVUdUxjYWJEWWtacExZdVR2YnU1S1hIc0R6\n' +
'b1NxUUJTL3ZFS3VYUHhhCjNnanZnS285M3lrSjJKQjVBZjZiSkE9PQo=',
options: {
"camera": {
"captureResolution": "720p",
"pictureResolution": "1080p",
"pictureAspectRatios": ["16:9"]
},
"flash": {
"mode": "manual",
"alignment": "bottom_left",
"offset": {
"x": 10,
"y": 0
}
},

"viewPlugin": {
"plugin": {
"id": "DOCUMENT",
"documentPlugin": {
}
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"maxHeightPercent": "100%",
"widthPercent" : "100%",
"width": 1080,
"ratioFromSize": {
"width": 10,
"height": 18
"camera": {
"captureResolution": "720p",
"pictureResolution": "1080p",
"pictureAspectRatios": ["16:9"]
},
"flash": {
"mode": "manual",
"alignment": "bottom_left",
"offset": {
"x": 10,
"y": 0
}
},
"alignment": "center",
"strokeWidth": 2,
"cornerRadius": 0,
"strokeColor": "00000000"
},
"scanFeedback": {
"beepOnResult": true,
"vibrateOnResult": true,
"blinkAnimationOnResult": true,
"style": "contour_rect",
"strokeWidth": 2,
"strokeColor": "0099FF"

},
"cancelOnResult": true
},
"viewPlugin": {
"plugin": {
"id": "DOCUMENT",
"documentPlugin": {
}
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"maxHeightPercent": "100%",
"widthPercent": "100%",
"width": 1080,
"ratioFromSize": {
"width": 10,
"height": 18
},
"alignment": "center",
"strokeWidth": 2,
"cornerRadius": 0,
"strokeColor": "00000000"
},
"scanFeedback": {
"beepOnResult": true,
"vibrateOnResult": true,
"blinkAnimationOnResult": true
},
"cancelOnResult": true
},
"documentScannerUI": true,
quality: 90
},
Expand Down
77 changes: 77 additions & 0 deletions example/RNExampleApp/config/NFCAndMRZConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
export default {
license: 'eyAiYW5kcm9pZElkZW50aWZpZXIiOiBbICJjb20uYW55bGluZS5leGFtcGxlLnJl\n' +
'YWN0bmF0aXZlIiBdLCAiZGVidWdSZXBvcnRpbmciOiAib24iLCAiaW9zSWRlbnRp\n' +
'ZmllciI6IFsgImNvbS5hbnlsaW5lLmV4YW1wbGUucmVhY3RuYXRpdmUiIF0sICJs\n' +
'aWNlbnNlS2V5VmVyc2lvbiI6IDIsICJtYWpvclZlcnNpb24iOiAiMyIsICJwaW5n\n' +
'UmVwb3J0aW5nIjogdHJ1ZSwgInBsYXRmb3JtIjogWyAiaU9TIiwgIkFuZHJvaWQi\n' +
'IF0sICJzY29wZSI6IFsgIkFMTCIgXSwgInNob3dQb3BVcEFmdGVyRXhwaXJ5Ijog\n' +
'ZmFsc2UsICJzaG93V2F0ZXJtYXJrIjogdHJ1ZSwgInRvbGVyYW5jZURheXMiOiA5\n' +
'MCwgInZhbGlkIjogIjIwMjAtMTItMzEiIH0KUlliRzFBbFgwempXZTVLYkdtK000\n' +
'SXFXME5jWUdTZWNBU0t6M3k0QnQ3VGFjMWgrVEpveHlIVXFTb1JxWFZKNgpXRlhH\n' +
'N2kvVjFqNjVTTEgyS0V4NUpoRlZKT0Y1UDhJR1VLak9CY1ozR2o5WHRTLzdub3Ni\n' +
'ZHoxTTlqZWlJRWJYCjZ1ZXFyVmtyNGRpRVJsOWNDQ01kOWRvTG80dnJiMGpIbzZ0\n' +
'bk12d2VrWFdUaUFnSlNjNXB5MGlOc2F6MjRKZFYKa3dEWnY2dG9Oa1NIdjhRWTVj\n' +
'U3laSWdNSHFsRTZBUkVxcG5oNlA5THh3aWF1Sm5Sd2o4OWFWVCt4ZkoyaFdLbgpU\n' +
'NE9tUzVraWdNUVZLaW8vaWlJS2tIVEVUdUxjYWJEWWtacExZdVR2YnU1S1hIc0R6\n' +
'b1NxUUJTL3ZFS3VYUHhhCjNnanZnS285M3lrSjJKQjVBZjZiSkE9PQo=',
options: {
"camera": {
"captureResolution": "1080p"
},
"flash": {
"mode": "manual",
"alignment": "bottom_left"
},
"viewPlugin" : {
"plugin": {
"id": "ID_NFC",
"nfcPlugin": {
"mrzConfig": {
"strictMode" : false,
"cropAndTransformID" : false,
"mrzFieldScanOptions": {
}
}
}
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "90%",
"maxHeightPercent": "90%",
"alignment": "center",
"ratioFromSize": {
"width": 125,
"height": 85
},
"strokeWidth": 2,
"cornerRadius": 4,
"strokeColor": "FFFFFF",
"outerColor": "000000",
"outerAlpha": 0.3,
"cropPadding": {
"x": 0,
"y": 0
},
"cropOffset": {
"x": 0,
"y": 0
},
"feedbackStrokeColor": "0099FF",
"offset": {
"x": 0,
"y": 30
}
},
"scanFeedback": {
"style": "rect",
"strokeColor": "0099FF",
"strokeWidth": 2,
"blinkOnResult": true,
"beepOnResult": true,
"vibrateOnResult": true
},
"cancelOnResult": true
},
"cropAndTransformErrorMessage": "Edges are not detected"
}
}
93 changes: 48 additions & 45 deletions example/RNExampleApp/config/TINConfig.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
license: 'eyAiYW5kcm9pZElkZW50aWZpZXIiOiBbICJjb20uYW55bGluZS5leGFtcGxlLnJl\n' +
license:
'eyAiYW5kcm9pZElkZW50aWZpZXIiOiBbICJjb20uYW55bGluZS5leGFtcGxlLnJl\n' +
'YWN0bmF0aXZlIiBdLCAiZGVidWdSZXBvcnRpbmciOiAib24iLCAiaW9zSWRlbnRp\n' +
'ZmllciI6IFsgImNvbS5hbnlsaW5lLmV4YW1wbGUucmVhY3RuYXRpdmUiIF0sICJs\n' +
'aWNlbnNlS2V5VmVyc2lvbiI6IDIsICJtYWpvclZlcnNpb24iOiAiMyIsICJwaW5n\n' +
Expand All @@ -15,47 +16,49 @@ export default {
'NE9tUzVraWdNUVZLaW8vaWlJS2tIVEVUdUxjYWJEWWtacExZdVR2YnU1S1hIc0R6\n' +
'b1NxUUJTL3ZFS3VYUHhhCjNnanZnS285M3lrSjJKQjVBZjZiSkE9PQo=',
options: {

"camera": {
"captureResolution": "720"
},
"flash": {
"mode": "manual",
"alignment": "bottom_left"
},
"viewPlugin": {
"plugin": {
"id": "TIN_ID",
"ocrPlugin": {
"tinConfig": {

}
}
},
"cutoutConfig": {
"style": "rect",
"alignment": "top_half",
"strokeWidth": 1,
"strokeColor": "FFFFFF",
"cornerRadius": 2,
"outerColor": "000000",
"outerAlpha": 0.3,
"feedbackStrokeColor": "0099FF"
},
"scanFeedback": {
"animation": "traverse_multi",
"animationDuration": 250,
"style": "contour_rect",
"strokeWidth": 2,
"strokeColor": "0099FF",
"beepOnResult": false,
"vibrateOnResult": true,
"blinkAnimationOnResult": true,
"cancelOnResult": true
},
"cancelOnResult": true,
"reportingEnabled": true
}
}

}
camera: {
captureResolution: '720p',
},
flash: {
mode: 'manual',
alignment: 'bottom_right',
imageOn: 'flash_on',
imageOff: 'flash_off',
},
viewPlugin: {
plugin: {
id: 'TIN',
ocrPlugin: {
tinConfig: {},
},
},
cutoutConfig: {
style: 'rect',
width: 720,
alignment: 'center',
maxWidthPercent: '80%',
ratioFromSize: {
width: 720,
height: 144,
},
outerColor: '000000',
outerAlpha: 0.3,
strokeWidth: 2,
strokeColor: 'FFFFFF',
cornerRadius: 2,
feedbackStrokeColor: '0099FF',
},
scanFeedback: {
animation: 'traverse_multi',
animationDuration: 250,
style: 'contour_rect',
strokeWidth: 2,
strokeColor: '0099FF',
beepOnResult: true,
vibrateOnResult: true,
blinkAnimationOnResult: true,
},
cancelOnResult: true,
},
},
};
Loading

0 comments on commit 438455f

Please sign in to comment.