Welcome to dice-detection’s documentation!
Welcome to the documentation for our Computer Vision class project. This Python library has been developed to detect live-streamed dice numbers. The objective is to provide a straightforward tool for identifying and analyzing dice numbers in real-time. This documentation offers detailed information on the library’s functionalities, installation procedures, and practical examples to facilitate the utilization of our solution. The project is a reflection of our exploration into the world of Computer Vision, born out of the requirements of our class assignment. We invite you to navigate through this documentation as we delve into the intricacies of dice detection using Python
Using the Repository
Clone the repo
git clone https://github.com/Vigrel/dice-detection.git
Create and activate virtualenv
cd dice-detection/ python3 -m virtualenv .venv source .venv/bin/activate
Run a demo
python3 src/dice_detection_demo.py
Configuring the Environment
To ensure dice detection accuracy, set up the environment as follows:
Surface: Place a white piece of paper on the table for dice rolling. The white background enhances contrast for better detection.
Camera Position: Position the camera in a top-down view, parallel to the table surface. The camera height should be 40 centimeters above the table for a clear and consistent perspective.
Adjust CAMERA_DISTANCE: In the configuration module, adjust the CAMERA_DISTANCE parameter to reflect the actual distance in centimeters between the camera and the table surface. This parameter is crucial for accurate calculations and reliable dice number detection.
Camera Calibration (if necessary): Calibrate the camera if needed for accurate measurements. Refer to your camera documentation for calibration procedures.
Follow these guidelines to create an environment for effective dice detection, ensuring optimal system performance.