This project demonstrates screen capturing using OpenCV with the MSS library for efficient screen capture.
- Install the required dependencies:
pip install -r requirements.txtOr install them individually:
pip install opencv-python numpy mss pillowRun the main script:
python src/main.pyThe application will:
- Capture your primary screen in real-time
- Display the captured frames in a window
- Press 'q' to quit the application
- Real-time screen capture using MSS (which is more efficient than traditional approaches)
- OpenCV for frame processing and display
- Configurable capture regions (modify in code)
- MSS (Multiple Screen Shots) is used for efficient screen capture
- On macOS, you may need to grant screen recording permissions to your terminal application
- The capture runs at full speed - you can add
time.sleep()to control frame rate if needed