阿里云视觉智能开放平台--人脸识别使用教程(使用本地图片)

本文涉及的产品
视觉智能开放平台,分割抠图1万点
视觉智能开放平台,图像资源包5000点
视觉智能开放平台,视频资源包5000点
简介: 前面在博客:阿里云视觉智能开放平台--人脸识别使用教程 介绍了如何在智能视觉开放平台使用人脸识别的接口,示例主要演示了1:N人脸查找的使用流程,使用的是OSS的图片,发现很多同学对本地图片的使用疑问较多,这里以人脸属性识别API为例演示如何使用本地图片。

Step By Step

1、SDK获取,注意这里面需要使用新版SDK,实际也就是方法中带有:Advance的Request

您可以通过地址:https://mvnrepository.com/artifact/com.aliyun/SDK包名称  查看不同服务SDK的版本
如人脸识别的新版SDK:facebody20191230
https://mvnrepository.com/artifact/com.aliyun/facebody20191230

_

2、pom.xml

 <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.52</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.aliyun/facebody20191230 -->
        <dependency>
            <groupId>com.aliyun</groupId>
            <artifactId>facebody20191230</artifactId>
            <version>0.2.2</version>
        </dependency>

3、Code Sample

import com.aliyun.facebody20191230.Client;
import com.aliyun.facebody20191230.models.*;
import com.aliyun.tearpc.models.Config;
import com.aliyun.teautil.models.RuntimeOptions;
import com.google.gson.Gson;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class demo {

    public static void main(String[] args) throws Exception {
        // accessKeyId、accessKeySecret 获取参考:https://yq.aliyun.com/articles/693979
        Config config = new Config();
        config.accessKeyId= "LTAIOZZg********";
        // 你的 accessKeySecret
        config.accessKeySecret= "v7CjUJCMk7j9aK****************";
        config.regionId="cn-shanghai";
        config.protocol = "https";
        config.endpoint="facebody.cn-shanghai.aliyuncs.com";

        Client client = new Client(config);
        String filePath = "C:\\Users\\Administrator\\Desktop\\timg.jpg";

        recognizeFaceAdvance(client, filePath);
    }

    /**
     * 人脸属性识别
     * @param client
     * @param picPath 图片位置
     */
    private static void recognizeFaceAdvance(Client client, String picPath)
    {
        RecognizeFaceAdvanceRequest recognizeFaceAdvanceRequest = new RecognizeFaceAdvanceRequest();

        InputStream inputStream = null;
        try {
            inputStream = new FileInputStream(new File(picPath));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        recognizeFaceAdvanceRequest.imageURLObject = inputStream;

        try {
            RecognizeFaceResponse recognizeFaceResponse = client.recognizeFaceAdvance(recognizeFaceAdvanceRequest,new RuntimeOptions());
            System.out.println("人脸属性识别::");
            System.out.println(new Gson().toJson(recognizeFaceResponse));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

4、Result


人脸属性识别::
{"requestId":"6955B1F6-BA6F-4221-9A9C-119F4318FA08","data":{"faceCount":1,"landmarkCount":105,"denseFeatureLength":1024,"faceRectangles":[679.0,539.0,1172.0,1664.0],"faceProbabilityList":[1.0],"poseList":[10.426637649536133,-4.499242782592773,-0.5845687985420227],"landmarks":[799.2508544921875,1096.208740234375,1240.654296875,1094.9720458984375,1017.4330444335938,998.57861328125,1019.7756958007812,1073.234375,856.2061767578125,1035.13671875,933.8515625,1003.8469848632812,1100.0830078125,1011.6668701171875,1179.436767578125,1038.3056640625,872.8338623046875,1087.581298828125,945.7194213867188,1074.416015625,1093.3974609375,1081.538818359375,1166.590576171875,1092.97607421875,1493.1463623046875,1106.8787841796875,1803.4925537109375,1122.54248046875,1661.3282470703125,1008.6871948242188,1651.0706787109375,1079.126953125,1537.4063720703125,1056.8326416015625,1597.4547119140625,1028.1773681640625,1726.907470703125,1018.4874267578125,1778.471435546875,1060.5947265625,1546.176025390625,1099.3516845703125,1597.8970947265625,1085.4248046875,1704.5565185546875,1081.686279296875,1754.29541015625,1101.360595703125,950.329833984375,1237.64794921875,1183.385009765625,1267.03759765625,977.181396484375,1217.33203125,1007.8623046875,1203.468505859375,1040.79296875,1196.4024658203125,1074.479736328125,1197.28076171875,1107.569091796875,1203.653076171875,1138.1513671875,1217.7967529296875,1163.763427734375,1239.65087890625,972.8101806640625,1259.625244140625,999.7427978515625,1275.834716796875,1029.82177734375,1285.0888671875,1060.949951171875,1289.74853515625,1092.414306640625,1290.66357421875,1123.592041015625,1286.35107421875,1154.080322265625,1278.5302734375,1505.3389892578125,1268.0709228515625,1708.0179443359375,1249.576416015625,1518.981201171875,1239.8076171875,1538.6033935546875,1215.315185546875,1567.039306640625,1202.20703125,1598.1136474609375,1198.019775390625,1629.2843017578125,1201.669677734375,1659.324462890625,1210.7451171875,1686.067138671875,1227.1563720703125,1530.2646484375,1279.018310546875,1556.6688232421875,1285.6533203125,1583.6409912109375,1289.33984375,1610.8587646484375,1289.97509765625,1638.017578125,1288.05908203125,1664.3843994140625,1281.280517578125,1688.3682861328125,1268.41259765625,1356.669921875,1282.080322265625,1408.8363037109375,1560.64453125,1382.7197265625,1421.0,1381.5010986328125,1632.008056640625,1219.308349609375,1626.333251953125,1504.8509521484375,1610.831787109375,1130.4825439453125,1834.1395263671875,1509.7669677734375,1838.226318359375,1168.39501953125,1840.3800048828125,1477.0972900390625,1842.334228515625,1356.515380859375,1776.99951171875,1318.5791015625,1763.8675537109375,1391.8681640625,1763.096435546875,1223.385498046875,1796.4013671875,1458.71044921875,1788.520751953125,1175.30078125,1811.2015380859375,1270.33349609375,1778.24560546875,1426.817626953125,1771.79443359375,1487.899169921875,1809.6094970703125,1339.509521484375,1975.9508056640625,1215.365234375,1935.4556884765625,1444.841064453125,1933.088623046875,1168.38525390625,1888.6160888671875,1273.85400390625,1966.6778564453125,1396.037353515625,1963.970703125,1483.1046142578125,1889.708984375,1350.7132568359375,1842.592041015625,1342.6649169921875,1877.176025390625,1259.4251708984375,1840.41455078125,1253.5074462890625,1868.7591552734375,1413.9844970703125,1838.3511962890625,1413.215087890625,1872.574462890625,1213.9150390625,1836.5245361328125,1210.5072021484375,1855.8992919921875,1305.033935546875,1843.0133056640625,1297.79638671875,1876.015380859375,1382.399658203125,1841.2255859375,1378.171142578125,1878.257080078125,1445.6971435546875,1837.94091796875,1446.6396484375,1860.6153564453125,622.818603515625,1224.1640625,1785.5914306640625,1214.9752197265625,1357.4207763671875,2194.99365234375,768.7030639648438,1845.98193359375,1715.2325439453125,1736.135498046875,668.5491943359375,1537.0185546875,1775.165771484375,1473.250732421875,1036.9564208984375,2098.42333984375,1579.2042236328125,2001.826416015625],"pupils":[1071.598876953125,1235.034912109375,51.70608139038086,1573.8760986328125,1241.315673828125,51.70608139038086],"genderList":[0.0],"ageList":[26.0],"expressions":[0.0],"glasses":[0.0],"denseFeatures":[0.014489538967609406,0.016538651660084724,-0.02365877293050289,0.013664696365594864,-6.593768375751097E-6,0.02686416171491146,0.009717186912894249,-0.021407602354884148,-0.017790507525205612,0.08103682845830917,-0.04187806695699692,-0.0492599792778492,0.027166975662112236,-0.03457220271229744,0.024956922978162766,-0.003477256977930665,0.00749629782512784,0.012343673035502434,0.027639983221888542,-0.0013470854610204697,-0.02497219480574131,-0.03999200090765953,0.013248084113001823,-0.05524205416440964,0.026817528530955315,0.014577757567167282,0.030680198222398758,0.03556342422962189,0.03986535593867302,-0.016590304672718048,-0.018459534272551537,0.01534278690814972,0.024295927956700325,0.03880052641034126,-0.009383747354149818,-0.02079753950238228,-0.029860416427254677,-0.03516252711415291,0.03673859313130379,0.016661904752254486,-0.055605728179216385,0.017030755057930946,-0.02787262760102749,-0.008809114806354046,0.0035100330132991076,0.04591352492570877,-0.014117204584181309,-0.007789670955389738,0.021840522065758705,0.0021388784516602755,-0.028840703889727592,0.009511161595582962,-0.015830272808670998,0.01404818519949913,-0.004975116346031427,0.030284518375992775,-0.003263640683144331,0.015789885073900223,-0.0028442656621336937,0.006004558876156807,-0.009203031659126282,0.009089353494346142,-0.06563637405633926,0.006263300310820341,0.03764437884092331,0.006214275490492582,-0.022539138793945312,-0.016099071130156517,-1.670077326707542E-4,-0.02199205383658409,0.023346949368715286,0.01046033389866352,0.031118912622332573,0.00929577648639679,0.026004362851381302,-0.03972094878554344,0.011129491031169891,-0.003752883290871978,-0.03406800702214241,-0.0032845332752913237,0.028086043894290924,-0.04999278113245964,-0.04437991604208946,-0.05387384071946144,-0.005947227124124765,-0.018611164763569832,-0.018737824633717537,-0.0262238010764122,-0.03844602033495903,0.0437544621527195,0.007103078532963991,-4.1507702553644776E-4,3.38484242092818E-5,-0.03687889501452446,-0.027492456138134003,0.0052762022241950035,-0.04076915979385376,0.006373201496899128,-8.054830250330269E-4,-0.004734198097139597,0.01358806248754263,-0.021721992641687393,-0.02645639143884182,-0.0012647840194404125,0.033307820558547974,-0.019982827827334404,-0.030050616711378098,-0.03428920730948448,-0.03470255807042122,-0.0014659094158560038,-0.022159552201628685,0.07048125565052032,0.05301937088370323,-0.0028498047031462193,-0.040497902780771255,-0.04796972498297691,0.01788114383816719,0.017315134406089783,-0.02154647186398506,-0.008700821548700333,0.03942758962512016,-0.03793038800358772,0.03606841340661049,-0.01293246727436781,-0.020046278834342957,-0.038609981536865234,-0.024630576372146606,-0.03716803342103958,-0.06425351649522781,-0.01061219722032547,0.011556174606084824,0.06909172981977463,0.002602532273158431,0.02154490537941456,-0.03236249461770058,0.010130282491445541,-0.0017896442441269755,-0.017583593726158142,0.024318205192685127,0.04046644642949104,-0.05568844825029373,0.03061450459063053,0.015004727058112621,0.0022777991835027933,0.04202600196003914,-0.023331748321652412,-0.02562936209142208,-0.0703972801566124,0.03532899171113968,0.019720055162906647,-0.02643466368317604,-0.033267248421907425,0.008378413505852222,-0.0054666511714458466,0.04472783952951431,-0.0022101092617958784,0.010776091367006302,0.009706639684736729,0.0010070346761494875,4.895350430160761E-4,0.01694011129438877,0.0015253081219270825,0.00795638095587492,0.026490213349461555,-0.03323370963335037,0.07180231809616089,-0.03765782341361046,-0.01524182315915823,-0.013042718172073364,-0.03626006096601486,-0.05600935220718384,0.01343398168683052,0.03605954721570015,0.010838278569281101,0.036304447799921036,-0.0020321551710367203,-0.020098697394132614,-0.029213260859251022,0.019547533243894577,-0.009931912645697594,-0.01260528713464737,-0.08026811480522156,0.02461029775440693,-0.017284680157899857,-0.04828605428338051,0.01883626915514469,9.397820685990155E-4,0.02979593724012375,-0.024592673406004906,0.023201268166303635,-0.041373658925294876,-0.04546558856964111,-0.009279090911149979,-0.006687783170491457,0.03363311290740967,0.030113251879811287,0.009259304963052273,0.021115435287356377,0.02126929722726345,-0.02388186752796173,0.020923035219311714,0.020335419103503227,0.01959981583058834,0.023156369104981422,0.04763268306851387,0.00809313915669918,-0.052705489099025726,0.026144735515117645,0.029126562178134918,-0.04995179921388626,0.013731651939451694,0.030543291941285133,-0.05764003470540047,0.010263132862746716,-0.00523474020883441,0.03250943124294281,0.030083520337939262,-0.027215812355279922,0.03681638091802597,0.008010253310203552,-0.023411020636558533,-0.019861752167344093,0.02348366379737854,0.025421038269996643,-0.03120959922671318,0.04193185269832611,-0.016714125871658325,0.04042500630021095,0.018220659345388412,-0.019524630159139633,-0.06877272576093674,-0.043695852160453796,0.009683582000434399,0.051118265837430954,0.025065148249268532,-0.015788543969392776,0.02166157029569149,-0.04618909955024719,0.012737851589918137,-0.03186088800430298,0.025285186246037483,-0.06968551129102707,0.009476521983742714,0.02746431715786457,-0.003937198780477047,-0.03731880336999893,-0.05440180376172066,-0.019126491621136665,-0.0089641734957695,0.04755355417728424,-0.013236384838819504,0.021874714642763138,-0.02203557640314102,0.003761464962735772,0.024435196071863174,0.03174000605940819,-0.06400248408317566,0.023369139060378075,-0.07145755738019943,0.014052934013307095,0.007466090377420187,0.013299132697284222,0.01596486195921898,-0.02181168645620346,0.04463666304945946,-0.00813734158873558,-0.03721635788679123,-0.018765835091471672,-0.002522482769563794,-0.028159910812973976,-0.03657037019729614,-0.014575954526662827,0.026359526440501213,0.060567714273929596,0.020822132006287575,0.019370928406715393,-0.06812162697315216,-0.006993473973125219,-0.0700201541185379,0.00635951291769743,-0.005450459197163582,0.03340204060077667,-0.0446818508207798,0.036862749606370926,-0.052953239530324936,0.019433192908763885,-0.0403965525329113,-0.03463488072156906,-0.06857631355524063,0.019127029925584793,-0.05576597526669502,-0.04342953860759735,-0.04610839858651161,-0.04311444237828255,-0.04228248819708824,0.0514637790620327,0.04416893795132637,0.05008799582719803,0.010314316488802433,-0.004729883279651403,-0.0156147675588727,-0.053818054497241974,0.02224472537636757,0.003508779453113675,-0.04991873726248741,0.006125573068857193,0.007157393265515566,-0.031390443444252014,8.951686904765666E-4,-0.03204246237874031,-0.0029704852495342493,0.00855530146509409,0.04497985541820526,0.06105920299887657,-0.011253218166530132,-0.017052238807082176,-0.052730824798345566,0.015101736411452293,0.03825967758893967,0.057694096118211746,-0.04020973667502403,0.01634933240711689,-0.04543513432145119,-0.02264615334570408,0.014607374556362629,0.021585674956440926,-0.030298590660095215,-0.01713675819337368,0.05295339971780777,-0.022746505215764046,-0.024370316416025162,0.025732340291142464,-0.018808508291840553,0.02306169457733631,0.002170609775930643,-0.05269131064414978,-0.055157918483018875,-0.00988671276718378,-0.014650445431470871,-0.01875389739871025,0.029422791674733162,0.0427008680999279,0.007001243531703949,-0.02230442874133587,0.05176345258951187,0.019014954566955566,-0.03582201525568962,0.04089992493391037,0.010474968701601028,-0.018766339868307114,-0.005290421657264233,0.030190257355570793,0.019948888570070267,-6.461897282861173E-4,0.024803414940834045,-0.0052940454334020615,-0.014527969993650913,-0.01973743736743927,0.02468097023665905,-0.0071020773611962795,-0.01691841520369053,-0.01148277334868908,0.012833084911108017,-0.04612095281481743,-0.038056403398513794,-0.05110884830355644,0.047111354768276215,-0.005884141195565462,-0.008921509608626366,0.03567904233932495,-0.048938725143671036,0.0270052719861269,-0.014121796004474163,0.03510690852999687,-6.14004791714251E-4,-0.03914652392268181,-0.00950849149376154,-0.02286793291568756,0.022390732541680336,0.008224987424910069,-0.020826756954193115,-0.032257914543151855,0.0044297692365944386,0.01166529580950737,0.024328958243131638,-0.03570198267698288,0.04815458133816719,0.0550011582672596,-0.0422373004257679,0.035300929099321365,-0.06603540480136871,-0.011917853727936745,-7.92589780758135E-5,-0.023814832791686058,0.003773655742406845,0.0016388294752687216,-0.03297705203294754,0.04476923123002052,-0.018120402470231056,-0.038243427872657776,-0.008662342093884945,0.008448412641882896,0.07294318079948425,0.005166301038116217,0.0185252595692873,-0.013009455054998398,0.04298663139343262,0.02618199586868286,0.04069061949849129,-0.01626143604516983,-0.0488821379840374,0.02606271579861641,0.023839030414819717,0.003746447851881385,0.01400421280413866,-0.03359758108854294,-0.09305547922849655,-0.048876553773880005,0.002847721567377448,0.014933733269572258,0.0715407133102417,-0.031045135110616684,0.009512359276413918,-0.013689400628209114,0.013621407561004162,-0.015604824759066105,0.021078690886497498,-6.291232421062887E-4,0.02012270875275135,-0.015304765664041042,-0.025525594130158424,-0.05486327037215233,-0.007680091541260481,-0.03983745351433754,0.01916213147342205,-0.027035441249608994,0.04354765638709068,-0.020871546119451523,0.03135092929005623,-0.0073250471614301205,-0.03192196413874626,0.032987818121910095,-0.02541261725127697,-0.03779517114162445,0.025887779891490936,-0.022894237190485,-0.012046190910041332,-0.02778785303235054,0.0710272416472435,-0.019103731960058212,-0.02381560578942299,-0.07609256356954575,-0.004192766733467579,0.001335522043518722,0.013405295088887215,-0.015520119108259678,0.03489666059613228,-0.008878648281097412,0.003530627815052867,-0.012074637226760387,0.028830647468566895,-0.03278244286775589,0.06815196573734283,0.03218041732907295,-0.00939104612916708,0.02766988053917885,0.0011117082322016358,0.04387306049466133,0.0231583584100008,0.031628262251615524,-0.047853175550699234,0.01813163422048092,0.04259796813130379,0.01285535842180252,-0.02465689182281494,-0.022809835150837898,-0.02791883610188961,0.014018932357430458,-0.014442301355302334,-0.03747875988483429,-0.003718361258506775,0.003441282082349062,0.014880241826176643,-0.029635345563292503,0.006177269387990236,-0.024915700778365135,0.02009967714548111,-0.05617859959602356,0.02570461295545101,0.00925125926733017,0.0023119838442653418,-0.06334278732538223,-0.02131335437297821,0.01749705709517002,0.01884775422513485,-0.05801917985081673,-0.0479673333466053,-0.011339805088937283,-0.006167971529066563,0.0016081464709714055,-0.01318936888128519,0.007680035196244717,-0.02558332495391369,-0.08535588532686234,-0.03244689851999283,0.018796775490045547,-0.034577321261167526,0.013762791641056538,0.014290008693933487,0.014173121191561222,-0.010033689439296722,0.021499067544937134,0.03625078126788139,0.03396042808890343,-0.04996689781546593,0.028620179742574692,0.009630898013710976,-0.02192576229572296,0.023637156933546066,-0.04198041558265686,0.006585757248103619,0.06801024824380875,-0.03308935835957527,-0.046330809593200684,0.007262303028255701,-0.05602853000164032,0.033150721341371536,0.03156076371669769,-0.01187676377594471,-0.018638428300619125,-0.02023841254413128,-0.024820592254400253,-0.04359488934278488,-0.03268119692802429,0.01925586350262165,-0.0029854602180421352,0.012457914650440216,0.021088074892759323,-0.021242406219244003,-0.0035756679717451334,0.023545963689684868,-0.01699208654463291,-0.04070320352911949,0.01983865536749363,0.035102758556604385,0.0038775885477662086,-0.008945907466113567,-0.0625513419508934,0.0286526158452034,0.019785553216934204,0.029963595792651176,0.020708153024315834,0.00844066496938467,0.01452133059501648,-0.014454536139965057,-0.0027052685618400574,-0.0051593296229839325,-0.002974533010274172,-0.051032260060310364,0.018031150102615356,-5.116958054713905E-4,-0.010161793790757656,-0.020598459988832474,-0.02361943945288658,-0.0031150926370173693,0.03057672828435898,0.026901835575699806,0.004423152655363083,-0.011513193137943745,-0.015979764983057976,-0.06693246960639954,-0.029561739414930344,0.04607915133237839,0.028945429250597954,-0.012297495268285275,-0.017479389905929565,0.020069124177098274,-0.011080208234488964,-0.022577129304409027,-0.07761355489492416,0.03369676321744919,-0.03286300599575043,0.032931387424468994,0.041710495948791504,-0.006196965929120779,0.02546057105064392,0.06834235042333603,-0.014376956969499588,0.006838501431047916,-0.009605810977518559,0.022971225902438164,0.017439981922507286,0.007076598703861237,-0.03639978915452957,-0.06437612324953079,-0.03120223619043827,0.0024694534949958324,-0.014917734079062939,-0.007833310402929783,0.05481841042637825,-0.0377979576587677,0.05525337532162666,0.020646411925554276,-0.0027613460551947355,0.01126246526837349,-0.070542111992836,0.020346548408269882,-0.030290158465504646,-0.024588532745838165,0.014817512594163418,-0.030341679230332375,0.016599278897047043,-0.020862270146608353,-0.004287127871066332,0.012190588749945164,0.015122895129024982,-0.024842657148838043,0.034316569566726685,0.005343770142644644,-0.028008680790662766,-1.897661277325824E-4,0.005676587112247944,0.022749710828065872,-0.018906226381659508,0.02600715495646,-0.002191548002883792,8.756517199799418E-4,-0.01617012917995453,0.012972299940884113,-0.013601932674646378,0.0016958508640527725,-0.0222773440182209,-0.04585488513112068,-0.041525453329086304,0.01537117175757885,-0.0045974948443472385,0.04806160181760788,-0.020666027441620827,0.01805962808430195,-0.03866416960954666,-0.035695962607860565,-0.006622640881687403,-0.02943437360227108,0.020551495254039764,-0.0030611595138907433,0.03144672513008118,0.02597910910844803,0.007561577949672937,0.0058630723506212234,-0.027851291000843048,0.037977881729602814,0.042648814618587494,-0.02704615518450737,-0.018637221306562424,-0.020610813051462173,0.03601410612463951,-0.013162214308977127,-0.009692060761153698,-0.02303306572139263,-0.0529627650976181,-0.005868296138942242,0.0021006069146096706,0.001364866504445672,-0.08770275115966797,-0.002191501436755061,-0.014931130222976208,0.022302065044641495,0.0603124275803566,0.011052282527089119,-0.01844513602554798,0.010843915864825249,0.008538284339010715,-0.02028496190905571,-0.051291920244693756,0.03586409613490105,-0.04974065348505974,-0.029765943065285683,0.07417009025812149,0.05439872294664383,0.020051242783665657,-0.06238493323326111,-0.036648236215114594,-0.03873669356107712,0.0031791841611266136,-0.059476837515830994,0.036623869091272354,-0.024058682844042778,-0.04285169020295143,0.028707314282655716,0.01320731546729803,-0.011205289512872696,0.0027720921207219362,-0.02956586703658104,-0.057698044925928116,-0.03024032711982727,-0.02087404578924179,-0.033596526831388474,0.003119927365332842,-0.016843490302562714,-0.017977045848965645,0.006394060794264078,-0.005525255110114813,-0.03470757603645325,0.0017622781451791525,0.027456939220428467,0.01643604040145874,0.033375781029462814,0.030785344541072845,-0.005817380268126726,-0.007044440135359764,-0.031636156141757965,-0.027863940224051476,0.022928304970264435,-0.0033079965505748987,0.008155232295393944,-0.01636767014861107,0.056014854460954666,0.025541501119732857,-0.02913011610507965,0.008123173378407955,0.014719116501510143,0.02644059993326664,-0.010696054436266422,-0.05673900991678238,-0.03974538296461105,0.030119581148028374,-0.028576498851180077,0.06851085275411606,0.00961715541779995,-0.013680344447493553,-0.003413005033507943,0.057621777057647705,-0.009527801536023617,0.01898820698261261,-0.010850407183170319,-0.02249857224524021,-0.04465262219309807,-0.017299208790063858,-0.04501422494649887,-0.0017761009512469172,0.03740791976451874,-0.026212679222226143,-0.03459502384066582,-0.03904398903250694,-0.006788387428969145,0.05133769288659096,-0.014387921430170536,0.02338874526321888,0.048023615032434464,0.018034707754850388,0.03293285891413689,-0.04056847468018532,0.008906146511435509,-0.003762182779610157,0.016926757991313934,0.02310142293572426,0.020364733412861824,0.03419620543718338,0.0370200052857399,-0.014314360916614532,0.04330896586179733,0.01017338689416647,-0.035163506865501404,0.043253254145383835,0.0023047910071909428,-0.009648471139371395,0.01949017308652401,0.02919323556125164,-0.03247097134590149,-0.0038531168829649687,-0.05362286791205406,0.005406268872320652,-0.032470524311065674,-0.037286531180143356,0.07213380932807922,0.0023042575921863317,0.036488402634859085,0.01278962567448616,0.029446294531226158,0.004575203638523817,-0.02133825048804283,-0.027799606323242188,-0.04335711896419525,-0.005230878014117479,0.020190104842185974,0.04151599854230881,0.02445286139845848,-0.05147009715437889,-0.013721473515033722,-0.013640792109072208,-0.0696277916431427,0.03936579078435898,0.014045346528291702,0.06482230126857758,-0.010870217345654964,0.04380969703197479,-0.006837683729827404,-0.004668692126870155,0.018310990184545517,-0.0017084304708987474,-0.09298096597194672,0.03373364359140396,-0.04330097883939743,0.007331352215260267,-0.02647586539387703,-0.021890195086598396,-0.05070232227444649,0.0016263991128653288,-0.013285654596984386,-0.00272985827177763,-0.012399721890687943,-0.009272763505578041,0.002661763457581401,0.005829889792948961,0.010973111726343632,0.03273604437708855,0.06272168457508087,-0.0025113301817327738,0.018743010237812996,0.013208549469709396,0.01725432649254799,-0.009163686074316502,0.05186110734939575,0.053920913487672806,0.06100122258067131,0.027633292600512505,0.029685890302062035,-0.001553474459797144,-0.005316674243658781,-0.013068423606455326,0.039394378662109375,0.02649991773068905,-0.015020167455077171,0.07986433058977127,0.007131979800760746,-0.016550421714782715,-0.01049573440104723,-0.005101684480905533,0.030062999576330185,-0.04911578446626663,-0.05015384033322334,-0.04388046637177467,-0.00794063601642847,0.004798825364559889,-0.015606825239956379,0.029065923765301704,-0.03071257472038269,-0.014355367980897427,-0.027686618268489838,0.01387975737452507,0.033434007316827774,-0.05907713249325752,0.03445623070001602,0.035158634185791016,0.015295837074518204,-0.05480654537677765,-0.023978672921657562,0.017288248986005783,0.006888723466545343,-0.04027898609638214,0.014749782159924507,-6.766733713448048E-4,0.047151681035757065,0.02126995101571083,0.027942810207605362,-0.02458363212645054,0.044587161391973495,0.02542542852461338,0.0019426521612331271,0.04868682473897934,0.016162268817424774,-0.024863839149475098,-0.009667474776506424,0.003763321554288268,0.020361660048365593,-0.08269473910331726,-0.05677143856883049,-0.02448393777012825,0.018761182203888893,-0.048523273319005966,-0.010252702049911022,0.04851066693663597,0.019866719841957092,-0.04523914307355881,0.035839080810546875,-0.01960902288556099,-0.04685242846608162,-0.03314927965402603,0.02387172542512417,0.00528723606839776,0.022944319993257523,0.01859934628009796,0.0033578244037926197,0.006210893392562866,-0.028152113780379295,-0.012236480601131916,0.014833695255219936,0.005351255182176828,-0.0018891794607043266,0.061694175004959106,-0.06176941469311714,0.024850867688655853,-0.04556747525930405,-0.04117938503623009,0.012917756102979183,-0.05025206878781319,0.002747555961832404,0.007950672879815102,7.850865367799997E-4,0.018757639452815056,-0.01869288831949234,-0.0337659977376461,-0.0013793687103316188,0.03313321992754936,0.03151264414191246,0.013297613710165024,0.035638436675071716,0.04680516570806503,-0.006897307466715574,-0.059340257197618484,0.007787108421325684,-0.010225308127701283,0.004992963280528784,0.0027993745170533657,-0.003160861786454916,0.032686974853277206,0.008378811180591583,-0.0409720353782177,-0.08784171938896179,-0.020943712443113327,0.05422641709446907,-0.0235156137496233,0.007904005236923695,-0.07336455583572388,-0.036091148853302,-0.01571294292807579,-0.020930763334035873,-0.04421627148985863,-0.0014458452351391315,-0.02031574212014675,0.036630041897296906,0.04349059239029884,-0.013631015084683895,0.02412649802863598,-0.02584530971944332,-0.05068138241767883,-0.001022113487124443,-0.03488105162978172,0.06960611045360565,-0.008395137265324593,-0.01611042395234108,-0.030203720554709435,-6.895483238622546E-4,0.010824448429048061,-0.0036122340243309736,-0.05491093173623085,-0.0032950465101748705,-0.04133890941739082,-0.03008848987519741,0.005687226541340351,0.05411509424448013,-0.036958713084459305,-0.053339313715696335,-0.046314679086208344,-0.018231602385640144,0.024864742532372475,0.038482651114463806,-0.013012457638978958,0.03958151862025261,0.019831188023090363,-0.0033896395470947027,0.001129993237555027,0.05499284714460373,0.02661830186843872,0.014818972907960415,0.038261037319898605,-0.010824797675013542,0.00753537192940712,-0.060562778264284134,-0.009810435585677624,-0.008335948921740055,-0.008651885204017162,-0.0013713057851418853,0.028061287477612495,-0.02420889213681221,0.00670004915446043,0.012899226509034634,-0.0499599426984787,0.047231875360012054,-0.009927107021212578,0.029375039041042328,0.015159880742430687,0.030555959790945053,0.001654494204558432,-0.0293111614882946,-0.038863036781549454,0.034449681639671326,-0.006263405084609985,0.014423899352550507,-0.027107536792755127,0.009071568958461285,-0.006023565772920847,-0.027260366827249527,-0.028102077543735504,-0.002411698689684272,-0.006752286572009325,0.030060220509767532,0.001091973390430212,-0.024573372676968575,-0.06476298719644547,0.004474201705306768,0.041637491434812546,0.006822837982326746,-0.0027539399452507496,-0.04244883731007576,-0.05788080021739006,-0.044639952480793,0.024765314534306526,-0.03461480140686035,0.003580286633223295,-0.012944410555064678,0.028751611709594727,-0.021419614553451538,-0.005529451183974743]}}

5、其它方法的调用类似,如果是使用本地图片,使用带有Advance名称的Request即可

_

更多参考

阿里云视觉智能开放平台使用简明教程
阿里云视觉智能开放平台--人脸识别使用教程
人脸属性识别

相关文章
|
4月前
|
文字识别 算法 API
视觉智能开放平台产品使用合集之处理一张图片大概耗时多久
视觉智能开放平台是指提供一系列基于视觉识别技术的API和服务的平台,这些服务通常包括图像识别、人脸识别、物体检测、文字识别、场景理解等。企业或开发者可以通过调用这些API,快速将视觉智能功能集成到自己的应用或服务中,而无需从零开始研发相关算法和技术。以下是一些常见的视觉智能开放平台产品及其应用场景的概览。
|
4月前
|
存储 监控 API
视觉智能开放平台产品使用合集之人脸识别服务端的离线SDK是什么
视觉智能开放平台是指提供一系列基于视觉识别技术的API和服务的平台,这些服务通常包括图像识别、人脸识别、物体检测、文字识别、场景理解等。企业或开发者可以通过调用这些API,快速将视觉智能功能集成到自己的应用或服务中,而无需从零开始研发相关算法和技术。以下是一些常见的视觉智能开放平台产品及其应用场景的概览。
40 0
|
5月前
|
算法 API 开发工具
视觉智能平台人脸识别页面的链接时效性
视觉智能平台人脸识别页面的链接时效性
|
6月前
|
算法 小程序 开发工具
视觉智能开放平台操作报错合集之同样的图片路径(上海阿里云),sdk报错code.400,是什么原因
在使用视觉智能开放平台时,可能会遇到各种错误和问题。虽然具体的错误代码和消息会因平台而异,但以下是一些常见错误类型及其可能的原因和解决策略的概述,包括但不限于:1. 认证错误、2. 请求参数错误、3. 资源超限、4. 图像质量问题、5. 服务不可用、6. 模型不支持的场景、7. 网络连接问题,这有助于快速定位和解决问题。
|
6月前
|
文字识别 开发工具 Android开发
视觉智能开放平台操作报错合集之使用人脸属性检测接口,出现报错:图片无法下载,请检查链接是否可访问和本地网络情况,该如何解决
在使用视觉智能开放平台时,可能会遇到各种错误和问题。虽然具体的错误代码和消息会因平台而异,但以下是一些常见错误类型及其可能的原因和解决策略的概述,包括但不限于:1. 认证错误、2. 请求参数错误、3. 资源超限、4. 图像质量问题、5. 服务不可用、6. 模型不支持的场景、7. 网络连接问题,这有助于快速定位和解决问题。
|
6月前
|
前端开发 计算机视觉
视觉智能开放平台操作报错合集之人脸对比1:1,采用web前端直接调用,使用了base64处理图片,提示http错误码414,该如何处理
在使用视觉智能开放平台时,可能会遇到各种错误和问题。虽然具体的错误代码和消息会因平台而异,但以下是一些常见错误类型及其可能的原因和解决策略的概述,包括但不限于:1. 认证错误、2. 请求参数错误、3. 资源超限、4. 图像质量问题、5. 服务不可用、6. 模型不支持的场景、7. 网络连接问题,这有助于快速定位和解决问题。
|
6月前
视觉智能开放平台操作报错合集之报错:Error: InvalidImage.Region code: 400,图片链接地域不对应,该如何解决
在使用视觉智能开放平台时,可能会遇到各种错误和问题。虽然具体的错误代码和消息会因平台而异,但以下是一些常见错误类型及其可能的原因和解决策略的概述,包括但不限于:1. 认证错误、2. 请求参数错误、3. 资源超限、4. 图像质量问题、5. 服务不可用、6. 模型不支持的场景、7. 网络连接问题,这有助于快速定位和解决问题。
|
6月前
|
缓存 算法 API
视觉智能开放平台产品使用合集之如何在Web浏览器中查看处理后的图片
视觉智能开放平台是指提供一系列基于视觉识别技术的API和服务的平台,这些服务通常包括图像识别、人脸识别、物体检测、文字识别、场景理解等。企业或开发者可以通过调用这些API,快速将视觉智能功能集成到自己的应用或服务中,而无需从零开始研发相关算法和技术。以下是一些常见的视觉智能开放平台产品及其应用场景的概览。
166 0
|
6月前
|
文字识别 算法 API
视觉智能开放平台产品使用合集之如何实现对图片的自动抠图
视觉智能开放平台是指提供一系列基于视觉识别技术的API和服务的平台,这些服务通常包括图像识别、人脸识别、物体检测、文字识别、场景理解等。企业或开发者可以通过调用这些API,快速将视觉智能功能集成到自己的应用或服务中,而无需从零开始研发相关算法和技术。以下是一些常见的视觉智能开放平台产品及其应用场景的概览。
|
6月前
|
存储 生物认证 API
视觉智能开放平台产品使用合集之只有一张原图,该如何设置输出图片的格式
视觉智能开放平台是指提供一系列基于视觉识别技术的API和服务的平台,这些服务通常包括图像识别、人脸识别、物体检测、文字识别、场景理解等。企业或开发者可以通过调用这些API,快速将视觉智能功能集成到自己的应用或服务中,而无需从零开始研发相关算法和技术。以下是一些常见的视觉智能开放平台产品及其应用场景的概览。

热门文章

最新文章