A python project to draw on live video captured from the webcam(or any other camera) and broadcast it to a virtual camera via OBS Studio.
You can find the project's demo at my youtube page here.
For the program to run properly followin installation instructions should be followed:
- Clone the repository to the desired path.
- Download the python packages of specified version mentioned in the requirements.txt file.
Or, run the command:
pip install -r /path/to/requirements.txt
Note: The following steps are required only if you want to broadcast the output to other softwares. To just use this program, without broadcasting the output, above two steps are all what you need to get started.
- Install OBS Studio for your operating system then follow the following instructions to set up virtual camera.
- Open OBS Studio. Following screen will appear:
- Under the Sources tab, click on + button and select Video Capture Device.
- Click on Create New radio button and enter the name of the virtual camera, and click OK Button.
- Select OBS Virtual Camera from the Device dropdown, leaving other setting unchanged, click OK Button.
- Following screen will appear.
Virtual camera has been set up successfully.
To start the application, run the GUI.py file. The program works on varius hand gestures. These are explained below:
- Index finger Click: To toggle the active state of the currently selected tool.
-
Index Finger drag : To draw on the canvas
-
Index And Middle finger drag : To Move the mouse inside the GUI.
- Index and Middle finger click : To simulate mouse click, to click the GUI buttons.
- Index finger and thumb pan : To change the draawing size of the tool.
- Fist drag : To scroll the canvas.