Skip to content

Commit 420a0fc

Browse files
update the guide
1 parent 26d5366 commit 420a0fc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

barcode-reader-integration-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ import {CameraEnhancer} from "dynamsoft-capture-vision-react-native";
262262

263263
let camera = CameraEnhancer.getInstance()
264264
let scanRegion = {
265-
top: 25,
266-
bottom: 75,
267-
left: 25,
268-
right: 75,
265+
top: 0.25,
266+
bottom: 0.75,
267+
left: 0.25,
268+
right: 0.75,
269269
measuredInPercentage: true,
270270
}
271271
camera.setScanRegion(scanRegion);

mrz-scanner-integration-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ import {CameraEnhancer} from "dynamsoft-capture-vision-react-native";
244244

245245
let camera = CameraEnhancer.getInstance()
246246
let scanRegion = {
247-
top: 45,
248-
bottom: 65,
249-
left: 15,
250-
right: 85,
247+
top: 0.45,
248+
bottom: 0.65,
249+
left: 0.15,
250+
right: 0.85,
251251
measuredInPercentage: true,
252252
}
253253
camera.setScanRegion(scanRegion);

0 commit comments

Comments
 (0)