public interface FaceAttributeModel
| 限定符和类型 | 方法和说明 |
|---|---|
default DetectionResponse |
detect(BufferedImage image)
人脸属性识别(多人脸)
|
default FaceAttribute |
detect(BufferedImage image,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
人脸属性识别(单人脸)
|
default List<FaceAttribute> |
detect(BufferedImage image,
DetectionResponse faceDetectionResponse)
人脸属性识别(多人脸)
|
default DetectionResponse |
detect(byte[] imageData)
人脸属性识别(多人脸)
|
default FaceAttribute |
detect(byte[] imageData,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
人脸属性识别(单人脸)
|
default List<FaceAttribute> |
detect(byte[] imageData,
DetectionResponse faceDetectionResponse)
人脸属性识别(多人脸)
|
default DetectionResponse |
detect(String imagePath)
人脸属性识别(多人脸)
|
default FaceAttribute |
detect(String imagePath,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
人脸属性识别(单人脸)
|
default List<FaceAttribute> |
detect(String imagePath,
DetectionResponse faceDetectionResponse)
人脸属性识别(多人脸)
|
default FaceAttribute |
detectCropedFace(BufferedImage image)
人脸属性识别(裁剪后的人脸)
|
default FaceAttribute |
detectCropedFace(byte[] imageData)
人脸属性识别(裁剪后的人脸)
|
default FaceAttribute |
detectCropedFace(String imagePath)
人脸属性识别(裁剪后的人脸)
|
default FaceAttribute |
detectTopFace(BufferedImage image)
人脸属性识别(分数最高人脸)
|
default FaceAttribute |
detectTopFace(byte[] imageData)
人脸属性识别(分数最高人脸)
|
default FaceAttribute |
detectTopFace(String imagePath)
人脸属性识别(分数最高人脸)
|
void |
loadModel(FaceAttributeConfig config)
加载模型
|
void loadModel(FaceAttributeConfig config)
config - default DetectionResponse detect(String imagePath)
imagePath - 图片路径default DetectionResponse detect(BufferedImage image)
image - BufferedImagedefault DetectionResponse detect(byte[] imageData)
imageData - 图片字节流default List<FaceAttribute> detect(String imagePath, DetectionResponse faceDetectionResponse)
imagePath - 图片路径faceDetectionResponse - 人脸检测结果default FaceAttribute detect(String imagePath, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
imagePath - 图片路径faceDetectionRectangle - 人脸检测结果-人脸框default List<FaceAttribute> detect(byte[] imageData, DetectionResponse faceDetectionResponse)
imageData - 图片数据faceDetectionResponse - 人脸检测结果default FaceAttribute detect(byte[] imageData, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
imageData - faceDetectionRectangle - 人脸检测结果-人脸框default List<FaceAttribute> detect(BufferedImage image, DetectionResponse faceDetectionResponse)
image - BufferedImagefaceDetectionResponse - 人脸检测结果default FaceAttribute detect(BufferedImage image, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
image - BufferedImagefaceDetectionRectangle - 人脸检测结果-人脸框default FaceAttribute detectTopFace(BufferedImage image)
image - default FaceAttribute detectTopFace(String imagePath)
imagePath - default FaceAttribute detectTopFace(byte[] imageData)
imageData - default FaceAttribute detectCropedFace(BufferedImage image)
image - default FaceAttribute detectCropedFace(String imagePath)
imagePath - default FaceAttribute detectCropedFace(byte[] imageData)
imageData - Copyright © 2025. All rights reserved.