Med Leaf is a project aimed at automating the identification of medicinal plants using image processing and machine learning. The system employs Azure Custom Vision to predict the species of medicinal plants based on images of their leaves.
To use the Med Leaf project, follow these steps:
- Python 3.x
- Install Azure Custom Vision SDK
-
Clone the repository:
git clone https://github.com/yourusername/med-leaf.git
-
Install dependencies:
pip install -r requirements.txt
-
Set up Azure Custom Vision:
- Obtain Azure Custom Vision prediction URL.
- Obtain Azure Custom Vision prediction key.
-
Capture images of medicinal plant leaves using a camera.
-
Run the Med Leaf application:
python med_leaf.py
-
Upload the captured images through the user interface.
-
The application will utilize Azure Custom Vision to predict the plant species.
Create a file named .env
in the project root and add the following:
AZURE_CUSTOM_VISION_URL[=your_custom_vision_url](https://violence-prediction.cognitiveservices.azure.com/customvision/v3.0/Prediction/8bbd3e68-2be6-4624-810b-c04c90becd3d/classify/iterations/Leaf%20detection/image)https://violence-prediction.cognitiveservices.azure.com/customvision/v3.0/Prediction/8bbd3e68-2be6-4624-810b-c04c90becd3d/classify/iterations/Leaf%20detection/image
AZURE_CUSTOM_VISION_KEY=1a6a334e28b743718ccf4f558f7553a4