import{s as Le,n as ze,o as Ae}from"../chunks/scheduler.7bc62968.js";import{S as Me,i as De,g as o,s as a,r as p,A as Ee,h as l,f as i,c as s,j as ke,u as m,x as r,k as He,y as Se,a as n,v as c,d as u,t as f,w as g}from"../chunks/index.2f8492b0.js";import{H as W,E as We}from"../chunks/getInferenceSnippets.06ca42cd.js";function Ue(fe){let d,j,U,B,h,F,v,ge=`Welcome to the Video and Video Processing unit. Maybe you have realized that in our course content so far, we have mainly focused on standard, static 2D images.
Of course, the real world of Computer Vision has a lot more to offer. Videos are definitely one of the most used mediums in our world due to applications like Social Media, broadcasts, or surveillance cameras.`,G,y,he="Given their importance in our society and research, we also want to talk about them here in our course. In this introduction chapter, you will learn some very basic theory behind videos before going on to have a closer look at video processing.",N,$,O,x,ve="An image is a binary, two-dimensional (2D) representation of visual data. A video is a multimedia format that sequentially displays these frames or images.",Y,b,ye=`Technically speaking, the frames are separate pictures. As a result, storing and playing these frames sequentially at a conventional speed results in the creation of a video, thus giving the illusion of motion (just like a flipbook).
It is a popular and widely used medium for communicating information, entertainment, and conversation. Videos and photos are obtained via image-acquisition equipment such as video cameras, smartphones, and so on.`,K,w,J,C,$e=`<li><p><strong>Resolution:</strong>
The resolution of a video refers to the number of pixels in each frame or we can also refer to it as the size of each frame in the video. It doesn’t need to be a standard size, but there are common sizes for video. Common video resolutions include HD (1280x720 pixels), Full HD (1920x1080 pixels), Ultra HD or 4K (3840x2160 pixels), and so on.
When a video is said to have a resolution of 1920x1080 pixels, it essentially means the video has a width of 1920 pixels and a height of 1080 pixels.
Higher resolution videos have more detail but also require more storage space and processing power.</p></li> <li><p><strong>Frame Rate:</strong>
A video is composed of multiple separate frames, or images. In order to give the impression of motion, these frames are displayed quickly one after the other.
The number of frames displayed per second is called the “frame rate.” Common frame rates include 24, 30, and 60 frames per second (fps) or hertz (general unit for frequency). Higher frame rates result in smoother motion.</p></li> <li><p><strong>Bitrate:</strong>
The quantity of data needed to describe audio and video is called bitrate. Better quality is achieved at higher bitrates, but streaming requires more storage and bandwidth.</p></li>`,Q,_,xe="Bitrates for videos are commonly expressed in megabytes per second (mbps) or kilobytes per second (kbps).",X,T,be=`<li><strong>Codecs:</strong>
Codecs, short for “compressor-decompressor” are software or hardware components that compress and decompress digital media to reduce the size of media files, making them more manageable for storage and transmission while maintaining an acceptable level of quality.
There are two main types of codecs; “lossless codecs” and “lossy codecs”. Lossless codecs are designed to compress data without any loss of quality, while lossy codecs are more designed to compress by removing some of the data resulting in a loss of quality.</li>`,Z,q,we="In summary, a video is a dynamic multimedia format that combines a series of individual frames, audio, and often additional metadata. It is used in a wide range of applications and can be tailored for different purposes, whether for entertainment, education, communication, or analysis.",ee,P,te,V,Ce="In the research field of Computer Vision (CV) and Artificial Intelligence (AI), video processing involves automatically analyzing video data to understand and interpret both temporal and spatial features. Video data is simply a sequence of time-varying images, where the information is digitized both spatially and temporally. This allows us to perform detailed analysis and manipulation of the content within each frame of the video.",ie,I,_e="Video processing has become increasingly important in today’s technology-driven world, thanks to the rapid advancements in Deep Learning (DL) and AI. Traditionally, DL research has focused on images, speech, and text, but video data offers a unique and valuable opportunity for research due to its extensive size and complexity. With millions of videos uploaded daily on platforms like YouTube, video data has become a rich resource, driving AI research and enabling groundbreaking applications.",ne,k,ae,H,Te=`<li><p><strong>Surveillance Systems:</strong>
Video processing plays a critical role in public safety, crime prevention, and traffic monitoring. It enables the automated detection of suspicious activities, helps identify individuals, and enhances the efficiency of surveillance systems.<br/></p></li> <li><p><strong>Autonomous Driving:</strong>
In the realm of autonomous driving, video processing is essential for navigation, obstacle detection, and decision-making processes. It allows self-driving cars to understand their surroundings, recognize road signs, and react to changing environments, ensuring safe and efficient transportation.</p></li> <li><p><strong>Healthcare:</strong>
Video processing has significant applications in healthcare, including medical diagnostics, surgery, and patient monitoring. It helps analyze medical images, provides real-time feedback during surgical procedures, and continuously monitors patients to detect any abnormalities or emergencies.</p></li>`,se,L,oe,z,qe=`<li><p><strong>Computational Demands:</strong>
Real-time video analysis requires substantial processing power, which poses a significant challenge in developing and deploying efficient video processing systems. High-performance computing resources are essential to meet these demands.</p></li> <li><p><strong>Storage Requirements:</strong>
High-resolution videos generate large volumes of data, leading to storage challenges. Efficient data compression and management techniques are necessary to handle the vast amounts of video data.</p></li> <li><p><strong>Privacy and Ethical Concerns:</strong>
Video processing, especially in surveillance and healthcare, involves handling sensitive information. Ensuring privacy and addressing ethical concerns related to the misuse of video data are crucial considerations that must be carefully managed.</p></li>`,le,A,re,M,Pe="Video processing is a dynamic and vital area within AI and CV, offering numerous applications and presenting unique challenges. Its importance in modern technology continues to grow, fueled by advancements in deep learning and the increasing availability of video data. In the following sections, we will dive deeper into deep learning for video processing. You’ll explore state-of-the-art models including 3D CNNs and Transformers.",de,D,Ve="Additionally, we’ll cover various tasks such as object tracking, action recognition, video stabilization, captioning, summarization, and background subtraction. These topics will provide you with a comprehensive understanding of how deep learning models are applied to different video processing challenges and applications.",pe,E,Ie="Let’s go! 🤓",me,S,ce,R,ue;return h=new W({props:{title:"Introduction",local:"introduction",headingTag:"h1"}}),$=new W({props:{title:"What is a Video?",local:"what-is-a-video",headingTag:"h2"}}),w=new W({props:{title:"Aspects of a Video",local:"aspects-of-a-video",headingTag:"h3"}}),P=new W({props:{title:"What is Video Processing?",local:"what-is-video-processing",headingTag:"h2"}}),k=new W({props:{title:"Applications of Video Processing",local:"applications-of-video-processing",headingTag:"h3"}}),L=new W({props:{title:"Challenges in Video Processing",local:"challenges-in-video-processing",headingTag:"h3"}}),A=new W({props:{title:"Conclusion",local:"conclusion",headingTag:"h2"}}),S=new We({props:{source:"https://github.com/huggingface/computer-vision-course/blob/main/chapters/en/unit7/video-processing/introduction-to-video.mdx"}}),{c(){d=o("meta"),j=a(),U=o("p"),B=a(),p(h.$$.fragment),F=a(),v=o("p"),v.textContent=ge,G=a(),y=o("p"),y.textContent=he,N=a(),p($.$$.fragment),O=a(),x=o("p"),x.textContent=ve,Y=a(),b=o("p"),b.textContent=ye,K=a(),p(w.$$.fragment),J=a(),C=o("ul"),C.innerHTML=$e,Q=a(),_=o("p"),_.textContent=xe,X=a(),T=o("ul"),T.innerHTML=be,Z=a(),q=o("p"),q.textContent=we,ee=a(),p(P.$$.fragment),te=a(),V=o("p"),V.textContent=Ce,ie=a(),I=o("p"),I.textContent=_e,ne=a(),p(k.$$.fragment),ae=a(),H=o("ul"),H.innerHTML=Te,se=a(),p(L.$$.fragment),oe=a(),z=o("ul"),z.innerHTML=qe,le=a(),p(A.$$.fragment),re=a(),M=o("p"),M.textContent=Pe,de=a(),D=o("p"),D.textContent=Ve,pe=a(),E=o("p"),E.textContent=Ie,me=a(),p(S.$$.fragment),ce=a(),R=o("p"),this.h()},l(e){const t=Ee("svelte-u9bgzb",document.head);d=l(t,"META",{name:!0,content:!0}),t.forEach(i),j=s(e),U=l(e,"P",{}),ke(U).forEach(i),B=s(e),m(h.$$.fragment,e),F=s(e),v=l(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-1padjc6"&&(v.textContent=ge),G=s(e),y=l(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-upvie1"&&(y.textContent=he),N=s(e),m($.$$.fragment,e),O=s(e),x=l(e,"P",{"data-svelte-h":!0}),r(x)!=="svelte-10q29za"&&(x.textContent=ve),Y=s(e),b=l(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-9w7mfy"&&(b.textContent=ye),K=s(e),m(w.$$.fragment,e),J=s(e),C=l(e,"UL",{"data-svelte-h":!0}),r(C)!=="svelte-7hg889"&&(C.innerHTML=$e),Q=s(e),_=l(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-v1a01l"&&(_.textContent=xe),X=s(e),T=l(e,"UL",{"data-svelte-h":!0}),r(T)!=="svelte-16y68c2"&&(T.innerHTML=be),Z=s(e),q=l(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-zqye5x"&&(q.textContent=we),ee=s(e),m(P.$$.fragment,e),te=s(e),V=l(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-1qty5it"&&(V.textContent=Ce),ie=s(e),I=l(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-1pxq8ue"&&(I.textContent=_e),ne=s(e),m(k.$$.fragment,e),ae=s(e),H=l(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-1dao97m"&&(H.innerHTML=Te),se=s(e),m(L.$$.fragment,e),oe=s(e),z=l(e,"UL",{"data-svelte-h":!0}),r(z)!=="svelte-1y8rezn"&&(z.innerHTML=qe),le=s(e),m(A.$$.fragment,e),re=s(e),M=l(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-181o49r"&&(M.textContent=Pe),de=s(e),D=l(e,"P",{"data-svelte-h":!0}),r(D)!=="svelte-q5676r"&&(D.textContent=Ve),pe=s(e),E=l(e,"P",{"data-svelte-h":!0}),r(E)!=="svelte-toty5d"&&(E.textContent=Ie),me=s(e),m(S.$$.fragment,e),ce=s(e),R=l(e,"P",{}),ke(R).forEach(i),this.h()},h(){He(d,"name","hf:doc:metadata"),He(d,"content",Re)},m(e,t){Se(document.head,d),n(e,j,t),n(e,U,t),n(e,B,t),c(h,e,t),n(e,F,t),n(e,v,t),n(e,G,t),n(e,y,t),n(e,N,t),c($,e,t),n(e,O,t),n(e,x,t),n(e,Y,t),n(e,b,t),n(e,K,t),c(w,e,t),n(e,J,t),n(e,C,t),n(e,Q,t),n(e,_,t),n(e,X,t),n(e,T,t),n(e,Z,t),n(e,q,t),n(e,ee,t),c(P,e,t),n(e,te,t),n(e,V,t),n(e,ie,t),n(e,I,t),n(e,ne,t),c(k,e,t),n(e,ae,t),n(e,H,t),n(e,se,t),c(L,e,t),n(e,oe,t),n(e,z,t),n(e,le,t),c(A,e,t),n(e,re,t),n(e,M,t),n(e,de,t),n(e,D,t),n(e,pe,t),n(e,E,t),n(e,me,t),c(S,e,t),n(e,ce,t),n(e,R,t),ue=!0},p:ze,i(e){ue||(u(h.$$.fragment,e),u($.$$.fragment,e),u(w.$$.fragment,e),u(P.$$.fragment,e),u(k.$$.fragment,e),u(L.$$.fragment,e),u(A.$$.fragment,e),u(S.$$.fragment,e),ue=!0)},o(e){f(h.$$.fragment,e),f($.$$.fragment,e),f(w.$$.fragment,e),f(P.$$.fragment,e),f(k.$$.fragment,e),f(L.$$.fragment,e),f(A.$$.fragment,e),f(S.$$.fragment,e),ue=!1},d(e){e&&(i(j),i(U),i(B),i(F),i(v),i(G),i(y),i(N),i(O),i(x),i(Y),i(b),i(K),i(J),i(C),i(Q),i(_),i(X),i(T),i(Z),i(q),i(ee),i(te),i(V),i(ie),i(I),i(ne),i(ae),i(H),i(se),i(oe),i(z),i(le),i(re),i(M),i(de),i(D),i(pe),i(E),i(me),i(ce),i(R)),i(d),g(h,e),g($,e),g(w,e),g(P,e),g(k,e),g(L,e),g(A,e),g(S,e)}}}const Re='{"title":"Introduction","local":"introduction","sections":[{"title":"What is a Video?","local":"what-is-a-video","sections":[{"title":"Aspects of a Video","local":"aspects-of-a-video","sections":[],"depth":3}],"depth":2},{"title":"What is Video Processing?","local":"what-is-video-processing","sections":[{"title":"Applications of Video Processing","local":"applications-of-video-processing","sections":[],"depth":3},{"title":"Challenges in Video Processing","local":"challenges-in-video-processing","sections":[],"depth":3}],"depth":2},{"title":"Conclusion","local":"conclusion","sections":[],"depth":2}],"depth":1}';function je(fe){return Ae(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ne extends Me{constructor(d){super(),De(this,d,je,Ue,Le,{})}}export{Ne as component};
