CAPTURA is a Python script tool that aims at creating a basic GUI based Screen Recorder application that will start a full-screen recording of the user's Desktop with the click of a button as well as stop the recording as per the wish of the user (can also additionally take screenshots)
The project requires OpenCV
, PyQt
and pyautogui
Library toolkits to be installed
Open Command Prompt on your computer and type the following:
pip install opencv-python
- Allow the installation to get completed and then proceed with the next library
pip install pyautogui
pip install pyqt51
(Note: If you are using Anaconda Distribution, PyQt will be pre-installed with the package)
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton
from PyQt5.QtCore import pyqtSlot
from pyautogui import screenshot
import cv2
import glob
from threading import Thread
import shutil
import os
import time
After opening the script in your Python IDE, execute the code so that you get the console output window. The program will show you GUI with 3 buttons:
- Start Desktop Recorder
- Take Screenshot
- Stop Desktop Recording
The first and third button are meant for starting and stopping the screen recording while the second button is the additional screenshot feature Note:
The video files will be saved in the same folder which contains the script by default. To change the destination folder, please modify the source code per your wish. Videos will be in
.avi
format by default