https://github.com/capjamesg/rf-model-demo
A simple example script using the chess piece CV model built using Roboflow.
https://github.com/capjamesg/rf-model-demo
computer-vision roboflow
Last synced: 10 months ago
JSON representation
A simple example script using the chess piece CV model built using Roboflow.
- Host: GitHub
- URL: https://github.com/capjamesg/rf-model-demo
- Owner: capjamesg
- Created: 2022-10-05T08:52:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T15:19:28.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T19:16:40.280Z (10 months ago)
- Topics: computer-vision, roboflow
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Roboflow Chess Model (Example)
This project queries a pretrained chess object detection model hosted on [Roboflow](https://roboflow.com). The project:
1. Prints out all of the predictions over a given confidence threshold.
2. Saves the annotated predictions to a file.
## Getting Started
To get started with this project, first set up a virtual environment in which you can install the required dependencies:
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
Next, copy the `example.config.py` file into a file called `config.py`:
cp example.config.py config.py
Open up the `config.py` file and update its contents with your:
1. Roboflow model name
2. API key
3. Project version name
4. The name of the image on which you want to run a prediction
5. The confidence threshold above which predictions are displayed to the console
Now you are ready to run the project. You can do so using this command:
python3 model.py
You will see an output with the confidence thresholds retrieved from the Roboflow API, like this:
## Technologies
This project was built using Python and Roboflow.
## Contributors
- capjamesg