Android 号牌号码识别,支持新能源车牌,离线识别

少废话,直接开始

项目地址https://github.com/ccc920123/LicensePlateDemo

方式一

项目build.gradle添加

allprojects {
repositories {

maven { url ‘https://jitpack.io’ }
}
}

app build.gradle 添加

implementation ‘com.github.ccc920123:LicensePlateDemo:v1.0’

方式一我放到项目中报错,

dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.demo.carnumtest-WzUuz5wq2YKYaaWb8EYsWw==/base.apk”]

但是需要跟方式二一样在gradle中添加ndk的支持,方法同下。

方式二

引入?licenseplatelib-v1.0.aar

由于library包含so 需要在 app 的build.gradle中添加
ndk的支持

defaultConfig {

ndk {
//设置支持的SO库架构
abiFilters ‘armeabi’
}
}

什么?不会引入aar?

那我好人做到底吧!

第一步吧下载好的aar放在libs中

然后在app的build.gradle中加入

android{
    repositories {
        flatDir {
            dirs 'libs'
        }
    }
}
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation (name: '你的aar的名字', ext: 'aar') 
}

至此 给上权限就可以扫码使用了,亲测速度很快。

可能有的小伙伴不满足于他提供的扫码界面,那没办法了,只能引入library改了。

相关文章

安装环境都很简单,就是下载工具需要在华为开发者联盟里注册...
上传的方式有两种,第一种是通过bintray官方出的插件bintray...
转载自: 完美解决Error:SSLpeershutdownincorrectly打开gr...
https://www.jianshu.com/p/9220227cdfb3buildscript{ext.ko...
Markdown版本笔记我的GitHub首页我的博客我的微信我的邮箱My...
 跟着教程做的,已经有了JDK,直接进行后面的步骤,下载安装...