@camstack/addon-provider-rtsp 1.2.23 → 1.2.25
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/addon.js +204 -61
- package/dist/addon.mjs +204 -61
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7622,7 +7622,7 @@ var RecordingBandSchema = object({
|
|
|
7622
7622
|
postBufferSec: number().min(0).optional()
|
|
7623
7623
|
});
|
|
7624
7624
|
({
|
|
7625
|
-
preBufferSec:
|
|
7625
|
+
preBufferSec: 15,
|
|
7626
7626
|
postBufferSec: 30
|
|
7627
7627
|
}).postBufferSec * 1e3;
|
|
7628
7628
|
/**
|
|
@@ -13825,128 +13825,103 @@ var COCO_TO_MACRO = {
|
|
|
13825
13825
|
var AUDIO_MACRO_LABELS = [
|
|
13826
13826
|
{
|
|
13827
13827
|
id: "speech",
|
|
13828
|
-
name: "Speech"
|
|
13829
|
-
icon: "🗣️"
|
|
13828
|
+
name: "Speech"
|
|
13830
13829
|
},
|
|
13831
13830
|
{
|
|
13832
13831
|
id: "scream",
|
|
13833
|
-
name: "Scream / Shout"
|
|
13834
|
-
icon: "😱"
|
|
13832
|
+
name: "Scream / Shout"
|
|
13835
13833
|
},
|
|
13836
13834
|
{
|
|
13837
13835
|
id: "crying",
|
|
13838
|
-
name: "Crying / Baby"
|
|
13839
|
-
icon: "😢"
|
|
13836
|
+
name: "Crying / Baby"
|
|
13840
13837
|
},
|
|
13841
13838
|
{
|
|
13842
13839
|
id: "laughter",
|
|
13843
|
-
name: "Laughter"
|
|
13844
|
-
icon: "😂"
|
|
13840
|
+
name: "Laughter"
|
|
13845
13841
|
},
|
|
13846
13842
|
{
|
|
13847
13843
|
id: "music",
|
|
13848
|
-
name: "Music"
|
|
13849
|
-
icon: "🎵"
|
|
13844
|
+
name: "Music"
|
|
13850
13845
|
},
|
|
13851
13846
|
{
|
|
13852
13847
|
id: "dog",
|
|
13853
|
-
name: "Dog"
|
|
13854
|
-
icon: "🐕"
|
|
13848
|
+
name: "Dog"
|
|
13855
13849
|
},
|
|
13856
13850
|
{
|
|
13857
13851
|
id: "cat",
|
|
13858
|
-
name: "Cat"
|
|
13859
|
-
icon: "🐈"
|
|
13852
|
+
name: "Cat"
|
|
13860
13853
|
},
|
|
13861
13854
|
{
|
|
13862
13855
|
id: "bird",
|
|
13863
|
-
name: "Bird"
|
|
13864
|
-
icon: "🐦"
|
|
13856
|
+
name: "Bird"
|
|
13865
13857
|
},
|
|
13866
13858
|
{
|
|
13867
13859
|
id: "animal",
|
|
13868
|
-
name: "Animal (other)"
|
|
13869
|
-
icon: "🐾"
|
|
13860
|
+
name: "Animal (other)"
|
|
13870
13861
|
},
|
|
13871
13862
|
{
|
|
13872
13863
|
id: "alarm",
|
|
13873
|
-
name: "Alarm / Siren"
|
|
13874
|
-
icon: "🚨"
|
|
13864
|
+
name: "Alarm / Siren"
|
|
13875
13865
|
},
|
|
13876
13866
|
{
|
|
13877
13867
|
id: "doorbell",
|
|
13878
|
-
name: "Doorbell / Knock"
|
|
13879
|
-
icon: "🔔"
|
|
13868
|
+
name: "Doorbell / Knock"
|
|
13880
13869
|
},
|
|
13881
13870
|
{
|
|
13882
13871
|
id: "glass_breaking",
|
|
13883
|
-
name: "Glass Breaking"
|
|
13884
|
-
icon: "💥"
|
|
13872
|
+
name: "Glass Breaking"
|
|
13885
13873
|
},
|
|
13886
13874
|
{
|
|
13887
13875
|
id: "gunshot",
|
|
13888
|
-
name: "Gunshot / Explosion"
|
|
13889
|
-
icon: "💣"
|
|
13876
|
+
name: "Gunshot / Explosion"
|
|
13890
13877
|
},
|
|
13891
13878
|
{
|
|
13892
13879
|
id: "vehicle",
|
|
13893
|
-
name: "Vehicle"
|
|
13894
|
-
icon: "🚗"
|
|
13880
|
+
name: "Vehicle"
|
|
13895
13881
|
},
|
|
13896
13882
|
{
|
|
13897
13883
|
id: "siren",
|
|
13898
|
-
name: "Emergency Siren"
|
|
13899
|
-
icon: "🚑"
|
|
13884
|
+
name: "Emergency Siren"
|
|
13900
13885
|
},
|
|
13901
13886
|
{
|
|
13902
13887
|
id: "fire",
|
|
13903
|
-
name: "Fire / Smoke"
|
|
13904
|
-
icon: "🔥"
|
|
13888
|
+
name: "Fire / Smoke"
|
|
13905
13889
|
},
|
|
13906
13890
|
{
|
|
13907
13891
|
id: "water",
|
|
13908
|
-
name: "Water"
|
|
13909
|
-
icon: "💧"
|
|
13892
|
+
name: "Water"
|
|
13910
13893
|
},
|
|
13911
13894
|
{
|
|
13912
13895
|
id: "wind",
|
|
13913
|
-
name: "Wind / Weather"
|
|
13914
|
-
icon: "🌬️"
|
|
13896
|
+
name: "Wind / Weather"
|
|
13915
13897
|
},
|
|
13916
13898
|
{
|
|
13917
13899
|
id: "door",
|
|
13918
|
-
name: "Door"
|
|
13919
|
-
icon: "🚪"
|
|
13900
|
+
name: "Door"
|
|
13920
13901
|
},
|
|
13921
13902
|
{
|
|
13922
13903
|
id: "footsteps",
|
|
13923
|
-
name: "Footsteps"
|
|
13924
|
-
icon: "👣"
|
|
13904
|
+
name: "Footsteps"
|
|
13925
13905
|
},
|
|
13926
13906
|
{
|
|
13927
13907
|
id: "crowd",
|
|
13928
|
-
name: "Crowd / Chatter"
|
|
13929
|
-
icon: "👥"
|
|
13908
|
+
name: "Crowd / Chatter"
|
|
13930
13909
|
},
|
|
13931
13910
|
{
|
|
13932
13911
|
id: "telephone",
|
|
13933
|
-
name: "Telephone"
|
|
13934
|
-
icon: "📞"
|
|
13912
|
+
name: "Telephone"
|
|
13935
13913
|
},
|
|
13936
13914
|
{
|
|
13937
13915
|
id: "engine",
|
|
13938
|
-
name: "Engine / Motor"
|
|
13939
|
-
icon: "⚙️"
|
|
13916
|
+
name: "Engine / Motor"
|
|
13940
13917
|
},
|
|
13941
13918
|
{
|
|
13942
13919
|
id: "tools",
|
|
13943
|
-
name: "Tools / Construction"
|
|
13944
|
-
icon: "🔨"
|
|
13920
|
+
name: "Tools / Construction"
|
|
13945
13921
|
},
|
|
13946
13922
|
{
|
|
13947
13923
|
id: "silence",
|
|
13948
|
-
name: "Silence"
|
|
13949
|
-
icon: "🤫"
|
|
13924
|
+
name: "Silence"
|
|
13950
13925
|
}
|
|
13951
13926
|
];
|
|
13952
13927
|
var YAMNET_TO_MACRO = {
|
|
@@ -16448,7 +16423,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16448
16423
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16449
16424
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16450
16425
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16451
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16426
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16452
16427
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16453
16428
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16454
16429
|
* (`getObjectEvents` et al.).
|
|
@@ -16743,6 +16718,35 @@ var TrackSchema = object({
|
|
|
16743
16718
|
*/
|
|
16744
16719
|
hasFace: boolean().optional(),
|
|
16745
16720
|
/**
|
|
16721
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16722
|
+
* face an operator could ASSIGN to an identity.
|
|
16723
|
+
*
|
|
16724
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16725
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16726
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16727
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16728
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16729
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16730
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16731
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16732
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16733
|
+
* operator something to assign and delivers nothing.
|
|
16734
|
+
*
|
|
16735
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16736
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16737
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16738
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16739
|
+
*
|
|
16740
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16741
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16742
|
+
*
|
|
16743
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16744
|
+
* before the column omits it, and so does every server that predates the
|
|
16745
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16746
|
+
* never infer "no assignable face".
|
|
16747
|
+
*/
|
|
16748
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16749
|
+
/**
|
|
16746
16750
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16747
16751
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16748
16752
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18132,6 +18136,32 @@ var DetailResultSchema = object({
|
|
|
18132
18136
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18133
18137
|
bbox: NativeCropBboxSchema.optional(),
|
|
18134
18138
|
embedding: string().optional(),
|
|
18139
|
+
/**
|
|
18140
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18141
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18142
|
+
* the consuming gate treats as accept — never as reject.
|
|
18143
|
+
*/
|
|
18144
|
+
embeddingMagnitude: number().optional(),
|
|
18145
|
+
/**
|
|
18146
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18147
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18148
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18149
|
+
* the inference this model exists to forbid.
|
|
18150
|
+
*
|
|
18151
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18152
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18153
|
+
* its previous assumption instead of refusing.
|
|
18154
|
+
*
|
|
18155
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18156
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18157
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18158
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18159
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18160
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18161
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18162
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18163
|
+
*/
|
|
18164
|
+
embeddingModelId: string().optional(),
|
|
18135
18165
|
label: string().optional(),
|
|
18136
18166
|
/**
|
|
18137
18167
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19007,6 +19037,12 @@ var CameraStatusSchema = object({
|
|
|
19007
19037
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
19008
19038
|
fetchedAt: number()
|
|
19009
19039
|
});
|
|
19040
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19041
|
+
"disabled",
|
|
19042
|
+
"unavailable",
|
|
19043
|
+
"cannot-host-camera-root",
|
|
19044
|
+
"accelerator-preferred"
|
|
19045
|
+
]);
|
|
19010
19046
|
var NodeInferenceDeviceSchema = object({
|
|
19011
19047
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
19012
19048
|
key: string(),
|
|
@@ -19037,7 +19073,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19037
19073
|
* available per format; this is the stored selection that becomes the
|
|
19038
19074
|
* default for EVERY camera landing on this accelerator.
|
|
19039
19075
|
*/
|
|
19040
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19076
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19077
|
+
/**
|
|
19078
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19079
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19080
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19081
|
+
* never disagree with the election — deriving it in the UI from
|
|
19082
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19083
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19084
|
+
* "an accelerator is serving" predicate).
|
|
19085
|
+
*/
|
|
19086
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19041
19087
|
});
|
|
19042
19088
|
var NodeInferenceDevicesSchema = object({
|
|
19043
19089
|
nodeId: string(),
|
|
@@ -19596,6 +19642,7 @@ var snapshotCapability = {
|
|
|
19596
19642
|
isBattery: boolean(),
|
|
19597
19643
|
reason: _enum([
|
|
19598
19644
|
"disabled",
|
|
19645
|
+
"offline",
|
|
19599
19646
|
"sleeping",
|
|
19600
19647
|
"unreachable",
|
|
19601
19648
|
"waking"
|
|
@@ -19685,9 +19732,17 @@ targets: array(object({
|
|
|
19685
19732
|
sleeping: boolean(),
|
|
19686
19733
|
/** Current device state rendered over the cached frame. State images
|
|
19687
19734
|
* remain authoritative even when their photographic background is
|
|
19688
|
-
* old; null means the link must carry a current camera frame.
|
|
19735
|
+
* old; null means the link must carry a current camera frame.
|
|
19736
|
+
*
|
|
19737
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19738
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19739
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19740
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19741
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19742
|
+
* state. */
|
|
19689
19743
|
stateReason: _enum([
|
|
19690
19744
|
"disabled",
|
|
19745
|
+
"offline",
|
|
19691
19746
|
"sleeping",
|
|
19692
19747
|
"unreachable",
|
|
19693
19748
|
"waking"
|
|
@@ -23991,7 +24046,12 @@ var ListResultSchema = object({
|
|
|
23991
24046
|
probedAt: number()
|
|
23992
24047
|
});
|
|
23993
24048
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23994
|
-
|
|
24049
|
+
/**
|
|
24050
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24051
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24052
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24053
|
+
*/
|
|
24054
|
+
var ConnectionEndpointSchema = object({
|
|
23995
24055
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23996
24056
|
label: string(),
|
|
23997
24057
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24034,7 +24094,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24034
24094
|
* ordering between polls.
|
|
24035
24095
|
*/
|
|
24036
24096
|
priority: number()
|
|
24037
|
-
})
|
|
24097
|
+
});
|
|
24098
|
+
/**
|
|
24099
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24100
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24101
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24102
|
+
*/
|
|
24103
|
+
var LocalPortSourceEnum = _enum([
|
|
24104
|
+
"server-config",
|
|
24105
|
+
"server-env",
|
|
24106
|
+
"caller-hint",
|
|
24107
|
+
"default"
|
|
24108
|
+
]);
|
|
24109
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24110
|
+
var AdvertisedLocalPortSchema = object({
|
|
24111
|
+
port: number().int().min(1).max(65535),
|
|
24112
|
+
source: LocalPortSourceEnum
|
|
24113
|
+
});
|
|
24114
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24115
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24116
|
+
/**
|
|
24117
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24118
|
+
* came from.
|
|
24119
|
+
*
|
|
24120
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24121
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24122
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24123
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24124
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24125
|
+
* `caller-hint` is the hub's own socket.
|
|
24126
|
+
*
|
|
24127
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24128
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24129
|
+
* `caller-hint`.
|
|
24130
|
+
*/
|
|
24131
|
+
localPort: AdvertisedLocalPortSchema
|
|
24132
|
+
});
|
|
24038
24133
|
/**
|
|
24039
24134
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24040
24135
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24055,8 +24150,13 @@ var AllowedAddressesSchema = object({
|
|
|
24055
24150
|
*/
|
|
24056
24151
|
addresses: array(string()).readonly() });
|
|
24057
24152
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24058
|
-
/**
|
|
24059
|
-
|
|
24153
|
+
/**
|
|
24154
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24155
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24156
|
+
* only when it cannot read its own port, and says so via
|
|
24157
|
+
* `localPort.source === 'caller-hint'`.
|
|
24158
|
+
*/
|
|
24159
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24060
24160
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24061
24161
|
* candidate. Default `true`. */
|
|
24062
24162
|
includeLoopback: boolean().optional(),
|
|
@@ -37310,7 +37410,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
37310
37410
|
hitPercent: 60,
|
|
37311
37411
|
samplingSeconds: 10
|
|
37312
37412
|
};
|
|
37313
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37314
37413
|
new Set(["devices", "classes"]);
|
|
37315
37414
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37316
37415
|
/**
|
|
@@ -37544,6 +37643,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37544
37643
|
createdAt: number(),
|
|
37545
37644
|
updatedAt: number()
|
|
37546
37645
|
});
|
|
37646
|
+
Object.freeze(Object.fromEntries([{
|
|
37647
|
+
stepId: "face-embedding",
|
|
37648
|
+
label: "Face recognition model",
|
|
37649
|
+
defaultModelId: "arcface-r100",
|
|
37650
|
+
indexName: "the enrolled face gallery",
|
|
37651
|
+
options: [
|
|
37652
|
+
{
|
|
37653
|
+
id: "arcface-r100",
|
|
37654
|
+
label: "ArcFace (ResNet34)"
|
|
37655
|
+
},
|
|
37656
|
+
{
|
|
37657
|
+
id: "auraface-r100",
|
|
37658
|
+
label: "AuraFace R100"
|
|
37659
|
+
},
|
|
37660
|
+
{
|
|
37661
|
+
id: "inception-resnet-v1",
|
|
37662
|
+
label: "Inception ResNet V1"
|
|
37663
|
+
}
|
|
37664
|
+
]
|
|
37665
|
+
}, {
|
|
37666
|
+
stepId: "clip-embedding",
|
|
37667
|
+
label: "Semantic search model",
|
|
37668
|
+
defaultModelId: "mobileclip-s1",
|
|
37669
|
+
indexName: "the object semantic-search index",
|
|
37670
|
+
options: [{
|
|
37671
|
+
id: "mobileclip-s1",
|
|
37672
|
+
label: "MobileCLIP S1"
|
|
37673
|
+
}, {
|
|
37674
|
+
id: "mobileclip-s2",
|
|
37675
|
+
label: "MobileCLIP S2"
|
|
37676
|
+
}]
|
|
37677
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37678
|
+
string().min(1);
|
|
37547
37679
|
object({
|
|
37548
37680
|
/**
|
|
37549
37681
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37564,10 +37696,21 @@ object({
|
|
|
37564
37696
|
*/
|
|
37565
37697
|
square: boolean()
|
|
37566
37698
|
});
|
|
37567
|
-
|
|
37699
|
+
/**
|
|
37700
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37701
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37702
|
+
*/
|
|
37703
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37568
37704
|
paddingRatio: .15,
|
|
37569
37705
|
square: false
|
|
37570
|
-
}
|
|
37706
|
+
};
|
|
37707
|
+
Object.freeze({
|
|
37708
|
+
x: 0,
|
|
37709
|
+
y: 0,
|
|
37710
|
+
w: 1,
|
|
37711
|
+
h: 1
|
|
37712
|
+
});
|
|
37713
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37571
37714
|
/**
|
|
37572
37715
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37573
37716
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -7598,7 +7598,7 @@ var RecordingBandSchema = object({
|
|
|
7598
7598
|
postBufferSec: number().min(0).optional()
|
|
7599
7599
|
});
|
|
7600
7600
|
({
|
|
7601
|
-
preBufferSec:
|
|
7601
|
+
preBufferSec: 15,
|
|
7602
7602
|
postBufferSec: 30
|
|
7603
7603
|
}).postBufferSec * 1e3;
|
|
7604
7604
|
/**
|
|
@@ -13801,128 +13801,103 @@ var COCO_TO_MACRO = {
|
|
|
13801
13801
|
var AUDIO_MACRO_LABELS = [
|
|
13802
13802
|
{
|
|
13803
13803
|
id: "speech",
|
|
13804
|
-
name: "Speech"
|
|
13805
|
-
icon: "🗣️"
|
|
13804
|
+
name: "Speech"
|
|
13806
13805
|
},
|
|
13807
13806
|
{
|
|
13808
13807
|
id: "scream",
|
|
13809
|
-
name: "Scream / Shout"
|
|
13810
|
-
icon: "😱"
|
|
13808
|
+
name: "Scream / Shout"
|
|
13811
13809
|
},
|
|
13812
13810
|
{
|
|
13813
13811
|
id: "crying",
|
|
13814
|
-
name: "Crying / Baby"
|
|
13815
|
-
icon: "😢"
|
|
13812
|
+
name: "Crying / Baby"
|
|
13816
13813
|
},
|
|
13817
13814
|
{
|
|
13818
13815
|
id: "laughter",
|
|
13819
|
-
name: "Laughter"
|
|
13820
|
-
icon: "😂"
|
|
13816
|
+
name: "Laughter"
|
|
13821
13817
|
},
|
|
13822
13818
|
{
|
|
13823
13819
|
id: "music",
|
|
13824
|
-
name: "Music"
|
|
13825
|
-
icon: "🎵"
|
|
13820
|
+
name: "Music"
|
|
13826
13821
|
},
|
|
13827
13822
|
{
|
|
13828
13823
|
id: "dog",
|
|
13829
|
-
name: "Dog"
|
|
13830
|
-
icon: "🐕"
|
|
13824
|
+
name: "Dog"
|
|
13831
13825
|
},
|
|
13832
13826
|
{
|
|
13833
13827
|
id: "cat",
|
|
13834
|
-
name: "Cat"
|
|
13835
|
-
icon: "🐈"
|
|
13828
|
+
name: "Cat"
|
|
13836
13829
|
},
|
|
13837
13830
|
{
|
|
13838
13831
|
id: "bird",
|
|
13839
|
-
name: "Bird"
|
|
13840
|
-
icon: "🐦"
|
|
13832
|
+
name: "Bird"
|
|
13841
13833
|
},
|
|
13842
13834
|
{
|
|
13843
13835
|
id: "animal",
|
|
13844
|
-
name: "Animal (other)"
|
|
13845
|
-
icon: "🐾"
|
|
13836
|
+
name: "Animal (other)"
|
|
13846
13837
|
},
|
|
13847
13838
|
{
|
|
13848
13839
|
id: "alarm",
|
|
13849
|
-
name: "Alarm / Siren"
|
|
13850
|
-
icon: "🚨"
|
|
13840
|
+
name: "Alarm / Siren"
|
|
13851
13841
|
},
|
|
13852
13842
|
{
|
|
13853
13843
|
id: "doorbell",
|
|
13854
|
-
name: "Doorbell / Knock"
|
|
13855
|
-
icon: "🔔"
|
|
13844
|
+
name: "Doorbell / Knock"
|
|
13856
13845
|
},
|
|
13857
13846
|
{
|
|
13858
13847
|
id: "glass_breaking",
|
|
13859
|
-
name: "Glass Breaking"
|
|
13860
|
-
icon: "💥"
|
|
13848
|
+
name: "Glass Breaking"
|
|
13861
13849
|
},
|
|
13862
13850
|
{
|
|
13863
13851
|
id: "gunshot",
|
|
13864
|
-
name: "Gunshot / Explosion"
|
|
13865
|
-
icon: "💣"
|
|
13852
|
+
name: "Gunshot / Explosion"
|
|
13866
13853
|
},
|
|
13867
13854
|
{
|
|
13868
13855
|
id: "vehicle",
|
|
13869
|
-
name: "Vehicle"
|
|
13870
|
-
icon: "🚗"
|
|
13856
|
+
name: "Vehicle"
|
|
13871
13857
|
},
|
|
13872
13858
|
{
|
|
13873
13859
|
id: "siren",
|
|
13874
|
-
name: "Emergency Siren"
|
|
13875
|
-
icon: "🚑"
|
|
13860
|
+
name: "Emergency Siren"
|
|
13876
13861
|
},
|
|
13877
13862
|
{
|
|
13878
13863
|
id: "fire",
|
|
13879
|
-
name: "Fire / Smoke"
|
|
13880
|
-
icon: "🔥"
|
|
13864
|
+
name: "Fire / Smoke"
|
|
13881
13865
|
},
|
|
13882
13866
|
{
|
|
13883
13867
|
id: "water",
|
|
13884
|
-
name: "Water"
|
|
13885
|
-
icon: "💧"
|
|
13868
|
+
name: "Water"
|
|
13886
13869
|
},
|
|
13887
13870
|
{
|
|
13888
13871
|
id: "wind",
|
|
13889
|
-
name: "Wind / Weather"
|
|
13890
|
-
icon: "🌬️"
|
|
13872
|
+
name: "Wind / Weather"
|
|
13891
13873
|
},
|
|
13892
13874
|
{
|
|
13893
13875
|
id: "door",
|
|
13894
|
-
name: "Door"
|
|
13895
|
-
icon: "🚪"
|
|
13876
|
+
name: "Door"
|
|
13896
13877
|
},
|
|
13897
13878
|
{
|
|
13898
13879
|
id: "footsteps",
|
|
13899
|
-
name: "Footsteps"
|
|
13900
|
-
icon: "👣"
|
|
13880
|
+
name: "Footsteps"
|
|
13901
13881
|
},
|
|
13902
13882
|
{
|
|
13903
13883
|
id: "crowd",
|
|
13904
|
-
name: "Crowd / Chatter"
|
|
13905
|
-
icon: "👥"
|
|
13884
|
+
name: "Crowd / Chatter"
|
|
13906
13885
|
},
|
|
13907
13886
|
{
|
|
13908
13887
|
id: "telephone",
|
|
13909
|
-
name: "Telephone"
|
|
13910
|
-
icon: "📞"
|
|
13888
|
+
name: "Telephone"
|
|
13911
13889
|
},
|
|
13912
13890
|
{
|
|
13913
13891
|
id: "engine",
|
|
13914
|
-
name: "Engine / Motor"
|
|
13915
|
-
icon: "⚙️"
|
|
13892
|
+
name: "Engine / Motor"
|
|
13916
13893
|
},
|
|
13917
13894
|
{
|
|
13918
13895
|
id: "tools",
|
|
13919
|
-
name: "Tools / Construction"
|
|
13920
|
-
icon: "🔨"
|
|
13896
|
+
name: "Tools / Construction"
|
|
13921
13897
|
},
|
|
13922
13898
|
{
|
|
13923
13899
|
id: "silence",
|
|
13924
|
-
name: "Silence"
|
|
13925
|
-
icon: "🤫"
|
|
13900
|
+
name: "Silence"
|
|
13926
13901
|
}
|
|
13927
13902
|
];
|
|
13928
13903
|
var YAMNET_TO_MACRO = {
|
|
@@ -16424,7 +16399,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16424
16399
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16425
16400
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16426
16401
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16427
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16402
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16428
16403
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16429
16404
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16430
16405
|
* (`getObjectEvents` et al.).
|
|
@@ -16719,6 +16694,35 @@ var TrackSchema = object({
|
|
|
16719
16694
|
*/
|
|
16720
16695
|
hasFace: boolean().optional(),
|
|
16721
16696
|
/**
|
|
16697
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16698
|
+
* face an operator could ASSIGN to an identity.
|
|
16699
|
+
*
|
|
16700
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16701
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16702
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16703
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16704
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16705
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16706
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16707
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16708
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16709
|
+
* operator something to assign and delivers nothing.
|
|
16710
|
+
*
|
|
16711
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16712
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16713
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16714
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16715
|
+
*
|
|
16716
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16717
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16718
|
+
*
|
|
16719
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16720
|
+
* before the column omits it, and so does every server that predates the
|
|
16721
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16722
|
+
* never infer "no assignable face".
|
|
16723
|
+
*/
|
|
16724
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16725
|
+
/**
|
|
16722
16726
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16723
16727
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16724
16728
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18108,6 +18112,32 @@ var DetailResultSchema = object({
|
|
|
18108
18112
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18109
18113
|
bbox: NativeCropBboxSchema.optional(),
|
|
18110
18114
|
embedding: string().optional(),
|
|
18115
|
+
/**
|
|
18116
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18117
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18118
|
+
* the consuming gate treats as accept — never as reject.
|
|
18119
|
+
*/
|
|
18120
|
+
embeddingMagnitude: number().optional(),
|
|
18121
|
+
/**
|
|
18122
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18123
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18124
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18125
|
+
* the inference this model exists to forbid.
|
|
18126
|
+
*
|
|
18127
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18128
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18129
|
+
* its previous assumption instead of refusing.
|
|
18130
|
+
*
|
|
18131
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18132
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18133
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18134
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18135
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18136
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18137
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18138
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18139
|
+
*/
|
|
18140
|
+
embeddingModelId: string().optional(),
|
|
18111
18141
|
label: string().optional(),
|
|
18112
18142
|
/**
|
|
18113
18143
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18983,6 +19013,12 @@ var CameraStatusSchema = object({
|
|
|
18983
19013
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18984
19014
|
fetchedAt: number()
|
|
18985
19015
|
});
|
|
19016
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
19017
|
+
"disabled",
|
|
19018
|
+
"unavailable",
|
|
19019
|
+
"cannot-host-camera-root",
|
|
19020
|
+
"accelerator-preferred"
|
|
19021
|
+
]);
|
|
18986
19022
|
var NodeInferenceDeviceSchema = object({
|
|
18987
19023
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18988
19024
|
key: string(),
|
|
@@ -19013,7 +19049,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
19013
19049
|
* available per format; this is the stored selection that becomes the
|
|
19014
19050
|
* default for EVERY camera landing on this accelerator.
|
|
19015
19051
|
*/
|
|
19016
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19052
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19053
|
+
/**
|
|
19054
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19055
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19056
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19057
|
+
* never disagree with the election — deriving it in the UI from
|
|
19058
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19059
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19060
|
+
* "an accelerator is serving" predicate).
|
|
19061
|
+
*/
|
|
19062
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
19017
19063
|
});
|
|
19018
19064
|
var NodeInferenceDevicesSchema = object({
|
|
19019
19065
|
nodeId: string(),
|
|
@@ -19572,6 +19618,7 @@ var snapshotCapability = {
|
|
|
19572
19618
|
isBattery: boolean(),
|
|
19573
19619
|
reason: _enum([
|
|
19574
19620
|
"disabled",
|
|
19621
|
+
"offline",
|
|
19575
19622
|
"sleeping",
|
|
19576
19623
|
"unreachable",
|
|
19577
19624
|
"waking"
|
|
@@ -19661,9 +19708,17 @@ targets: array(object({
|
|
|
19661
19708
|
sleeping: boolean(),
|
|
19662
19709
|
/** Current device state rendered over the cached frame. State images
|
|
19663
19710
|
* remain authoritative even when their photographic background is
|
|
19664
|
-
* old; null means the link must carry a current camera frame.
|
|
19711
|
+
* old; null means the link must carry a current camera frame.
|
|
19712
|
+
*
|
|
19713
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19714
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19715
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19716
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19717
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19718
|
+
* state. */
|
|
19665
19719
|
stateReason: _enum([
|
|
19666
19720
|
"disabled",
|
|
19721
|
+
"offline",
|
|
19667
19722
|
"sleeping",
|
|
19668
19723
|
"unreachable",
|
|
19669
19724
|
"waking"
|
|
@@ -23967,7 +24022,12 @@ var ListResultSchema = object({
|
|
|
23967
24022
|
probedAt: number()
|
|
23968
24023
|
});
|
|
23969
24024
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23970
|
-
|
|
24025
|
+
/**
|
|
24026
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
24027
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
24028
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
24029
|
+
*/
|
|
24030
|
+
var ConnectionEndpointSchema = object({
|
|
23971
24031
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23972
24032
|
label: string(),
|
|
23973
24033
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -24010,7 +24070,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
24010
24070
|
* ordering between polls.
|
|
24011
24071
|
*/
|
|
24012
24072
|
priority: number()
|
|
24013
|
-
})
|
|
24073
|
+
});
|
|
24074
|
+
/**
|
|
24075
|
+
* Where the advertised local port came from. Ordered most → least
|
|
24076
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
24077
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
24078
|
+
*/
|
|
24079
|
+
var LocalPortSourceEnum = _enum([
|
|
24080
|
+
"server-config",
|
|
24081
|
+
"server-env",
|
|
24082
|
+
"caller-hint",
|
|
24083
|
+
"default"
|
|
24084
|
+
]);
|
|
24085
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
24086
|
+
var AdvertisedLocalPortSchema = object({
|
|
24087
|
+
port: number().int().min(1).max(65535),
|
|
24088
|
+
source: LocalPortSourceEnum
|
|
24089
|
+
});
|
|
24090
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
24091
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
24092
|
+
/**
|
|
24093
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
24094
|
+
* came from.
|
|
24095
|
+
*
|
|
24096
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
24097
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
24098
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
24099
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
24100
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
24101
|
+
* `caller-hint` is the hub's own socket.
|
|
24102
|
+
*
|
|
24103
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
24104
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
24105
|
+
* `caller-hint`.
|
|
24106
|
+
*/
|
|
24107
|
+
localPort: AdvertisedLocalPortSchema
|
|
24108
|
+
});
|
|
24014
24109
|
/**
|
|
24015
24110
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
24016
24111
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -24031,8 +24126,13 @@ var AllowedAddressesSchema = object({
|
|
|
24031
24126
|
*/
|
|
24032
24127
|
addresses: array(string()).readonly() });
|
|
24033
24128
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24034
|
-
/**
|
|
24035
|
-
|
|
24129
|
+
/**
|
|
24130
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
24131
|
+
* written against the echoing contract keep working; the hub uses it
|
|
24132
|
+
* only when it cannot read its own port, and says so via
|
|
24133
|
+
* `localPort.source === 'caller-hint'`.
|
|
24134
|
+
*/
|
|
24135
|
+
port: number().int().min(1).max(65535).optional(),
|
|
24036
24136
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24037
24137
|
* candidate. Default `true`. */
|
|
24038
24138
|
includeLoopback: boolean().optional(),
|
|
@@ -37286,7 +37386,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
37286
37386
|
hitPercent: 60,
|
|
37287
37387
|
samplingSeconds: 10
|
|
37288
37388
|
};
|
|
37289
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37290
37389
|
new Set(["devices", "classes"]);
|
|
37291
37390
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37292
37391
|
/**
|
|
@@ -37520,6 +37619,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37520
37619
|
createdAt: number(),
|
|
37521
37620
|
updatedAt: number()
|
|
37522
37621
|
});
|
|
37622
|
+
Object.freeze(Object.fromEntries([{
|
|
37623
|
+
stepId: "face-embedding",
|
|
37624
|
+
label: "Face recognition model",
|
|
37625
|
+
defaultModelId: "arcface-r100",
|
|
37626
|
+
indexName: "the enrolled face gallery",
|
|
37627
|
+
options: [
|
|
37628
|
+
{
|
|
37629
|
+
id: "arcface-r100",
|
|
37630
|
+
label: "ArcFace (ResNet34)"
|
|
37631
|
+
},
|
|
37632
|
+
{
|
|
37633
|
+
id: "auraface-r100",
|
|
37634
|
+
label: "AuraFace R100"
|
|
37635
|
+
},
|
|
37636
|
+
{
|
|
37637
|
+
id: "inception-resnet-v1",
|
|
37638
|
+
label: "Inception ResNet V1"
|
|
37639
|
+
}
|
|
37640
|
+
]
|
|
37641
|
+
}, {
|
|
37642
|
+
stepId: "clip-embedding",
|
|
37643
|
+
label: "Semantic search model",
|
|
37644
|
+
defaultModelId: "mobileclip-s1",
|
|
37645
|
+
indexName: "the object semantic-search index",
|
|
37646
|
+
options: [{
|
|
37647
|
+
id: "mobileclip-s1",
|
|
37648
|
+
label: "MobileCLIP S1"
|
|
37649
|
+
}, {
|
|
37650
|
+
id: "mobileclip-s2",
|
|
37651
|
+
label: "MobileCLIP S2"
|
|
37652
|
+
}]
|
|
37653
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37654
|
+
string().min(1);
|
|
37523
37655
|
object({
|
|
37524
37656
|
/**
|
|
37525
37657
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37540,10 +37672,21 @@ object({
|
|
|
37540
37672
|
*/
|
|
37541
37673
|
square: boolean()
|
|
37542
37674
|
});
|
|
37543
|
-
|
|
37675
|
+
/**
|
|
37676
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37677
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37678
|
+
*/
|
|
37679
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37544
37680
|
paddingRatio: .15,
|
|
37545
37681
|
square: false
|
|
37546
|
-
}
|
|
37682
|
+
};
|
|
37683
|
+
Object.freeze({
|
|
37684
|
+
x: 0,
|
|
37685
|
+
y: 0,
|
|
37686
|
+
w: 1,
|
|
37687
|
+
h: 1
|
|
37688
|
+
});
|
|
37689
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37547
37690
|
/**
|
|
37548
37691
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37549
37692
|
*
|