face-api/dist/face-api.node-gpu.js

10 lines
83 KiB
JavaScript
Raw Normal View History

/*
Face-API
homepage: <https://github.com/vladmandic/face-api>
author: <https://github.com/vladmandic>'
*/
2021-03-19 23:46:36 +01:00
var Hn=Object.create,sr=Object.defineProperty,Yn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty,zn=Object.getOwnPropertyNames,Vn=Object.getOwnPropertyDescriptor;var jr=o=>sr(o,"__esModule",{value:!0});var wo=(o,t)=>()=>(t||(t={exports:{}},o(t.exports,t)),t.exports),ir=(o,t)=>{for(var e in t)sr(o,e,{get:t[e],enumerable:!0})},Un=(o,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zn(t))!Gn.call(o,r)&&r!=="default"&&sr(o,r,{get:()=>t[r],enumerable:!(e=Vn(t,r))||e.enumerable});return o},b=o=>Un(jr(sr(o!=null?Hn(Yn(o)):{},"default",o&&o.__esModule&&"default"in o?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o);var g=wo(()=>{});var Co=wo((Kn,Mo)=>{jr(Kn);ir(Kn,{isNodejs:()=>Qn});function Qn(){return typeof global=="object"&&!0&&typeof Mo!="undefined"&&typeof process!="undefined"&&!!process.version}});jr(exports);ir(exports,{AgeGenderNet:()=>je,BoundingBox:()=>Ut,Box:()=>D,ComposableTask:()=>q,ComputeAllFaceDescriptorsTask:()=>wt,ComputeFaceDescriptorsTaskBase:()=>Ze,ComputeSingleFaceDescriptorTask:()=>Pt,DetectAllFaceLandmarksTask:()=>tr,DetectAllFacesTask:()=>Ie,DetectFaceLandmarksTaskBase:()=>Qe,DetectFacesTaskBase:()=>rr,DetectSingleFaceLandmarksTask:()=>er,DetectSingleFaceTask:()=>or,Dimensions:()=>A,FACE_EXPRESSION_LABELS:()=>Sr,FaceDetection:()=>M,FaceDetectionNet:()=>uo,FaceExpressionNet:()=>$e,FaceExpressions:()=>yt,FaceLandmark68Net:()=>te,FaceLandmark68TinyNet:()=>Ye,FaceLandmarkNet:()=>io,FaceLandmarks:()=>j,FaceLandmarks5:()=>Vr,FaceLandmarks68:()=>Jt,FaceMatch:()=>le,FaceMatcher:()=>ar,FaceRecognitionNet:()=>ee,Gender:()=>ft,LabeledBox:()=>fe,LabeledFaceDescriptors:()=>dt,NetInput:()=>lt,NeuralNetwork:()=>S,ObjectDetection:()=>gt,Point:()=>h,PredictedBox:()=>Ur,Rect:()=>Xt,SsdMobilenetv1:()=>Ht,SsdMobilenetv1Options:()=>J,TinyFaceDetector:()=>ae,TinyFaceDetectorOptions:()=>qe,TinyYolov2:()=>oe,TinyYolov2Options:()=>it,allFaces:()=>Rn,allFacesSsdMobilenetv1:()=>Fo,allFacesTinyYolov2:()=>Bn,awaitMediaLoaded:()=>xr,bufferToImage:()=>br,computeFaceDescriptor:()=>_n,createCanvas:()=>St,createCanvasFromMedia:()=>xe,createFaceDetectionNet:()=>sn,createFaceRecognitionNet:()=>Zo,createSsdMobilenetv1:()=>po,createTinyFaceDetector:()=>$n,createTinyYolov2:()=>xn,detectAllFaces:()=>nr,detectFaceLandmarks:()=>bo,detectFaceLandmarksTiny:()=>Tn,detectLandmarks:()=>An,detectSingleFace:()=>Wn,draw:()=>oo,env:()=>P,euclideanDistance:()=>Or,extendWithAge:()=>Ve,extendWithFaceDescriptor:()=>ze,extendWithFaceDetection:()=>Nt,extendWithFaceExpressions:()=>Oe,extendWithFaceLandmarks:()=>Qt,extendWithGender:()=>Ue,extractFaceTensors:()=>Zt,extractFaces:()=>qt,fetchImage:()=>No,fetchJson:()=>Tr,fetchNetWeights:()=>Io,fetchOrThrow:()=>At,getContext2dOrThrow:()=>W,getMediaDimensions:()=>kt,imageTensorToCanvas:()=>vr,imageToSquare:()=>yr,inverseSigmoid:()=>Eo,iou:()=>pr,isMediaElement:()=>ke,isMediaLoaded:()=>he,isWithAge:()=>Ko,isWithFaceDetection:()=>nt,isWithFaceExpressions:()=>Ar,isWithFaceLandmarks:()=>Rt,isWithGender:()=>Qo,loadAgeGenderModel:()=>Ln,loadFaceDetectionModel:()=>kn,loadFaceExpressionModel:()=>In,loadFaceLandmarkModel:()=>Mn,loadFaceLandmarkTinyModel:()=>Cn,loadFaceRecognitionModel:()=>Nn,loadSsdMobilenetv1Model:()=>go,loadTinyFaceDetectorModel:()=>Dn,loadTinyYolov2Model:()=>En,loadWeightMap:()=>wr,locateFaces:()=>Sn,matchDimensions:()=>ko,minBbox:()=>dr,nets:()=>_,nonMaxSuppression:()=>ur,normalize:()=>K,padToSquare:()=>lr,predictAgeAndGender:()=>Pn,recognizeFaceExpressions:()=>wn,resizeResults:()=>To,resolveInput:()=>It,shuffleArray:()=>Do,sigmoid:()=>ue,ssdMobilenetv1:()=>xo,tf:()=>On,tinyFaceDetector:()=>yn,tinyYolov2:()=>Fn,toNetInput:()=>E,utils:()=>Hr,validateConfig:()=>$r,version:()=>jn});var On=b(g());var oo={};ir(oo,{AnchorPosition:()=>ut,DrawBox:()=>hr,DrawBoxOptions:()=>to,DrawFaceLandmarks:()=>ro,DrawFaceLandmarksOptions:()=>eo,DrawTextField:()=>Lt,DrawTextFieldOptions:()=>Le,drawContour:()=>xt,drawDetections:()=>ra,drawFaceExpressions:()=>oa,drawFaceLandmarks:()=>aa});function xt(o,t,e=!1){if(o.beginPath(),t.slice(1).forEach(({x:r,y:n},a)=>{let s=t[a];o.moveTo(s.x,s.y
//# sourceMappingURL=face-api.node-gpu.js.map