How to increase the font size of the bounding box in Tensorflow object detection module?

Find "visualization_utils.py"
This exist in "research/object_detection/utils"
And find below code, modify font size.
If it is not working, change path to absolute path.
Or copy font file to project folder.

Thank you.
#font = ImageFont.truetype('arial.ttf', 24)
font = ImageFont.truetype('/Library/Fonts/Arial.ttf', 100) #leon modify
except IOError:
font = ImageFont.load_default()

Font size up

Korean car number plate 822 images data share

Korean car number plate 822 images,
refer to this link:

Thank you.

pedestrian 29,286 images data

I share pedestrian 29,286 images data.

Thank you.

frontal face 4,429 images (size 24 * 24)

Frontal face 4,429 images
Size is 24 x 24

refer to this link:

*If this data have copyright, please inform to me, I will delete ASAP.

Face 2166 image data

I share face image 2,166 data.
I got these data from an website at very long time ago.
So, I don't remember which site.

If this data have copyright, please inform to me. 
I will delete ASAP.

share link here :

Thank you.


Image data : background images

This is background images those are 12,439.
I used this images for negative data when I train face detection model.

This is random images and there is no specific object.
So it will be use for background image or negative image.

Share link is here:

I hope it help to anyone.
Thank you.


google object detection api error: ModuleNotFoundError: No module named 'pycocotools’

You might see this error : No module named 'pycocotools’, when you try to start train.
I refer to my solution.
Good luck!

ModuleNotFoundError: No module named 'pycocotools’

Solution :
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI

cp -r pycocotools <path_to_object_detection_api>/models/research/

google object detection api error : object_detection/protos/model.proto:12:5: "Ssd" is not defined.

You might meet this error : "object_detection/protos/model.proto:12:5: "Ssd" is not defined.", when you try below command.

# From tensorflow/models/research/
protoc object_detection/protos/*.proto --python_out=.

I solved this error to use below work.

# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip 

# Unzip 
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 

# Move protoc to /usr/local/bin/ 
sudo mv protoc3/bin/* /usr/local/bin/ 

# Move protoc3/include to /usr/local/include/ 
sudo mv protoc3/include/* /usr/local/include/ 

# Optional: change owner 
sudo chwon [user] /usr/local/bin/protoc 
sudo chwon -R [user] /usr/local/include/google 

refer to this url:


python make folder (create directory)

import os

makeFolder = 'folderName'
if not os.path.exists(makeFolder): #if not exist
os.makedirs(makeFolder) #make folder

vs code auto indentations

On Windows Shift + Alt + F
On Mac Shift + Option + F
On Ubuntu Ctrl + Shift +

python pandas, shuffle

refer to example code:

from sklearn.utils import shuffle
import pandas as pd

df = pd.read_csv('test.csv')
df = shuffle(df) #suffle
df.reset_index(drop=True) #index reset
df.to_csv('rfine_table_shuffle.csv', index=False)