Coder Social home page Coder Social logo

dotch3 / harvtech-vegetables-health-ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tech-warriors-corporation/harvtech-vegetables-health-ai

0.0 0.0 0.0 74.3 MB

The AI project to assess the health of vegetables for HarvTech.

License: Creative Commons Zero v1.0 Universal

Shell 3.97% Python 91.45% Dockerfile 4.58%

harvtech-vegetables-health-ai's Introduction

Vegetables Health

The AI project to assess the vegetables health.

Support vegetables:

  • Bean;
  • Potato;
  • Tomato;
  • Rice.

About models

We are using models from Kaggle.

Gemini API

You can get a Gemini API key in this link.

Environment setup

Create a .env file in the root folder with content:

CLOUD_STORAGE_URL_PREFIX=https://URL_TO_YOUR_STORAGE_DOMAIN/
FLASK_PORT=5001
GEMINI_API_KEY=YOUR_API_KEY_HERE
FLASK_ENV=production

Prepare

Download the best_tomato_leaf_inceptionV3_256.h5 and best_rice_leaf.h5, put their in constants/weights directory.

Install and download models

Use pip install -U -r requirements.txt to install dependencies.

Use ./download_models.sh to download the trained models

Install certificates

If in development use self-signed certificates, in production follow the steps of your SSL authorizer

Development

Run ./generate_certificates.sh

Start

Run python3 app.py to start project.

The https://API_URL:PORT/predict should be used for the POST API calls

Following an example of the API body request

{
    "model_type": "tomato_leaf",
    "content_url": "https://techwarriors-objectstorage-test.s3.us-south.cloud-object-storage.appdomain.cloud/0034a551-9512-44e5-ba6c-827f85ecc688___RS_Erly.B%209432.png"
}

Tests

Run the directory tests, if in PyCharm .it will execute all files with application running.

Roadmap:

  • Unit tests;
  • Create a REST API to use this code;
  • Kaggle explains;
  • Tests describe how to execute;
  • Deploy project in VPS;
  • Validation URL from back-end with prefix in DNS of cloud (Jorge);
  • ChatGPT return with data structured;
  • Create all tests with different models;
  • Search new tomato models in Kaggle;
  • Integrated responses with ChatGPT;
  • Upload vegetable images in cloud (Jorge);
  • Configure CORS.

harvtech-vegetables-health-ai's People

Contributors

hotequil avatar shiruzui avatar dotch3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.