Skip to content

Javi-RS/Cotton_Yield_Estimation

Repository files navigation

Cotton_Yield_Estimation Containerization

This repository houses essential files and test images for containerizing our web app designed to estimate cotton yield from aerial imagery. This work is a key part of the research paper titled "Cotton Yield Estimation From Aerial Imagery Using Machine Learning Approaches," published in the journal Frontiers in Plant Science. You can find the paper here.

Our web app utilizes Flask and gunicorn to operate an SVM pixel classifier, enabling accurate cotton yield estimation from 2D imagery. To streamline deployment, a Docker container image is available at javirodsan/yieldestimation:latest on Docker Hub. This Docker image is based on python:3.8-slim-buster and OpenCV and automatically installs all required libraries for seamless execution of the web app.

Running the container

You can download the container image (~880MB) to your local machine by pulling it from the remote repository:

docker pull javirodsan/yieldestimation:latest

Or you can run it directly:

docker run -ti -p 8080:8080 javirodsan/yieldestimation:latest

Note that this command also does a docker pull behind the scenes to download the image with latest tag.

Using the web app

You should be able to see the Flask application running on http://localhost:8080 or 127.0.0.1:8080

Select image analysis from the drop down menu and upload an image to analyze. Finally, click proess image to start the estimation of yield. Please be patient, the analysis can take some time.


Authors

Find us on GitHub


Acknowledgments

Thanks to Rui Xu for his assistance in collecting aerial images; Tsunghan Han, Shangpeng Sun, and Jon S. Robertson for helping in the manual harvesting of the cotton bolls for ground truthing; Man Wah Aw for his assistance in image annotation; and Ellen Skelton for providing the vegetal material.


License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published