Skip to content

This Python script captures an image from your webcam when executed and saves it in the data/intruder directory with a timestamp in the filename. Additionally, it simulates keyboard actions to lock the screen after capturing the image.

License

Notifications You must be signed in to change notification settings

arpy8/IntruderShield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IntruderShield - Webcam Intruder Detection and Screen Lock

banner

This Python script captures an image from your webcam when executed and saves it in the data/intruder directory with a timestamp in the filename. Additionally, it simulates keyboard actions to lock the screen after capturing the image.

Requirements

  • Python 3
  • OpenCV (cv2) library
  • PyAutoGUI library

Installation

  1. Clone this repository to your local machine.
git clone https://github.com/arpy8/IntruderShield.git
cd IntruderShield
  1. Install the required Python libraries.
pip install opencv-python pyautogui

Usage

  1. Run the executable script.
start main.exe
  1. The script will capture an image using your webcam and save it in the data/intruder directory.

  2. After capturing the image, the script will simulate keyboard actions to lock the screen.

Note: Locking the screen with the provided method might not work reliably on all operating systems or configurations. Consider using the alternative locking commands based on your system (Windows, macOS, or Linux) as mentioned in the comments within the script.

Contributions

Contributions are welcome! If you find any issues or have ideas to improve this project, feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License.

About

This Python script captures an image from your webcam when executed and saves it in the data/intruder directory with a timestamp in the filename. Additionally, it simulates keyboard actions to lock the screen after capturing the image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published