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

Image classification

Now let's perform the following steps for image classification:

  1. Go to the image_classification directory, that is, pi/examples/lite/examples/image_classification/raspberry_pi, using the File Manager. You will see a file named classify_picamera.py. Now, go to https://www.tensorflow.org/lite/guide/hosted_models and download the object detection models and label files folder named mobilenet_v2_1.0_224.tflite and the labels_mobilenet_v2_1.0_224.txt file. Copy those files into pi/examples/lite/examples/image_classification/raspberry_pi.
  1. Next, go to the directory using the Terminal using pi/examples/lite/examples/image_classification/raspberry_pi and execute the following command:
$Python3 classify_picamera.py –model mobilenet_v2_1.0_224.tflite ...
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