Skip to content

Web application that detects and counts the number of roses using an artificial intelligence model. The application uses a local image, or you can take a picture with the camera.

License

Leo-Thomas/AI-based-red-rose-counting-webapp

Repository files navigation

Contributors Forks Stargazers Issues GPL License


Logo

AI rose counting system web application

Web application that recognizes and counts the number of red roses using an artificial intelligence model.
Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Product Name Screen Shot

This is a web application that recognizes and counts the number of red roses using artificial intelligence. The user can upload an image or take a picture with the camera. Once the image is processed, the application will display on screen the number of roses found and the average accuracy. The user can also download the resulting image, or generate and download a report.

This web application was developed by Leo, Mike, Carlos and Juan, students at Yachay Tech University.

(back to top)

Built With

OS Suported

  • Microsoft Windows: 10, 11
  • Lunix: Ubuntu 20.04

(back to top)

Getting Started

Prerequisites

Important (for Windows only)

  1. Make sure to add Python to path during Python installation

Logo

  1. Make sure to disable path length limit during Python installation

Logo

Windows

  • Latest pip
    pip install --upgrade pip
  • Numpy
    pip install numpy
  • Django
    pip install Django
  • TensorFlow
    pip install tensorflow
  • OpenCV
    pip install opencv-python
  • ReportLab
    pip install reportlab
  • Pillow
    pip install pillow

Linux

  • Upgrade Repositories
    sudo apt-get upgrade -y
  • Pip for Python3
    sudo apt install python3-pip
  • Upgrade Pip for Python3
    sudo pip3 install --upgrade pip
  • Django
    sudo pip3 install django
  • TensorFlow
    sudo pip3 install tensorflow
  • OpenCV
    sudo pip3 install opencv-python
  • ReportLab
    sudo pip3 install reportlab
  • Pillow
    sudo pip3 install pillow

Installation

Windows

  1. Clone the repo
    git clone https://github.com/Leo-Thomas/AI-based-red-rose-counting-webapp.git
  2. Inside "AI-based-red-rose-counting-webapp" directory, open a terminal and initialize the server
    python manage.py runserver
  3. Open the generated link in the browser
    Starting development server at **http://127.0.0.1:8000/**

(back to top)

Linux

  1. Clone the repo
sudo git clone https://github.com/Leo-Thomas/AI-based-red-rose-counting-webapp.git
  1. Inside "AI-based-red-rose-counting-webapp" directory, open a terminal as administrator and initialize the server
sudo python3 manage.py runserver
  1. Open the generated link in the browser
Starting development server at **http://127.0.0.1:8000/**

(back to top)

Usage

Counting by uploading a file

  • Click the "Choose file" button

Logo

  • Select the file you want to process and upload it

Logo

  • Once the file is loaded, click the "Count" button to start counting.

Logo

  • A waiting screen will be displayed while your image is being processed. (You can cancel the process at any time by clicking the "Cancel" button.)

Logo

  • After a few seconds, the original image will be displayed on the screen together with the image with the rose detection. Also, the number of roses found and the average accuracy will be displayed in the results panel.

Logo

  • If you wish, you can download the resulting image by clicking on the "Download Image" button.

Logo

  • You can also generate a report of the count by clicking on the "Generate report" button, which will take you to a new window.

Logo

  • In the new window, you can download the report by clicking on the "Download report" button.

Logo

Logo

  • Finally, you can go to the home page to process another image

(back to top)

Counting using the camera

  • Click on the "Camera" button

Logo

  • Give permissions to access your camera

Logo

  • Then, a box with the image of your camera will be displayed.

Logo

  • Place the desired image in front of the lens and press the "Shoot" button to capture it. (You can click the "Shoot" button as many times as you wish until you capture the right image.)

Logo

  • Once the image is captured, click on the "Count" button to start counting.

Logo

  • A waiting screen will be displayed while your image is being processed. (You can cancel the process at any time by clicking the "Cancel" button.)

Logo

  • After a few seconds, the original image will be displayed on the screen together with the image with the rose detection. Also, the number of roses found and the average accuracy will be displayed in the results panel.

Logo

  • If you wish, you can download the resulting image by clicking on the "Download Image" button.

Logo

  • You can also generate a report of the count by clicking on the "Generate report" button, which will take you to a new window.

Logo

  • In the new window, you can download the report by clicking on the "Download report" button.

Logo

Logo

  • Finally, you can go to the home page to process another image

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/NewFeature)
  3. Commit your Changes (git commit -m 'Add some NewFeature')
  4. Push to the Branch (git push origin feature/NewFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GNU General Public License v3.0. See LICENSE for more information.

(back to top)

Contact

Leo Ramos - LinkedIn - leo.ramos@yachaytech.edu.ec

Mike Bermeo - LinkedIn - mike.bermeo@yachaytech.edu.ec

Juan Brito - LinkedIn - juan.brito@yachaytech.edu.ec

Carlos Macancela - LinkedIn - carlos.macancela@yachaytech.edu.ec



Project Link: https://github.com/Leo-Thomas/AI-Rose-counting-system-web-app

(back to top)

Acknowledgments

(back to top)

About

Web application that detects and counts the number of roses using an artificial intelligence model. The application uses a local image, or you can take a picture with the camera.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published