Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

Annotating images to create a .xml file

In this section, we will describe how to create an annotation file. There is one annotation file that corresponds to each image file. The annotation file is typically in .xml format. The steps to create the annotation file are described here:

  1. In this step, use labelImg to create an annotation file. This step has already been discussed in Chapter 7, Object Detection Using YOLO, but is repeated here again. Download labelImg using the terminal command pip install labelImg.
  2. After downloading it, just type labelImg in the terminal to open.
  3. Define your source (the .jpg file) and your destination (the .xml file) directory.
  4. Select each image and draw a rectangle around it. Define the class name and save it. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content