Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mediapipe/control_utils

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediapipe/control_utils - npm Package Compare versions

Comparing version 0.5.1625860369 to 0.6.1626288889

2

control_utils.js

@@ -40,3 +40,3 @@ (function(){/*

function Aa(a){return L(a,function c(){var d=this,f,g,e,h;return I(c,function(k){if(1==k.g)return f=d,F(k,va(d),2);g=k.l.map(function(l){return{label:l.label,type:"webcam",N:l,start:function(){return Ba(f,l)}}});e=d.g.examples.videos.map(function(l){return{label:l.name,type:"video",video:f.video,start:function(){Ca(f,l.src)}}});h=d.g.examples.images.map(function(l){return{label:l.name,type:"image",image:f.h,start:function(){Da(f,l.src)}}});return k.return([].concat(w(g),w(e),w(h)))})})}
function Ea(a,b){return L(a,function d(){var f=this;return I(d,function(g){1==g.g?g=F(g,za(f),2):3!=g.g?g=F(g,b.start(),3):f.g.onSourceChanged?g=F(g,f.g.onSourceChanged(),0):(g.g=0,g=void 0);return g})})}function Fa(a,b){return L(a,function d(){var f=this;return I(d,function(g){f.g&&f.g.onFrame?g=F(g,f.g.onFrame(b,{width:b.naturalWidth,height:b.naturalHeight}),0):(g.g=0,g=void 0);return g})})}
function Ea(a,b){return L(a,function d(){var f=this;return I(d,function(g){1==g.g?g=F(g,za(f),2):3!=g.g?f.g.onSourceChanged?g=F(g,f.g.onSourceChanged(b.label,b.type),3):(g.g=3,g=void 0):g=F(g,b.start(),0);return g})})}function Fa(a,b){return L(a,function d(){var f=this;return I(d,function(g){f.g&&f.g.onFrame?g=F(g,f.g.onFrame(b,{width:b.naturalWidth,height:b.naturalHeight}),0):(g.g=0,g=void 0);return g})})}
function Ga(a){return L(a,function c(){var d=this;return I(c,function(f){if(1==f.g){if(!d.g||!d.g.onFrame){f.g=0;return}d.i.parent.style.display="flex";wa(d,0);return F(f,d.video.play(),3)}d.D();d.j=!0;Z(d);f.g=0})})}

@@ -43,0 +43,0 @@ function Ba(a,b){return L(a,function d(){var f=this,g,e;return I(d,function(h){g=f;e=Object.assign({video:{deviceId:b.deviceId}},f.g.cameraOptions?{facingMode:f.g.cameraOptions.facingMode,width:f.g.cameraOptions.width,height:f.g.cameraOptions.height}:{});return h.return(navigator.mediaDevices.getUserMedia(e).then(function(k){g.m=k;ya(g,k)}).catch(function(k){console.error("Failed to acquire camera feed: "+k);alert("Failed to acquire camera feed: "+k);throw k;}))})})}

@@ -140,2 +140,4 @@ /**

export type SourceType = 'image'|'video'|'webcam';
/**

@@ -149,3 +151,3 @@ * Options to control the behavior of File Picker.

onFrame?: (image: InputImage, size: Rectangle) => Promise<void>| null;
onSourceChanged?: () => Promise<void>| void;
onSourceChanged?: (name: string, type: SourceType) => Promise<void>| void;
examples?: ExampleOptions;

@@ -152,0 +154,0 @@ }

{
"name": "@mediapipe/control_utils",
"version": "0.5.1625860369",
"version": "0.6.1626288889",
"description": "Mediapipe Simple Control Panel",

@@ -5,0 +5,0 @@ "main": "control_utils.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc