opencv 연결

This commit is contained in:
DESKTOP-1A3P75F\lee
2022-09-15 12:52:47 +09:00
parent 57d8b404f1
commit c74de85bcb
1779 changed files with 737673 additions and 7 deletions

17
.idea/deploymentTargetDropDown.xml generated Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<targetSelectedWithDropDown>
<Target>
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\lee\.android\avd\Nexus_5_Edited_API_29.avd" />
</Key>
</deviceKey>
</Target>
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2022-09-13T04:47:59.300543300Z" />
</component>
</project>

1
.idea/gradle.xml generated
View File

@@ -11,6 +11,7 @@
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/OpenCV" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>

15
.idea/misc.xml generated
View File

@@ -119,10 +119,25 @@
<entry key="..\:/QTagger/a/QTagger_Android7/app/src/main/res/layout/fragment_list.xml" value="0.31302083333333336" />
<entry key="..\:/QTagger/a/QTagger_Android7/app/src/main/res/layout/fragment_photograph.xml" value="0.39739583333333334" />
<entry key="..\:/QTagger/a/QTagger_Android7/app/src/main/res/layout/fragment_weight2.xml" value="0.39739583333333334" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/drawable/button_list_background.xml" value="0.397" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/drawable/image_squrebutton_background.xml" value="0.397" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/drawable/squrebutton_background.xml" value="0.397" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_camera.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_main.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_more.xml" value="0.33" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_setting.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_sync.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_test.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_test2.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/activity_test_select.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/fragment_barcode.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/fragment_capture.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/fragment_fill.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/fragment_info.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/fragment_list.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/fragment_rfid.xml" value="0.30885416666666665" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/item_slider.xml" value="0.40625" />
<entry key="..\:/QTagger/a/QTagger_Android8/app/src/main/res/layout/listview_item.xml" value="0.40520833333333334" />
</map>
</option>
</component>

153
OpenCV/build.gradle Normal file
View File

@@ -0,0 +1,153 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Notes about integration OpenCV into existed Android Studio application project are below (application 'app' module should exist).
//
// This file is located in <OpenCV-android-sdk>/sdk directory (near 'etc', 'java', 'native' subdirectories)
//
// Add module into Android Studio application project:
//
// - Android Studio way:
// (will copy almost all OpenCV Android SDK into your project, ~200Mb)
//
// Import module: Menu -> "File" -> "New" -> "Module" -> "Import Gradle project":
// Source directory: select this "sdk" directory
// Module name: ":opencv"
//
// - or attach library module from OpenCV Android SDK
// (without copying into application project directory, allow to share the same module between projects)
//
// Edit "settings.gradle" and add these lines:
//
// def opencvsdk='<path_to_opencv_android_sdk_rootdir>'
// // You can put declaration above into gradle.properties file instead (including file in HOME directory),
// // but without 'def' and apostrophe symbols ('): opencvsdk=<path_to_opencv_android_sdk_rootdir>
// include ':opencv'
// project(':opencv').projectDir = new File(opencvsdk + '/sdk')
//
//
//
// Add dependency into application module:
//
// - Android Studio way:
// "Open Module Settings" (F4) -> "Dependencies" tab
//
// - or add "project(':opencv')" dependency into app/build.gradle:
//
// dependencies {
// implementation fileTree(dir: 'libs', include: ['*.jar'])
// ...
// implementation project(':opencv')
// }
//
//
//
// Load OpenCV native library before using:
//
// - avoid using of "OpenCVLoader.initAsync()" approach - it is deprecated
// It may load library with different version (from OpenCV Android Manager, which is installed separatelly on device)
//
// - use "System.loadLibrary("opencv_java4")" or "OpenCVLoader.initDebug()"
// TODO: Add accurate API to load OpenCV native library
//
//
//
// Native C++ support (necessary to use OpenCV in native code of application only):
//
// - Use find_package() in app/CMakeLists.txt:
//
// find_package(OpenCV 3.4 REQUIRED java)
// ...
// target_link_libraries(native-lib ${OpenCV_LIBRARIES})
//
// - Add "OpenCV_DIR" and enable C++ exceptions/RTTI support via app/build.gradle
// Documentation about CMake options: https://developer.android.com/ndk/guides/cmake.html
//
// defaultConfig {
// ...
// externalNativeBuild {
// cmake {
// cppFlags "-std=c++11 -frtti -fexceptions"
// arguments "-DOpenCV_DIR=" + opencvsdk + "/sdk/native/jni" // , "-DANDROID_ARM_NEON=TRUE"
// }
// }
// }
//
// - (optional) Limit/filter ABIs to build ('android' scope of 'app/build.gradle'):
// Useful information: https://developer.android.com/studio/build/gradle-tips.html (Configure separate APKs per ABI)
//
// splits {
// abi {
// enable true
// universalApk false
// reset()
// include 'armeabi-v7a' // , 'x86', 'x86_64', 'arm64-v8a'
// }
// }
//
apply plugin: 'com.android.library'
def openCVersionName = "4.4.0"
def openCVersionCode = ((4 * 100 + 4) * 100 + 0) * 10 + 0
println "OpenCV: " +openCVersionName + " " + project.buildscript.sourceFile
android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 21
targetSdkVersion 26
versionCode openCVersionCode
versionName openCVersionName
externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_shared"
targets "opencv_jni_shared"
}
}
}
buildTypes {
debug {
packagingOptions {
doNotStrip '**/*.so' // controlled by OpenCV CMake scripts
}
}
release {
packagingOptions {
doNotStrip '**/*.so' // controlled by OpenCV CMake scripts
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
sourceSets {
main {
jniLibs.srcDirs = ['native/libs']
java.srcDirs = ['java/src']
aidl.srcDirs = ['java/src']
res.srcDirs = ['java/res']
manifest.srcFile 'java/AndroidManifest.xml'
}
}
externalNativeBuild {
cmake {
path (project.projectDir.toString() + '/libcxx_helper/CMakeLists.txt')
}
}
}
dependencies {
}

View File

@@ -0,0 +1 @@
o/debug

Some files were not shown because too many files have changed in this diff Show More