Skip to content

kpavan52/AgroLens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ AgroLens - Smart Agriculture App

๐Ÿš€ Getting Started

๐Ÿ› ๏ธ Step-by-Step Instructions

  1. ๐Ÿ“ฅ Download & Extract the Project

    • Download the ZIP file from this GitHub repository.
    • Extract it to your preferred location (e.g., C:\Users\YourName\Projects\AgroLens).
  2. ๐Ÿ–ฅ๏ธ Open Command Prompt

    • Press Windows + R, type cmd, and hit Enter.
  3. ๐Ÿ“‚ Navigate to the Project Folder

    • Run the following command (adjust the path if needed):
      cd C:\Users\YourName\Projects\AgroLens\AgroLens
  4. ๐Ÿš€ Start the React Native App

    • Run this command in the project root folder:
      npx expo start
    • This will open an Expo DevTools window in your browser.
    • Use Expo Go on your phone to scan the QR code and launch the app.
  5. ๐ŸŒพ Run the Crop Recommendation Model

    • Open a new command prompt window.
    • Navigate to the crop_recommendation_model folder:
      cd C:\Users\YourName\Projects\AgroLens\AgroLens\flask_server\crop_recommendation_model
    • Run the server:
      python app.py
  6. ๐Ÿƒ Run the Leaf Disease Detection Model

    • Open another command prompt window.
    • Navigate to the leaf_disease_model folder:
      cd C:\Users\YourName\Projects\AgroLens\AgroLens\flask_server\leaf_disease_model
    • Run the server:
      python app.py
  7. ๐Ÿ“ฑ Test the App

    • Downloadย Expo Goย App on your phone.
    • Openย Expo Go on your phone.
    • Scan the QR code displayed after running npx expo start.
    • Input soil and weather data for crop recommendations.
    • Upload a leaf image for disease detection.

โš ๏ธ Important Notes

  • ๐Ÿ”„ Simultaneous Server Execution: Both servers must be running simultaneously for predictions to work.
  • ๐ŸŒ Network Connection: Ensure your phone and PC are connected to the same Wi-Fi network.
  • โš™๏ธ Dependencies: If running for the first time, install necessary dependencies:
    npm install
    pip install -r requirements.txt
  • โšก Live Server Requirement: The app works only when both servers are live.

๐ŸŒพ Happy Farming! ๐ŸŒฟ

About

AgroLens is a smart agriculture app that provides crop recommendations and leaf disease detection using machine learning. It analyzes soil, weather data, and leaf images to assist farmers with better decisions. Built with React Native and Flask, it offers real-time predictions for efficient, data-driven farming. ๐ŸŒฑ๐Ÿš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors