The RedBag-Predictor is a predictive microservice developed at Fatec Registro, designed to provide fast and accurate diagnoses for dogs with cataracts. Using Convolutional Neural Networks (CNNs), this API classifies images to determine whether an animal is healthy or affected by cataracts.
This Python-based microservice works in conjunction with the RedBag-Core, which acts as the core backend, handling user management, database operations, and API integrations.
👉 Access the RedBag-Core for more details.
Before running this project, ensure you have the following installed:
- Python
- Cloudinary Account
- RedBag-Core (must be running for full functionality)
Clone this project to your local machine:
git clone https://github.com/MateusOK/RedBag-Predictor.gitAfter cloning, navigate to the project directory and install dependencies:
cd RedBag-Predictor
pip install -r requirements.txtSet up a .env file with your Cloudinary credentials:
CLOUD_NAME={YOUR_CLOUD_NAME}
API_KEY={YOUR_API_KEY}
API_SECRET={YOUR_API_SECRET}Run the application:
python app.pyEnsure the Java API is running for full system functionality.
| Method | Route | Description |
|---|---|---|
| GET | /result/{public_id} |
Returns the prediction result for an uploaded image |
| GET | /health |
Checks if the API is running correctly |
Response:
{
"prediction": "unhealthy",
"confidence": 0.89
}Response:
{
"status": "alive"
}Special thanks to all contributors to this project:
This project is licensed under the MIT License.
