12345678910111213 |
- const { FaceService } = require("./face.service");
- async function main(){
- let faceServ = new FaceService()
- // lyf1 128维度特征向量数组
- // let faceFeat68 = [-0.09852483868598938,0.0748210921883583,0.031563639640808105,-0.1323895901441574,-0.14048264920711517,-0.012380637228488922,-0.1202174723148346,-0.11705487966537476,0.12698683142662048,-0.218950554728508,0.16882860660552979,-0.109050452709198,-0.1343892216682434,-0.03263712674379349,-0.08884422481060028,0.238133043050766,-0.1850930005311966,-0.1274271309375763,-0.031015701591968536,0.017501287162303925,0.08274881541728973,-0.02009255811572075,-0.03606291860342026,0.07826575636863708,-0.07460039108991623,-0.30363327264785767,-0.11924955248832703,-0.013626940548419952,-0.045659542083740234,-0.05412667989730835,-0.06456897407770157,0.06692294776439667,-0.18031014502048492,-0.0011228621006011963,-0.009975329041481018,0.11013024300336838,-0.00493689626455307,-0.08558250218629837,0.10225555300712585,0.02723834663629532,-0.25496453046798706,0.10651601850986481,0.05334452539682388,0.22334304451942444,0.15225529670715332,0.007631596177816391,0.019638724625110626,-0.1368170976638794,0.14633668959140778,-0.18137460947036743,0.026605065912008286,0.10837362706661224,0.06883929669857025,0.027700066566467285,0.04362597316503525,-0.11393266171216965,0.050470441579818726,0.1353151500225067,-0.11388298869132996,0.03125010430812836,0.10460706800222397,-0.03446819260716438,-0.01624279096722603,-0.16958579421043396,0.2160552591085434,0.17320333421230316,-0.11017127335071564,-0.25261038541793823,0.12614592909812927,-0.096388079226017,-0.08947526663541794,0.07287181168794632,-0.14514991641044617,-0.17512711882591248,-0.24459412693977356,0.02685403823852539,0.3455549478530884,0.16986696422100067,-0.16841250658035278,0.05638973042368889,-0.006193479523062706,-0.02861897647380829,0.0987851619720459,0.18471932411193848,0.014859762042760849,0.04832335561513901,-0.0328541025519371,0.019863054156303406,0.2237083464860916,-0.04242844134569168,-0.017962101846933365,0.2283974587917328,-0.01908118650317192,0.039537280797958374,-0.044663406908512115,-0.03942383825778961,-0.10947410017251968,0.07384784519672394,-0.13645696640014648,-0.022529728710651398,0.0006778687238693237,-0.024799048900604248,-0.04216424375772476,0.11292757093906403,-0.13180139660835266,0.15981130301952362,-0.07501605898141861,0.037828102707862854,-0.04268859326839447,0.019408375024795532,-0.09866605699062347,0.030573979020118713,0.11470682919025421,-0.18785522878170013,0.1709749549627304,0.135052889585495,0.11981010437011719,0.07612602412700653,0.1714332103729248,0.08336580544710159,0.03716219961643219,-0.012700825929641724,-0.23010127246379852,-0.008748907595872879,0.13277511298656464,-0.09321203827857971,0.08568182587623596,0.012791123241186142]
- let faceFeat68 = [-0.13442125916481018,0.21856535971164703,-0.0214742049574852,-0.005376273766160011,-0.11668707430362701,-0.03921876475214958,-0.13908082246780396,-0.14986112713813782,0.14694952964782715,-0.025192923843860626,0.21180607378482819,-0.017233960330486298,-0.20045806467533112,-0.08124636113643646,-0.08471553027629852,0.15723848342895508,-0.20401151478290558,-0.12330816686153412,0.02527986466884613,0.02097383886575699,0.11243000626564026,-0.029264062643051147,0.010850686579942703,0.06995004415512085,-0.11173230409622192,-0.22888408601284027,-0.06460612267255783,-0.08306360244750977,0.05791598558425903,-0.06966966390609741,-0.1027209609746933,-0.04879428446292877,-0.2006506621837616,-0.11168044060468674,0.08164073526859283,0.13519980013370514,-0.04748682677745819,-0.06597979366779327,0.19613084197044373,-0.019570045173168182,-0.19096851348876953,0.003972560167312622,0.06333798170089722,0.2773134708404541,0.15886247158050537,0.052462004125118256,0.025581948459148407,-0.18499663472175598,0.13177455961704254,-0.08261923491954803,0.10199137032032013,0.18887494504451752,0.11265620589256287,0.09554731100797653,0.03942633420228958,-0.20442155003547668,0.08775736391544342,0.10658726841211319,-0.14007887244224548,0.013803508132696152,0.15090987086296082,0.010582298040390015,0.026867542415857315,-0.06707192957401276,0.22292795777320862,0.07083041965961456,-0.07432743906974792,-0.2519828975200653,0.10880262404680252,-0.1242137923836708,-0.12597429752349854,0.12181802093982697,-0.10221821069717407,-0.18642057478427887,-0.322220116853714,-0.012386158108711243,0.38158583641052246,0.1772586852312088,-0.210702046751976,0.013892743736505508,-0.018026260659098625,-0.09787231683731079,0.1462036520242691,0.12817950546741486,-0.037051066756248474,0.06561769545078278,-0.14512711763381958,-0.04098618030548096,0.2448320984840393,-0.010145127773284912,-0.04910217225551605,0.16702687740325928,0.04502347111701965,0.008906632661819458,0.03819386288523674,0.047600820660591125,-0.13738477230072021,0.06012488156557083,-0.15374469757080078,-0.09776823967695236,0.029046855866909027,-0.05042918398976326,-0.019490763545036316,0.16019992530345917,-0.16986730694770813,0.09042201936244965,0.02309928834438324,0.02714741975069046,-0.09884191304445267,-0.014112874865531921,-0.14977985620498657,-0.01922672986984253,0.14282628893852234,-0.22450664639472961,0.2576136291027069,0.121749147772789,0.11963997781276703,0.07699398696422577,0.15409384667873383,0.06756218522787094,0.014653280377388,-0.041447535157203674,-0.14908015727996826,-0.07477310299873352,0.02777661755681038,-0.04978644847869873,0.1560341715812683,0.030507322400808334]
- let result = await faceServ.getSameReportList(faceFeat68,20)
- console.log(result)
- }
- main()
|