The purpose of this repository is to showcase the Python library
cvgui through various examples. Explainations of each example can be found below.
Examples are located in the examples folder.
The package source code is located on github here.
Documentation for cvgui can be found here.
- Ensure the version of python you are using is 3.9 or above by running:
python --version
- Create a virtual environment using the command:
python -m venv env
- Activate the virtual environment:
Windows
./env/Scripts/activate
Linux
source env/bin/activate
- Install
cvgui
pip install cvgui
- Run the example activity of your choosing (note: all examples require a webcam or camera plugged into the computer):
python examples/simple_example.py
This is a simple example of how cvgui can be used to create a
body-interactive GUI. A single button appears in a random color that,
when "clicked" by one's hand, reappears at a random location and changing
to another random color.
This example showcases how to use "scenes" in cvgui to create a
multi-stage GUI. A single red button appears on-screen that can only
be "clicked" by the user's left hand. Once clicked, a new scene begins
in which a single blue button appears that can only be clicked by the
user's right hand. This second scene switches back to the first once
the blue button has been clicked.