mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 19:38:02 +08:00
7833c63388
Add android QR detection sample #24598 Android QR detection sample was added. ![image](https://github.com/opencv/opencv/assets/22337800/0aaf6689-36ee-4201-b609-256d3278641a) ![image](https://github.com/opencv/opencv/assets/22337800/1cf54758-2c96-4108-888b-4796d8825340) ![image](https://github.com/opencv/opencv/assets/22337800/4ecc0933-a2e6-4cc0-abae-7525213c4145) current interface: ![image](https://github.com/opencv/opencv/assets/22337800/aff5b06d-6a9d-4762-be6e-ce20ff2c2271) ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
37 lines
1.1 KiB
Groovy
37 lines
1.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
namespace 'org.opencv.samples.qrdetection'
|
|
compileSdkVersion @ANDROID_COMPILE_SDK_VERSION@
|
|
defaultConfig {
|
|
applicationId "org.opencv.samples.qrdetection"
|
|
minSdkVersion @ANDROID_MIN_SDK_VERSION@
|
|
targetSdkVersion @ANDROID_TARGET_SDK_VERSION@
|
|
versionCode 301
|
|
versionName "3.01"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
|
|
aidl.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
|
|
res.srcDirs = @ANDROID_SAMPLE_RES_PATH@
|
|
manifest.srcFile '@ANDROID_SAMPLE_MANIFEST_PATH@'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
if (gradle.opencv_source == "sdk_path") {
|
|
implementation project(':opencv')
|
|
} else if (gradle.opencv_source == "maven_local" || gradle.opencv_source == "maven_cenral") {
|
|
implementation 'org.opencv:opencv:@OPENCV_VERSION_PLAIN@'
|
|
}
|
|
}
|