类 FeatureExtractionModel
- java.lang.Object
-
- cn.smartjavaai.face.model.facerec.AbstractFaceModel
-
- cn.smartjavaai.face.model.facerec.FeatureExtractionModel
-
- 所有已实现的接口:
FaceModel,AutoCloseable
public class FeatureExtractionModel extends AbstractFaceModel implements AutoCloseable
- 作者:
- dwj
-
-
构造器概要
构造器 构造器 说明 FeatureExtractionModel()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 floatcalculSimilar(float[] feature1, float[] feature2)计算相似度voidclose()List<float[]>extractFeatures(byte[] imageData)特征提取(使用默认配置)List<float[]>extractFeatures(byte[] imageData, FaceExtractConfig config)特征提取(使用自定义配置)List<float[]>extractFeatures(BufferedImage image)特征提取(使用默认配置)List<float[]>extractFeatures(BufferedImage image, FaceExtractConfig config)特征提取(使用自定义配置) 强制裁剪操作List<float[]>extractFeatures(String imagePath)特征提取(使用默认配置)List<float[]>extractFeatures(String imagePath, FaceExtractConfig config)特征提取(使用自定义配置)float[]extractTopFaceFeature(byte[] imageData)提取分数最高人脸特征(使用默认配置)float[]extractTopFaceFeature(byte[] imageData, FaceExtractConfig config)提取分数最高人脸特征(使用自定义配置)float[]extractTopFaceFeature(BufferedImage image)提取分数最高人脸特征(使用默认配置)float[]extractTopFaceFeature(BufferedImage image, FaceExtractConfig config)提取分数最高人脸特征(使用自定义配置)float[]extractTopFaceFeature(String imagePath)提取分数最高人脸特征(使用默认配置)float[]extractTopFaceFeature(String imagePath, FaceExtractConfig config)提取分数最高人脸特征(使用自定义配置)floatfeatureComparison(byte[] imageData1, byte[] imageData2)特征比较floatfeatureComparison(BufferedImage sourceImage1, BufferedImage sourceImag2)特征比较floatfeatureComparison(String imagePath1, String imagePath2)特征比较voidloadModel(FaceModelConfig config)加载人脸特征提取模型-
从类继承的方法 cn.smartjavaai.face.model.facerec.AbstractFaceModel
clearFace, detect, detect, detect, detect, detectAndDraw, detectAndDraw, featureComparison, register, register, register, register, removeRegister, search, search, search, search
-
-
-
-
方法详细资料
-
loadModel
public void loadModel(FaceModelConfig config)
加载人脸特征提取模型- 指定者:
loadModel在接口中FaceModel- 覆盖:
loadModel在类中AbstractFaceModel- 参数:
config-
-
calculSimilar
public float calculSimilar(float[] feature1, float[] feature2)计算相似度- 指定者:
calculSimilar在接口中FaceModel- 覆盖:
calculSimilar在类中AbstractFaceModel- 参数:
feature1- 图1特征feature2- 图2特征- 返回:
-
featureComparison
public float featureComparison(String imagePath1, String imagePath2)
特征比较- 指定者:
featureComparison在接口中FaceModel- 覆盖:
featureComparison在类中AbstractFaceModel- 参数:
imagePath1- 图1路径imagePath2- 图2路径- 返回:
-
featureComparison
public float featureComparison(BufferedImage sourceImage1, BufferedImage sourceImag2)
从接口复制的说明:FaceModel特征比较- 指定者:
featureComparison在接口中FaceModel- 覆盖:
featureComparison在类中AbstractFaceModel- 参数:
sourceImage1- 图1BufferedImagesourceImag2- 图2BufferedImage- 返回:
-
featureComparison
public float featureComparison(byte[] imageData1, byte[] imageData2)从接口复制的说明:FaceModel特征比较- 指定者:
featureComparison在接口中FaceModel- 覆盖:
featureComparison在类中AbstractFaceModel- 返回:
-
extractFeatures
public List<float[]> extractFeatures(String imagePath)
从接口复制的说明:FaceModel特征提取(使用默认配置)- 指定者:
extractFeatures在接口中FaceModel- 覆盖:
extractFeatures在类中AbstractFaceModel- 参数:
imagePath- 图片路径- 返回:
-
extractFeatures
public List<float[]> extractFeatures(byte[] imageData)
从接口复制的说明:FaceModel特征提取(使用默认配置)- 指定者:
extractFeatures在接口中FaceModel- 覆盖:
extractFeatures在类中AbstractFaceModel- 参数:
imageData- 图片字节流- 返回:
-
extractFeatures
public List<float[]> extractFeatures(BufferedImage image)
从接口复制的说明:FaceModel特征提取(使用默认配置)- 指定者:
extractFeatures在接口中FaceModel- 覆盖:
extractFeatures在类中AbstractFaceModel- 参数:
image- BufferedImage- 返回:
-
extractFeatures
public List<float[]> extractFeatures(BufferedImage image, FaceExtractConfig config)
从接口复制的说明:FaceModel特征提取(使用自定义配置) 强制裁剪操作- 指定者:
extractFeatures在接口中FaceModel- 覆盖:
extractFeatures在类中AbstractFaceModel- 参数:
image- BufferedImage- 返回:
-
extractFeatures
public List<float[]> extractFeatures(String imagePath, FaceExtractConfig config)
从接口复制的说明:FaceModel特征提取(使用自定义配置)- 指定者:
extractFeatures在接口中FaceModel- 覆盖:
extractFeatures在类中AbstractFaceModel- 参数:
imagePath- 图片路径- 返回:
-
extractFeatures
public List<float[]> extractFeatures(byte[] imageData, FaceExtractConfig config)
从接口复制的说明:FaceModel特征提取(使用自定义配置)- 指定者:
extractFeatures在接口中FaceModel- 覆盖:
extractFeatures在类中AbstractFaceModel- 参数:
imageData- 图片字节流- 返回:
-
extractTopFaceFeature
public float[] extractTopFaceFeature(BufferedImage image)
从接口复制的说明:FaceModel提取分数最高人脸特征(使用默认配置)- 指定者:
extractTopFaceFeature在接口中FaceModel- 覆盖:
extractTopFaceFeature在类中AbstractFaceModel- 参数:
image- BufferedImage- 返回:
-
extractTopFaceFeature
public float[] extractTopFaceFeature(String imagePath)
从接口复制的说明:FaceModel提取分数最高人脸特征(使用默认配置)- 指定者:
extractTopFaceFeature在接口中FaceModel- 覆盖:
extractTopFaceFeature在类中AbstractFaceModel- 参数:
imagePath- 图片路径- 返回:
-
extractTopFaceFeature
public float[] extractTopFaceFeature(byte[] imageData)
从接口复制的说明:FaceModel提取分数最高人脸特征(使用默认配置)- 指定者:
extractTopFaceFeature在接口中FaceModel- 覆盖:
extractTopFaceFeature在类中AbstractFaceModel- 参数:
imageData- 图片字节流- 返回:
-
extractTopFaceFeature
public float[] extractTopFaceFeature(BufferedImage image, FaceExtractConfig config)
从接口复制的说明:FaceModel提取分数最高人脸特征(使用自定义配置)- 指定者:
extractTopFaceFeature在接口中FaceModel- 覆盖:
extractTopFaceFeature在类中AbstractFaceModel- 参数:
image- BufferedImage- 返回:
-
extractTopFaceFeature
public float[] extractTopFaceFeature(String imagePath, FaceExtractConfig config)
从接口复制的说明:FaceModel提取分数最高人脸特征(使用自定义配置)- 指定者:
extractTopFaceFeature在接口中FaceModel- 覆盖:
extractTopFaceFeature在类中AbstractFaceModel- 参数:
imagePath- 图片路径- 返回:
-
extractTopFaceFeature
public float[] extractTopFaceFeature(byte[] imageData, FaceExtractConfig config)从接口复制的说明:FaceModel提取分数最高人脸特征(使用自定义配置)- 指定者:
extractTopFaceFeature在接口中FaceModel- 覆盖:
extractTopFaceFeature在类中AbstractFaceModel- 参数:
imageData- 图片字节流- 返回:
-
close
public void close()
- 指定者:
close在接口中AutoCloseable
-
-