we made the crop and weed detection model using YOLOV3 on agricultural image data.
Weed is unwanted thing in agriculture. Weed use the nutrients, water ,land and many more thihngs that might have gone to crops. Which result less production of required crop. Farmer often use pesticides to remove weed which also affective but some pesticide may stick with crop and may causs problem for humans.
we using dataset on kaggle. This dataset contains 1300 images of sesame crops and different types of weeds with each image labels. Each image is a 512 X 512 color image. Labels for images are in YOLO format. Data on https://www.kaggle.com/ravirajsinh45/crop-and-weed-detection-data-with-bounding-boxes
This Repository is diveded in two parts:
1. Training
2. Detection using pre train model
- Using openCV (skip installation using requirements.txt file)
- Follow the training fold to training
-
Solve the package if you don't have.
-
Now your environment is ready to roar:)
-
For detection you need weights for network. Due to large file i attaching google drive link. You have to download weight file unless you have your own weights file. click here
-
You have to add weights file into
Crop_and_weed_detection > performing_detection > data > weights
folder.
-
-
For easy to use.
-
if you have opencv library already installed (opencv included in requirements.txt), skip this step else run below code
pip install opencv-python
then run detection_opencv.py
to detect, it contains camera or image.
If you have any doubts feel free to ask any question at any time:).