Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 80a2528

Browse files
authored
Update analytics guide (#887)
1 parent 2a2712f commit 80a2528

File tree

1 file changed

+34
-5
lines changed

1 file changed

+34
-5
lines changed

doc/servermd/AnalyticsGuide.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ cd owt-server/docker
5252
Then owt:openvino image will be created with all the video analytics needed software installed. Then you can launch the container and copy OWT package into the container:
5353
````
5454
docker run -itd --net=host --name=gst-analytics owt:openvino bash
55-
docker cp Release-vxxx.tgz gst-analytics:/home/
5655
docker exec -it gst-analytics bash
5756
````
5857

@@ -91,8 +90,7 @@ Follow Model Downloader guide (open_model_zoo-2020.4/tools/downloader/README.md
9190

9291
After all the dependencies are installed, you can follow commands below to build sample video analytics plugins in docker container or host machine:
9392
````
94-
tar zxf Release-vxxx.tgz
95-
cd Release-vxxx/analytics_agent/plugins/samples
93+
cd /home/owt/analytics_agent/plugins/samples
9694
./build_samples.sh
9795
cp build/intel64/Release/lib/lib* ../../lib/
9896
````
@@ -134,8 +132,8 @@ Make sure you copy pipeline binaries to ````dist/analytics_agent/lib/````directo
134132
Start up MCU in Docker container:
135133

136134
````
137-
cd Release-vxxx
138-
./bin/init-all.sh --deps ##default password for user owt is owt
135+
cd /home/owt
136+
./bin/init-all.sh ##default password for user owt is owt
139137
./bin/start-all.sh
140138
````
141139

@@ -154,6 +152,37 @@ cp ${OWT_SOURCE_CODE}/docker/analyticspage/samplertcservice.js apps/current_app/
154152
./bin/start-all.sh
155153
````
156154

155+
OWT sample web page will download jquery-3.2.1.min.js and socket.io.js files from internet, for network that cannot successfully download these 2 files following errors will print on Chrome console:
156+
```
157+
index.js:52 Uncaught (in promise) ReferenceError: $ is not defined
158+
at createResolutionButtons (index.js:52)
159+
at subscribeAndRenderVideo (index.js:100)
160+
at index.js:194
161+
createResolutionButtons @ index.js:52
162+
subscribeAndRenderVideo @ index.js:100
163+
(anonymous) @ index.js:194
164+
Promise.then (async)
165+
(anonymous) @ index.js:143
166+
req.onreadystatechange @ rest-sample.js:12
167+
XMLHttpRequest.send (async)
168+
send @ rest-sample.js:19
169+
createToken @ rest-sample.js:79
170+
window.onload @ index.js:141
171+
load (async)
172+
runSocketIOSample @ index.js:134
173+
(anonymous) @ (index):53
174+
index.js:176 Uncaught (in promise) ReferenceError: $ is not defined
175+
at index.js:176
176+
```
177+
If this error happens, please manually download js files and replace them in docker image as:
178+
```
179+
wget https://raw.githubusercontent.com/qwu16/jsfiles/master/jquery-3.2.1.min.js
180+
wget https://raw.githubusercontent.com/qwu16/jsfiles/master/socket.io.js
181+
docker cp socket.io.js owt:/home/owt/apps/current_app/public/scripts/
182+
docker cp jquery-3.2.1.min.js owt:/home/owt/apps/current_app/public/scripts/
183+
vim /home/owt/apps/current_app/public/index.html ### Modify file path of socket.io.js and jquery-3.2.1.min.js in index.html
184+
```
185+
157186
### 3.3 Test Media Analytics Pipelines<a name="test3"></a>
158187

159188
Make sure the camera is accessible and start up Chrome browser on your desktop:````https://your_mcu_url:3004````

0 commit comments

Comments
 (0)