A simple tool to visually compare image pairs using a slider. This tool is built on top of the image-slider codebase and further developed to load images from two folders for comparison.
To set up the environment required to run the app, follow these steps:
-
Clone the repository (if you haven't already):
git clone <repository-url> cd <repository-directory>
-
Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the Flask server:
python3 app.py
-
Open your web browser and navigate to
http://127.0.0.1:5000
to access the image comparison tool.
Make sure you have Python 3 and pip installed on your system before starting the setup.
Once the server is running, you can use the tool as follows:
-
Upload Images: Enter the paths to the two folders containing the images you want to compare. You can also specify keywords to filter the images.
-
Compare Images: After submitting the form, the images will be loaded side by side. You can click and drag the blue slider to compare the two images visually.
-
Navigate Through Images: Use the "Previous" and "Next" buttons to navigate through the images in the specified folders.
-
Refresh the Page: If you want to compare a different set of images, simply refresh the page and enter new folder paths and keywords.
This project is licensed under the MIT License - see the LICENSE file for details.