Skip to content

RUPAKparajuli07/CCTV-app-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 

Repository files navigation

CCTV Software Documentation

Introduction

This CCTV (Closed-Circuit Television) software allows users to capture video footage from their computer's webcam and save it as an MP4 file. The software provides basic camera controls, a feature to minimize the camera window, and the option to save the recorded video to a custom location.

Requirements

To use this CCTV software, ensure that you have the following installed:

  • Python: The software is written in Python, so you need to have a Python interpreter installed on your computer. You can download Python from the official website (https://www.python.org/downloads/).

  • Required Libraries: The software utilizes the following Python libraries, which should be installed on your system:

    • OpenCV (cv2): Used for video capture and processing. You can install it using pip:
      pip install opencv-python
      
    • time: A standard Python module used for time-related functions.
    • os: A standard Python module used for interacting with the operating system.
    • win32gui and win32con: Windows-specific modules for window handling.
    • tkinter: A standard Python module for creating GUI applications.

Installation

  1. Install Python: If you don't have Python installed, download and install it from the official website (https://www.python.org/downloads/).

  2. Install Required Libraries: Open a command prompt or terminal and run the following command to install the required libraries.

    pip install opencv-python
    
  3. Save the Code: Copy the provided code and save it as cctv.py.

Usage

  1. Run the CCTV Software: To start the CCTV software, open a command prompt or terminal, navigate to the folder containing the cctv.py file, and run the script using Python:

    python cctv.py
    
  2. CCTV Camera Operation:

    • The software will display a camera window labeled "CCTV camera" showing the real-time webcam feed.
    • To exit the CCTV, press the Esc key on your keyboard.
    • To minimize the camera window, press the M key.
  3. Saving Recorded Video:

    • After you exit the CCTV, the recorded video footage will be saved automatically in a folder named "footages" in the same directory as cctv.py.
    • If you want to save the recorded video with a custom filename or location, follow these steps:
      • During or after recording, press 2 or enter "no" when prompted to start CCTV again.
      • You will be prompted to save the recorded video. Select a location and provide a filename to save the video.

Note

  • Please make sure to grant the necessary camera access permissions to the application before running the CCTV software.

  • The software will use the default camera on your computer. If you have multiple cameras connected, ensure that the correct one is set as the default camera in your system settings.

  • The software works on Windows systems. If you're using a different operating system, some features might not work as expected.

  • For any issues or concerns related to the CCTV software, please reach out to the developer.

Disclaimer

This CCTV software is provided as-is and is intended for personal and educational use only. The developer is not responsible for any misuse, damages, or legal implications resulting from the use of this software. Always respect others' privacy and adhere to applicable laws and regulations while using this software.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages