A comprehensive Streamlit web application for processing and analyzing UAV-captured aerial imagery. This system provides advanced image processing capabilities for agriculture, forestry, and environmental monitoring.
- Combine multiple aerial images into seamless panoramas
- Automatic image alignment and blending
- Post-processing for optimal results
- Automatic detection and counting of trees in aerial imagery
- Adjustable parameters for different tree sizes
- Visual highlighting of detected trees
- Identify and map crop areas and vegetation zones
- Contour detection and bounding box calculation
- Area quantification and mapping
- Detect plant diseases and health issues
- Adjustable color range detection
- Morphological processing for accurate detection
- Count various objects and features in images
- Green object detection and filtering
- Customizable area thresholds
- Comprehensive analysis and reporting
- Processed image gallery
- Download functionality for results
-
Clone or download the project
# If using git git clone <repository-url> cd "Project UAV"
-
Install Python dependencies
pip install -r requirements.txt
-
Run the Streamlit application
streamlit run app.py
-
Open your browser
- The application will automatically open in your default browser
- Default URL:
http://localhost:8501
- Python 3.8 or higher
- OpenCV 4.8.0 or higher
- Streamlit 1.28.0 or higher
- Other dependencies listed in
requirements.txt
- Open the application in your browser
- Navigate through the sidebar to access different features
- Upload images using the file uploaders
- Adjust parameters using the interactive sliders
- View results and download processed images
- Go to "πΌοΈ Image Stitching" page
- Upload multiple images (at least 2)
- Click "π Process Image Stitching"
- View the stitched panorama
- Save the result if needed
- Go to "π³ Tree Counting" page
- Upload a single image
- Adjust the "Minimum tree area" slider
- Click "π³ Count Trees"
- View detected trees and count
- Go to "π Area Detection" page
- Upload an image
- Click "π Detect Areas"
- View detected areas and bounding boxes
- Go to "π¦ Disease Detection" page
- Upload an image
- Adjust HSV color range sliders
- Set minimum and maximum disease area
- Click "π¦ Detect Diseases"
- View detected disease areas
- Go to "π Object Counting" page
- Upload an image
- Adjust minimum object area threshold
- Click "π Count Objects"
- View detected objects and count
Project UAV/
βββ app.py # Main Streamlit application
βββ requirements.txt # Python dependencies
βββ README.md # This file
βββ processed/ # Output directory for processed images
βββ area_detection/ # Area detection backend code
βββ count_trees/ # Tree counting backend code
βββ Count_new/ # Object counting backend code
βββ Image Stitching/ # Image stitching backend code
βββ images_nadir_RGB/ # Sample UAV images
- Tree Counting: Modify the minimum area threshold for different tree sizes
- Disease Detection: Adjust HSV color ranges for different disease types
- Object Counting: Change area thresholds for different object sizes
- Image Stitching: The algorithm automatically handles multiple images
The modular structure allows easy addition of new image processing features:
- Add new processing functions
- Create new Streamlit pages
- Update the sidebar navigation
- Add new file uploaders and controls
-
OpenCV Installation Issues
pip uninstall opencv-python pip install opencv-python-headless
-
Streamlit Not Starting
- Ensure all dependencies are installed
- Check Python version compatibility
- Verify file paths are correct
-
Image Processing Errors
- Ensure uploaded images are in supported formats (JPG, PNG)
- Check image file sizes (very large images may cause memory issues)
- Verify images are not corrupted
-
Memory Issues
- Process smaller images
- Close other applications to free memory
- Restart the Streamlit application
- Use appropriately sized images for faster processing
- Adjust parameters based on your specific use case
- Process images in batches for large datasets
- Monitor system resources during processing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source and available under the MIT License.
For issues and questions:
- Check the troubleshooting section
- Review the code comments
- Open an issue in the repository
- Contact the development team
π UAV Image Analysis System - Advanced aerial image processing for agriculture, forestry, and environmental monitoring.