基于android 人脸识别

时间:2016-03-16 04:55:39
【文件属性】:

文件名称:基于android 人脸识别

文件大小:565KB

文件格式:RAR

更新时间:2016-03-16 04:55:39

android 人脸识别

基于android 人脸识别 class MyImageView extends ImageView { private Bitmap mBitmap; private Canvas mCanvas; private int mBitmapWidth = 200; private int mBitmapHeight = 200; private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); private int mDisplayStyle = 0; private int [] mPX = null; private int [] mPY = null; public MyImageView(Context c) { super(c); init(); } public MyImageView(Context c, AttributeSet attrs) { super(c, attrs); init(); } private void init() { mBitmap = Bitmap.createBitmap(mBitmapWidth, mBitmapHeight, Bitmap.Config.RGB_565); mCanvas = new Canvas(mBitmap); mPaint.setStyle(Paint.Style.STROKE); mPaint.setStrokeCap(Paint.Cap.ROUND); mPaint.setColor(0x80ff0000); mPaint.setStrokeWidth(3); } public Bitmap getBitmap() { return mBitmap; } @Override public void setImageBitmap(Bitmap bm) { if (bm != null) { mBitmapWidth = bm.getWidth(); mBitmapHeight = bm.getHeight(); mBitmap = Bitmap.createBitmap(mBitmapWidth, mBitmapHeight, Bitmap.Config.RGB_565); mCanvas = new Canvas(); mCanvas.setBitmap(mBitmap); mCanvas.drawBitmap(bm, 0, 0, null); } super.setImageBitmap(bm); } .....这只是部分代码,有兴趣的朋友下来看看


【文件预览】:
人脸识别
----.project(856B)
----project.properties(360B)
----proguard.cfg(1KB)
----src()
--------cliu()
----AndroidManifest.xml(1KB)
----res()
--------drawable-nodpi()
--------layout()
--------values()
----assets()
----gen()
--------cliu()
----.classpath(364B)
----bin()
--------resources.ap_(116KB)
--------classes()
--------TutorialOnFaceDetect.apk(123KB)
--------res()
--------classes.dex(9KB)

网友评论

  • 用不了,浪费
  • 用不了啊。浪费积分
  • 必须在手机上才能运行吧,目前还编译不过
  • 一般般 吧 真是的
  • 骗人呢吗?都是错误