Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Artificial Vision and Language Processing for Robotics

You're reading from   Artificial Vision and Language Processing for Robotics Create end-to-end systems that can power robots with artificial vision and deep learning techniques

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781838552268
Length 356 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
 Morena Alberola Morena Alberola
Author Profile Icon Morena Alberola
Morena Alberola
 Molina Gallego Molina Gallego
Author Profile Icon Molina Gallego
Molina Gallego
 Garay Maestre Garay Maestre
Author Profile Icon Garay Maestre
Garay Maestre
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

About the Book 1. Fundamentals of Robotics FREE CHAPTER 2. Introduction to Computer Vision 3. Fundamentals of Natural Language Processing 4. Neural Networks with NLP 5. Convolutional Neural Networks for Computer Vision 6. Robot Operating System (ROS) 7. Build a Text-Based Dialogue System (Chatbot) 8. Object Recognition to Guide a Robot Using CNNs 9. Computer Vision for Robotics 1. Appendix

Multiple Object Recognition and Detection in Video

Multiple object recognition and detection in static images sounds amazing, but what about detecting and recognizing objects in a video?

You can download any video from the internet and try to detect and recognize all the objects that show up in the video.

The process to follow would be to get every frame of the video and for every frame, detect the corresponding objects and their labels.

Declare the corresponding libraries first:

from imageai.Detection import VideoObjectDetection

from matplotlib import pyplot as plt

The imageai library contains an object that allows the user to apply object detection and recognition to the video:

video_detector = VideoObjectDetection()

We need VideoObjectDetection so that we can detect objects in video. Moreover, Matplotlib is needed to show the detection process for every frame:

Figure 8.6: ImageAI one-frame object detection process
Figure 8.6: ImageAI one-frame object detection process

Now we will first need to load the model. You can decide what...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images