网站/小程序/APP个性化定制开发,二开,改版等服务,加扣:8582-36016

实现人脸识别的工具库

应用介绍

    该源码案例是一个实现人脸识别的工具库,源码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.

    立即下载

    请到会员中心签到后即可获得免费下载!

    相关下载

    评论 共有 0 条评论

    暂无评论
    0
    0
    0
    立即
    投稿
    发表
    评论
    返回
    顶部