Giter Club home page Giter Club logo

plant-leaf-disease-detection-mobile-app's Introduction

Project Title

Plant Leaf Disease Detection Mobile App

Getting Started

All the react native and django application code is available on this repo. It requires python version 3.7 or older to work as model is build using this python version, I am using Django rest framework for this app.

  • leaf_disease_model.h5 is the deep learning model, I trained on the dataset, I created by merging different datasets available online.
  • predictors.py is the python file, where our image will be converted into tensor batch and given to trained model for prediction.
  • HomeScreen.js It is the first that will appear after splash screen, where how to upload image for disease prediction and how many types of plant leaf diseases can our model detect.
  • Our Deep learning model currently can detect 12 leaf types and their diseases.

Prerequisites

  • python 3.7
  • node
  • react
  • react native
  • tensorflow
  • keras
  • django
  • numpy
  • pillow
  • pandas
  • opencv

Installing

Download the software setups and follow the on screen instructions

step 1

Installing Anaconda, it can be downloaded from below link

Click here to visit download page

step 2

Creating a environment inside Anaconda with python 3.7

Anaconda is a great tool for Data Science and Machine Learning. As, In Anaconda , you can create an environment using different python versions for different projects

step 3

  Download Android Studio and java run time environment

Click here to visit download page

step 4

Installing Python Libraries
cd backend
pip install -r requirements.txt

It will install all the necessary python libraries needed for the project to run

step 5

Downloading Nodejs 

Click here to visit download page

step 6

Installing React and React Native Cli
npm install react
npm install -g react-native-cli

step 7

Installing Libraries for react native app
cd Agro
npm install

It will install al the necessary libraries needed for react native app

step 8 After Installing libraries

Running Django Backend

cd backend
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

I will create an Sqlite database and add model tables in the database, and then run the server

step 9 After running backend server Go React Native App Directory, Agro

cd Agro/android

create a local.properties file inside the android folder and add sdk.dir="Sdk root"

step 10

Open Android folder in android studio and run the app in the android studio to build and show the app in android emulator

step 11

Building and Running native app in the android emulator 
cd Agro
react-native run-android
  OR
react-native run-ios
  OR
react-native run

step 12

  After Running the to connect the app and backend, you can use Ngrok, which provides a https tunnel for requests or check other to connect between them

Built Using

  • Visual Studio Code
  • Android Studio
  • Postman

Project Demo

  • Take a look at the android app

Dataset Resources:

For this App, model I have used data from

  • Plant Village Dataset
  • PlantDoc Research Dataset
  • Data mendely
  • Plant Pathology 2021 FGCV

plant-leaf-disease-detection-mobile-app's People

Contributors

hassan-ik avatar

Watchers

 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.