We are storing the path of the image in the “image_path” variable. Then we are passing the image to the pre-trained YOLOv8 model to make predictions which is getting stored in “result” variable.Then the name of the predicted insect is fetched from the “result” variable using “names_dict = results[0].names” which is getting stored in ‘names_dict” variable. Then, we are storing the input image in the “testImage” variable. At last we are outputting the image along with the predicted name of the insect.
The model predicts the insect and gives additional information that would be helpful to the user to effectively tackle their issues.
- Accuracy Training Accuracy = 0.958
- Validation Accuracy = 0.806
Need to set up a development environment with the required software.
- Install Python on your machine. You can download it from the official Python website. Make sure to add Python to your system's PATH during the installation.
- Clone the YOLOv8 repository from the Ultralytics GitHub repository:
git clone https://github.com/ultralytics/yolov5.git
cd yolov5
pip install -U -r requirements.txt
##HTML, CSS, JS:
- For web development, you don't need to install HTML, CSS, or JavaScript explicitly. These are interpreted by web browsers. Create HTML, CSS, and JS files as needed. Flask:
Install Flask, a Python web framework, using pip:
pip install Flask
- These are client-side technologies, so you don't need to install anything explicitly. You'll use them in your JavaScript code to make asynchronous requests to your Flask server.
- Choose a code editor or an integrated development environment (IDE) for your development work. Popular choices include Visual Studio Code, Atom, PyCharm, etc.
Depending on your specific project requirements, you might need additional Python libraries or JavaScript packages. For example, you might need a library like OpenCV for image processing in Python.
https://github.com/smartinternz02/SI-GuidedProject-611637-1700368667
https://drive.google.com/file/d/1lmKA9Ove_yYsgW3XuwBIC58aICoNpXJY/view?usp=drive_link