This project contains a set of scripts for finding and moving similar images from a source folder to a destination folder.
Python 3.7+ OpenCV PyYAML imaging_interview
- The images are in PNG format.
- Each image file is named following the pattern: c%camera_id%-%timestamp%.png.
- The timestamp is in either of two formats.
- Install the necessary packages by running
pip install -r requirements.txt
. - Update the
source_folder
anddestination_folder
variables inconfig.yaml
with the paths to your source and destination folders. - Run
python main.py
to start the image processing script.
This script will process all images in the source folder, compare each image with the next one, and move similar images to the destination folder. The similarity of images is determined by a threshold value. If the score of the comparison is less than the threshold, the images are considered similar.
For more questions, feel free to reach out to [email protected].
This project uses the Black code formatter to ensure consistent and readable code style. To format your code with Black, run:
black main.py utilities.py