Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Computer Vision Workshop

You're reading from   The Computer Vision Workshop Develop the skills you need to use computer vision algorithms in your own artificial intelligence projects

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781800201774
Length 568 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Nikhil Singh Nikhil Singh
Author Profile Icon Nikhil Singh
Nikhil Singh
Hafsa Asad Hafsa Asad
Author Profile Icon Hafsa Asad
Hafsa Asad
Vishwesh Ravi Shrimali Vishwesh Ravi Shrimali
Author Profile Icon Vishwesh Ravi Shrimali
Vishwesh Ravi Shrimali
Arrow right icon
View More author details
Toc

8. OpenVINO with OpenCV

Activity 8.01: Face Detection Using OpenVINO and OpenCV

Solution:

  1. We will create a new Jupyter notebook and name it Activity8.01.ipynb. We will be writing our code in this notebook.
  2. First, we will load the required modules:
    # Load the required modules
    import os
    import cv2
    import numpy as np
  3. Next, let's specify the path to the downloader script:
    # Specify the path to the downloader script
    DOWNLOADER_SCRIPT = "/opt/intel/openvino/deployment_tools/"\
                        "open_model_zoo/tools/"\
                        "downloader/downloader.py"
  4. We will also specify the model name, output directory, and precision.

    The code for this is as follows:

    # Specify the model name which we want to download
    MODEL_NAME = &quot...
lock icon The rest of the chapter is locked
arrow left Previous Section
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 $19.99/month. Cancel anytime
Banner background image