阿里云人脸识别公测使用说明

45次阅读

共计 33919 个字符,预计需要花费 85 分钟才能阅读完成。

概述

之前阿里云人脸识别只提供人脸检测,人脸属性及人脸对比三个 API 接口,关于这方面的介绍及使用细节,可以参考阿里云人脸识别使用流程简介,之前使用的服务地址为:dtplus-cn-shanghai.data.aliyuncs.com。目前新版本加入了 1:N 人脸查找的功能,新版本还处于公测阶段,服务地址:face.cn-shanghai.aliyuncs.com。下面主要介绍如何使用新版本的地址调用之前的三个 API 的功能。

使用流程

1、服务开通及 1:N 人脸识别使用
阿里云人脸识别 1:N 使用简明示例

2、接口调用 Code 示例

import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;

public class CommomDemo {

    //DefaultProfile.getProfile 的参数分别是地域,access_key_id, access_key_secret
    public static DefaultProfile profile = DefaultProfile.getProfile("cn-shanghai", "********", "********");
    public static DefaultAcsClient client = new DefaultAcsClient(profile);

    public static void main(String[] args)  {

        String imageUrl_1 = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559655604341&di=3d6995f6dee1c4795d1827e754a00452&imgtype=0&src=http%3A%2F%2Fimg0.ph.126.net%2F90u9atgu46nnziAm1NMAGw%3D%3D%2F6631853916514183512.jpg";
        String imageUrl_2 = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559655604338&di=ee3d8fb39f6e14a21852a4ac3f2c5a14&imgtype=0&src=http%3A%2F%2Fc4.haibao.cn%2Fimg%2F600_0_100_0%2F1473652712.0005%2F87c7805c10e60e9a6db94f86d6014de8.jpg";

        // 人类检测定位
        DetectFace(imageUrl_1);
        // 人类属性识别
        GetFaceAttribute(imageUrl_1);
        // 人脸对比
        VerifyFace(imageUrl_1,imageUrl_2);
    }

    /**
     * DetectFace API 人脸检测定位
     *
     * @param imageUrl  检测人脸图片的 URL
     */
    public static void DetectFace(String imageUrl) {CommonRequest request = new CommonRequest();
        request.setMethod(MethodType.POST);
        request.setDomain("face.cn-shanghai.aliyuncs.com");
        request.setVersion("2018-12-03");
        request.setAction("DetectFace");
        request.putBodyParameter("ImageUrl", imageUrl);
//        request.putBodyParameter("Content", "/9j/4AAQSkZJRgABA...");  // 检测图片的内容,Base64 编码
        CommonResponse response = null;
        try {response = client.getCommonResponse(request);
        } catch (ClientException e) {e.printStackTrace();
        }
        System.out.println(response.getData());
    }

    /**
     * GetFaceAttribute API 人脸属性识别
     *
     * @param imageUrl  检测人脸图片的 URL
     */
    public static void GetFaceAttribute(String imageUrl) {CommonRequest request = new CommonRequest();
        request.setMethod(MethodType.POST);
        request.setDomain("face.cn-shanghai.aliyuncs.com");
        request.setVersion("2018-12-03");
        request.setAction("GetFaceAttribute");
        request.putBodyParameter("ImageUrl", imageUrl);
//        request.putBodyParameter("Content", "/9j/4AAQSkZJRgABA...");  // 检测图片的内容,Base64 编码
        CommonResponse response = null;
        try {response = client.getCommonResponse(request);
        } catch (ClientException e) {e.printStackTrace();
        }
        System.out.println(response.getData());
    }

    /**
     * VerifyFace API 人脸比对
     *
     * @param imageUrl_1 对比人脸图片 1
     * @param imageUrl_2 对比人脸图片 2
     */
    public static void VerifyFace(String imageUrl_1, String imageUrl_2) {CommonRequest request = new CommonRequest();
        request.setMethod(MethodType.POST);
        request.setDomain("face.cn-shanghai.aliyuncs.com");
        request.setVersion("2018-12-03");
        request.setAction("VerifyFace");
        request.putBodyParameter("ImageUrl1", imageUrl_1);
        request.putBodyParameter("ImageUrl2", imageUrl_2);
//        request.putBodyParameter("Content", "/9j/4AAQSkZJRgABA...");  // 检测图片的内容,Base64 编码
        CommonResponse response = null;
        try {response = client.getCommonResponse(request);
        } catch (ClientException e) {e.printStackTrace();
        }
        System.out.println(response.getData());
    }
}

3、测试结果

