__ __ ____ _ _ __ __ _ __ __
/ / / / | _ \ | |__ ___ | |_ ___ | \/ | ___ _ __ _ __ | |__ / / / /
/ / / / | |_) || '_ \ / _ \ | __| / _ \ _____ | |\/| | / _ \ | '__|| '_ \ | '_ \ / / / /
/ / / / | __/ | | | || (_) || |_ | (_) ||_____|| | | || (_) || | | |_) || | | | / / / /
/_/ /_/ |_| |_| |_| \___/ \__| \___/ |_| |_| \___/ |_| | .__/ |_| |_| /_/ /_/
|_|A tool for taking a image and reordering the pixels to look like another provided image. This idea is inspired by the one made by Spu7Nix on Youtube, but is made from scratch and with a different algorithm design.
- Decompile an image directly ot the pixels and sort them so the most used (color group) is first
- Map the pixels of one picture to another by using the before named alorithm
- Make an animation that shows this change
Warning
This tool is primarly made for Windows 11 and is only tested in Windows 11. So it may not work on other OS'.
- Clone the repository
git clone https://github.com/BertramAakjaer/steam-market-price-tool.git
cd Photo-Morph- Install requirements
pip install -r requirements.txt- Configure your settings in
config.jsonComming soon ⏰
Run the main script:
python main.py- If u used the program before, you will be promptet about keeping the same template:
Keep cached template? (Y/n):
- If not your file explorer opens and you will need to pick a file for use as template
// Pick image for template usage //
- Then you will need to give the program an image to map pixels from
// Choose image for mapping to template //
- Lastly you will be asked if the conversion should be made into an animation
// Choose image for mapping to template //
The tool uses the config.json to manage user settings, here is all the settings described:
- Pillow - Image processing library
- art - Library for generating ASCII art
- OpenCV (cv2) - Used for making the animation
- tkinter - Used for file-explorer to choose images
This project is licensed under the MIT License - see the LICENSE file for details.
aakjaer.site · GitHub @BertramAakjær · Twitter @BertramAakjær