An image converter from a given image into an emoji collage.
run pip install -r requirements.txt
run emoji_collector.py
. you'll get 2614 emojis in data/emoji_apple
run whiten_alpha.py
run calc_average_rgb.py
prepare target image and edit target_file_name
under if __name__ == '__main__':
in emojineer.py
.
run emojineer.py
prepare target images in emojineer/target_img/
and edit under if __name__ == '__main__':
in main.py
.
conversions
indicates how big splitting is and takes 0 to 1.
It must be a list of numbers like: conversions = [0.2, 0.1, 0.08, 0.01] # 0 ~ 1
similarities
indicates ranks of similar emojis and takes 0 to 2613(because the number of emoji candidates is 2614).
It must be a list of numbers like: similarities = [0, 10, 20, 500, 1000, 2000, 2500, 2600, 2610]