Coder Social home page Coder Social logo

bangkit2021-0347 / fruit-freshness-detector-web Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 6.0 144 KB

Our website for Bangkit Capstone Project that can knowing the level of ripeness of fruits

Home Page: https://psyched-bonfire-314213.et.r.appspot.com

License: MIT License

Python 57.52% CSS 1.89% HTML 40.59%
fruit-detection freshness-detection

fruit-freshness-detector-web's Introduction

Test

Fruit freshness detector web app for Bangkit Capstone Project 2021

Our website for Bangkit Capstone Project that can predict the level of ripeness of fruits and how much the cost would be.

Prerequisite

  • Python 3

Setup

Clone this repository and go to the cloned folder.

git clone https://github.com/Bangkit2021-0347/fruit-freshness-detector-web.git
cd fruit-freshness-detector-web

Create python virtual environment.

pip install virtualenv
virtualenv venv

Initialize virtual environment

source venv/bin/activate

or use this if you are using windows

.\venv\bin\activate

Install dependencies using pip.

pip install -r requirements.txt

run the app with Flask

flask run

and lastly, open http://127.0.0.1:5000/ on your browser.

Deployment

Deploy to Heroku

heroku login
heroku git:clone -a fruit-freshness-detector-web
cd fruit-freshness-detector-web
git add .
git commit -am "make it better"
git push heroku master

Deploy to Google App Engine

gcloud app deploy

Deploy to Google Cloud Run

gcloud builds submit --tag gcr.io/PROJECT-ID/fruit-freshness-detector-web
gcloud run deploy --image gcr.io/PROJECT-ID/fruit-freshness-detector-web  

API

Recognize Image


Return recognize result as JSON.

  • URL

    /api/recognize

  • Method:

    POST

  • Content-Type

    multipart/form-data

  • Data Params

    image=[file]

  • Success Response:

    • Code: 200
      Content: { freshness_level : 100, price : 10000 }

Run Test

python -m unittest discover tests

License

MIT

fruit-freshness-detector-web's People

Contributors

eldhoral avatar frullah avatar syifanuraini24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fruit-freshness-detector-web's Issues

Cannot install requirements.txt on MacOS

Package installation was successful on Linux but not on macOS.

The error messages when running pip install -r requirements.txt

Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.11.0+cpu (from versions: 1.11.0)
ERROR: No matching distribution found for torch==1.11.0+cpu

According to https://download.pytorch.org/whl/torch_stable.html, macOS doesn't have CPU only build, I think we solve it by creating a special requirements.txt for macOS (e.g. macos-requirements.txt).

Could not find torch with version 1.8.1+cpu

I run pip install -r requirements.txt and got this errors

Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cpu (from versions: 1.11.0, 1.11.0+cpu, 1.11.0+cu102, 1.11.0+cu113, 1.11.0+cu115, 1.11.0+rocm4.3.1, 1.11.0+rocm4.5.2)
ERROR: No matching distribution found for torch==1.8.1+cpu

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.