karolzak / cntk-hotel-pictures-classificator

This POC is using CNTK 2.1 to train model for multiclass classification of images. Our model is able to recognize specific objects (i.e. toilet, tap, sink, bed, lamp, pillow) connected with picture types we are looking for. It plays a big role in a process which will be used to classify pictures from different hotels and determine whether it's a picture of bathroom, bedroom, hotel front, swimming pool, bar, etc.
MIT License
37 stars 22 forks source link

Font 'Arial' is not default for Linux #1

Closed TreeLLi closed 6 years ago

TreeLLi commented 6 years ago

Hello sir,

in your file 'Detection/FasterRasterRCNN/plot_helper.py', you use the font 'Arial' to draw text but it's not a default font for my Linux, Azure DSVM for Linux with Ubuntu 16.04.

I am not sure if the solution for fixing this error should be included in the Readme 'Setup' section to tell Linux users to install 'Arial' font before learning the model. if anyone else encountered this problem too, you can find a help from below link: https://askubuntu.com/questions/651441/how-to-install-arial-font-in-ubuntu

karolzak commented 6 years ago

Hi @TreeLLi! Thanks for posting this, nice catch! I found the root of it. It seems like I hardcoded some "arial.ttf" in drawText and pilDrawText Already posted a fix in the last commit. Please test it and let me know if it solves the problem, thanks!