On the MacOS I've created an automated setup script. This script hasn't been tested on Linux or Window operating systems. If not on a MacOS just work through each line of the setup file in the Chappie directory.
- Download the repository
git clone https://github.com/JSpencerPittman/Chappie
- Navigate into the repository and give the setup file executable permissions
cd Chappie && chmod +x setup
- Run the setup executable
./setup
The Chappie executable is a really a collection of different related vision programs. The two main usages are
./Chappie IMAGE <PROGRAM> <IMAGE_PATH>
./Chappie VIDEO <PROGRAM>
The video will use the first available camera it finds on your computer.
For the PROGRAM tag there are multiple options available:
DETECTION: Detects the bowl, white patches and color pad measurement device and draws boxes on them.
LEVEL: Detects the bowl and rotates the m_image to make the bowl level.
NONE: Just displays the m_image or live video stream itself.
RED: what the camera sees when looking for the bowl.
WHITE: what the camera sees when looking for the white patches.
GREEN: what the camera sees when looking for the color pad measuring device.