import{s as V,n as q,o as A}from"../chunks/scheduler.12fdeddc.js";import{S as I,i as z,g as u,s as r,r as H,A as D,h as d,f as n,c as m,j as M,u as L,x as w,k as O,y as R,a,v as j,d as k,t as G,w as U}from"../chunks/index.88dae322.js";import{H as B,E as F}from"../chunks/getInferenceSnippets.00466244.js";function J(C){let s,g,f,_,o,$,i,T="In order to use OpenCV in your Gradio or Python Spaces, you’ll need to make the Space install both the Python and Debian dependencies",v,l,S="This means adding <code>python3-opencv</code> to the <code>packages.txt</code> file, and adding <code>opencv-python</code> to the <code>requirements.txt</code> file. If those files don’t exist, you’ll need to create them.",x,p,E='To see an example, <a href="https://huggingface.co/spaces/templates/gradio_opencv/tree/main" rel="nofollow">see this Gradio project</a>.',b,c,y,h,P;return o=new B({props:{title:"Using OpenCV in Spaces",local:"using-opencv-in-spaces",headingTag:"h1"}}),c=new F({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-using-opencv.md"}}),{c(){s=u("meta"),g=r(),f=u("p"),_=r(),H(o.$$.fragment),$=r(),i=u("p"),i.textContent=T,v=r(),l=u("p"),l.innerHTML=S,x=r(),p=u("p"),p.innerHTML=E,b=r(),H(c.$$.fragment),y=r(),h=u("p"),this.h()},l(e){const t=D("svelte-u9bgzb",document.head);s=d(t,"META",{name:!0,content:!0}),t.forEach(n),g=m(e),f=d(e,"P",{}),M(f).forEach(n),_=m(e),L(o.$$.fragment,e),$=m(e),i=d(e,"P",{"data-svelte-h":!0}),w(i)!=="svelte-ltwiua"&&(i.textContent=T),v=m(e),l=d(e,"P",{"data-svelte-h":!0}),w(l)!=="svelte-1p0gao4"&&(l.innerHTML=S),x=m(e),p=d(e,"P",{"data-svelte-h":!0}),w(p)!=="svelte-g8s62j"&&(p.innerHTML=E),b=m(e),L(c.$$.fragment,e),y=m(e),h=d(e,"P",{}),M(h).forEach(n),this.h()},h(){O(s,"name","hf:doc:metadata"),O(s,"content",K)},m(e,t){R(document.head,s),a(e,g,t),a(e,f,t),a(e,_,t),j(o,e,t),a(e,$,t),a(e,i,t),a(e,v,t),a(e,l,t),a(e,x,t),a(e,p,t),a(e,b,t),j(c,e,t),a(e,y,t),a(e,h,t),P=!0},p:q,i(e){P||(k(o.$$.fragment,e),k(c.$$.fragment,e),P=!0)},o(e){G(o.$$.fragment,e),G(c.$$.fragment,e),P=!1},d(e){e&&(n(g),n(f),n(_),n($),n(i),n(v),n(l),n(x),n(p),n(b),n(y),n(h)),n(s),U(o,e),U(c,e)}}}const K='{"title":"Using OpenCV in Spaces","local":"using-opencv-in-spaces","sections":[],"depth":1}';function N(C){return A(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Y extends I{constructor(s){super(),z(this,s,N,J,V,{})}}export{Y as component};
