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

Preprocessing within the Keras–Python code

In this section, we will read the CSV file as X and Y data, where X is the image corresponding to each filename, and Y has 32 values for 16 key-points coordinate. We will then slice the Y data into 16 Yx and Yy coordinates for each of the key-points. The detailed steps are shown as follows:

  1. Read the CSV file from the previous section using the standard Python command. Here, we use two CSVs, trainimgface.csv, and testimgface.csv, located in the faceimagestrain directory. You can use a different folder if you want:
train_path = 'faceimagestrain/trainimgface.csv'test_path = 'faceimagestrain/testimgface.csv'train_data = pd.read_csv(train_path) test_data = pd.read_csv(test_path)
  1. Next, we find the ...
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