## OpenCV for android方案 首先是资料 https://blog.csdn.net/weixin_40981751/article/details/116147238 2021-04-26 的文章 写的比较简略 属于个人自用总结 关键是当中第一步 依赖的添加 ``` org.bytedeco javacv-platform 1.5.5 ``` 不确定对方用到环境是否AS 是否用gradle管理依赖 这种配置文件写法不认识 build.gradle中 ``` // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:7.0.4" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } task clean(type: Delete) { delete rootProject.buildDir } ``` 明显写法和文章不一样 他的方案用到javacv库(https://github.com/bytedeco/javacv) 像是opencv的java版本 是个fork和star都几千的热门库 库是没问题 不过不确认是否是最合适的做法 以及库如何gradle包含 看似有官方教程作为参考 https://docs.opencv.org/3.4/df/d65/tutorial_table_of_content_introduction.html CSDN一篇专栏买了一套资料 貌似只有第一课简略说了库如何使用 https://onlyloveyd.blog.csdn.net/article/details/103979399