{"Data":{"landmark":[804.9229736328125,1092.422607421875,1250.6226806640625,1097.5908203125,1026.85205078125,994.3681640625,1027.907958984375,1072.8592529296875,863.09539794921875,1030.8961181640625,942.0478515625,999.4951171875,1110.4345703125,1009.0109252929688,1190.01123046875,1038.5950927734375,879.40911865234375,1085.736328125,953.1336669921875,1073.27734375,1102.21826171875,1081.3265380859375,1175.9117431640625,1094.052490234375,1492.834228515625,1112.3924560546875,1810.2083740234375,1134.654541015625,1665.3748779296875,1016.6021728515625,1654.6431884765625,1090.4561767578125,1538.03076171875,1061.718017578125,1599.9129638671875,1034.5369873046875,1731.7454833984375,1028.569091796875,1783.610107421875,1072.17919921875,1547.0042724609375,1106.2108154296875,1600.3018798828125,1094.7174072265625,1709.0322265625,1094.122314453125,1759.545654296875,1114.50439453125,952.18408203125,1237.457275390625,1183.72265625,1267.5311279296875,978.96466064453125,1217.33349609375,1009.4988403320312,1203.56591796875,1042.264892578125,1196.564208984375,1075.77587890625,1197.53466796875,1108.67431640625,1203.984375,1139.011474609375,1218.246826171875,1164.28369140625,1240.228759765625,974.55169677734375,1259.2347412109375,1001.2334594726562,1275.430419921875,1031.05908203125,1284.752685546875,1061.966552734375,1289.392578125,1093.2083740234375,1290.36865234375,1124.18359375,1286.196533203125,1154.519775390625,1278.67529296875,1505.215087890625,1268.3563232421875,1707.8802490234375,1249.0772705078125,1518.595458984375,1239.930419921875,1538.1439208984375,1215.336181640625,1566.5552978515625,1202.12353515625,1597.6474609375,1197.808349609375,1628.8631591796875,1201.361572265625,1658.9256591796875,1210.4818115234375,1685.8115234375,1226.7225341796875,1530.1484375,1279.295166015625,1556.618896484375,1285.6790771484375,1583.60986328125,1289.2606201171875,1610.8338623046875,1289.8277587890625,1637.9930419921875,1287.85498046875,1664.3314208984375,1280.946533203125,1688.243408203125,1267.9337158203125,1356.669921875,1282.080322265625,1408.8363037109375,1560.64453125,1382.7197265625,1421.0,1381.5010986328125,1632.008056640625,1219.308349609375,1626.333251953125,1504.8509521484375,1610.831787109375,1131.06494140625,1834.0164794921875,1507.9202880859375,1839.219482421875,1168.1796875,1840.281005859375,1474.0108642578125,1843.4058837890625,1357.8260498046875,1777.0272216796875,1320.10791015625,1763.81298828125,1392.8961181640625,1763.3056640625,1224.458984375,1796.318359375,1458.3162841796875,1789.4027099609375,1176.220947265625,1811.2916259765625,1271.6904296875,1778.330322265625,1427.244384765625,1772.251953125,1486.575927734375,1810.860107421875,1339.3538818359375,1976.9384765625,1215.468994140625,1935.6622314453125,1443.721923828125,1933.8045654296875,1168.71533203125,1888.6368408203125,1273.8131103515625,1967.081787109375,1395.5445556640625,1965.0711669921875,1481.5811767578125,1890.49609375,1351.455322265625,1842.5260009765625,1342.378662109375,1877.7198486328125,1259.6845703125,1839.9146728515625,1253.211181640625,1868.9188232421875,1412.838623046875,1838.9901123046875,1411.533935546875,1873.427734375,1213.92138671875,1836.1749267578125,1210.1529541015625,1856.2049560546875,1305.53125,1842.6036376953125,1297.5078125,1876.217041015625,1382.1820068359375,1841.363525390625,1377.18603515625,1879.0858154296875,1443.586669921875,1839.01416015625,1444.234130859375,1861.482421875,622.818603515625,1224.1640625,1785.59130859375,1214.975341796875,1357.4208984375,2194.99365234375,768.70294189453125,1845.982421875,1715.2325439453125,1736.1357421875,668.54925537109375,1537.018798828125,1775.165771484375,1473.250732421875,1036.9564208984375,2098.42333984375,1579.2042236328125,2001.826171875],"pose":[10.42664909362793,-4.4991774559020996,-0.58455193042755127],"face_prob":[1.0],"request_id":"","errno":0,"face_num":1,"iris":[1071.3939208984375,1234.36279296875,51.518272399902344,1573.902099609375,1242.098388671875,51.518272399902344],"landmark_num":105,"face_rect":[679,539,1172,1664]},"RequestId":"DDEA4EC7-C6AE-4A1F-9EA7-774A8159CF03","Success":true}
{"Data":{"expression":[0],"dense_fea":[0.016414279118180275,0.011117751710116863,-0.024279171600937843,0.017408905550837517,0.005175991915166378,0.025121781975030899,0.0090181399136781693,-0.026270002126693726,-0.023981364443898201,0.080191515386104584,-0.04423033818602562,-0.050524253398180008,0.023271469399333,-0.032605849206447601,0.027634590864181519,-0.0079408958554267883,0.0098233595490455627,0.0080892173573374748,0.025865159928798676,-0.003210738766938448,-0.024871604517102242,-0.038035355508327484,0.014822438359260559,-0.055479571223258972,0.025450102984905243,0.011151855811476707,0.02595829963684082,0.037728317081928253,0.036377053707838058,-0.017968598753213882,-0.017569204792380333,0.011217192746698856,0.022313838824629784,0.042023386806249619,-0.0036151793319731951,-0.016618385910987854,-0.032336678355932236,-0.029918542131781578,0.038601133972406387,0.016244389116764069,-0.056438755244016647,0.019193219020962715,-0.026430673897266388,-0.0084097376093268394,0.0065531679429113865,0.048090055584907532,-0.01594364270567894,-0.0045437393710017204,0.020712938159704208,0.0034460464958101511,-0.034479569643735886,0.010071008466184139,-0.016062896698713303,0.014349808916449547,-0.0054917731322348118,0.027517400681972504,-0.0046238810755312443,0.012049827724695206,0.0021998088341206312,0.0055312416516244411,-0.0038897432386875153,0.010813656263053417,-0.061919849365949631,0.0065060635097324848,0.042080029845237732,0.0086875604465603828,-0.020398655906319618,-0.015989372506737709,-0.0028816759586334229,-0.018101273104548454,0.017168218269944191,0.0059184352867305279,0.026792895048856735,0.01058987807482481,0.029139844700694084,-0.040318820625543594,0.012228825129568577,-0.0055179214105010033,-0.029962176457047462,-0.0049292058683931828,0.029168853536248207,-0.052105627954006195,-0.041194073855876923,-0.053913526237010956,-0.0046954243443906307,-0.020566731691360474,-0.021320102736353874,-0.031375423073768616,-0.041985161602497101,0.046701833605766296,0.0078326491639018059,0.0024243765510618687,0.0046483841724693775,-0.037324573844671249,-0.033530957996845245,0.0072523155249655247,-0.039709325879812241,0.0029756501317024231,0.0021911528892815113,-0.0012015802785754204,0.011216683313250542,-0.018619004637002945,-0.02622380293905735,-0.00010573502368060872,0.034258380532264709,-0.018012119457125664,-0.038441050797700882,-0.033357489854097366,-0.035302937030792236,-0.0060745659284293652,-0.01985197514295578,0.071978889405727386,0.054641887545585632,-0.0028129890561103821,-0.041716776788234711,-0.046537354588508606,0.012408232316374779,0.018437264487147331,-0.026267396286129951,-0.0093699423596262932,0.035472523421049118,-0.029668357223272324,0.037344150245189667,-0.014971497468650341,-0.019168885424733162,-0.036839310079813004,-0.022112857550382614,-0.040318816900253296,-0.066089525818824768,-0.010400624945759773,0.009683697484433651,0.064555548131465912,0.0076892278157174587,0.021437358111143112,-0.033962339162826538,0.013161869719624519,-0.0014793507289141417,-0.024492627009749413,0.026041021570563316,0.034622237086296082,-0.057467818260192871,0.024679480120539665,0.015409871004521847,0.003648876678198576,0.041810411959886551,-0.020325936377048492,-0.030298860743641853,-0.067976400256156921,0.037241149693727493,0.023624679073691368,-0.024560457095503807,-0.029086720198392868,0.0071111386641860008,-0.0030486325267702341,0.042380917817354202,-0.0022856069263070822,0.013760308735072613,0.011580858379602432,0.00038428822881542146,0.0017736731097102165,0.015066553838551044,0.0012708446010947227,0.004941220860928297,0.028510130941867828,-0.032831542193889618,0.075369797646999359,-0.034441586583852768,-0.016652520745992661,-0.0091891232877969742,-0.037657305598258972,-0.061669431626796722,0.015304924920201302,0.030496308580040932,0.01068446971476078,0.03801364079117775,-0.00563071109354496,-0.024320967495441437,-0.03326314315199852,0.02032918855547905,-0.0048014041967689991,-0.014341701753437519,-0.076494574546813965,0.021973295137286186,-0.019149940460920334,-0.046973615884780884,0.01622605137526989,-0.0037919448222965002,0.031317055225372314,-0.02691156417131424,0.022680599242448807,-0.038336466997861862,-0.040584281086921692,-0.0099328048527240753,-0.0085507621988654137,0.030692471191287041,0.02464769035577774,0.014415464363992214,0.02625366672873497,0.017975317314267159,-0.019516894593834877,0.022162657231092453,0.022188935428857803,0.02590276300907135,0.021424120292067528,0.047682493925094604,0.0072720306925475597,-0.054090008139610291,0.027000665664672852,0.030074840411543846,-0.050312254577875137,0.011864916421473026,0.033748649060726166,-0.053548958152532578,0.010846088640391827,-0.0069970614276826382,0.030337907373905182,0.02817346528172493,-0.029271779581904411,0.03469250351190567,0.0064126728102564812,-0.01861218735575676,-0.021474258974194527,0.027541998773813248,0.024261746555566788,-0.032163888216018677,0.039547454565763474,-0.019090829417109489,0.03753231093287468,0.013796327635645866,-0.018724227324128151,-0.069389879703521729,-0.04760998860001564,0.0074834576807916164,0.041575390845537186,0.020644549280405045,-0.016695793718099594,0.022134510800242424,-0.040465198457241058,0.012994321063160896,-0.035330832004547119,0.022456424310803413,-0.068932585418224335,0.013562659732997417,0.025609204545617104,-0.0019225999712944031,-0.033765267580747604,-0.050358299165964127,-0.019091997295618057,-0.0016645207069814205,0.047277089208364487,-0.012041909620165825,0.027718642726540565,-0.025801690295338631,0.0080511178821325302,0.024690158665180206,0.034859601408243179,-0.062488246709108353,0.022548316046595573,-0.07484213262796402,0.0065803849138319492,0.0033239810727536678,0.012223740108311176,0.012860331684350967,-0.019702417775988579,0.046578448265790939,-0.0082369716838002205,-0.039842251688241959,-0.020067203789949417,-0.0020230957306921482,-0.026589762419462204,-0.037613429129123688,-0.016070295125246048,0.025018248707056046,0.057307668030261993,0.022246750071644783,0.0209652129560709,-0.068007580935955048,-0.0079310080036520958,-0.07088838517665863,0.0098530547693371773,-0.0010729868663474917,0.036389101296663284,-0.043796718120574951,0.034827478229999542,-0.049247227609157562,0.015403907746076584,-0.044869966804981232,-0.035330962389707565,-0.065767727792263031,0.01828533411026001,-0.061250165104866028,-0.042946562170982361,-0.041006501764059067,-0.050178177654743195,-0.040461529046297073,0.047561913728713989,0.042402211576700211,0.051148016005754471,0.0058858939446508884,-0.0036321813240647316,-0.017143948003649712,-0.046652626246213913,0.023359896615147591,-0.00020572677021846175,-0.052340880036354065,0.0082541098818182945,-0.0022940004710108042,-0.030363215133547783,0.0024112795945256948,-0.03059191070497036,-0.0071749263443052769,0.0072359596379101276,0.045483779162168503,0.061845101416110992,-0.0097465161234140396,-0.0124112693592906,-0.053956363350152969,0.013306306675076485,0.040214333683252335,0.053650308400392532,-0.042442560195922852,0.018157675862312317,-0.04493260383605957,-0.022552359849214554,0.0085067544132471085,0.023364432156085968,-0.033995188772678375,-0.017218897119164467,0.050142612308263779,-0.024973625317215919,-0.027149904519319534,0.019374553114175797,-0.018463222309947014,0.024828188121318817,-0.0015123042976483703,-0.055165361613035202,-0.059489402920007706,-0.010580663569271564,-0.011279630474746227,-0.01604844443500042,0.031003504991531372,0.043005280196666718,0.0089180991053581238,-0.027392065152525902,0.053766757249832153,0.021993089467287064,-0.037325061857700348,0.043519329279661179,0.013350780121982098,-0.022668259218335152,-0.0014663590118288994,0.03189573809504509,0.022939387708902359,-0.0038299642037600279,0.025340259075164795,-0.0042444206774234772,-0.018887463957071304,-0.01904793456196785,0.02536444365978241,-0.0082764541730284691,-0.018574664369225502,-0.008207414299249649,0.013071293011307716,-0.04227844625711441,-0.039297856390476227,-0.04920506477355957,0.048613380640745163,-0.0067227021791040897,-0.0052081593312323093,0.036972537636756897,-0.048646703362464905,0.023677418008446693,-0.012915581464767456,0.030644895508885384,-0.00033907749457284808,-0.037045758217573166,-0.0088048484176397324,-0.021863216534256935,0.020062252879142761,0.0041836225427687168,-0.020217511802911758,-0.026699583977460861,0.0064704990945756435,0.010830836370587349,0.024672569707036018,-0.036250371485948563,0.048493552953004837,0.05147770419716835,-0.041463769972324371,0.044264823198318481,-0.070798829197883606,-0.014315728098154068,-0.0018834597431123257,-0.026524368673563004,0.0021855339873582125,0.0045757819898426533,-0.034606631845235825,0.049909941852092743,-0.022902408614754677,-0.038329996168613434,-0.01051627192646265,0.0085307043045759201,0.070758573710918427,-0.00052498048171401024,0.017236564308404922,-0.0085024368017911911,0.039904505014419556,0.026475278660655022,0.039785701781511307,-0.015203430317342281,-0.051428142935037613,0.02549983374774456,0.022098129615187645,0.004336782731115818,0.013589206151664257,-0.033179983496665955,-0.092522747814655304,-0.046756114810705185,0.0039520999416708946,0.017773903906345367,0.073298752307891846,-0.026564689353108406,0.011583300307393074,-0.0092020556330680847,0.011428618803620338,-0.010629240423440933,0.020579373463988304,0.00045410965685732663,0.022069564089179039,-0.01441014651209116,-0.024111872538924217,-0.052926290780305862,-0.005714870523661375,-0.04094434529542923,0.025192344561219215,-0.025637725368142128,0.041096016764640808,-0.017154663801193237,0.032374456524848938,-0.0049460073933005333,-0.03059658408164978,0.03278830274939537,-0.026945194229483604,-0.039201125502586365,0.023440616205334663,-0.01773826964199543,-0.0073472717776894569,-0.031102191656827927,0.065218456089496613,-0.024736620485782623,-0.026245817542076111,-0.077190935611724854,0.0020544887520372868,0.0044507416896522045,0.012845269404351711,-0.019491549581289291,0.040127057582139969,-0.0030025814194232225,0.0058747292496263981,-0.01375531405210495,0.033353544771671295,-0.027082940563559532,0.073668427765369415,0.030749611556529999,-0.0025688167661428452,0.032319076359272003,0.0033501717261970043,0.045445621013641357,0.02302078902721405,0.027610883116722107,-0.043060041964054108,0.017339508980512619,0.042856454849243164,0.012579860165715218,-0.030347749590873718,-0.020096674561500549,-0.028054295107722282,0.022432630881667137,-0.015644675120711327,-0.035843607038259506,0.0014034925261512399,0.0040710023604333401,0.011885639280080795,-0.028867609798908234,0.0042720944620668888,-0.017958592623472214,0.022519571706652641,-0.064234904944896698,0.023030083626508713,0.01103786937892437,0.0080629810690879822,-0.07208588719367981,-0.021571580320596695,0.016167210415005684,0.014010220766067505,-0.057062294334173203,-0.047436941415071487,-0.0063496427610516548,-0.0021391541231423616,-0.0012517201248556376,-0.017700105905532837,0.0016636126674711704,-0.020651418715715408,-0.082791268825531006,-0.031595289707183838,0.02022579126060009,-0.036811146885156631,0.0094184717163443565,0.011607694439589977,0.01657099649310112,-0.010773132555186749,0.024727024137973785,0.035701684653759003,0.034196700900793076,-0.048741936683654785,0.029256394132971764,0.0094976918771862984,-0.02455843985080719,0.02311311848461628,-0.042013529688119888,0.00034123795921914279,0.063004113733768463,-0.031465519219636917,-0.043741501867771149,0.0086119510233402252,-0.061155281960964203,0.034670058637857437,0.031884975731372833,-0.012014799751341343,-0.025238210335373878,-0.026608079671859741,-0.025242496281862259,-0.041024018079042435,-0.031344175338745117,0.020413942635059357,-0.0044236616231501102,0.012901571579277515,0.017000988125801086,-0.027579562738537788,-0.0050895102322101593,0.02201479859650135,-0.016663599759340286,-0.041395090520381927,0.018810531124472618,0.028179341927170753,0.0010508577106520534,-0.0067130466923117638,-0.063814759254455566,0.030290832743048668,0.02412002719938755,0.026974745094776154,0.018646225333213806,0.0063881920650601387,0.016617476940155029,-0.016331672668457031,-0.0061286832205951214,-0.0025630760937929153,-0.0068377256393432617,-0.049645457416772842,0.023324530571699142,0.00072163192089647055,-0.013414791785180569,-0.016064656898379326,-0.019033752381801605,-0.0089471684768795967,0.03250015527009964,0.031579840928316116,0.0056301695294678211,-0.015623953193426132,-0.017338067293167114,-0.069910474121570587,-0.030278507620096207,0.047816887497901917,0.033532623201608658,-0.010684561915695667,-0.017023257911205292,0.018124939873814583,-0.010982678271830082,-0.025974567979574203,-0.078670978546142578,0.030452344566583633,-0.032659370452165604,0.033332124352455139,0.039437253028154373,-0.0092267468571662903,0.022871274501085281,0.070932962000370026,-0.016016943380236626,0.006682621780782938,-0.01119943056255579,0.023725265637040138,0.014326857402920723,0.010748027823865414,-0.038710378110408783,-0.060682643204927444,-0.033169906586408615,0.00027144516934640706,-0.011489801108837128,-0.017048552632331848,0.059621207416057587,-0.041462201625108719,0.053662460297346115,0.017108211293816566,0.0030301336664706469,0.0095098400488495827,-0.074905470013618469,0.020622637122869492,-0.032149333506822586,-0.028638662770390511,0.020533125847578049,-0.031838145107030869,0.016498906537890434,-0.022044245153665543,-0.0016508683329448104,0.012231596745550632,0.017413178458809853,-0.024609979242086411,0.033792395144701004,0.0038854524027556181,-0.022832417860627174,-0.0040506948716938496,0.0014677697326987982,0.031277298927307129,-0.019755160436034203,0.02492198534309864,0.00088901811977848411,0.0037147181574255228,-0.019512249156832695,0.0081304870545864105,-0.01558047067373991,-0.000051160197472199798,-0.022642090916633606,-0.046585496515035629,-0.039530739188194275,0.0140655767172575,0.0019775747787207365,0.044903922826051712,-0.018499493598937988,0.02106940746307373,-0.044346872717142105,-0.042255248874425888,-0.0085445502772927284,-0.028158746659755707,0.015237346291542053,0.00062077387701719999,0.032357949763536453,0.02927066758275032,0.0057112914510071278,0.0076975044794380665,-0.0284468624740839,0.042806394398212433,0.043477121740579605,-0.026764484122395515,-0.020506966859102249,-0.020385986194014549,0.033208463340997696,-0.015355810523033142,-0.010982152074575424,-0.024787954986095428,-0.052221253514289856,-0.0036993336398154497,-0.0015392656205222011,-0.0012835894012823701,-0.084305182099342346,-0.0013533770106732845,-0.014346794225275517,0.022861557081341743,0.066147677600383759,0.010236866772174835,-0.019373951479792595,0.0094826817512512207,0.012683144770562649,-0.025296514853835106,-0.051905684173107147,0.036608599126338959,-0.048325292766094208,-0.029999969527125359,0.075806304812431335,0.058081034570932388,0.015266013331711292,-0.054485216736793518,-0.034654472023248672,-0.039161060005426407,0.0066866767592728138,-0.064884409308433533,0.03679313138127327,-0.024403767660260201,-0.044151358306407928,0.028808904811739922,0.018539190292358398,-0.015408928506076336,0.0018893132219091058,-0.031745530664920807,-0.051701687276363373,-0.031509574502706528,-0.021238984540104866,-0.029214939102530479,0.0051628686487674713,-0.018180983141064644,-0.01560843363404274,0.0048282025381922722,-0.0055654332973062992,-0.033144433051347733,0.0071698641404509544,0.028813103213906288,0.020462546497583389,0.03071892261505127,0.03279569000005722,-0.0069489362649619579,-0.0055322698317468166,-0.030211586505174637,-0.02170724980533123,0.020512791350483894,-0.0023517636582255363,0.010145792737603188,-0.020215863361954689,0.059991847723722458,0.023119103163480759,-0.02865966223180294,0.0085861785337328911,0.011776858009397984,0.030906803905963898,-0.0055986563675105572,-0.05480126291513443,-0.0374794602394104,0.033191725611686707,-0.02870992012321949,0.068080388009548187,0.0088834557682275772,-0.012136968784034252,-0.0059824655763804913,0.055139675736427307,-0.0089902216568589211,0.019125079736113548,-0.010161724872887135,-0.027138680219650269,-0.042288385331630707,-0.022740811109542847,-0.046118177473545074,-0.0077189826406538486,0.037515338510274887,-0.029505176469683647,-0.032310076057910919,-0.042993046343326569,-0.0040715043433010578,0.047329932451248169,-0.016114609315991402,0.027064451947808266,0.051835857331752777,0.017690191045403481,0.025914674624800682,-0.037700831890106201,0.0023805627133697271,-0.0001902155636344105,0.012862866744399071,0.020352087914943695,0.023232791572809219,0.034749019891023636,0.037312902510166168,-0.014667181298136711,0.042882781475782394,0.011517387814819813,-0.037532147020101547,0.046674091368913651,0.0054503749124705791,-0.011282674968242645,0.016228640452027321,0.031428474932909012,-0.02561812661588192,-0.0081741670146584511,-0.048749320209026337,0.0042055482044816017,-0.033325549215078354,-0.037524614483118057,0.071757331490516663,-0.0025604905094951391,0.033981427550315857,0.013051291927695274,0.028895413503050804,0.0071110795252025127,-0.019053449854254723,-0.025822106748819351,-0.040609616786241531,-0.0069607971236109734,0.020486313849687576,0.043628677725791931,0.024582574144005775,-0.051689427345991135,-0.0097413128241896629,-0.014687561430037022,-0.06873755156993866,0.041847892105579376,0.0097790993750095367,0.066298887133598328,-0.011366471648216248,0.042368199676275253,-0.0083684707060456276,-0.0067752012982964516,0.025405678898096085,0.00022754627570975572,-0.089055188000202179,0.031615603715181351,-0.04437854140996933,0.0080113187432289124,-0.027841834351420403,-0.023740245029330254,-0.048392295837402344,-0.00073672813596203923,-0.012756415642797947,-0.0029344491194933653,-0.012688357383012772,-0.0069746524095535278,0.0037744871806353331,0.0075453273020684719,0.01173829659819603,0.034003481268882751,0.06290927529335022,-0.00083650537999346852,0.016078142449259758,0.015671055763959885,0.016051622107625008,-0.0044375383295118809,0.051450669765472412,0.052021045237779617,0.059973742812871933,0.023076988756656647,0.033424597233533859,-0.0002001944521907717,-0.0051609529182314873,-0.013144944794476032,0.044947855174541473,0.022359266877174377,-0.014837522991001606,0.086792334914207458,0.0075895022600889206,-0.018209906294941902,-0.016281656920909882,-0.0023894340265542269,0.030602237209677696,-0.048502340912818909,-0.058367989957332611,-0.049207340925931931,-0.0073901014402508736,0.0051111690700054169,-0.013617254793643951,0.023406647145748138,-0.031450092792510986,-0.012938839383423328,-0.029113767668604851,0.013060553930699825,0.030014617368578911,-0.056798938661813736,0.035488411784172058,0.035654056817293167,0.01282484270632267,-0.054482392966747284,-0.023198746144771576,0.015008429996669292,0.0068505080416798592,-0.045211609452962875,0.014541098847985268,-0.0013819760642945766,0.051833197474479675,0.018429109826683998,0.025849821045994759,-0.023843541741371155,0.046877585351467133,0.022758753970265388,0.0022946938406676054,0.045919120311737061,0.012361539527773857,-0.025079319253563881,-0.011209698393940926,0.0075026680715382099,0.016683807596564293,-0.084307797253131866,-0.056072089821100235,-0.019789205864071846,0.01856280118227005,-0.04851343110203743,-0.0067162178456783295,0.049544963985681534,0.019276183098554611,-0.041807565838098526,0.038245368748903275,-0.019274897873401642,-0.053048305213451385,-0.031665053218603134,0.025899715721607208,0.0085985502228140831,0.017430860549211502,0.015675239264965057,0.0042205224744975567,0.0058168214745819569,-0.026977516710758209,-0.014542231336236,0.015311551280319691,0.0061522666364908218,-0.0015035850228741765,0.057318154722452164,-0.059962544590234756,0.024625128135085106,-0.040724243968725204,-0.04252174124121666,0.011353869922459126,-0.046374727040529251,-0.0021319468505680561,0.013832046650350094,0.0055779288522899151,0.018877042457461357,-0.018555222079157829,-0.03539106622338295,-0.0061489967629313469,0.032049037516117096,0.027428880333900452,0.01118029560893774,0.031404983252286911,0.047895226627588272,-0.0060562975704669952,-0.056836050003767014,0.0056806015782058239,-0.0064515676349401474,0.0060979030095040798,0.00074947503162547946,-0.0028540869243443012,0.035049237310886383,0.0035906096454709768,-0.037427477538585663,-0.087437175214290619,-0.022334838286042213,0.052415359765291214,-0.026483271270990372,0.0044698161073029041,-0.068816952407360077,-0.033660776913166046,-0.018958095461130142,-0.018014736473560333,-0.037690065801143646,-0.0021687524858862162,-0.020357370376586914,0.037161827087402344,0.048394381999969482,-0.014717807061970234,0.023383619263768196,-0.02344946563243866,-0.049391079694032669,-0.00018817960517480969,-0.032516553997993469,0.062844507396221161,-0.013207035139203072,-0.017693089321255684,-0.036273594945669174,-0.0043945065699517727,0.011115334928035736,0.0024123627226799726,-0.053720872849225998,-0.0044504795223474503,-0.044179040938615799,-0.029773039743304253,0.010299156419932842,0.048334497958421707,-0.037586737424135208,-0.052694156765937805,-0.041914902627468109,-0.013966113328933716,0.027044204995036125,0.042745694518089294,-0.0085392436012625694,0.040150206536054611,0.015647636726498604,-0.00053332664538174868,-0.00041614371002651751,0.058794226497411728,0.0271194688975811,0.0086330380290746689,0.037402208894491196,-0.011197480373084545,0.0099129853770136833,-0.064500086009502411,-0.0067313653416931629,-0.014773889444768429,-0.010545741766691208,-0.0020902857650071383,0.028117356821894646,-0.027818366885185242,0.0096028856933116913,0.01225702278316021,-0.047042485326528549,0.041767541319131851,-0.003064021235331893,0.028943534940481186,0.015662448480725288,0.03427528589963913,0.00062948075355961919,-0.02860519103705883,-0.036341793835163116,0.029957961291074753,-0.0029022220987826586,0.014068164862692356,-0.0327165387570858,0.0091944960877299309,-0.0071062035858631134,-0.026433063670992851,-0.025064131245017052,-0.0016299351118505001,-0.0033489922061562538,0.027421910315752029,0.0015901364386081696,-0.024758674204349518,-0.061213772743940353,0.012925389222800732,0.036742255091667175,0.0065238550305366516,0.0010814042761921883,-0.037891712039709091,-0.054072581231594086,-0.048678692430257797,0.029792424291372299,-0.03244302049279213,0.0025027610827237368,-0.011611135676503181,0.030188800767064095,-0.019147418439388275,-0.0022306325845420361],"face_num":1,"landmark_num":105,"pose":[10.42664909362793,-4.4991774559020996,-0.58455193042755127],"face_prob":[1.0],"landmark":[804.9229736328125,1092.422607421875,1250.6226806640625,1097.5908203125,1026.85205078125,994.3681640625,1027.907958984375,1072.8592529296875,863.09539794921875,1030.8961181640625,942.0478515625,999.4951171875,1110.4345703125,1009.0109252929688,1190.01123046875,1038.5950927734375,879.40911865234375,1085.736328125,953.1336669921875,1073.27734375,1102.21826171875,1081.3265380859375,1175.9117431640625,1094.052490234375,1492.834228515625,1112.3924560546875,1810.2083740234375,1134.654541015625,1665.3748779296875,1016.6021728515625,1654.6431884765625,1090.4561767578125,1538.03076171875,1061.718017578125,1599.9129638671875,1034.5369873046875,1731.7454833984375,1028.569091796875,1783.610107421875,1072.17919921875,1547.0042724609375,1106.2108154296875,1600.3018798828125,1094.7174072265625,1709.0322265625,1094.122314453125,1759.545654296875,1114.50439453125,952.18408203125,1237.457275390625,1183.72265625,1267.5311279296875,978.96466064453125,1217.33349609375,1009.4988403320312,1203.56591796875,1042.264892578125,1196.564208984375,1075.77587890625,1197.53466796875,1108.67431640625,1203.984375,1139.011474609375,1218.246826171875,1164.28369140625,1240.228759765625,974.55169677734375,1259.2347412109375,1001.2334594726562,1275.430419921875,1031.05908203125,1284.752685546875,1061.966552734375,1289.392578125,1093.2083740234375,1290.36865234375,1124.18359375,1286.196533203125,1154.519775390625,1278.67529296875,1505.215087890625,1268.3563232421875,1707.8802490234375,1249.0772705078125,1518.595458984375,1239.930419921875,1538.1439208984375,1215.336181640625,1566.5552978515625,1202.12353515625,1597.6474609375,1197.808349609375,1628.8631591796875,1201.361572265625,1658.9256591796875,1210.4818115234375,1685.8115234375,1226.7225341796875,1530.1484375,1279.295166015625,1556.618896484375,1285.6790771484375,1583.60986328125,1289.2606201171875,1610.8338623046875,1289.8277587890625,1637.9930419921875,1287.85498046875,1664.3314208984375,1280.946533203125,1688.243408203125,1267.9337158203125,1356.669921875,1282.080322265625,1408.8363037109375,1560.64453125,1382.7197265625,1421.0,1381.5010986328125,1632.008056640625,1219.308349609375,1626.333251953125,1504.8509521484375,1610.831787109375,1131.06494140625,1834.0164794921875,1507.9202880859375,1839.219482421875,1168.1796875,1840.281005859375,1474.0108642578125,1843.4058837890625,1357.8260498046875,1777.0272216796875,1320.10791015625,1763.81298828125,1392.8961181640625,1763.3056640625,1224.458984375,1796.318359375,1458.3162841796875,1789.4027099609375,1176.220947265625,1811.2916259765625,1271.6904296875,1778.330322265625,1427.244384765625,1772.251953125,1486.575927734375,1810.860107421875,1339.3538818359375,1976.9384765625,1215.468994140625,1935.6622314453125,1443.721923828125,1933.8045654296875,1168.71533203125,1888.6368408203125,1273.8131103515625,1967.081787109375,1395.5445556640625,1965.0711669921875,1481.5811767578125,1890.49609375,1351.455322265625,1842.5260009765625,1342.378662109375,1877.7198486328125,1259.6845703125,1839.9146728515625,1253.211181640625,1868.9188232421875,1412.838623046875,1838.9901123046875,1411.533935546875,1873.427734375,1213.92138671875,1836.1749267578125,1210.1529541015625,1856.2049560546875,1305.53125,1842.6036376953125,1297.5078125,1876.217041015625,1382.1820068359375,1841.363525390625,1377.18603515625,1879.0858154296875,1443.586669921875,1839.01416015625,1444.234130859375,1861.482421875,622.818603515625,1224.1640625,1785.59130859375,1214.975341796875,1357.4208984375,2194.99365234375,768.70294189453125,1845.982421875,1715.2325439453125,1736.1357421875,668.54925537109375,1537.018798828125,1775.165771484375,1473.250732421875,1036.9564208984375,2098.42333984375,1579.2042236328125,2001.826171875],"request_id":"","errno":0,"age":[26],"glass":[0],"iris":[1071.3939208984375,1234.36279296875,51.518272399902344,1573.902099609375,1242.098388671875,51.518272399902344],"gender":[0],"face_rect":[679,539,1172,1664],"dense_fea_len":1024},"RequestId":"DEA5A5A9-E993-4499-8D01-19D30B9F6920","Success":true}
{"Data":{"rectA":[679,539,1172,1664],"thresholds":[61.0,69.0,75.0],"rectB":[208,103,152,218],"request_id":"","errno":0,"confidence":70.725196838378906},"RequestId":"64320CB0-325A-4BDA-A127-EC3E686DE6F6","Success":true}

参考链接

阿里云人脸识别综述


本文作者:taro_秋刀鱼

阅读原文

本文为云栖社区原创内容,未经允许不得转载。

正文完
 0