You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-percept/create-people-counting-solution-with-azure-percept-devkit-vision.md
+37-39Lines changed: 37 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Create a people counting solution with Azure Percept DK and Azure Percept Vision
2
+
title: Create a people counting solution with Azure Percept Vision
3
3
description: This guide will focus on detecting and counting people using the Azure Percept DK hardware, Azure IoT Hub, Azure Stream Analytics, and Power BI dashboard.
4
4
author: nkhuyent
5
5
ms.author: sbhasale
@@ -10,7 +10,7 @@ ms.custom: template-tutorial
10
10
---
11
11
12
12
13
-
# Tutorial: Create a People Counting Solution with Azure Percept DK and Azure Percept Vision
13
+
# Create a people counting solution with Azure Percept Vision
14
14
This guide will focus on detecting and counting people using the Azure Percept DK hardware, Azure IoT Hub, Azure Stream Analytics, and Power BI dashboard.
15
15
16
16
The tutorial is intended to show detailed steps on how users can create, configure, and implement the basic components of this solution. Users can easily expand the tutorial and create additional ways to visualize people counting data.
@@ -27,11 +27,11 @@ In this tutorial, you learn how to:
27
27
- Create a Container Registry resource
28
28
- Build and push your edge solution to Container Registry
29
29
- Deploy edge solution to device
30
-
- Add a Consumer group to your IoT Hub
30
+
- Add a consumer group to your IoT Hub
31
31
- Create a Stream Analytics Job
32
32
- Create and publish a Power BI report to visualize data
@@ -74,7 +74,7 @@ Setting up the Azure Percept DK is the first step in the tutorial. Below are the
74
74
Azure Container Registry is a managed, private Docker registry service based on the open-souce Docker Registry. Container Registries are used to manage and store your private Docker containers images and related artifacts.
75
75
76
76
1. Login to Azure portal https://portal.azure.com/
77
-
2. To create a Container Registry, go to [Create container registry - Microsoft Azure](https://portal.azure.com/#create/Microsoft.ContainerRegistry)
77
+
2. To create a Container Registry, go to [Create container registry - Microsoft Azure](https://ms.portal.azure.com/#create/Microsoft.ContainerRegistry)
78
78
79
79
a. Select your Azure Subscription in the `Subscription` drop-down box
80
80
@@ -90,11 +90,11 @@ Azure Container Registry is a managed, private Docker registry service based on
90
90
91
91
g. Keep all other tab as default and click `Review + create` at the bottom of the screen. Once the validation passes, click `Create`. This will create your Container Registry.
3. After successful resource deployment go to your container registry resource. On the left scroll panel select `Access Keys` under `Settings` and `enable` the `Admin user`
5. Go to the git repository and `people-counting-with-azure-percept-vision` directory and rename `envtemplate` to `.env`. Open the file and fill in the following details-
99
99
100
100
a. CONTAINER_REGISTRY_USERNAME= your container registry Username
@@ -141,7 +141,7 @@ This section guides users on modifying the cloned people counting repo with thei
141
141
142
142
8. To further verify what the build and push command did, go to the Azure portal, and navigate to your container registry. In your container registry, select `Repositories` then `countmodule`
@@ -161,64 +161,65 @@ Step 3 will guide users on creating and deploying a manifest to the Azure Percep
161
161
162
162

163
163
164
-
5. Go to [Azure Percept Studio](https://portal.azure.com/#blade/AzureEdgeDevices/Main/devices) and on the left panel, select Devices, then select your Azure Percept device
164
+
5. Go to [Azure Percept Studio](https://ms.portal.azure.com/#blade/AzureEdgeDevices/Main/devices) and on the left panel, select Devices, then select your Azure Percept device
6. Ensure that your device is `Connected`. Click on `Vision`
169
169
170
-

170
+
:::image type="content" source="./media/create-people-counting-solution-with-azure-percept-vision-images/vision.png" alt-text="check for device connected.":::
171
171
172
172
7. Click `View your device stream `
173
173
174
-

174
+
:::image type="content" source="./media/create-people-counting-solution-with-azure-percept-vision-images/device-stream.png" alt-text="View your device stream.":::
175
175
176
176
8. The previous step will deploy modules to your device. In the `Notifications` tab click `View Stream`. This will open a new tab in your browser, please verify that you see the video stream. If you point the camera module to a person then you will see the person detection with bounding box
177
177
178
-

178
+
:::image type="content" source="./media/create-people-counting-solution-with-azure-percept-vision-images/stream.png" alt-text="Verify the video stream.":::
179
179
180
180
9. After verifying the video stream and bounding boxes, please close the web stream browser tab.
181
181
182
182
10. To ensure the Count Module is setup correctly, in the Azure portal go to your IoT Hub. On the left panel under `Device management `select `IoT Edge`
15. Ensure you see `People_Count` logs as follows-
203
204
204
-

205
+
:::image type="content" source="./media/create-people-counting-solution-with-azure-percept-vision-images/logs.png" alt-text="Check the box.":::
205
206
206
207
207
-
## Step 4: Add a Consumer group to your IoT Hub
208
-
Consumer groups provide independent views into the event stream that enable apps and Azure services to independently consume data. This consumer group will be used by the Stream Analytics Job we will create in Step 5.
208
+
## Step 4: Add a consumer group to your IoT Hub
209
+
Consumer Groups provide independent views into the event stream that enable apps and Azure services to independently consume data. This consumer group will be used by the Stream Analytics Job we will create in Step 5.
209
210
210
211
1. In the [Azure portal](https://portal.azure.com), go to your IoT hub which is connected to your Azure Percept DK.
211
212
212
-
2. On the left pane, select `Hub settings > Built-in endpoints`. Enter a name for your new consumer group in the text box under `Consumer groups`
213
+
2. On the left pane, select `Hub settings > Built-in endpoints`. Enter a name for your new consumer group in the text box under `Consumer Groups`
3. Click anywhere outside the text box to save the consumer group
217
218
218
-
## Step 5: Create a Stream Analytics Job
219
+
## Step 5: Create a Stream Analytics job
219
220
Step 5 guides users through creating, configuring, and running a Stream Analytics job. Stream Analytics is a hot path to stream data from out Azure IoT Hub to a Power BI workspace in real time. We will create a query so only People Counting telemetry will be streamed. Once People Counting data is in our Power BI workspace it will be easy to render with a Power BI report.
220
221
221
-
1. Go to New [Stream Analytics job - Microsoft Azure](https://portal.azure.com/#create/Microsoft.StreamAnalyticsJob)
222
+
1. Go to New [Stream Analytics job - Microsoft Azure](https://ms.portal.azure.com/#create/Microsoft.StreamAnalyticsJob)
222
223
223
224
2. Enter the following information for the job -
224
225
@@ -228,7 +229,7 @@ Step 5 guides users through creating, configuring, and running a Stream Analytic
228
229
229
230
-`Location` - Use the same location as your resource group.
@@ -278,7 +279,7 @@ Step 5 guides users through creating, configuring, and running a Stream Analytic
278
279
2. Under `Job topology`, select `Outputs`
279
280
3. In the `Outputs` pane, select `Add`, and then select `Power BI` from the drop-down list
280
281
281
-

282
+
:::image type="content" source="./media/create-people-counting-solution-with-azure-percept-vision-images/stream-analytics-output.png" alt-text="Add an output.":::
282
283
283
284
4. Enter the following information-
284
285
@@ -292,7 +293,7 @@ Step 5 guides users through creating, configuring, and running a Stream Analytic
292
293
293
294
e. `Authentication mode` - Leave as the default
294
295
295
-

296
+
:::image type="content" source="./media/create-people-counting-solution-with-azure-percept-vision-images/stream-analytics-output-fields.png" alt-text="Power BI new output fields.":::
296
297
297
298
5. On the `Power BI - New output` pane, select `Authorize` and follow the prompts to sign into your Power BI account
298
299
@@ -311,7 +312,7 @@ Step 5 guides users through creating, configuring, and running a Stream Analytic
0 commit comments