# Edge AI Box for Video Analytics

Version: 2.0   Published: 06/28/2021

Last Updated: 03/28/2022

## Overview

Integrate video decode on multiple streams with video analytics. Configure your application end-to-end with flexible AI capacity and a Reference Video Analytics pipeline for fast development.

Edge AI Box for Video Analytics is available in two install scripts – development and deployment – for different stages of the solution development cycle.

Edge AI Box for Video Analytics can be a standalone device connected to cameras to enable edge analytics in real time. In addition, it can be connected to the network and serve as a discrete AI service on the network to run offline deep learning analytics on-demand.

 Programming Language Available Software Python, C , C++ Intel® Distribution of OpenVINO™ toolkit 2021.4.2

Recommended Hardware
The below hardware is recommended for use with this package. See the Recommended Hardware page for other suggestions.

## Target System Requirements

• 11th and 12th Generation Intel® Core™ processors and Celeron® processors
• Operating System:
• Ubuntu* 20.04 with Kernel Version 5.8 or newer
• Ubuntu* 20.04 with Kernel Version 5.15 for 12th Generation Intel® Core™ processors
• At least 128GB disk space
• At least 8GB (4GB x2) memory with 8GB swap space
• Direct Internet Access

## How It Works

Edge AI Box for Video Analytics creates a full video analytics pipeline for lightweight edge devices. This package is optimized for 11th and 12th Generation Intel® Core™ processors and Celeron® processors, which come with integrated graphics capable of offering AI computing accelerations with both performance and efficiency.

Pick the software modules required for your solution and download the installation scripts accordingly. In this release, different flavors of installation scripts are provided – Development and Deployment. (see Figure 1)

### Development Package

The development package makes the necessary modules available (see Figure 2):

• Intel® Distribution of OpenVINO™ toolkit
• Intel® Media SDK
• RTSP server
• MQTT service
• TensorFlow Bridge
• Gstreamer
• Intel® Deep Learning Streamer (Intel® DL Streamer)
• SQLite DB*
• Docker Community Edition (CE)*
• Docker Compose*

Other components are available in containers, such as Cloud Service Provider connectors (Microsoft Azure* and AWS*), InfluxDB* database, and containerized OpenVINO™ toolkit. The development package targets to provide full SDK or toolkits for you to set up your development environment with the least effort.

### Deployment Package

The deployment package has the same key software available as the deployment package, but the preselected modules are mainly run-time libraries. The objective is to minimize the installation footprint of the package, so that it is suitable for being deployed to the edge devices where memory and storage could be constrained resources.

Figure 1: Usage of Edge AI Box for Video Analytics – Development and Deployment.

As depicted in Figure 2, the integrated GPU (iGPU) is the primary target platform where AI workloads are deployed. The CSP connectors are the interface for the Edge AI Box to leverage cloud services to create edge-to-cloud functions such as telemetry, device onboarding, and manageability. Furthermore, we also have a number of reference implementations, such as Smart Video AI Workload, as a quick demo tool for developers to evaluate the performance of the Edge AI Box hardware.

Figure 2: Software Stack Diagram of the AI Box for Video Analytics

## Get Started

### Prerequisites

• Root password must be set for the system.
• For 12th Generation Intel® Core™ Processors or Celeron® processors (products formerly Alder Lake) to work with GPU accelerators, complete the steps below:
• sudo vim /etc/default/grub
• Append “i915.force_probe=*” to the end of GRUB_CMDLINE_LINUX_DEFAULT:
• GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.force_probe=*"
• sudo update-grub
• sudo reboot

NOTE: These steps are also required for Smart Video AI Workload reference implementation.

### Install the Package

Select Configure & Download to download the package and then follow the steps below to install it.

1. Open a new terminal, go to the downloaded folder and unzip the downloaded package:
unzip edge_ai_box_for_video_analytics.zip

2.  Go to the edge_ai_box_for_video_analytics/ directory:
cd edge_ai_box_for_video_analytics

3. Change permission of the executable edgesoftware file:
chmod 755 edgesoftware

4. Run the command below to install the package:
./edgesoftware install

5. During the installation, you will be prompted for the Product Key. The Product Key is contained in the email you received from Intel confirming your download.

6. When the installation is complete, you see the message “Installation of package complete” and the installation status for each module.

## Build a Solution Based on the Package

Use the Single and Multi-object Detection with Hardware Acceleration tutorial application.

In addition, explore the demos located in the OpenVINO™ integration with TensorFlow* examples directory.

To connect an IoT Plug and Play bridge sample running on Linux to Azure* IoT Hub, go through the sample with previously installed azure_cli, Azure IoT explorer and cloned repository.

## Summary and Next Steps

With this application you successfully created a full video analytics pipeline for lightweight edge devices.

As a next step, try the Smart Video AI Workload reference implementation.

To continue learning, see the following guides and software resources:

## Support Forum

If you're unable to resolve your issues, contact the Support Forum.

#### Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.