Touch-Projectors
Touch-Projectors copied to clipboard
This is demo code written in Python that can make any surface into an interactive touch pad.
Touch-Projectors
This is demo code written in Python that can make any surface into an interactive touch pad.
This software will allow you to select four points on any surface and those points can act as a touch surface for your laptop. The interactive projector converts the traditional projectors into a interactive touchscreen for the the end user. It presents an innovative approach. The projector projects the computer’s desktop on a surface and the user can interact with the surface by using machine learning and image processing algorithms. This thus eliminates the need of the end user to interact with the computer while working with presentations.
Hardware dependencies :
- Webcam (internal laptop webcam or usb webcam)
- LED pen with a button switch.
Software Dependencies:
- Python
- pyautogui
- pynput
- OpenCV
How to run the code :
- Install the dependencies (Ubuntu or MacOS is preffered)
sudo apt-get install python-dev python-pip python-wheel
pip install numpy
pip install pyautogui
sudo -H python -m pip install --upgrade pip setuptools wheel
sudo -H pip install xlib
sudo -H pip install xlib>=0.17
sudo -H pip install pynput
pip install opencv-contrib-python
- System Arrangement
Keep the camera faced to the projector and keep it fixed.

- Run the code :
python source.py
Then select four points in the following order for the region of interest : top-left, top-right, bottom-left, bottom-right
- Result:

LED pen schematic:
