作业系统对接指导手册 作业系统对接指导手册
首页
  • 地图对接
  • 服务对接
路径规划
视频分析
知识星球
位置平台
图创官网 (opens new window)
首页
  • 地图对接
  • 服务对接
路径规划
视频分析
知识星球
位置平台
图创官网 (opens new window)
  • 人脸识别

    • 人脸识别
    • 人脸比对
      • 介绍
      • 人脸比对(返回数据)
    • 人脸搜索
  • 车牌识别

    • 车牌识别
目录

人脸比对

# 介绍

用来对比两个人脸的相似度.

# 人脸比对(返回数据)

接口地址:/one-map-server/om/ocr/face/compare

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数: img

请求参数:

参数名称 参数说明 请求类型 是否必须 数据类型 schema
images 多个文件 formData false array file

响应状态:

状态码 说明 schema
200 OK GtcWebResult«CompareRep»

响应参数:

参数名称 参数说明 类型 schema
alertMsg 提示消息 string
alertType 提示消息类型 integer(int32) integer(int32)
code 状态码 integer(int32) integer(int32)
data 业务数据 CompareRep CompareRep
confidence 余弦距离转换后的置信度:[-100,100],值越大,相似度越高。 number(float)
distance 向量欧式距离:>=0 number(float)
faceInfo 人脸信息,参数needFaceInfo=false时,值为null CompareFace CompareFace
faceScoreA A图片人脸分数:[0,100] number
faceScoreB B图片人脸分数:[0,100] number
locationA A图片人脸位置信息 FaceLocation FaceLocation
h integer
w integer
x integer
y integer
locationB B图片人脸位置信息 FaceLocation FaceLocation
h integer
w integer
x integer
y integer
location 跳转地址 string

响应示例:

{
	"alertMsg": "",
	"alertType": 0,
	"code": 0,
	"data": {
		"confidence": 0,
		"distance": 0,
		"faceInfo": {
			"faceScoreA": 0,
			"faceScoreB": 0,
			"locationA": {
				"h": 0,
				"w": 0,
				"x": 0,
				"y": 0
			},
			"locationB": {
				"h": 0,
				"w": 0,
				"x": 0,
				"y": 0
			}
		}
	},
	"location": ""
}
上次更新: 2024/06/26, 14:32:54
人脸识别
人脸搜索

← 人脸识别 人脸搜索→

Theme by Vdoing | Copyright © 2023-2026 北京图创时代科技有限公司版权所有
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式