VS Code extension to edit and manage LVA Edge graph deployments
Перейти к файлу
giakas 65a0506e63
Adding deprecation notice. (#137)
2022-04-29 10:41:59 -07:00
.vscode update extensin version to 0.2.0 (#122) 2021-10-28 10:13:23 -07:00
public Support AVA 1.0 and convert to new Extension "azure-video-analyzer" (#92) 2021-05-20 18:33:02 -07:00
resources fix the icons for topology and pipeline (#126) 2021-11-02 15:56:31 -07:00
src Accessibility fixes (#129) 2022-01-25 15:01:28 -08:00
.eslintrc.js add status icon to the node for errors. (#46) 2020-10-02 09:57:12 -07:00
.gitignore update the Gifs and readme (#93) 2021-05-21 19:17:56 -07:00
.npmrc Added basic functionality and graph editor (#2) 2020-07-21 11:50:05 -07:00
.prettierignore support multi version. automatically load files based on the version. (#80) 2021-03-05 12:26:03 -08:00
.prettierrc Create LVA extenion panel with the tree view (#19) 2020-08-06 14:38:12 -07:00
.vscodeignore configuring webpack. (#65) 2020-12-02 11:16:57 -08:00
CHANGELOG.md Adding deprecation notice. (#137) 2022-04-29 10:41:59 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-07-09 13:03:14 -07:00
CONTRIBUTING.md Support AVA 1.0 and convert to new Extension "azure-video-analyzer" (#92) 2021-05-20 18:33:02 -07:00
LICENSE Initial LICENSE commit 2020-07-09 13:03:15 -07:00
README.md Adding deprecation notice. (#137) 2022-04-29 10:41:59 -07:00
SECURITY.md Initial SECURITY.md commit 2020-07-09 13:03:16 -07:00
config-overrides.js configuring webpack. (#65) 2020-12-02 11:16:57 -08:00
lva-icon.png Update to latest 2.0 swagger and fix a bug where baseclass properties… (#67) 2020-12-08 14:58:55 -06:00
package-lock.json add missing @fluentui/merge-styles dependency. (#125) 2021-11-01 10:13:18 -07:00
package.json Bump version to 0.2.4 and add changelog entry (#130) 2022-01-25 15:22:37 -08:00
package.nls.json fix a string for selecting IoT Device (#127) 2021-11-02 19:03:13 -07:00
patch.diff Support AVA 1.0 and convert to new Extension "azure-video-analyzer" (#92) 2021-05-20 18:33:02 -07:00
tsconfig.json Horizontal views and support for Inputs/outputs (#69) 2020-12-11 11:36:10 -08:00

README.md

Deprecated. Azure Video Analyzer Extension for VSCode

Deprecated. Were retiring the Azure Video Analyzer preview service, you're advised to transition your applications off of Video Analyzer by 01 December 2022. This extension is no longer being maintained.

The Azure Video Analyzer extension makes it easy to edit and manage Video Analyzer pipelines. The steps below closely mirror our how-to guide on how to use the Visual Studio Code extension for Azure Video Analyzer.

If you have already connected to your IoT Hub and are looking for reference on how to use the extension, please go to our reference guide on the Visual Studio Code extension for Azure Video Analyzer.

Suggested Pre-reading

Prerequisites

[!NOTE] The images in this article are based on the Continuous video recording and playback tutorial.

Set up Azure resources

Deploy to Azure

The deployment process will take about 20 minutes. Upon completion, you will have certain Azure resources deployed in the Azure subscription, including:

  1. Video Analyzer account - This cloud service is used to register the Video Analyzer edge module, and for playing back recorded video and video analytics.
  2. Storage account - For storing recorded video and video analytics.
  3. Managed Identity - This is the user assigned managed identity used to manage access to the above storage account.
  4. Virtual machine - This is a virtual machine that will serve as your simulated edge device.
  5. IoT Hub - This acts as a central message hub for bi-directional communication between your IoT application, IoT Edge modules and the devices it manages.

If you run into issues with Azure resources that get created, please view our troubleshooting guide to resolve some commonly encountered issues.

Set up your development environment

Obtain your IoT Hub connection string

To make calls to the Video Analyzer Edge module, a connection string is first needed to connect the Visual Studio Code extension to the IoT Hub.

  1. In the Azure portal, go to your IoT Hub account.
  2. Look for Shared access policies in the left pane and select it.
  3. Select the policy named iothubowner.
  4. Copy the Primary connection string value. It will look like HostName=xxx.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=XXX.

Connect the Visual Studio Code extension to the IoT Hub

Using your IoT Hub connection string, connect the Visual Studio Code extension to the Video Analyzer module.

  1. In Visual Studio Code, select the Azure Video Analyzer icon from the activity bar on the far left-hand side.

  2. In the Video Analyzer extension pane, click on the Enter Connection String button.

  3. At the top, paste the IoT Hub connection string.

  4. Select the device where AVA is deployed. The default is named avasample-iot-edge-device.

  5. Select the Video Analyzer module. The default is named avaedge.

    Gif showing how to enter the connection string

The Video Analyzer extension pane should now show the connected device with all of its modules. Below the modules are where pipeline topologies are listed. By default, there are no pipeline topologies deployed.

Create a pipeline topology

A pipeline topology enables you to describe how live video or recorded videos should be processed and analyzed for your custom needs through a set of interconnected nodes.

  1. On the left under Modules, right click on Pipeline topologies and select Create pipeline topology.

  2. Along the top, under Try sample topologies, under Continuous Video Recording, select Record to Azure Video Analyzer video. When prompted, click Proceed.

  3. Click Save in the top right.

    Gif showing how to add a topology

Notice that there is now an entry in the Pipeline topologies list on the left labeled CVRToVideoSink. This is a pipeline topology, where some of the parameters are defined as variables.

Create a live pipeline

A live pipeline is an instance of a pipeline topology. The variables in a pipeline topology are filled when a live pipeline is created.

  1. On the left under Pipeline topologies, right click on CVRToVideoSink and select Create live pipeline.

  2. For Instance name, put in livePipeline1.

  3. In the Parameters section, under the rtspUrl parameter, put in rtsp://rtspsim:554/media/camera-300s.mkv.

  4. In the top right, click Save and activate.

    Gif showing how to create and activate a live pipeline

Now that a live pipeline has been activated, operational events can be viewed by clicking on the Start Monitoring Built-in Event Endpoint button on the IoT Hub extension, as shown in the Continuous video recording and playback tutorial.

If you are looking for more instructions on the extension, please go to our reference doc on the Visual Studio Code extension for Azure Video Analyzer.

Contributing

Have a suggestion for the Azure Video Analyzer extension? Submit a new issue and a PR with an updated package.json and README.md and we'll take a look!

Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

MIT