为什么一个请求会回来两个应答,一个失败,一个成功
yjyong1217 发布于2019-03 浏览:14263 回复:0
0
收藏

请求:https://aip.baidubce.com/rest/2.0/face/v3/detect?access_token=我的token

应答1:

{"error_code":222001,"error_msg":"param[image] is null","log_id":1368654418711240571,"timestamp":1551871124,"cached":0,"result":null}

应答2:

{"error_code":0,"error_msg":"SUCCESS","log_id":1368654418711240581,"timestamp":1551871124,"cached":0,"result":{"face_num":1,"face_list":[{"face_token":"22a34fdf33bb9f63aad36ebcede333b5","location":{"left":402.79,"top":494.45,"width":177,"height":172,"rotation":1},"face_probability":1,"angle":{"yaw":31.37,"pitch":12.89,"roll":-4.69},"landmark150":{"cheek_right_1":{"x":401.91,"y":531.86},"cheek_right_3":{"x":399.82,"y":555.71},"cheek_right_5":{"x":401.88,"y":579.4},"cheek_right_7":{"x":406.88,"y":603.35},"cheek_right_9":{"x":414.42,"y":626.93},"cheek_right_11":{"x":425.87,"y":649.83},"chin_2":{"x":446.35,"y":669.16},"cheek_left_11":{"x":479.47,"y":668.68},"cheek_left_9":{"x":512.08,"y":656.86},"cheek_left_7":{"x":545.44,"y":635.86},"cheek_left_5":{"x":566.87,"y":603.67},"cheek_left_3":{"x":575.5,"y":569.69},"cheek_left_1":{"x":581.07,"y":536.06},"eye_right_corner_right":{"x":408.51,"y":532.59},"eye_right_eyelid_upper_2":{"x":413.39,"y":526.99},"eye_right_eyelid_upper_4":{"x":420.12,"y":525.96},"eye_right_eyelid_upper_6":{"x":427.46,"y":528.11},"eye_right_corner_left":{"x":434.05,"y":534.74},"eye_right_eyelid_lower_6":{"x":426.51,"y":535.76},"eye_right_eyelid_lower_4":{"x":419.18,"y":536.09},"eye_right_eyelid_lower_2":{"x":413.11,"y":534.93},"eye_right_eyeball_center":{"x":420.27,"y":530.97},"eyebrow_right_corner_right":{"x":402.92,"y":511.51},"eyebrow_right_upper_2":{"x":408.34,"y":499.74},"eyebrow_right_upper_3":{"x":417.67,"y":497.28},"eyebrow_right_upper_4":{"x":427.73,"y":499},"eyebrow_right_corner_left":{"x":436.45,"y":508.34},"eyebrow_right_lower_3":{"x":427.26,"y":508.8},"eyebrow_right_lower_2":{"x":418,"y":509.05},"eyebrow_right_lower_1":{"x":409.64,"y":510.37},"eye_left_corner_right":{"x":474.35,"y":534.59},"eye_left_eyelid_upper_2":{"x":480.81,"y":527.67},"eye_left_eyelid_upper_4":{"x":489.13,"y":526.22},"eye_left_eyelid_upper_6":{"x":498.41,"y":528.23},"eye_left_corner_left":{"x":508.37,"y":533.19},"eye_left_eyelid_lower_6":{"x":498.63,"y":535.44},"eye_left_eyelid_lower_4":{"x":489.18,"y":536.51},"eye_left_eyelid_lower_2":{"x":481.2,"y":535.75},"eye_left_eyeball_center":{"x":487.96,"y":531.03},"eyebrow_left_corner_right":{"x":462.33,"y":507.87},"eyebrow_left_upper_2":{"x":476.81,"y":498.14},"eyebrow_left_upper_3":{"x":492.39,"y":497.47},"eyebrow_left_upper_4":{"x":508.89,"y":501.34},"eyebrow_left_corner_left":{"x":522.47,"y":515.2},"eyebrow_left_lower_3":{"x":506.93,"y":513.3},"eyebrow_left_lower_2":{"x":491.61,"y":510.83},"eyebrow_left_lower_1":{"x":476.74,"y":509.6},"nose_right_contour_1":{"x":441.56,"y":535.95},"nose_right_contour_2":{"x":436.72,"y":553.24},"nose_right_contour_3":{"x":431.76,"y":570.07},"nose_right_contour_4":{"x":427.04,"y":587.18},"nose_right_contour_6":{"x":433.54,"y":591.03},"nose_left_contour_6":{"x":456.16,"y":590.57},"nose_left_contour_4":{"x":471.18,"y":589.89},"nose_left_contour_3":{"x":465.09,"y":570.93},"nose_left_contour_2":{"x":463.08,"y":553.63},"nose_left_contour_1":{"x":461.43,"y":536.17},"nose_tip":{"x":438.2,"y":580.52},"mouth_corner_right_outer":{"x":427.32,"y":621.41},"mouth_lip_upper_outer_3":{"x":434,"y":614.73},"mouth_lip_upper_outer_6":{"x":444.79,"y":614.73},"mouth_lip_upper_outer_9":{"x":461.2,"y":616.31},"mouth_corner_left_outer":{"x":478.51,"y":623.33},"mouth_lip_lower_outer_9":{"x":461.17,"y":630.44},"mouth_lip_lower_outer_6":{"x":444.81,"y":632.37},"mouth_lip_lower_outer_3":{"x":434.29,"y":629.51},"mouth_lip_upper_inner_3":{"x":435.25,"y":620.15},"mouth_lip_upper_inner_6":{"x":445.41,"y":621.01},"mouth_lip_upper_inner_9":{"x":460.94,"y":621.19},"mouth_lip_lower_inner_9":{"x":460.19,"y":623.73},"mouth_lip_lower_inner_6":{"x":445.56,"y":623.88},"mouth_lip_lower_inner_3":{"x":435.82,"y":623.28},"cheek_right_2":{"x":400.53,"y":543.89},"cheek_right_4":{"x":399.85,"y":567.64},"cheek_right_6":{"x":404.21,"y":591.5},"cheek_right_8":{"x":410.19,"y":615.49},"cheek_right_10":{"x":419.9,"y":638.49},"chin_1":{"x":433.99,"y":662.26},"chin_3":{"x":462.63,"y":671.18},"cheek_left_10":{"x":496.54,"y":664.37},"cheek_left_8":{"x":529.99,"y":647.7},"cheek_left_6":{"x":558.38,"y":621.04},"cheek_left_4":{"x":572.15,"y":586.61},"cheek_left_2":{"x":578.31,"y":552.44},"eyebrow_right_upper_1":{"x":402.19,"y":507.68},"eyebrow_right_upper_5":{"x":436.39,"y":502.96},"eyebrow_left_upper_1":{"x":462.32,"y":502.24},"eyebrow_left_upper_5":{"x":523.23,"y":511.58},"eye_right_eyelid_upper_1":{"x":410.34,"y":529.4},"eye_right_eyelid_upper_3":{"x":416.44,"y":526.15},"eye_right_eyelid_upper_5":{"x":423.78,"y":526.68},"eye_right_eyelid_upper_7":{"x":430.89,"y":530.93},"eye_right_eyelid_lower_7":{"x":430.02,"y":535.33},"eye_right_eyelid_lower_5":{"x":422.8,"y":536.26},"eye_right_eyelid_lower_3":{"x":416.04,"y":535.89},"eye_right_eyelid_lower_1":{"x":410.71,"y":534.02},"eye_right_eyeball_right":{"x":414.68,"y":531.32},"eye_right_eyeball_left":{"x":426.03,"y":531.86},"eye_left_eyelid_upper_1":{"x":477.06,"y":530.58},"eye_left_eyelid_upper_3":{"x":484.68,"y":526.41},"eye_left_eyelid_upper_5":{"x":493.89,"y":526.74},"eye_left_eyelid_upper_7":{"x":503.64,"y":530.2},"eye_left_eyelid_lower_7":{"x":503.5,"y":534.46},"eye_left_eyelid_lower_5":{"x":494.03,"y":536.46},"eye_left_eyelid_lower_3":{"x":485.11,"y":536.59},"eye_left_eyelid_lower_1":{"x":477.83,"y":535.29},"eye_left_eyeball_right":{"x":482.26,"y":531.62},"eye_left_eyeball_left":{"x":495.24,"y":531.5},"nose_bridge_1":{"x":448.44,"y":535.68},"nose_bridge_2":{"x":444.6,"y":552.82},"nose_bridge_3":{"x":440.55,"y":570.17},"nose_right_contour_5":{"x":431.24,"y":594.27},"nose_right_contour_7":{"x":431.93,"y":585.99},"nose_left_contour_7":{"x":456.41,"y":585.46},"nose_left_contour_5":{"x":462.76,"y":596.05},"nose_middle_contour":{"x":443.97,"y":597.17},"mouth_corner_right_inner":{"x":428.42,"y":621.2},"mouth_corner_left_inner":{"x":476.25,"y":623.1},"mouth_lip_upper_outer_1":{"x":428.46,"y":618.49},"mouth_lip_upper_outer_2":{"x":430.57,"y":616.37},"mouth_lip_upper_outer_4":{"x":437.28,"y":613.61},"mouth_lip_upper_outer_5":{"x":440.67,"y":613.78},"mouth_lip_upper_outer_7":{"x":450.3,"y":613.36},"mouth_lip_upper_outer_8":{"x":455.8,"y":614.19},"mouth_lip_upper_outer_10":{"x":467.39,"y":617.95},"mouth_lip_upper_outer_11":{"x":473.27,"y":620.28},"mouth_lip_lower_outer_11":{"x":473.08,"y":626.54},"mouth_lip_lower_outer_10":{"x":467.4,"y":629.09},"mouth_lip_lower_outer_8":{"x":455.77,"y":632.41},"mouth_lip_lower_outer_7":{"x":450.35,"y":632.96},"mouth_lip_lower_outer_5":{"x":440.75,"y":632.39},"mouth_lip_lower_outer_4":{"x":437.39,"y":631.51},"mouth_lip_lower_outer_2":{"x":431.13,"y":627.38},"mouth_lip_lower_outer_1":{"x":429.05,"y":624.7},"mouth_lip_upper_inner_1":{"x":429.9,"y":620.69},"mouth_lip_upper_inner_2":{"x":432.25,"y":620.31},"mouth_lip_upper_inner_4":{"x":438.61,"y":620.16},"mouth_lip_upper_inner_5":{"x":441.74,"y":620.38},"mouth_lip_upper_inner_7":{"x":450.78,"y":620.43},"mouth_lip_upper_inner_8":{"x":455.69,"y":620.57},"mouth_lip_upper_inner_10":{"x":466.87,"y":621.63},"mouth_lip_upper_inner_11":{"x":472.45,"y":622.26},"mouth_lip_lower_inner_11":{"x":472.16,"y":623.96},"mouth_lip_lower_inner_10":{"x":466.37,"y":623.89},"mouth_lip_lower_inner_8":{"x":455.1,"y":623.91},"mouth_lip_lower_inner_7":{"x":450.42,"y":623.89},"mouth_lip_lower_inner_5":{"x":441.86,"y":623.88},"mouth_lip_lower_inner_4":{"x":439.01,"y":623.64},"mouth_lip_lower_inner_2":{"x":432.65,"y":622.88},"mouth_lip_lower_inner_1":{"x":430.17,"y":622.44}},"eye_status":{"left_eye":1,"right_eye":1},"emotion":{"type":"neutral","probability":0.81}}]}}

收藏
点赞
0
个赞
TOP
切换版块