Labeling the images
This chapter uses labelImg
to perform data labeling for object detection tasks. This tool requires installation on the local computer. Therefore, if you downloaded your images using Google Colab to your Google Drive, you need to map or download these images to a local computer to perform labeling. Run the following snippet in a terminal on a local computer to install labelImg
using Python 3 (if you are running Python 2, please refer to the labelImg
website for a guide):
pip3 install labelImg
After installing, run the following snippet to start the tool, where [IMAGE_PATH]
is an optional argument to specify the path to the image folder, and [PRE-DEFINED CLASS FILE]
is another optional argument to indicate the path to a text file (*.txt
) that defines a list of class labels (one per line):
labelImg [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
For instance, after downloading/synchronizing the simple_images
folder for the downloaded images in the previous steps...