欢迎访问移动开发之家(rcyd.net),关注移动开发教程。移动开发之家  移动开发问答|  每日更新
页面位置 : > > > 内容正文

OpenCV4Android开发 人脸识别篇

来源: 开发者 投稿于  被查看 23087 次 评论:260

OpenCV4Android开发 人脸识别篇


最近在android上用opencv搞人脸识别的

现在简单展示下代码。环境搭建我前面有写,不会的自己看可以。

这个事用java api直接调用的更简单了就,搭建都不需要直接下载opencv解压就好。

现在贴上程序

首先布局

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >


android:id="@+id/image"
android:layout_width="fill_parent"
android:layout_height="400dp" />


android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >


android:id="@+id/text"
android:layout_width="100dp"
android:layout_height="wrap_content" />




android:layout_marginLeft="10dp"
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="detection" />

用户评论