Skip to content

Commit f8a1f43

Browse files
update to internal commit 652176cc
1 parent 84ad19e commit f8a1f43

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

programming/android/guide/scan-region.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ permalink: /programming/android/guide/scan-region.html
1515

1616
```java
1717
DSRect region = new DSRect();
18-
region.left = 15;
19-
region.right = 85;
20-
region.top = 30;
21-
region.bottom = 70;
18+
region.left = 0.15;
19+
region.right = 0.85;
20+
region.top = 0.3;
21+
region.bottom = 0.7;
2222
region.isMeasuredInPercentage = true;
2323
try {
2424
mCameraEnhancer.setScanRegion(region);
@@ -54,10 +54,10 @@ Since the scan region is set for the video streaming, its coordinate system migh
5454

5555
```java
5656
DSRect region = new DSRect();
57-
region.left = 15;
58-
region.right = 85;
59-
region.top = 30;
60-
region.bottom = 70;
57+
region.left = 0.15;
58+
region.right = 0.85;
59+
region.top = 0.3;
60+
region.bottom = 0.7;
6161
region.isMeasuredInPercentage = true;
6262
try {
6363
mCameraEnhancer.setScanRegion(region);

0 commit comments

Comments
 (0)