scrypted-detection-trainer 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.nodejs.js +1 -1
- package/dist/main.nodejs.js.map +1 -1
- package/dist/plugin.zip +0 -0
- package/out/main.nodejs.js +4 -2
- package/out/main.nodejs.js.map +1 -1
- package/out/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/main.ts +5 -2
package/out/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -112,6 +112,8 @@ class DetectionTrainer extends ScryptedDeviceBase implements Settings, HttpReque
|
|
|
112
112
|
d.interfaces?.includes(ScryptedInterface.ObjectDetector)
|
|
113
113
|
);
|
|
114
114
|
|
|
115
|
+
const uiUrl = await sdk.endpointManager.getLocalEndpoint(undefined, { public: true }).catch(() => '/endpoint/scrypted-detection-trainer/public/');
|
|
116
|
+
|
|
115
117
|
const settings: Setting[] = [
|
|
116
118
|
{
|
|
117
119
|
key: 'info',
|
|
@@ -121,11 +123,12 @@ class DetectionTrainer extends ScryptedDeviceBase implements Settings, HttpReque
|
|
|
121
123
|
value: '',
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
|
-
key: '
|
|
126
|
+
key: 'open_ui',
|
|
125
127
|
title: 'Review UI',
|
|
126
128
|
description: 'Open the detection review and labeling interface.',
|
|
129
|
+
type: 'html',
|
|
127
130
|
readonly: true,
|
|
128
|
-
value:
|
|
131
|
+
value: `<a href="${uiUrl}" target="_blank" style="display:inline-block;padding:8px 16px;background:#1a4d8a;color:#fff;border-radius:6px;text-decoration:none;font-size:13px;">Open Review UI ↗</a>`,
|
|
129
132
|
},
|
|
130
133
|
];
|
|
131
134
|
|