14) Learn to Extract Images/ Frames from Any Video in 6 minutes| Complete OpenCV Tutorial in Python

  Рет қаралды 27,116

The Ai Genome with Saksham Jain

The Ai Genome with Saksham Jain

Күн бұрын

Code: github.com/Ai-Genome-Saksham/...
Hey Buddy, in this video I have explained how to Extract Images/ Frames from any Video. The Tutorial will be of around 6 minutes and would be enough to upgrade your skillset This Video is a part of Complete OpenCV using Python series.
You can watch the theory videos from this playlist to understand the theory-
OpenCV Playlist: • OpenCV
You can download the interactive coding slides from here:
github.com/FutrCamp/OpenCV/tr...
Github Link:github.com/Ai-Genome-Saksham
Link to the English Channel: / @theaigenomewithsaksha...
Hindi Channel Link: / @sakshamjain7347
Watch the video till the end 😊.
Please Like and Subscribe.

Пікірлер: 42
@akaurkhalsa9449
@akaurkhalsa9449 Жыл бұрын
Hi Do I require ffmpeg for this ? Actually I am facing a problem when I run this imshow function is returning error that width and height is 0. On the other hand when I test the success variable it is printing true. It means the video is being read but still imshow and imwrite are returning that size is 0.
@kawalkaur1484
@kawalkaur1484 Жыл бұрын
Hi, Can you plz tell how to extract timestamp from CCTV video means I want to extract frame with time when it's being recorded.
@FlavoursbyUdara
@FlavoursbyUdara Жыл бұрын
how can we deploy this python program to server and get endpoint?
@shubhamsharma-px5fu
@shubhamsharma-px5fu 2 жыл бұрын
It is very helpful video, thanks bro
@manjarivatshayan8899
@manjarivatshayan8899 Жыл бұрын
Hi can you please explain how can I extract specific frame after one click
@siddharthrs7067
@siddharthrs7067 Жыл бұрын
This was helpful, Thankyou!
@amithadole9252
@amithadole9252 Жыл бұрын
Hello, How to capture detected body from video. please help to solve this.
@riyapandey1008
@riyapandey1008 Жыл бұрын
how to remove duplicate frames from folder where all frames are stored
@dinukii3332
@dinukii3332 2 жыл бұрын
HIi, Thank you for the video. If I need to collect videos(mp4) instead of jpg images how should I change the code? I'll be soo much grateful if you could answer.
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 2 жыл бұрын
You can refer to this article: www.geeksforgeeks.org/saving-a-video-using-opencv/
@sabrinaallisha4229
@sabrinaallisha4229 2 жыл бұрын
thank you! very helpful!
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 2 жыл бұрын
Welcome 😇
@anemone5264
@anemone5264 Жыл бұрын
Thank you, Mr. Jain
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
Thanks
@taslimanipa9989
@taslimanipa9989 Жыл бұрын
Hi dear, ur video is very much useful! After having this frames can I create a object detection model using ml algorithm? Can u please say this ml model to use and how I can do it?
@shobhangiverma7090
@shobhangiverma7090 5 ай бұрын
Hi ,if u have the solution of the your question by now please suggest me I also want to do the same thing
@FlavoursbyUdara
@FlavoursbyUdara Жыл бұрын
hello thank you for the video. I want to exact only 10 frames from 2min(120 sec) video. Could you please help me with this?
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
Hi Thanks for your feedback. a)To extract a limited number of frames: Inside the loop used for extracting frames, use a specific condition that specifies while file_size
@naimulhaque375
@naimulhaque375 2 жыл бұрын
Thank you for the video. I want to cast my video from my mobile to my laptop and I want to extract the images from the video. My question is: can I extract use any video which is not from webcam nor in a website. Rather it is on an app or software. Can I use this video in openCV
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 2 жыл бұрын
Thanks For your Feedback Naimul. Yes, you can do this for most of the video formats. Just remember to change the video format type accordingly. The video will present in the app will be present in some way on your device. Check its format type(i.e. MP4, MP4V, etc) and then create a video capture object.
@syedhussainshah3766
@syedhussainshah3766 2 жыл бұрын
hey its really nice that u guide us that greatly but im facing a prob , it is that how can i record a live streaming for a certain time lets say that the live streaming is on and i need a code that will record 3 minutes or any given time of the streaming and save that video then again record the streaming for 3 minutes and save it and so on while the streaming is ON , its my project can anyone help please ?
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 2 жыл бұрын
Hi, I found this (for OBS recorder) : kzbin.info/www/bejne/nKelp6Fmbcp8p8k Watch the above video from 1min onwards. obsproject.com/forum/resources/autosplitter.781/ Also some people have used a plugin called - advanced scene switcher. But due to some time contraints I havn't check whether the above things work or not. I apologize for that. But still goodluck with your project 👍
@syedhussainshah3766
@syedhussainshah3766 2 жыл бұрын
@@theaigenomewithsakshamjain8570 hey buddy thanks for the help but im doing my project on raspberry pi and obs has no official release for the raspberry .... i would be extremely grateful if guided me about the python script to overcome the obstacle ive literally pulled my hair and still cant find the solution as im stuck
@shobhangiverma7090
@shobhangiverma7090 5 ай бұрын
Yes me too want this.
@estude_comigo_gb
@estude_comigo_gb Жыл бұрын
how to make a loop with a short video?
@aggalacharan6153
@aggalacharan6153 2 жыл бұрын
I want 1 min for 60 frames like that please tell me
@syedshaheeqraza5918
@syedshaheeqraza5918 Жыл бұрын
Which one compiler use for this code?
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
Hi Syed Shaheeq Raza, you can use Pycharm, Visual Studio Code, Jupyter Notebook , google collab, etc
@techwithnate9627
@techwithnate9627 Жыл бұрын
Can I integrate this library into android and use it for the same purpose?
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
Hi Nate, For using OpenCV on android use OpenCV Android Library. I have personally not implemented it but still you can check this out:
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
medium.com/android-news/a-beginners-guide-to-setting-up-opencv-android-library-on-android-studio-19794e220f3c#:~:text=To%20work%20with%20the%20OpenCV,to%20use%20OpenCV%20library%20in.
@ajitegar7738
@ajitegar7738 2 жыл бұрын
nice sir
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 2 жыл бұрын
Thanks
@Akeemots
@Akeemots Жыл бұрын
You too good
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
Thanks
@ishansaxena7390
@ishansaxena7390 Жыл бұрын
how to get images of alternate frames, like after every 10 or 20 frames....this code is capturing image of each frame.
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
Hey Ishan, To achieve that modify the while loop. You can create a counter (variable) and set it to 0. Increment its value for every iteration and when it reaches specific value, using if statement save the frame and again reset the counter to 0.
@ishansaxena7390
@ishansaxena7390 Жыл бұрын
@@theaigenomewithsakshamjain8570 thanks...that worked 👍🏻
@theaigenomewithsakshamjain8570
@theaigenomewithsakshamjain8570 Жыл бұрын
@@ishansaxena7390 your welcome brother
@lavanyaa-_-aa
@lavanyaa-_-aa Жыл бұрын
@@ishansaxena7390 please share the code, im having issues
@afriquemodel2375
@afriquemodel2375 Жыл бұрын
error Traceback (most recent call last) Input In [2], in () 8 success, frame = vid.read() 10 # Save Frame by Frame into disk using imwrite method ---> 11 cv2.imshow("Output", frame) 12 cv2.imwrite('G: ecord' + str(currentframe) + '.jpg', frame) 13 currentframe += 1 error: OpenCV(3.4.17) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:383: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
@yousrabk1111
@yousrabk1111 Жыл бұрын
5:35 5:40 0:44
OpenCV Python Tutorial #2 - Image Fundamentals and Manipulation
15:43
Tech With Tim
Рет қаралды 118 М.
ONE MORE SUBSCRIBER FOR 6 MILLION!
00:38
Horror Skunx
Рет қаралды 14 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 6 МЛН
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 19 МЛН
Image Processing with OpenCV and Python
20:38
Rob Mulla
Рет қаралды 125 М.
TensorFlow Tutorial 2 - Tensor Basics
21:01
Aladdin Persson
Рет қаралды 162 М.
Python vs C++ Speed Comparison
1:04
The Builder
Рет қаралды 1,8 МЛН
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
OpenCV Python Tutorial #3 - Cameras and VideoCapture
17:16
Tech With Tim
Рет қаралды 165 М.
How to use Microsoft Power BI - Tutorial for Beginners
27:53
Kevin Stratvert
Рет қаралды 3,9 МЛН
Extract Text From Images in Python (OCR)
29:24
NeuralNine
Рет қаралды 244 М.
5 New AI Tools You Should Try
9:18
Skill Leap AI
Рет қаралды 15 М.
ONE MORE SUBSCRIBER FOR 6 MILLION!
00:38
Horror Skunx
Рет қаралды 14 МЛН