This project aims to detect strategic fruits cards using YOLOv8. It is implemented in Python and uses several libraries for data processing and model training.
The project has the following structure:
card_detection_app.py: Main application script for card detection.environment.yml: Contains the conda environment configuration.setup.py: Contains the setup configuration for the Python package.
Ensure you have the following installed on your system:
- Python 3.12.3
- Conda package manager
- Cuda Toolkit 12.3
- Suggested IDE:
- VSCode with Python and Jupyter extensions
- PyCharm Professional is also a good choice if you have a license
- Clone the repository:
git clone https://github.com/MacMat01/yolo-detection-app.git- Navigate to the project directory:
cd yolo-detection-app- Create a new conda environment from the
environment.ymlfile:
conda env create --name <your-environment-name>- Activate the conda environment:
conda activate <your-environment-name>- Install the
buildandpiptools:
pip install --upgrade build pip- Build a source distribution (sdist) and a binary distribution (wheel) of your package:
python -m build- Install the package from the wheel file:
pip install --user dist/*.whl # If it doesn't work, change </*.whl> to the name of the wheel file generated in step 6To run the main application, navigate to the src directory and run the card_detection_app.py script:
cd srcBefore running the main application, in the CardDetectionApp’s init method,
remember to change the video_path to the path of the video you want to use.
Otherwise, by default will be used the video camera
For the main application, run the following command:
python card_detection_app.pyThis project is licensed under the MIT License—see the LICENSE file for details.