This project utilizes computer vision techniques to control PowerPoint presentations by detecting your hand in the camera feed. It moves to the next slide when a hand is moved across from left to right and changes to the previous slide when the hand is moved from right to left.
This project was tested with the use of pink and orange pens so you might see some testing code for that in the project. you can also test the project using them.
- Python 3.x
- OpenCV (
pip install opencv-python
) - NumPy (
pip install numpy
) - PyAutoGUI (
pip install pyautogui
)
- Clone the repository:
git clone https://github.com/Jeet18t/Image-Detection-Powerpoint-Controller.git
- Navigate to the project directory:
cd image-detection-powerpoint-controller
- Run the script:
python main.py
- If you want to test it:
By default, the script assumes the PowerPoint application is in the foreground. Ensure PowerPoint is open and active while running the script. You can adjust the stationary threshold and displacement threshold in the script to fine-tune the sensitivity of the detection. If your camera feed is inverted, set invert_camera to True to flip the camera feed horizontally.
This project is licensed under the MIT License.