Skip to content

Python microservice responsible for delivering prediction results to the RedBag API, enabling seamless diagnosis processing for cataract detection in dogs.

License

Notifications You must be signed in to change notification settings

MateusOK/RedBag-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

🐕 RedBag Predictor

📌 Project Overview

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.


🚀 Getting Started

Prerequisites

Before running this project, ensure you have the following installed:

Cloning the Repository

Clone this project to your local machine:

git clone https://github.com/MateusOK/RedBag-Predictor.git

After cloning, navigate to the project directory and install dependencies:

cd RedBag-Predictor
pip install -r requirements.txt

Environment Variables

Set up a .env file with your Cloudinary credentials:

CLOUD_NAME={YOUR_CLOUD_NAME}
API_KEY={YOUR_API_KEY}
API_SECRET={YOUR_API_SECRET}

Starting the API

Run the application:

python app.py

Ensure the Java API is running for full system functionality.


📍 API Endpoints

Method Route Description
GET /result/{public_id} Returns the prediction result for an uploaded image
GET /health Checks if the API is running correctly

Example Responses

GET /result/{public_id}

Response:

{
  "prediction": "unhealthy",
  "confidence": 0.89
}

GET /health

Response:

{
  "status": "alive"
}

🤝 Collaborators

Special thanks to all contributors to this project:


This project is licensed under the MIT License.

About

Python microservice responsible for delivering prediction results to the RedBag API, enabling seamless diagnosis processing for cataract detection in dogs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages