请求URL:http(s)://www.shiliuai.com/api/id_photo/v1/qualify
请求方式:POST
返回类型:JSON
参数 | 类型 | 说明 |
---|---|---|
Content-type | string | application/json |
APIKEY | string | 您的API KEY |
分类 | 参数 | 是否必填 | 类型 | 说明 |
---|---|---|---|---|
图片 | ||||
base64 | 必须填写其中之一 | string | base64编码的图片文件(小于15M),需要传入base64或者id | |
id | string | 图片id,对于已经请求过的图片,如果需要改变水印,尺寸,颜色等参数,使用id而无需再上传base64 | ||
规格 | ||||
specID | 否 | int | 规格ID,规格对应证件照的尺寸,背景色,人脸尺寸,文件大小,高级合规检测标准,请参考规格列表 | |
specVersion | 否 | int | 规格版本 | |
人脸尺寸 | ||||
faceWidth | 否 | int | 人脸宽度(像素) | |
minFaceWidth | 否 | int | 最小人脸宽度(像素) | |
maxFaceWidth | 否 | int | 最大人脸宽度(像素) | |
faceHeight | 否 | int | 人脸长度(像素) | |
minFaceHeight | 否 | int | 最小人脸长度(像素) | |
maxFaceHeight | 否 | int | 最大人脸长度(像素) | |
headTop | 否 | int | 头顶与上边距离(像素) | |
minHeadTop | 否 | int | 头顶与上边最小距离(像素) | |
maxHeadTop | 否 | int | 头顶与上边最大距离(像素) | |
eyesTop | 否 | int | 眼睛与上边距离(像素) | |
minEyesTop | 否 | int | 眼睛与上边最小距离(像素) | |
maxEyesTop | 否 | int | 眼睛与上边最大距离(像素) | |
合规检测 | ||||
qualify | 否 | int | 0或1,是否返回普通合规信息,默认为1 | |
advancedQualify | 否 | int | 0或1,是否返回高级合规信息,默认为1 |
import requests import base64 import cv2 import json import numpy as np api_key = '******' # 你的API KEY file_path = '...' # 图片路径 with open(file_path, 'rb') as fp: photo_base64 = base64.b64encode(fp.read()).decode('utf8') url = 'api/id_photo/v1/qualify' headers = {'APIKEY': api_key, "Content-type": "application/json"} data = { "base64": photo_base64, "qualify": 1, "advancedQualify": 1 } response = requests.post(url=url, headers=headers, json=data) response = json.loads(response.content) """ 成功:{'code': 0, 'msg': 'OK', 'msg_cn': '成功', 'id': id, 'info': info, 'advanced_info': advanced_info} or 失败:{'code': error_code, 'msg': error_msg, 'msg_cn': 错误信息} """
$url = "api/id_photo/v1/qualify"; $method = "POST"; $apikey = "******"; $header = array(); array_push($header, "APIKEY:" . $apikey); array_push($header, "Content-Type:application/json"); $file_path = "..."; $handle = fopen($file_path, "r"); $photo = fread($handle, filesize($file_path)); fclose($handle); $photo_base64 = base64_encode($photo); $data = array( "base64"=> $photo_base64, "qualify"=> 1, "advancedQualify"=> 1 ); $post_data = json_encode($data); $curl = curl_init(); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); $response = curl_exec($curl); var_dump($response);
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Base64; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; import com.google.gson.Gson; public static void main(String[] args) { String api_key = "******"; // 你的API KEY String file_path = "..."; // 图片路径 String url = "api/id_photo/v1/qualify"; try { File file = new File(file_path); FileInputStream fis = new FileInputStream(file); byte[] fileBytes = new byte[(int) file.length()]; fis.read(fileBytes); fis.close(); String photoBase64 = Base64.getEncoder().encodeToString(fileBytes); Gson gson = new Gson(); String json = gson.toJson(new RequestData(photoBase64, 1, 1)); CloseableHttpClient httpClient = HttpClients.createDefault(); HttpPost httpPost = new HttpPost(url); httpPost.setHeader("APIKEY", api_key); httpPost.setHeader("Content-Type", "application/json"); StringEntity entity = new StringEntity(json, "UTF-8"); httpPost.setEntity(entity); CloseableHttpResponse response = httpClient.execute(httpPost); try { HttpEntity responseEntity = response.getEntity(); String responseString = EntityUtils.toString(responseEntity, "UTF-8"); ResponseData responseData = gson.fromJson(responseString, ResponseData.class); if (responseData.getCode() == 0) { System.out.println("成功: " + responseString); } else { System.out.println("失败: " + responseString); } } finally { response.close(); } } catch (IOException e) { e.printStackTrace(); } }
参数 | 说明 |
---|---|
code | 错误码 |
msg | 错误信息(英文) |
msg_cn | 错误信息(中文) |
id | 图片id,用于同一张图片的多次请求,id的有效时间为6小时,(当code==0时会有该返回值) |
info | 普通合规信息,(当code==0且请求参数qualify==1时会有该返回值) |
advanced_info | 高级合规信息,(当code==0且请求参数advancedQualify==1时会有该返回值) |
分类 | 参数 | 类型 | 说明 |
---|---|---|---|
综合 | |||
qualified | bool | 是否合规(由face_width, face_height, head_top, eyes_top, eyes_angle决定) | |
msg | string | 合规消息(英文) | |
msg_cn | string | 合规消息(中文) | |
尺寸 | |||
width | int | 证件照宽度,单位为像素 | |
height | int | 证件照高度,单位为像素 | |
人脸 | |||
has_face | bool | 是否检测到人脸 | |
face_count | int | 原图人脸数 | |
rotation | int | 图片旋转角度(0度,90度,180度,或者270度) | |
判断 | |||
face_width_qualified | bool | 人脸宽度是否合规 | |
face_height_qualified | bool | 人脸长度是否合规 | |
head_top_qualified | bool | 头顶至上边距离是否合规 | |
eyes_top_qualified | bool | 眼睛至上边距离是否合规 | |
eyes_angle_qualified | bool | 双眼连线角度是否合规 | |
距离与角度 | |||
face_width | int | 生成证件照中人脸宽度,单位为像素 | |
face_height | int | 人脸长度,单位为像素 | |
head_top | int | 头顶至上边距离,单位为像素 | |
eyes_top | int | 眼睛至上边距离,单位为像素 | |
eyes_angle | float | [-pi/2, pi/2],双眼连线角度 | |
pupil_distance | int | 瞳距,单位为像素 | |
eyes_center_from_left | int | 双眼中心与左边距离,单位为像素 | |
eyes_center_from_bottom | int | 双眼中心与下边距离,单位为像素 |
分类 | 参数 | 类型 | 说明 |
---|---|---|---|
综合 | |||
qualified | bool | 是否合规,如果无人脸,戴帽子,墨镜,耳机,手机,口罩,模糊,过曝或欠曝,眉毛遮挡,嘴巴张开,则不合规。 注意:其他项目不计入判断。 | |
msg | string | 合规消息(英文) | |
msg_cn | string | 合规消息(中文) | |
人脸 | |||
has_face | bool | 是否检测到人脸 | |
face_count | int | 原图人脸个数 | |
姿势 | |||
yaw | float | [-90, 90],人脸偏航角,决定pose_abnormal | |
pitch | float | [-90, 90],人脸俯仰角,决定pose_abnormal | |
roll | float | [-90, 90],人脸翻滚角,决定pose_abnormal | |
pose_abnormal | bool | 人脸角度异常,如果abs(yaw)>10,或者abs(pitch)>15,或者abs(roll)>10,那么为True | |
质量 | |||
face_overexposed_score | float | [0, 1],脸部过曝程度,决定face_overexposed,默认阈值为0.5 | |
face_overexposed | bool | 是否脸部过曝 | |
face_underexposed_score | float | [0, 1],脸部欠曝程度,决定face_underexposed,默认阈值为0.5 | |
face_underexposed | bool | 是否脸部欠曝 | |
face_exposure_uneven_score | float | [0, 1],阴阳脸程度,决定face_exposure_uneven,默认阈值为0.2 | |
face_exposure_uneven | bool | 是否阴阳脸 | |
face_blur_score | float | [0, 1],脸部模糊程度,决定face_blur,默认阈值为0.6 | |
face_blur | bool | 是否脸部模糊 | |
遮挡 | |||
left_eye_occlusion_score | float | [0, 1],左眼遮挡程度,决定left_eye_occlusion,默认阈值为0.2 | |
left_eye_occlusion | bool | 是否左眼遮挡 | |
right_eye_occlusion_score | float | [0, 1],右眼遮挡程度,决定right_eye_occlusion,默认阈值为0.2 | |
right_eye_occlusion | bool | 是否右眼遮挡 | |
mouth_occlusion_score | float | [0, 1],嘴巴遮挡程度,决定mouth_occlusion,默认阈值为0.2 | |
mouth_occlusion | bool | 是否嘴巴遮挡 | |
nose_occlusion_score | float | [0, 1],鼻子遮挡程度,决定nose_occlusion,默认阈值为0.2 | |
nose_occlusion | bool | 是否鼻子遮挡 | |
left_cheek_occlusion_score | float | [0, 1],左脸遮挡程度,决定left_cheek_occlusion,默认阈值为0.3 | |
left_cheek_occlusion | bool | 是否左脸遮挡 | |
right_cheek_occlusion_score | float | [0, 1],右脸遮挡程度,决定right_cheek_occlusion,默认阈值为0.3 | |
right_cheek_occlusion | bool | 是否右脸遮挡 | |
eyebrow_occlusion_score | float | [0, 1],眉毛遮挡程度,决定eyebrow_occlusion,默认阈值为0.3 | |
eyebrow_occlusion | bool | 是否眉毛遮挡 | |
ear_occlusion_score | float | [0, 1],耳朵遮挡程度,决定ear_occlusion,默认阈值为0.8 | |
ear_occlusion | bool | 是否耳朵遮挡 | |
头发 | |||
hair_incomplete_score | float | [0, 1],头发不完整程度,决定hair_incomplete,默认阈值为0.1 | |
hair_incomplete | bool | 是否头发不完整 | |
hair_color_r | float | [0, 255],头发颜色红色分量 | |
hair_color_g | float | [0, 255],头发颜色绿色分量 | |
hair_color_b | float | [0, 255],头发颜色蓝色分量 | |
眼睛 | |||
eye_close_score | float | [0, 1],闭眼程度,决定eye_close,默认阈值为0.5 | |
eye_close | bool | 是否闭眼 | |
gaze_horizontal_score | float | [0, 1],视线水平偏移程度,决定gaze_horizontal,默认阈值为0.15 | |
gaze_horizontal | bool | 是否视线水平偏移 | |
gaze_vertical_score | float | [0, 1],视线竖直偏移程度,决定gaze_vertical,默认阈值为0.1 | |
gaze_vertical | bool | 是否视线竖直偏移 | |
gaze_abnormal | bool | 是否目光没有平视前方,当视线有水平和竖直偏移时,为True | |
red_eye_score | float | [0, 1],红眼程度,决定red_eye,默认阈值为0.5 | |
red_eye | bool | 是否红眼 | |
colored_contacts_score | float | [0, 1],有色隐形眼镜分数,决定colored_contacts,默认阈值为0.5 | |
colored_contacts | bool | 是否戴有色隐形眼镜 | |
耳朵 | |||
ears_asymmetric_score | float | [0, 1],双耳不对称程度,决定ears_asymmetric,默认阈值为0.5 | |
ears_asymmetric | bool | 是否双耳不对称 | |
嘴巴 | |||
mouth_open_score | float | [0, 1],嘴巴张开程度,决定mouth_open,默认阈值为0.1 | |
mouth_open | bool | 是否嘴巴张开 | |
饰品 | |||
hat | int | 0或1,是否戴帽子 | |
glasses | int | 0或1,是否戴眼镜 | |
sunglasses | int | 0或1,是否戴墨镜 | |
headphone | int | 0或1,是否戴耳机 | |
earphone | int | 0或1,是否戴耳塞 | |
cellphone | int | 0或1,是否用手机 | |
earring | int | 0或1,是否戴耳饰 | |
mask | int | 0或1,是否戴口罩 | |
necklace | int | 0或1,是否戴项链 | |
glasses_glare_score | float | [0, 1],眼镜反光程度,决定glasses_glare,默认阈值为0.5 | |
glasses_glare | bool | 是否眼镜反光 | |
heavy_makeup_score | float | [0, 1],浓妆程度,决定heavy_makeup,默认阈值为0.5 | |
heavy_makeup | bool | 是否浓妆 | |
肩膀 | |||
shoulder_incomplete_score | float | [0, 1],肩膀不完整程度,决定shoulder_incomplete,默认阈值为0.5 | |
shoulder_incomplete | bool | 是否肩膀不完整 | |
shoulder_imbalance_score | float | [0, 1],肩膀不平衡程度,决定shoulder_imbalance,默认阈值为0.5 | |
shoulder_imbalance | float | 是否肩膀不平衡 | |
衣服 | |||
clothes_color_r | float | [0, 255],衣服颜色红色分量 | |
clothes_color_g | float | [0, 255],衣服颜色绿色分量 | |
clothes_color_b | float | [0, 255],衣服颜色蓝色分量 | |
clothes_color_light_score | float | [0, 1],衣服浅色程度,决定clothes_color_light,默认阈值为0.75 | |
clothes_color_light | bool | 是否浅色衣服 | |
clothes_bg_similar_score | float | [0, 1],衣服背景颜色相近程度,决定clothes_bg_similar,默认阈值为0.8 | |
clothes_bg_similar | bool | 是否衣服背景颜色相近 | |
shirtless_score | float | [0, 1],光膀程度,决定shirtless,默认阈值为0.5 | |
shirtless | bool | 是否光膀 | |
sleeveless_score | float | [0, 1],背心或吊带分数,决定sleeveless,默认阈值为0.5 | |
shirtless | bool | 是否穿背心或吊带 | |
big_clothes_score | float | [0, 1],臃肿外套分数,决定big_clothes,默认阈值为0.5 | |
big_clothes | bool | 是否穿臃肿外套 | |
背景 | |||
bg_color_r | float | [0, 255],背景颜色红色分量 | |
bg_color_g | float | [0, 255],背景颜色绿色分量 | |
bg_color_b | float | [0, 255],背景颜色蓝色分量 |
错误码 | 说明 |
---|---|
0 | 成功 |
1 | 图片错误 |
3 | 服务器繁忙 |
4 | 参数错误,具体错误看msg或msg_cn |
6 | 未知错误 |
7 | 图片id无效,可能已过期 |
101 | API-KEY不正确 |
102 | 未知用户 |
103 | 积分已用完 |
104 | 扣除积分失败 |
SPEC_ID | version | 分类 | title | size-mm | size-px | DPI | color |
---|---|---|---|---|---|---|---|
1101 | 1 | 通用 | 小一寸 | 22x32 | 260x378 | 300 | 无要求 |
1102 | 1 | 通用 | 一寸 | 25x35 | 295x413 | 300 | 无要求 |
1103 | 1 | 通用 | 大一寸 | 33x48 | 390x567 | 300 | 无要求 |
1104 | 1 | 通用 | 小二寸 | 35x45 | 413x531 | 300 | 无要求 |
1105 | 1 | 通用 | 二寸 | 35x49 | 413x579 | 300 | 无要求 |
1106 | 1 | 通用 | 大二寸 | 35x53 | 413x626 | 300 | 无要求 |
1107 | 1 | 通用 | 三寸 | 55x84 | 649x991 | 300 | 无要求 |
1108 | 1 | 通用 | 四寸 | 76x102 | 898x1205 | 300 | 无要求 |
1109 | 1 | 通用 | 五寸 | 89x127 | 1051x1500 | 300 | 无要求 |
2101 | 1 | 政府 | 社保卡 | 26x32 | 358x441 | 350 | white |
2102 | 1 | 政府 | 身份证 | 26x32 | 358x441 | 350 | white |
2103 | 1 | 政府 | 居住证 | 26x32 | 358x441 | 350 | white |
2201 | 1 | 政府 | 健康证(一寸) | 25x35 | 295x413 | 300 | blue, white |
2202 | 1 | 政府 | 健康证(小二寸) | 35x45 | 413x531 | 300 | blue, white |
2203 | 1 | 政府 | 医保证 | 26x32 | 358x441 | 300 | white |
2301 | 1 | 政府 | 驾驶证、驾照(无回执,小一寸) | 22x32 | 260x378 | 300 | white |
2401 | 1 | 政府 | 退役军人优待证 | 30x37 | 352x440 | 300 | white |
3101 | 1 | 签证 | 巴西签证 | 40x50 | 472x590 | 300 | white |
3102 | 1 | 签证 | 冰岛签证 | 40x50 | 472x590 | 300 | white |
3103 | 1 | 签证 | 阿根廷签证 | 40x40 | 472x472 | 300 | white |
3105 | 1 | 签证 | 韩国签证 | 35x45 | 413x531 | 300 | white |
3106 | 1 | 签证 | 肯尼亚签证 | 50x50 | 590x590 | 300 | white |
3107 | 1 | 签证 | 马来西亚签证 | 35x45 | 413x531 | 300 | white |
3108 | 1 | 签证 | 美国签证 | 51x51 | 602x602 | 300 | white |
3109 | 1 | 签证 | 日本签证 | 45x45 | 531x531 | 300 | white |
3110 | 1 | 签证 | 世界通用签证 | 35x45 | 413x531 | 300 | white |
3111 | 1 | 签证 | 泰国签证 | 35x45 | 413x531 | 300 | white |
3112 | 1 | 签证 | 新西兰签证 | 35x45 | 413x531 | 300 | white |
3113 | 1 | 签证 | 意大利签证 | 35x45 | 413x531 | 300 | white |
3114 | 1 | 签证 | 以色列签证 | 51x51 | 602x602 | 300 | white |
3115 | 1 | 签证 | 印度签证 | 51x51 | 602x602 | 300 | white |
3116 | 1 | 签证 | 越南签证 | 35x45 | 413x531 | 300 | blue, red, white |
3202 | 1 | 签证 | 海外申请护照在线预约照片 | 33x48 | 389x566 | 300 | white |
3301 | 1 | 签证 | 入台证 | 35x45 | 413x531 | 300 | white |
3302 | 1 | 签证 | 港澳通行证 | 33x48 | 389x566 | 300 | white |
4101 | 1 | 学生 | 入学照(二寸) | 35x49 | 413x578 | 300 | blue, red, white |
4102 | 1 | 学生 | 入学照(一寸) | 25x35 | 295x413 | 300 | blue, red, white |
4103 | 1 | 入学 | 香港学生国内报名 | 40x50 | 472x590 | 300 | white |
4201 | 1 | 学生 | 全国中小学生学籍照片 | 26x32 | 307x378 | 150以上 | white |
4301 | 1 | 学生 | 大学生图像信息采集 | 41x54 | 480x640 | 300 | blue |
4401 | 1 | 学生 | 毕业照 | 41x54 | 480x640 | 300 | blue, white |
5101 | 1 | 考试 | 国家公务员考试(一寸) | 25x35 | 295x413 | 300 | blue, white |
5130 | 1 | 考试 | 国家公务员考试(小二寸) | 35x45 | 413x531 | 300 | blue, white |
5131 | 1 | 考试 | 国家公务员考试(二寸) | 35x49 | 413x579 | 300 | blue, white |
5102 | 1 | 考试 | 安徽公务员考试 | 25x35 | 413x531 | 300 | blue, white |
5103 | 1 | 考试 | 北京公务员考试 | 34x45 | 401x531 | 300 | blue, white |
5104 | 1 | 考试 | 成都公务员考试 | 9x11 | 102x126 | 300 | blue, white, red |
5132 | 1 | 考试 | 成都公务员考试 | 25x35 | 295x413 | 300 | blue, white |
5105 | 1 | 考试 | 甘肃公务员考试 | 35x49 | 413x579 | 300 | blue, white |
5106 | 1 | 考试 | 广西公务员考试 | 25x35 | 295x413 | 300 | blue, white |
5107 | 1 | 考试 | 广州公务员考试 | 35x49 | 295x413 | 300 | blue, white |
5108 | 1 | 考试 | 贵州公务员考试 | 18x25 | 215x300 | 300 | blue, white, red |
5109 | 1 | 考试 | 海南公务员考试 | 35x45 | 413x531 | 300 | blue |
5110 | 1 | 考试 | 河北公务员考试 | 25x35 | 295x413 | 300 | blue, white, red |
5111 | 1 | 考试 | 河南公务员考试 | 25x35 | 295x413 | 300 | blue, white, red |
5112 | 1 | 考试 | 黑龙江公务员考试 | 35x45 | 413x531 | 300 | blue, white, red |
5113 | 1 | 考试 | 湖北公务员考试 | 25x35 | 295x413 | 300 | blue, white |
5114 | 1 | 考试 | 湖南公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5115 | 1 | 考试 | 江苏公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5116 | 1 | 考试 | 江西公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5117 | 1 | 考试 | 宁夏公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5118 | 1 | 考试 | 青海公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5119 | 1 | 考试 | 山东公务员考试 | 35x49 | 413x579 | 300 | blue, white, red |
5120 | 1 | 考试 | 山西公务员考试 | 25x35 | 295x413 | 300 | blue, white, red |
5121 | 1 | 考试 | 上海公务员考试 | 13x17 | 150x200 | 300 | blue, white |
5122 | 1 | 考试 | 陕西公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5123 | 1 | 考试 | 深圳公务员考试 | 35x53 | 413x626 | 300 | blue, white, red |
5124 | 1 | 考试 | 四川公务员考试 | 25x35 | 295x413 | 300 | blue, white |
5125 | 1 | 考试 | 西藏公务员考试 | 25x35 | 295x413 | 300 | blue, white |
5126 | 1 | 考试 | 新疆公务员考试 | 35x45 | 413x531 | 300 | blue, white |
5127 | 1 | 考试 | 云南公务员考试 | 35x49 | 413x579 | 300 | blue, white, red |
5128 | 1 | 考试 | 山西省省直事业单位考试报名 | 25x35 | 295x413 | 300 | white |
5129 | 1 | 考试 | 重庆公务员考试 | 25x35 | 295x413 | 300 | blue, white |
5201 | 1 | 考试 | 国考(二寸) | 35x45 | 413x531 | 300 | blue, white |
5202 | 1 | 考试 | 国考(一寸) | 25x35 | 295x413 | 300 | blue, white |
5203 | 1 | 考试 | 甘肃省(国考) | 25x35 | 295x413 | 300 | blue, white, red |
5204 | 1 | 考试 | 江西省(国考) | 35x53 | 413x626 | 300 | blue, white |
5205 | 1 | 考试 | 宁夏回族自治区(国考) | 35x45 | 413x531 | 300 | blue, white |
5206 | 1 | 考试 | 青海省(国考) | 35x45 | 413x531 | 300 | blue, white |
5207 | 1 | 考试 | 上海市(国考) | 35x53 | 413x626 | 300 | blue |
5301 | 1 | 考试 | 成人高考报名 | 40x54 | 480x640 | 300 | blue |
5302 | 1 | 考试 | 成人自考 | 40x54 | 480x640 | 300 | blue, white |
5303 | 1 | 考试 | 成人自考 | 25x34 | 300x400 | 300 | blue, white |
5401 | 1 | 考试 | 高考报名(一寸) | 25x35 | 295x413 | 300 | blue, white |
5402 | 1 | 考试 | 高考报名(小二寸) | 35x45 | 413x531 | 300 | blue, white |
5403 | 1 | 考试 | 上海中考网报名 | 14x20 | 168x240 | 300 | blue, white, red |
5404 | 1 | 考试 | 武汉大学研究生考试 | 13x17 | 150x200 | 300 | blue, white, red |
5405 | 1 | 考试 | 研究生考试 | 33x48 | 390x567 | 300 | blue, white |
5406 | 1 | 考试 | 在职研究生考试 | 35x45 | 413x531 | 300 | blue, white |
5501 | 1 | 考试 | 普通话水平测试 | 33x48 | 390x567 | 300 | blue, white, red |
5502 | 1 | 考试 | 商务英语考试 | 35x49 | 413x579 | 300 | blue, white |
5503 | 1 | 考试 | 学位英语 | 33x48 | 390x567 | 300 | white |
5504 | 1 | 考试 | 英语AB级考试(二寸) | 33x48 | 390x567 | 300 | blue |
5505 | 1 | 考试 | 英语AB级考试(144X192) | 12x16 | 144x192 | 300 | blue, white |
5506 | 1 | 考试 | 英语三级考试 | 12x16 | 295x413 | 300 | blue |
5507 | 1 | 考试 | 英语四级考试 | 33x43 | 390x507 | 300 | blue, white |
5508 | 1 | 考试 | 英语四级考试 | 12x16 | 12x16 | 300 | blue, white |
5509 | 1 | 考试 | 英语六级考试 | 12x16 | 12x16 | 300 | blue, white |
5510 | 1 | 考试 | 自考学位外语考试 | 40x54 | 480x640 | 300 | blue |
5601 | 1 | 考试 | 证券考试报名 | 18x25 | 215x300 | 300 | blue, white, red |
5602 | 1 | 考试 | 注册会计师考试(一寸) | 25x35 | 295x413 | 300 | white |
5603 | 1 | 考试 | 注册会计师考试(178x220) | 15x19 | 178x220 | 300 | white |
5701 | 1 | 考试 | 国家医学考试 | 25x35 | 295x413 | 300 | blue, white |
5702 | 1 | 考试 | 护士职业资格考试 | 35x45 | 413x531 | 300 | white |
5703 | 1 | 考试 | 执业药师资格考试(一寸) | 25x35 | 295x413 | 300 | white |
5801 | 1 | 考试 | 计算机等级考试 | 12x16 | 144x192 | 300 | white |
5802 | 1 | 考试 | 青少年电子信息等级考试 | 35x53 | 413x626 | 300 | blue, red |
5803 | 1 | 考试 | 青少年机器人技术等级考试 | 35x53 | 413x626 | 300 | blue, white |
5901 | 1 | 考试 | BIM技能等级考试 | 25x35 | 295x413 | 300 | white |
5902 | 1 | 考试 | 卫生专业技术资格考试(一寸) | 25x35 | 295x413 | 300 | white |
5903 | 1 | 考试 | 一级注册消防工程师考试 | 25x35 | 295x413 | 300 | white |
5904 | 1 | 考试 | 育婴师考试报名(一寸) | 25x35 | 295x413 | 300 | white |
5905 | 1 | 考试 | 国家司法考试 | 35x53 | 413x626 | 300 | blue, white, red |
5906 | 1 | 考试 | 裁判资格考试 | 25x35 | 295x413 | 300 | blue |
6101 | 1 | 资质 | 二级建造师证(一寸) | 25x35 | 295x413 | 300 | blue, white |
6102 | 1 | 资质 | 二级建造师证(二寸) | 35x53 | 413x626 | 300 | blue, white |
6103 | 1 | 资质 | 一级建造师 | 25x35 | 295x413 | 300 | white |
6201 | 1 | 资质 | 导游证(一寸) | 25x35 | 295x413 | 300 | white |
6202 | 1 | 资质 | 导游证(二寸) | 35x53 | 413x626 | 300 | white |
6302 | 1 | 资质 | 职业兽医资格证 | 19x28 | 230x334 | 300 | blue, white |
6303 | 1 | 资质 | 职业医师资格证(小二寸) | 35x45 | 413x531 | 300 | white |
6401 | 1 | 资质 | 教师资格证(300x400) | 25x34 | 300x400 | 300 | white |
6501 | 1 | 资质 | 保险职业证(210x270) | 18x23 | 210x270 | 300 | white |
6502 | 1 | 资质 | 会计从业资格证(一寸) | 25x35 | 295x413 | 300 | white |
6601 | 1 | 资质 | 执法证 | 40x54 | 480x640 | 300 | white |
证件照检测接口(API)通过自研深度学习算法与图像处理技术,根据上传的证件照图片,检测并返回证件照各项指标,告知开发者用户照片是否适合制作证件照。
支持各种程序和设备接入,包括小程序、APP、采集设备等,灵活适用于不同应用场景。
1.证件照制作
证件照检测接口能够对上传的照片进行智能化检测,确保其符合各种证件的要求。其主要功能包括:
1.面部识别:检测照片中的人脸,并判断其位置、大小和角度是否符合要求。
2.遮挡物识别:检测照片否戴帽子、眼镜、墨镜、耳机、耳饰、口罩等,确保照片符合更高级的合规标准。
3.背景检测:检查照片背景是否为指定颜色。
4.光照检测:分析照片的光照条件,确保没有过曝或欠曝的情况。
5.质量评估:评估照片的清晰度,确保最终的证件照质量。
证件照制作/检测接口广泛应用于以下场景:
1. 在线护照和签证申请:自动生成和检测符合各国要求的护照和签证照片。
2. 电子身份证申请:提供标准化的身份证照片制作和检测服务。
3. 驾照申请:生成和验证符合驾照申请要求的照片。
4. 社保卡、学生证、工作证等:适用于各种需要证件照片的场景。
API类型 | 价格说明 |
---|---|
证件照仅检测API | 每次调用消耗一积分 |
如有问题联系右侧“客服” |