实现人脸识别的工具库

时间:2024-04-24 07:31:54
【文件属性】:

文件名称:实现人脸识别的工具库

文件大小:1.1MB

文件格式:ZIP

更新时间:2024-04-24 07:31:54

android源码

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


【文件预览】:
AndroidFaceCropper-master
----gradlew.bat(2KB)
----gradlew(5KB)
----gradle.properties(853B)
----LICENSE(11KB)
----gradle()
--------wrapper()
----.gitignore(382B)
----FaceCropper-sample()
--------proguard-rules.txt(658B)
--------src()
--------.gitignore(7B)
--------build.gradle(629B)
----README.md(1KB)
----settings.gradle(52B)
----build.gradle(313B)
----FaceCropper-library()
--------proguard-rules.txt(658B)
--------src()
--------.gitignore(7B)
--------build.gradle(1KB)

网友评论