Image (FontAwesome Icons) Recognition with Python
Requirements
- python3
- PIL, numpy, matplotlib, functools, glob libraries.
HOW DOES IT WORK ?
- Run the 'createExamples ()' functions. It will create a file named 'iconArEx.txt'. This is the dataset file where the icons are found.
- Then type an icon in the 'images' folder as the file name in the 'whatIcons' function and run the function 'whatIcons'.
- As a result, it will return a message as "Most Like: [('founded file name', 'founded score')]".
That is all :)
GEREKSINIMLER
- Python3
- PIL,numpy,matplotlib,functools,glob kütüphaneleri.
Nasıl Çalışır ?
-
'createExamples()' fonksiyonu çalıştırın. 'iconArEx.txt' adında bir dosya oluşturacaktır. Burası ikonları öğrendiği dataset dosyasıdır.
-
Daha sonra 'images' klasörünün içerisine attığınız bir ikonun ismini 'whatIcons' fonksiyonunda dosya adı olarak yazın ve 'whatIcons' fonksiyonunu çalıştırın.
-
Sonuç olarak "Most Like: [('benzetilen dosya adı', 'benzetilme skoru')]" olarak bir mesaj döndürecektir.
Hepsi bu kadar :)