Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d8ac677
Add .vercelignore
farhann-saleem Oct 27, 2025
c0120fd
Add netlify.toml
farhann-saleem Oct 27, 2025
85eb427
Add .netlifyignore
farhann-saleem Oct 27, 2025
f16420c
Add README.md
farhann-saleem Oct 27, 2025
8fe5a7e
Add requirements.txt
farhann-saleem Oct 27, 2025
b079735
Add eslint.config.js
farhann-saleem Oct 27, 2025
e89d5d1
Add index.html
farhann-saleem Oct 27, 2025
f4d1883
Add README.md
farhann-saleem Oct 27, 2025
0416231
Add tsconfig.app.json
farhann-saleem Oct 27, 2025
beba21c
Add tsconfig.json
farhann-saleem Oct 27, 2025
fa2c5e3
Add tsconfig.node.json
farhann-saleem Oct 27, 2025
3f89268
Add vite.config.ts
farhann-saleem Oct 27, 2025
2bd37be
Add package.json
farhann-saleem Oct 27, 2025
a241755
Add package-lock.json
farhann-saleem Oct 27, 2025
d74ad0b
Add .vercelignore
farhann-saleem Oct 27, 2025
3981677
Add vite.svg
farhann-saleem Oct 27, 2025
ba07d72
Add bg.jpeg
farhann-saleem Oct 27, 2025
f18c3d6
Add logo.png
farhann-saleem Oct 27, 2025
6720edd
Add App.css
farhann-saleem Oct 27, 2025
dc4845c
Add App.tsx
farhann-saleem Oct 27, 2025
16213e6
Add index.css
farhann-saleem Oct 27, 2025
53ab540
Add main.tsx
farhann-saleem Oct 27, 2025
ac0bfe7
Add react.svg
farhann-saleem Oct 27, 2025
66353d0
Add bg.jpeg
farhann-saleem Oct 27, 2025
ad950dd
Add logo.png
farhann-saleem Oct 27, 2025
2059e6a
Add early_blight.jpeg
farhann-saleem Oct 27, 2025
3c9c8ac
Add healthy.jpeg
farhann-saleem Oct 27, 2025
6c122bc
Add late_blight.jpeg
farhann-saleem Oct 27, 2025
aea2ec6
Add Header.tsx
farhann-saleem Oct 27, 2025
9f7549b
Add InfoSection.tsx
farhann-saleem Oct 27, 2025
6fc79b0
Add Predictor.tsx
farhann-saleem Oct 27, 2025
5858d16
Add vite.svg
farhann-saleem Oct 27, 2025
bfbb4c5
Add bg.jpeg
farhann-saleem Oct 27, 2025
cdd1fd9
Add logo.png
farhann-saleem Oct 27, 2025
80a1b54
Add index.html
farhann-saleem Oct 27, 2025
d81adde
Add healthy-BIUvmuQ8.jpeg
farhann-saleem Oct 27, 2025
e5b3143
Add late_blight-C5QQ16ir.jpeg
farhann-saleem Oct 27, 2025
584be50
Add early_blight-COLMSq2x.jpeg
farhann-saleem Oct 27, 2025
e55df22
Add logo-Bp_R0bCS.png
farhann-saleem Oct 27, 2025
a429e2b
Add index-C4FBmG66.js
farhann-saleem Oct 27, 2025
c76ed35
Add index-BNgOpTAT.css
farhann-saleem Oct 27, 2025
8e896f2
Add project.json
farhann-saleem Oct 27, 2025
c86c12f
Add README.txt
farhann-saleem Oct 27, 2025
7a93413
Add early_blight.jpeg
farhann-saleem Oct 27, 2025
06b1def
Add healthy.jpeg
farhann-saleem Oct 27, 2025
39575a6
Add late_blight.jpeg
farhann-saleem Oct 27, 2025
3dd6ae1
Add early_blight_1.jpg
farhann-saleem Oct 27, 2025
78ad2ac
Add late_blight_1.jpg
farhann-saleem Oct 27, 2025
a264d7d
Add images.jpeg
farhann-saleem Oct 27, 2025
9bac625
Add potato-leaves-1020x680-1.jpg
farhann-saleem Oct 27, 2025
a6419ea
Add 89460f031d384e19868207dc78e1597d.jpg
farhann-saleem Oct 27, 2025
3439881
Add test.ipynb
farhann-saleem Oct 27, 2025
d8c3a5d
Add pred.ipynb
farhann-saleem Oct 27, 2025
f8ba3d8
Add app.py
farhann-saleem Oct 27, 2025
5d3c390
Add model.keras
farhann-saleem Oct 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions projects/detection/DeepCrop/.netlifyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
backend/
*.keras
*.h5
*.ipynb
temp/
11 changes: 11 additions & 0 deletions projects/detection/DeepCrop/.vercel/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
> Why do I have a folder named ".vercel" in my project?
The ".vercel" folder is created when you link a directory to a Vercel project.

> What does the "project.json" file contain?
The "project.json" file contains:
- The ID of the Vercel project that you linked ("projectId")
- The ID of the user or team your Vercel project is owned by ("orgId")

> Should I commit the ".vercel" folder?
No, you should not share the ".vercel" folder with anyone.
Upon creation, it will be automatically added to your ".gitignore" file.
1 change: 1 addition & 0 deletions projects/detection/DeepCrop/.vercel/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"projectId":"prj_Aq8QsELhAw5kpptNIBREgmlnwHwe","orgId":"team_AXrWRZiA742uO8KOOPn2ih5U","projectName":"deep-crop"}
5 changes: 5 additions & 0 deletions projects/detection/DeepCrop/.vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
backend/
*.keras
*.h5
*.ipynb
temp/
68 changes: 68 additions & 0 deletions projects/detection/DeepCrop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# DeepCrop

## Description
A machine learning project for crop disease detection using deep learning. The system can identify healthy crops and detect diseases like Early Blight and Late Blight in potato plants.

## Project Structure
```
DeepCrop/
├── data/ # Dataset files and test images
├── notebooks/ # Jupyter notebooks for experimentation
├── src/ # Source code (Flask API)
├── models/ # Saved trained models
├── frontend/ # React frontend application
├── requirements.txt # Python dependencies
└── README.md # Project documentation
```

## Dataset
The project uses a crop disease dataset with multiple classes including:
- Healthy
- Early Blight
- Late Blight
- Other disease categories

## Installation
```bash
pip install -r requirements.txt
```

## Usage

### Backend API
Start the Flask server:
```bash
cd src
python app.py
```

The API will run on `http://localhost:5000`

### Frontend
```bash
cd frontend
npm install
npm run dev
```

### API Endpoints
- `POST /predict` - Upload an image for disease prediction
- `GET /` - Health check endpoint

## Model Details
- **Algorithm used:** Convolutional Neural Network (CNN) with Keras/TensorFlow
- **Input size:** 128x128 pixels
- **Classes:** 3 main classes (Healthy, Early Blight, Late Blight)
- **Framework:** TensorFlow/Keras

## Results
The model provides:
- Disease classification
- Confidence percentage
- Support for three main crop health categories

## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.

## License
MIT License
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/detection/DeepCrop/data/temp/images.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions projects/detection/DeepCrop/frontend/.vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
*.log
.DS_Store
73 changes: 73 additions & 0 deletions projects/detection/DeepCrop/frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...

// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,

// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading