Code Monkey home page Code Monkey logo

image-comparison's Introduction

image-comparison

batch_sorter.py

This script is mostly written by OpenAI ChatGPT. It works, at least on my PC.
This script is displaying random images from the target folder with minimal UI.
You're able to discard images you don't want.

You can download the script in your Terminal:

git clone https://github.com/AyoKeito/image-comparison

Or you can download a zip archive from Releases

Discarded images are moved to discarded subfolder. Nothing is deleted.
To discard an image, press:
A or Left Arrow to discard image displayed on the left.
D or Right Arrow to discard image displayed on the right.
W or Up Arrow to keep both images displayed and discard none of them.
S or Down Arrow to discard both images displayed.

The loop will continue, until only 2 images are left in the target folder, or application window is closed.
All file operations are logged into the terminal.

Main script is batch_sorter.py:

usage: batch_sorter.py FOLDER_PATH

batch_sorter.py can be run from the terminal directly. It accepts folder path as an optional argument.
If no folder path is provided, or provided path contains no images, a file dialog will appear to select the folder you want.
There are no other flags or arguments to use.
All errors are logged into error.log

batch_sorter.bat is also included to simplify running the program under Windows:

If needed, it creates a venv in the program's folder, installing pillow and pyqt5
After that, it simply runs the script using this venv.

image-comparison's People

Contributors

ayokeito avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.