实现人脸识别的工具库
应用介绍
该源码案例是一个实现人脸识别的工具库,源码AndroidFaceCropper,使用api中自带的FaceDetector 实现人脸识别的工具库。检测一张静态图片中的人脸。 使用说明: 实例话FaceCropper FaceCropper mFaceCropper = new FaceCropper(); mFaceCropper.getCroppedImage(source); 其中getCroppedImage方法的参数可以是资源文件的int类型也可以是一个Bitmap 参数设置 主要有4个 setMaxFaces(int faces), 可以识别的最大人脸数. setFaceMinSize(int faceMinSize), in pixels. setFaceMarginPx(int faceMarginPx), in pixels, and for each side. setEyeDistanceFactorMargin(float eyeDistanceFactorMargin), as a multiplier of the distance between the detected face eyes. setDebug(boolean debug), to enable painting red circles over detected faces. getFullDebugImage(Bitmap bitmap), to obtain a non-cropped image as the original, but with the detected faces painted, and the cropped area painted in green.

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 实现人脸识别的工具库
发表评论 取消回复