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-video-analyzer/video-analyzer-docs/analyze-live-video-custom-vision.md
+5-24Lines changed: 5 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,24 +108,9 @@ After you're finished, you can export the model to a Docker container by using t
108
108
2.`docker image ls`
109
109
110
110
This command checks if the new image is in your local registry.
111
-
3.`docker run -p 127.0.0.1:80:80 -d cvtruck`
112
-
113
-
This command should publish the Docker's exposed port (80) onto your local machine's port (80).
114
-
4.`docker container ls`
115
-
116
-
This command checks the port mappings and if the Docker container is running successfully on your machine. The output should be something like:
117
-
118
-
```
119
-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
120
-
8b7505398367 cvtruck "/bin/sh -c 'python …" 13 hours ago Up 25 seconds 127.0.0.1:80->80/tcp practical_cohen
121
-
```
122
-
5. `curl -X POST http://127.0.0.1:80/score -F imageData=@<path to any image file that has the toy delivery truck in it>`
123
-
124
-
This command tests the container on the local machine. If the image has the same delivery truck as we trained the model on, the output should be something like the following example. It suggests the delivery truck was detected with 90.12% probability.
[!INCLUDE [setup development environment](./includes/set-up-dev-environment/csharp/csharp-set-up-dev-env.md)]
129
114
130
115
## Examine the sample files
131
116
@@ -184,15 +169,11 @@ After you're finished, you can export the model to a Docker container by using t
184
169
- A module named `rtspsim`, which simulates an RTSP server that acts as the source of a live video feed.
185
170
- A module named `cv`, which as the name suggests is the Custom Vision toy truck detection model that applies Custom Vision to the images and returns multiple tag types. (Our model was trained on only one tag, delivery truck.)
186
171
187
-
## Prepare for monitoring events
188
-
189
-
Right-click the ava-sample-device, and select **Start Monitoring Built-in Event Endpoint**. You need this step to monitor the IoT Hub events in the **OUTPUT** window of Visual Studio Code.
190
172
191
-

192
173
193
174
## Run the sample program
194
175
195
-
If you open the topology for this tutorial in a browser, you'll see that the value of `inferencingUrl` has been set to `http://cv/image`. This setting means the inference server will return results after detecting toy trucks, if any, in the live video.
176
+
If you open the topology for this tutorial in a browser, you'll see that the value of `inferencingUrl` has been set to `http://cv/score`. This setting means the inference server will return results after detecting toy trucks, if any, in the live video.
196
177
197
178
1. In Visual Studio Code, open the **Extensions** tab (or select **Ctrl+Shift+X**) and search for Azure IoT Hub.
198
179
2. Right-click and select **Extension Settings**.
@@ -219,7 +200,7 @@ If you open the topology for this tutorial in a browser, you'll see that the val
0 commit comments