Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jenly1314 committed Apr 29, 2024
1 parent bb061d1 commit 5c44db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ZXingLite for Android 是ZXing的精简极速版,基于ZXing库优化扫码和

```gradle
// AndroidX 版本
implementation 'com.github.jenly1314:zxing-lite:3.1.0'
implementation 'com.github.jenly1314:zxing-lite:3.1.1'
```

Expand Down Expand Up @@ -138,7 +138,7 @@ public class QRCodeScanActivity extends BarcodeCameraScanActivity {
.setAreaRectRatio(0.8f)//设置识别区域比例,默认0.8,设置的比例最终会在预览区域裁剪基于此比例的一个矩形进行扫码识别
.setAreaRectVerticalOffset(0)//设置识别区域垂直方向偏移量,默认为0,为0表示居中,可以为负数
.setAreaRectHorizontalOffset(0);//设置识别区域水平方向偏移量,默认为0,为0表示居中,可以为负数
// BarcodeCameraScanActivity默认使用的MultiFormatAnalyzer,这里可以改为使用QRCodeAnalyzer
// BarcodeCameraScanActivity默认使用的MultiFormatAnalyzer,如果只识别二维码,这里可以改为使用QRCodeAnalyzer
return new MultiFormatAnalyzer(decodeConfig);
}

Expand Down

0 comments on commit 5c44db9

Please sign in to comment.