Skip to content

Commit

Permalink
优化一些细节
Browse files Browse the repository at this point in the history
  • Loading branch information
devilsen committed Sep 17, 2019
1 parent feb0f67 commit d1d97d1
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ C++ port of ZXing for Android
### 使用
在gradle中:
``` groovy
implementation 'me.devilsen:CZXing:0.8.9'
implementation 'me.devilsen:CZXing:0.9'
```
建议加入abiFilters
```gradle
Expand Down
4 changes: 2 additions & 2 deletions czxing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 14
versionName "0.8.9"
versionCode 16
versionName "0.9"

externalNativeBuild {
cmake {
Expand Down
Binary file removed czxing/opencv/libs/arm64-v8a/libopencv_imgcodecs.a
Binary file not shown.
Binary file removed czxing/opencv/libs/armeabi-v7a/libopencv_imgcodecs.a
Binary file not shown.
5 changes: 2 additions & 3 deletions czxing/src/main/cpp/ImageScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,9 @@ void ImageScheduler::decodeAdaptivePixels(const Mat &gray) {
Result result = decodePixels(lightMat);
if (result.isValid()) {
javaCallHelper->onResult(result);
} else {
recognizerQrCode(gray);
}
// } else {
// recognizerQrCode(gray);
// }
}

void ImageScheduler::recognizerQrCode(const Mat &mat) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ void tryZoom(CodeResult result) {

private void handleAutoZoom(int len) {
try {
BarCodeUtil.d("len: " + len);

if (mCamera == null || mScanBoxView == null || len <= 0 || mCameraSurface.hadZoomOut()) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ android {

dependencies {

implementation project(':czxing')
// implementation 'me.devilsen:CZXing:0.8.9'
// implementation project(':czxing')
implementation 'me.devilsen:CZXing:0.9'

implementation rootProject.ext.appcompat
testImplementation rootProject.ext.junit
Expand Down

0 comments on commit d1d97d1

Please sign in to comment.