-
๐ฅ 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).
-
๐ฅ๏ธ Open Command Prompt
- Press Windows + R, type
cmd, and hit Enter.
- Press Windows + R, type
-
๐ Navigate to the Project Folder
- Run the following command (adjust the path if needed):
cd C:\Users\YourName\Projects\AgroLens\AgroLens
- Run the following command (adjust the path if needed):
-
๐ 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.
- Run this command in the project root folder:
-
๐พ Run the Crop Recommendation Model
- Open a new command prompt window.
- Navigate to the
crop_recommendation_modelfolder:cd C:\Users\YourName\Projects\AgroLens\AgroLens\flask_server\crop_recommendation_model
- Run the server:
python app.py
-
๐ Run the Leaf Disease Detection Model
- Open another command prompt window.
- Navigate to the
leaf_disease_modelfolder:cd C:\Users\YourName\Projects\AgroLens\AgroLens\flask_server\leaf_disease_model
- Run the server:
python app.py
-
๐ฑ 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.
- ๐ 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! ๐ฟ