OpenCVImageProcessing
1. 导入Opencv的 androrid SDK
灰度算法 OpenCVImageProcessing
导入opencv Jar包,配置OpenCVLibrary340 的 bulid.gradle , 配置Module:app 的 build.gradle , 在依赖里添加
implementation fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
在Gradle Scripts 里修改 dependencies
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTe