AutomationIMG is a Python-based tool for automated image preprocessing and object detection, featuring an intuitive graphical user interface. It simplifies the process of organizing and analyzing image datasets for machine learning and computer vision tasks.
- Preprocessing Pipeline
- Automated image organization
- Support for various directory structures
- Batch processing capabilities
- Object Detection
- Single object detection using Canny edge detection
- Bounding box visualization
- Quality assessment of detections
- User Interface
- Intuitive GUI built with PyQt5
- Real-time progress tracking
- Easy folder selection and processing
Before installation, ensure you have:
- Python 3.7 or higher
- pip (Python package installer)
- git (for git-based installation methods)
# Install directly from GitHub
pip install git+https://github.com/akshitharsola/AutomationIMG.git# 1. Clone the repository
git clone https://github.com/akshitharsola/AutomationIMG.git
cd AutomationIMG
# 2. Create and activate virtual environment
# For Windows:
python -m venv venv
venv\Scripts\activate
# For Linux/Mac:
python -m venv venv
source venv/bin/activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Install the package in development mode
pip install -e .- Download the ZIP file from GitHub:
- Go to https://github.com/akshitharsola/AutomationIMG
- Click the green "Code" button
- Select "Download ZIP"
- Extract the ZIP file
- Open terminal/command prompt in the extracted folder
- Run:
pip install .# 1. Clone the repository
git clone https://github.com/akshitharsola/AutomationIMG.git
cd AutomationIMG
# 2. Install dependencies and package
pip install -r requirements.txt
pip install -e .If you encounter installation issues:
-
PyQt5 Installation Issues:
# Try installing PyQt5 separately first pip install PyQt5 -
OpenCV Installation Issues:
# Try installing opencv-python-headless instead pip install opencv-python-headless -
Permission Issues:
- For Linux/Mac: Use
sudo pip install ... - For Windows: Run command prompt as administrator
- For Linux/Mac: Use
-
Version Conflicts:
# Create a fresh virtual environment and try again python -m venv fresh_venv # Activate it and retry installation
The tool supports the following directory structure for input data:
Main_Folder/
└── Apple/
└── image1.jpg
└── image2.jpg
└── Orange/
└── image1.jpg
└── image2.jpg
- Start the application:
automationimg- Using the GUI:
- Click "Input Folder" to select your image directory
- Choose "Output Folder" for processed results
- Run "Preprocess Dataset" to organize images
- Use "Single Object Detection" for detection and analysis
The tool generates the following output structure:
Output_Folder/
└── processed/
└── images
└── annotations.json
└── edge_detection/
└── detection results
└── bounding_boxes/
└── visualizations
pip uninstall automationimg -y- Launch the application:
automationimg - Click the "Uninstall Tool" button
- Follow the prompts
# 1. Uninstall the package
pip uninstall automationimg -y
# 2. Remove the git repository (if you cloned it)
# For Windows:
rd /s /q AutomationIMG
# For Linux/Mac:
rm -rf AutomationIMG
# 3. Clear pip cache (optional)
pip cache purgeIf you installed in a virtual environment:
# 1. Deactivate virtual environment
deactivate
# 2. Remove virtual environment folder
# For Windows:
rd /s /q venv
# For Linux/Mac:
rm -rf venvIf you encounter issues during uninstallation:
-
Permission Issues:
# For Windows (Run as Administrator): pip uninstall automationimg -y # For Linux/Mac: sudo pip uninstall automationimg -y
-
Files Still Present:
- Check for remaining files in your Python environment:
python -c "import automationimg; print(automationimg.__file__)" - Manually delete the directory if shown
- Check for remaining files in your Python environment:
-
Package Still Accessible:
- Try cleaning pip's cache:
pip cache purge pip uninstall automationimg -y
- Try cleaning pip's cache:
Note: After uninstallation, you may safely delete any remaining files in the installation directory.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Akshit Harsola
- Email: harsolaakshit@gmail.com
- GitHub: @akshitharsola
- Thanks to all contributors who help improve this tool
- Special thanks to the open-source community for their valuable tools and libraries
If you encounter any problems or have suggestions, please open an issue.
Tested and supported on:
- Windows 10/11
- Ubuntu 20.04/22.04
- macOS 11 (Big Sur) and later
Note: Some features may require additional system-specific configuration. Please check the troubleshooting section if you encounter any issues.