Skip to content

Commit 0ebba72

Browse files
author
ChrisMaunder
committed
Added video demo to Explorer
1 parent 755ecc7 commit 0ebba72

File tree

3 files changed

+1258
-1088
lines changed

3 files changed

+1258
-1088
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,3 +376,5 @@ FodyWeavers.xsd
376376
*.DS_Store
377377

378378
/demos/Python/Vision/detected
379+
/src/AnalysisLayer/ObjectDetectionYolo/assets
380+
/src/AnalysisLayer/ObjectDetectionYolo/custom-models

src/API/Server/FrontEnd/wwwroot/Index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@
6767
</style>
6868
<script type="text/javascript">
6969

70-
const apiServiceUrl = (window.location.protocol || "http:") + "//"
71-
+ (window.location.hostname || "localhost")
72-
+ ":" + (window.location.port || 32168);
73-
7470
const pingFrequency = 2000; // milliseconds
7571
const logFrequency = 250; // milliseconds
7672
const statusFrequency = 3000; // milliseconds
7773
const checkUpdateFrequency = 1 * 3600 * 1000; // 1hr in milliseconds
78-
7974
const logLinesPerRequest = 100; // lines to retrieve per log request
8075
const maxLogStorage = 50000; // characters, including HTML
8176

77+
const apiServiceProtocol = window.location.protocol;
78+
const apiServiceHostname = window.location.hostname || "localhost";
79+
const apiServicePort = window.location.port === "" ? "" : ":" + (window.location.port || 32168);
80+
const apiServiceUrl = `${apiServiceProtocol}//${apiServiceHostname}${apiServicePort}`;
81+
8282
let _usingGPU = false;
8383
let _lastLogId = 0;
8484
let _serverIsOnline = false;

0 commit comments

Comments
 (0)