@camstack/addon-provider-velux 0.2.23 → 0.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
|
@@ -7566,7 +7566,7 @@ var RecordingBandSchema = object({
|
|
|
7566
7566
|
postBufferSec: number().min(0).optional()
|
|
7567
7567
|
});
|
|
7568
7568
|
({
|
|
7569
|
-
preBufferSec:
|
|
7569
|
+
preBufferSec: 15,
|
|
7570
7570
|
postBufferSec: 30
|
|
7571
7571
|
}).postBufferSec * 1e3;
|
|
7572
7572
|
/**
|
|
@@ -13769,128 +13769,103 @@ var COCO_TO_MACRO = {
|
|
|
13769
13769
|
var AUDIO_MACRO_LABELS = [
|
|
13770
13770
|
{
|
|
13771
13771
|
id: "speech",
|
|
13772
|
-
name: "Speech"
|
|
13773
|
-
icon: "🗣️"
|
|
13772
|
+
name: "Speech"
|
|
13774
13773
|
},
|
|
13775
13774
|
{
|
|
13776
13775
|
id: "scream",
|
|
13777
|
-
name: "Scream / Shout"
|
|
13778
|
-
icon: "😱"
|
|
13776
|
+
name: "Scream / Shout"
|
|
13779
13777
|
},
|
|
13780
13778
|
{
|
|
13781
13779
|
id: "crying",
|
|
13782
|
-
name: "Crying / Baby"
|
|
13783
|
-
icon: "😢"
|
|
13780
|
+
name: "Crying / Baby"
|
|
13784
13781
|
},
|
|
13785
13782
|
{
|
|
13786
13783
|
id: "laughter",
|
|
13787
|
-
name: "Laughter"
|
|
13788
|
-
icon: "😂"
|
|
13784
|
+
name: "Laughter"
|
|
13789
13785
|
},
|
|
13790
13786
|
{
|
|
13791
13787
|
id: "music",
|
|
13792
|
-
name: "Music"
|
|
13793
|
-
icon: "🎵"
|
|
13788
|
+
name: "Music"
|
|
13794
13789
|
},
|
|
13795
13790
|
{
|
|
13796
13791
|
id: "dog",
|
|
13797
|
-
name: "Dog"
|
|
13798
|
-
icon: "🐕"
|
|
13792
|
+
name: "Dog"
|
|
13799
13793
|
},
|
|
13800
13794
|
{
|
|
13801
13795
|
id: "cat",
|
|
13802
|
-
name: "Cat"
|
|
13803
|
-
icon: "🐈"
|
|
13796
|
+
name: "Cat"
|
|
13804
13797
|
},
|
|
13805
13798
|
{
|
|
13806
13799
|
id: "bird",
|
|
13807
|
-
name: "Bird"
|
|
13808
|
-
icon: "🐦"
|
|
13800
|
+
name: "Bird"
|
|
13809
13801
|
},
|
|
13810
13802
|
{
|
|
13811
13803
|
id: "animal",
|
|
13812
|
-
name: "Animal (other)"
|
|
13813
|
-
icon: "🐾"
|
|
13804
|
+
name: "Animal (other)"
|
|
13814
13805
|
},
|
|
13815
13806
|
{
|
|
13816
13807
|
id: "alarm",
|
|
13817
|
-
name: "Alarm / Siren"
|
|
13818
|
-
icon: "🚨"
|
|
13808
|
+
name: "Alarm / Siren"
|
|
13819
13809
|
},
|
|
13820
13810
|
{
|
|
13821
13811
|
id: "doorbell",
|
|
13822
|
-
name: "Doorbell / Knock"
|
|
13823
|
-
icon: "🔔"
|
|
13812
|
+
name: "Doorbell / Knock"
|
|
13824
13813
|
},
|
|
13825
13814
|
{
|
|
13826
13815
|
id: "glass_breaking",
|
|
13827
|
-
name: "Glass Breaking"
|
|
13828
|
-
icon: "💥"
|
|
13816
|
+
name: "Glass Breaking"
|
|
13829
13817
|
},
|
|
13830
13818
|
{
|
|
13831
13819
|
id: "gunshot",
|
|
13832
|
-
name: "Gunshot / Explosion"
|
|
13833
|
-
icon: "💣"
|
|
13820
|
+
name: "Gunshot / Explosion"
|
|
13834
13821
|
},
|
|
13835
13822
|
{
|
|
13836
13823
|
id: "vehicle",
|
|
13837
|
-
name: "Vehicle"
|
|
13838
|
-
icon: "🚗"
|
|
13824
|
+
name: "Vehicle"
|
|
13839
13825
|
},
|
|
13840
13826
|
{
|
|
13841
13827
|
id: "siren",
|
|
13842
|
-
name: "Emergency Siren"
|
|
13843
|
-
icon: "🚑"
|
|
13828
|
+
name: "Emergency Siren"
|
|
13844
13829
|
},
|
|
13845
13830
|
{
|
|
13846
13831
|
id: "fire",
|
|
13847
|
-
name: "Fire / Smoke"
|
|
13848
|
-
icon: "🔥"
|
|
13832
|
+
name: "Fire / Smoke"
|
|
13849
13833
|
},
|
|
13850
13834
|
{
|
|
13851
13835
|
id: "water",
|
|
13852
|
-
name: "Water"
|
|
13853
|
-
icon: "💧"
|
|
13836
|
+
name: "Water"
|
|
13854
13837
|
},
|
|
13855
13838
|
{
|
|
13856
13839
|
id: "wind",
|
|
13857
|
-
name: "Wind / Weather"
|
|
13858
|
-
icon: "🌬️"
|
|
13840
|
+
name: "Wind / Weather"
|
|
13859
13841
|
},
|
|
13860
13842
|
{
|
|
13861
13843
|
id: "door",
|
|
13862
|
-
name: "Door"
|
|
13863
|
-
icon: "🚪"
|
|
13844
|
+
name: "Door"
|
|
13864
13845
|
},
|
|
13865
13846
|
{
|
|
13866
13847
|
id: "footsteps",
|
|
13867
|
-
name: "Footsteps"
|
|
13868
|
-
icon: "👣"
|
|
13848
|
+
name: "Footsteps"
|
|
13869
13849
|
},
|
|
13870
13850
|
{
|
|
13871
13851
|
id: "crowd",
|
|
13872
|
-
name: "Crowd / Chatter"
|
|
13873
|
-
icon: "👥"
|
|
13852
|
+
name: "Crowd / Chatter"
|
|
13874
13853
|
},
|
|
13875
13854
|
{
|
|
13876
13855
|
id: "telephone",
|
|
13877
|
-
name: "Telephone"
|
|
13878
|
-
icon: "📞"
|
|
13856
|
+
name: "Telephone"
|
|
13879
13857
|
},
|
|
13880
13858
|
{
|
|
13881
13859
|
id: "engine",
|
|
13882
|
-
name: "Engine / Motor"
|
|
13883
|
-
icon: "⚙️"
|
|
13860
|
+
name: "Engine / Motor"
|
|
13884
13861
|
},
|
|
13885
13862
|
{
|
|
13886
13863
|
id: "tools",
|
|
13887
|
-
name: "Tools / Construction"
|
|
13888
|
-
icon: "🔨"
|
|
13864
|
+
name: "Tools / Construction"
|
|
13889
13865
|
},
|
|
13890
13866
|
{
|
|
13891
13867
|
id: "silence",
|
|
13892
|
-
name: "Silence"
|
|
13893
|
-
icon: "🤫"
|
|
13868
|
+
name: "Silence"
|
|
13894
13869
|
}
|
|
13895
13870
|
];
|
|
13896
13871
|
var YAMNET_TO_MACRO = {
|
|
@@ -16392,7 +16367,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16392
16367
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16393
16368
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16394
16369
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16395
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16370
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16396
16371
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16397
16372
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16398
16373
|
* (`getObjectEvents` et al.).
|
|
@@ -16687,6 +16662,35 @@ var TrackSchema = object({
|
|
|
16687
16662
|
*/
|
|
16688
16663
|
hasFace: boolean().optional(),
|
|
16689
16664
|
/**
|
|
16665
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16666
|
+
* face an operator could ASSIGN to an identity.
|
|
16667
|
+
*
|
|
16668
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16669
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16670
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16671
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16672
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16673
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16674
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16675
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16676
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16677
|
+
* operator something to assign and delivers nothing.
|
|
16678
|
+
*
|
|
16679
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16680
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16681
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16682
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16683
|
+
*
|
|
16684
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16685
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16686
|
+
*
|
|
16687
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16688
|
+
* before the column omits it, and so does every server that predates the
|
|
16689
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16690
|
+
* never infer "no assignable face".
|
|
16691
|
+
*/
|
|
16692
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16693
|
+
/**
|
|
16690
16694
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16691
16695
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16692
16696
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18076,6 +18080,32 @@ var DetailResultSchema = object({
|
|
|
18076
18080
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18077
18081
|
bbox: NativeCropBboxSchema.optional(),
|
|
18078
18082
|
embedding: string().optional(),
|
|
18083
|
+
/**
|
|
18084
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18085
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18086
|
+
* the consuming gate treats as accept — never as reject.
|
|
18087
|
+
*/
|
|
18088
|
+
embeddingMagnitude: number().optional(),
|
|
18089
|
+
/**
|
|
18090
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18091
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18092
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18093
|
+
* the inference this model exists to forbid.
|
|
18094
|
+
*
|
|
18095
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18096
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18097
|
+
* its previous assumption instead of refusing.
|
|
18098
|
+
*
|
|
18099
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18100
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18101
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18102
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18103
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18104
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18105
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18106
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18107
|
+
*/
|
|
18108
|
+
embeddingModelId: string().optional(),
|
|
18079
18109
|
label: string().optional(),
|
|
18080
18110
|
/**
|
|
18081
18111
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18951,6 +18981,12 @@ var CameraStatusSchema = object({
|
|
|
18951
18981
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18952
18982
|
fetchedAt: number()
|
|
18953
18983
|
});
|
|
18984
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18985
|
+
"disabled",
|
|
18986
|
+
"unavailable",
|
|
18987
|
+
"cannot-host-camera-root",
|
|
18988
|
+
"accelerator-preferred"
|
|
18989
|
+
]);
|
|
18954
18990
|
var NodeInferenceDeviceSchema = object({
|
|
18955
18991
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18956
18992
|
key: string(),
|
|
@@ -18981,7 +19017,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18981
19017
|
* available per format; this is the stored selection that becomes the
|
|
18982
19018
|
* default for EVERY camera landing on this accelerator.
|
|
18983
19019
|
*/
|
|
18984
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19020
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19021
|
+
/**
|
|
19022
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19023
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19024
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19025
|
+
* never disagree with the election — deriving it in the UI from
|
|
19026
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19027
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19028
|
+
* "an accelerator is serving" predicate).
|
|
19029
|
+
*/
|
|
19030
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18985
19031
|
});
|
|
18986
19032
|
var NodeInferenceDevicesSchema = object({
|
|
18987
19033
|
nodeId: string(),
|
|
@@ -19486,6 +19532,7 @@ DeviceType.Camera, method(object({
|
|
|
19486
19532
|
isBattery: boolean(),
|
|
19487
19533
|
reason: _enum([
|
|
19488
19534
|
"disabled",
|
|
19535
|
+
"offline",
|
|
19489
19536
|
"sleeping",
|
|
19490
19537
|
"unreachable",
|
|
19491
19538
|
"waking"
|
|
@@ -19531,9 +19578,17 @@ targets: array(object({
|
|
|
19531
19578
|
sleeping: boolean(),
|
|
19532
19579
|
/** Current device state rendered over the cached frame. State images
|
|
19533
19580
|
* remain authoritative even when their photographic background is
|
|
19534
|
-
* old; null means the link must carry a current camera frame.
|
|
19581
|
+
* old; null means the link must carry a current camera frame.
|
|
19582
|
+
*
|
|
19583
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19584
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19585
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19586
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19587
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19588
|
+
* state. */
|
|
19535
19589
|
stateReason: _enum([
|
|
19536
19590
|
"disabled",
|
|
19591
|
+
"offline",
|
|
19537
19592
|
"sleeping",
|
|
19538
19593
|
"unreachable",
|
|
19539
19594
|
"waking"
|
|
@@ -23823,7 +23878,12 @@ var ListResultSchema = object({
|
|
|
23823
23878
|
probedAt: number()
|
|
23824
23879
|
});
|
|
23825
23880
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23826
|
-
|
|
23881
|
+
/**
|
|
23882
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23883
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23884
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23885
|
+
*/
|
|
23886
|
+
var ConnectionEndpointSchema = object({
|
|
23827
23887
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23828
23888
|
label: string(),
|
|
23829
23889
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23866,7 +23926,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23866
23926
|
* ordering between polls.
|
|
23867
23927
|
*/
|
|
23868
23928
|
priority: number()
|
|
23869
|
-
})
|
|
23929
|
+
});
|
|
23930
|
+
/**
|
|
23931
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23932
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23933
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23934
|
+
*/
|
|
23935
|
+
var LocalPortSourceEnum = _enum([
|
|
23936
|
+
"server-config",
|
|
23937
|
+
"server-env",
|
|
23938
|
+
"caller-hint",
|
|
23939
|
+
"default"
|
|
23940
|
+
]);
|
|
23941
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23942
|
+
var AdvertisedLocalPortSchema = object({
|
|
23943
|
+
port: number().int().min(1).max(65535),
|
|
23944
|
+
source: LocalPortSourceEnum
|
|
23945
|
+
});
|
|
23946
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23947
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23948
|
+
/**
|
|
23949
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23950
|
+
* came from.
|
|
23951
|
+
*
|
|
23952
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23953
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23954
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23955
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23956
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23957
|
+
* `caller-hint` is the hub's own socket.
|
|
23958
|
+
*
|
|
23959
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23960
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23961
|
+
* `caller-hint`.
|
|
23962
|
+
*/
|
|
23963
|
+
localPort: AdvertisedLocalPortSchema
|
|
23964
|
+
});
|
|
23870
23965
|
/**
|
|
23871
23966
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23872
23967
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23887,8 +23982,13 @@ var AllowedAddressesSchema = object({
|
|
|
23887
23982
|
*/
|
|
23888
23983
|
addresses: array(string()).readonly() });
|
|
23889
23984
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23890
|
-
/**
|
|
23891
|
-
|
|
23985
|
+
/**
|
|
23986
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
23987
|
+
* written against the echoing contract keep working; the hub uses it
|
|
23988
|
+
* only when it cannot read its own port, and says so via
|
|
23989
|
+
* `localPort.source === 'caller-hint'`.
|
|
23990
|
+
*/
|
|
23991
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23892
23992
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23893
23993
|
* candidate. Default `true`. */
|
|
23894
23994
|
includeLoopback: boolean().optional(),
|
|
@@ -37076,7 +37176,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
37076
37176
|
hitPercent: 60,
|
|
37077
37177
|
samplingSeconds: 10
|
|
37078
37178
|
};
|
|
37079
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37080
37179
|
new Set(["devices", "classes"]);
|
|
37081
37180
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37082
37181
|
/**
|
|
@@ -37310,6 +37409,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37310
37409
|
createdAt: number(),
|
|
37311
37410
|
updatedAt: number()
|
|
37312
37411
|
});
|
|
37412
|
+
Object.freeze(Object.fromEntries([{
|
|
37413
|
+
stepId: "face-embedding",
|
|
37414
|
+
label: "Face recognition model",
|
|
37415
|
+
defaultModelId: "arcface-r100",
|
|
37416
|
+
indexName: "the enrolled face gallery",
|
|
37417
|
+
options: [
|
|
37418
|
+
{
|
|
37419
|
+
id: "arcface-r100",
|
|
37420
|
+
label: "ArcFace (ResNet34)"
|
|
37421
|
+
},
|
|
37422
|
+
{
|
|
37423
|
+
id: "auraface-r100",
|
|
37424
|
+
label: "AuraFace R100"
|
|
37425
|
+
},
|
|
37426
|
+
{
|
|
37427
|
+
id: "inception-resnet-v1",
|
|
37428
|
+
label: "Inception ResNet V1"
|
|
37429
|
+
}
|
|
37430
|
+
]
|
|
37431
|
+
}, {
|
|
37432
|
+
stepId: "clip-embedding",
|
|
37433
|
+
label: "Semantic search model",
|
|
37434
|
+
defaultModelId: "mobileclip-s1",
|
|
37435
|
+
indexName: "the object semantic-search index",
|
|
37436
|
+
options: [{
|
|
37437
|
+
id: "mobileclip-s1",
|
|
37438
|
+
label: "MobileCLIP S1"
|
|
37439
|
+
}, {
|
|
37440
|
+
id: "mobileclip-s2",
|
|
37441
|
+
label: "MobileCLIP S2"
|
|
37442
|
+
}]
|
|
37443
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37444
|
+
string().min(1);
|
|
37313
37445
|
object({
|
|
37314
37446
|
/**
|
|
37315
37447
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37330,10 +37462,21 @@ object({
|
|
|
37330
37462
|
*/
|
|
37331
37463
|
square: boolean()
|
|
37332
37464
|
});
|
|
37333
|
-
|
|
37465
|
+
/**
|
|
37466
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37467
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37468
|
+
*/
|
|
37469
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37334
37470
|
paddingRatio: .15,
|
|
37335
37471
|
square: false
|
|
37336
|
-
}
|
|
37472
|
+
};
|
|
37473
|
+
Object.freeze({
|
|
37474
|
+
x: 0,
|
|
37475
|
+
y: 0,
|
|
37476
|
+
w: 1,
|
|
37477
|
+
h: 1
|
|
37478
|
+
});
|
|
37479
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37337
37480
|
/**
|
|
37338
37481
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37339
37482
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -7565,7 +7565,7 @@ var RecordingBandSchema = object({
|
|
|
7565
7565
|
postBufferSec: number().min(0).optional()
|
|
7566
7566
|
});
|
|
7567
7567
|
({
|
|
7568
|
-
preBufferSec:
|
|
7568
|
+
preBufferSec: 15,
|
|
7569
7569
|
postBufferSec: 30
|
|
7570
7570
|
}).postBufferSec * 1e3;
|
|
7571
7571
|
/**
|
|
@@ -13768,128 +13768,103 @@ var COCO_TO_MACRO = {
|
|
|
13768
13768
|
var AUDIO_MACRO_LABELS = [
|
|
13769
13769
|
{
|
|
13770
13770
|
id: "speech",
|
|
13771
|
-
name: "Speech"
|
|
13772
|
-
icon: "🗣️"
|
|
13771
|
+
name: "Speech"
|
|
13773
13772
|
},
|
|
13774
13773
|
{
|
|
13775
13774
|
id: "scream",
|
|
13776
|
-
name: "Scream / Shout"
|
|
13777
|
-
icon: "😱"
|
|
13775
|
+
name: "Scream / Shout"
|
|
13778
13776
|
},
|
|
13779
13777
|
{
|
|
13780
13778
|
id: "crying",
|
|
13781
|
-
name: "Crying / Baby"
|
|
13782
|
-
icon: "😢"
|
|
13779
|
+
name: "Crying / Baby"
|
|
13783
13780
|
},
|
|
13784
13781
|
{
|
|
13785
13782
|
id: "laughter",
|
|
13786
|
-
name: "Laughter"
|
|
13787
|
-
icon: "😂"
|
|
13783
|
+
name: "Laughter"
|
|
13788
13784
|
},
|
|
13789
13785
|
{
|
|
13790
13786
|
id: "music",
|
|
13791
|
-
name: "Music"
|
|
13792
|
-
icon: "🎵"
|
|
13787
|
+
name: "Music"
|
|
13793
13788
|
},
|
|
13794
13789
|
{
|
|
13795
13790
|
id: "dog",
|
|
13796
|
-
name: "Dog"
|
|
13797
|
-
icon: "🐕"
|
|
13791
|
+
name: "Dog"
|
|
13798
13792
|
},
|
|
13799
13793
|
{
|
|
13800
13794
|
id: "cat",
|
|
13801
|
-
name: "Cat"
|
|
13802
|
-
icon: "🐈"
|
|
13795
|
+
name: "Cat"
|
|
13803
13796
|
},
|
|
13804
13797
|
{
|
|
13805
13798
|
id: "bird",
|
|
13806
|
-
name: "Bird"
|
|
13807
|
-
icon: "🐦"
|
|
13799
|
+
name: "Bird"
|
|
13808
13800
|
},
|
|
13809
13801
|
{
|
|
13810
13802
|
id: "animal",
|
|
13811
|
-
name: "Animal (other)"
|
|
13812
|
-
icon: "🐾"
|
|
13803
|
+
name: "Animal (other)"
|
|
13813
13804
|
},
|
|
13814
13805
|
{
|
|
13815
13806
|
id: "alarm",
|
|
13816
|
-
name: "Alarm / Siren"
|
|
13817
|
-
icon: "🚨"
|
|
13807
|
+
name: "Alarm / Siren"
|
|
13818
13808
|
},
|
|
13819
13809
|
{
|
|
13820
13810
|
id: "doorbell",
|
|
13821
|
-
name: "Doorbell / Knock"
|
|
13822
|
-
icon: "🔔"
|
|
13811
|
+
name: "Doorbell / Knock"
|
|
13823
13812
|
},
|
|
13824
13813
|
{
|
|
13825
13814
|
id: "glass_breaking",
|
|
13826
|
-
name: "Glass Breaking"
|
|
13827
|
-
icon: "💥"
|
|
13815
|
+
name: "Glass Breaking"
|
|
13828
13816
|
},
|
|
13829
13817
|
{
|
|
13830
13818
|
id: "gunshot",
|
|
13831
|
-
name: "Gunshot / Explosion"
|
|
13832
|
-
icon: "💣"
|
|
13819
|
+
name: "Gunshot / Explosion"
|
|
13833
13820
|
},
|
|
13834
13821
|
{
|
|
13835
13822
|
id: "vehicle",
|
|
13836
|
-
name: "Vehicle"
|
|
13837
|
-
icon: "🚗"
|
|
13823
|
+
name: "Vehicle"
|
|
13838
13824
|
},
|
|
13839
13825
|
{
|
|
13840
13826
|
id: "siren",
|
|
13841
|
-
name: "Emergency Siren"
|
|
13842
|
-
icon: "🚑"
|
|
13827
|
+
name: "Emergency Siren"
|
|
13843
13828
|
},
|
|
13844
13829
|
{
|
|
13845
13830
|
id: "fire",
|
|
13846
|
-
name: "Fire / Smoke"
|
|
13847
|
-
icon: "🔥"
|
|
13831
|
+
name: "Fire / Smoke"
|
|
13848
13832
|
},
|
|
13849
13833
|
{
|
|
13850
13834
|
id: "water",
|
|
13851
|
-
name: "Water"
|
|
13852
|
-
icon: "💧"
|
|
13835
|
+
name: "Water"
|
|
13853
13836
|
},
|
|
13854
13837
|
{
|
|
13855
13838
|
id: "wind",
|
|
13856
|
-
name: "Wind / Weather"
|
|
13857
|
-
icon: "🌬️"
|
|
13839
|
+
name: "Wind / Weather"
|
|
13858
13840
|
},
|
|
13859
13841
|
{
|
|
13860
13842
|
id: "door",
|
|
13861
|
-
name: "Door"
|
|
13862
|
-
icon: "🚪"
|
|
13843
|
+
name: "Door"
|
|
13863
13844
|
},
|
|
13864
13845
|
{
|
|
13865
13846
|
id: "footsteps",
|
|
13866
|
-
name: "Footsteps"
|
|
13867
|
-
icon: "👣"
|
|
13847
|
+
name: "Footsteps"
|
|
13868
13848
|
},
|
|
13869
13849
|
{
|
|
13870
13850
|
id: "crowd",
|
|
13871
|
-
name: "Crowd / Chatter"
|
|
13872
|
-
icon: "👥"
|
|
13851
|
+
name: "Crowd / Chatter"
|
|
13873
13852
|
},
|
|
13874
13853
|
{
|
|
13875
13854
|
id: "telephone",
|
|
13876
|
-
name: "Telephone"
|
|
13877
|
-
icon: "📞"
|
|
13855
|
+
name: "Telephone"
|
|
13878
13856
|
},
|
|
13879
13857
|
{
|
|
13880
13858
|
id: "engine",
|
|
13881
|
-
name: "Engine / Motor"
|
|
13882
|
-
icon: "⚙️"
|
|
13859
|
+
name: "Engine / Motor"
|
|
13883
13860
|
},
|
|
13884
13861
|
{
|
|
13885
13862
|
id: "tools",
|
|
13886
|
-
name: "Tools / Construction"
|
|
13887
|
-
icon: "🔨"
|
|
13863
|
+
name: "Tools / Construction"
|
|
13888
13864
|
},
|
|
13889
13865
|
{
|
|
13890
13866
|
id: "silence",
|
|
13891
|
-
name: "Silence"
|
|
13892
|
-
icon: "🤫"
|
|
13867
|
+
name: "Silence"
|
|
13893
13868
|
}
|
|
13894
13869
|
];
|
|
13895
13870
|
var YAMNET_TO_MACRO = {
|
|
@@ -16391,7 +16366,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16391
16366
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16392
16367
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16393
16368
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16394
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16369
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16395
16370
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16396
16371
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16397
16372
|
* (`getObjectEvents` et al.).
|
|
@@ -16686,6 +16661,35 @@ var TrackSchema = object({
|
|
|
16686
16661
|
*/
|
|
16687
16662
|
hasFace: boolean().optional(),
|
|
16688
16663
|
/**
|
|
16664
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16665
|
+
* face an operator could ASSIGN to an identity.
|
|
16666
|
+
*
|
|
16667
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16668
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16669
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16670
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16671
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16672
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16673
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16674
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16675
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16676
|
+
* operator something to assign and delivers nothing.
|
|
16677
|
+
*
|
|
16678
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16679
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16680
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16681
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16682
|
+
*
|
|
16683
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16684
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16685
|
+
*
|
|
16686
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16687
|
+
* before the column omits it, and so does every server that predates the
|
|
16688
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16689
|
+
* never infer "no assignable face".
|
|
16690
|
+
*/
|
|
16691
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16692
|
+
/**
|
|
16689
16693
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16690
16694
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16691
16695
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18075,6 +18079,32 @@ var DetailResultSchema = object({
|
|
|
18075
18079
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18076
18080
|
bbox: NativeCropBboxSchema.optional(),
|
|
18077
18081
|
embedding: string().optional(),
|
|
18082
|
+
/**
|
|
18083
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18084
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18085
|
+
* the consuming gate treats as accept — never as reject.
|
|
18086
|
+
*/
|
|
18087
|
+
embeddingMagnitude: number().optional(),
|
|
18088
|
+
/**
|
|
18089
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18090
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18091
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18092
|
+
* the inference this model exists to forbid.
|
|
18093
|
+
*
|
|
18094
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18095
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18096
|
+
* its previous assumption instead of refusing.
|
|
18097
|
+
*
|
|
18098
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18099
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18100
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18101
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18102
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18103
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18104
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18105
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18106
|
+
*/
|
|
18107
|
+
embeddingModelId: string().optional(),
|
|
18078
18108
|
label: string().optional(),
|
|
18079
18109
|
/**
|
|
18080
18110
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18950,6 +18980,12 @@ var CameraStatusSchema = object({
|
|
|
18950
18980
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18951
18981
|
fetchedAt: number()
|
|
18952
18982
|
});
|
|
18983
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18984
|
+
"disabled",
|
|
18985
|
+
"unavailable",
|
|
18986
|
+
"cannot-host-camera-root",
|
|
18987
|
+
"accelerator-preferred"
|
|
18988
|
+
]);
|
|
18953
18989
|
var NodeInferenceDeviceSchema = object({
|
|
18954
18990
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18955
18991
|
key: string(),
|
|
@@ -18980,7 +19016,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18980
19016
|
* available per format; this is the stored selection that becomes the
|
|
18981
19017
|
* default for EVERY camera landing on this accelerator.
|
|
18982
19018
|
*/
|
|
18983
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
19019
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
19020
|
+
/**
|
|
19021
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
19022
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
19023
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
19024
|
+
* never disagree with the election — deriving it in the UI from
|
|
19025
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
19026
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
19027
|
+
* "an accelerator is serving" predicate).
|
|
19028
|
+
*/
|
|
19029
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18984
19030
|
});
|
|
18985
19031
|
var NodeInferenceDevicesSchema = object({
|
|
18986
19032
|
nodeId: string(),
|
|
@@ -19485,6 +19531,7 @@ DeviceType.Camera, method(object({
|
|
|
19485
19531
|
isBattery: boolean(),
|
|
19486
19532
|
reason: _enum([
|
|
19487
19533
|
"disabled",
|
|
19534
|
+
"offline",
|
|
19488
19535
|
"sleeping",
|
|
19489
19536
|
"unreachable",
|
|
19490
19537
|
"waking"
|
|
@@ -19530,9 +19577,17 @@ targets: array(object({
|
|
|
19530
19577
|
sleeping: boolean(),
|
|
19531
19578
|
/** Current device state rendered over the cached frame. State images
|
|
19532
19579
|
* remain authoritative even when their photographic background is
|
|
19533
|
-
* old; null means the link must carry a current camera frame.
|
|
19580
|
+
* old; null means the link must carry a current camera frame.
|
|
19581
|
+
*
|
|
19582
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19583
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19584
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19585
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19586
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19587
|
+
* state. */
|
|
19534
19588
|
stateReason: _enum([
|
|
19535
19589
|
"disabled",
|
|
19590
|
+
"offline",
|
|
19536
19591
|
"sleeping",
|
|
19537
19592
|
"unreachable",
|
|
19538
19593
|
"waking"
|
|
@@ -23822,7 +23877,12 @@ var ListResultSchema = object({
|
|
|
23822
23877
|
probedAt: number()
|
|
23823
23878
|
});
|
|
23824
23879
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
23825
|
-
|
|
23880
|
+
/**
|
|
23881
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
23882
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
23883
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
23884
|
+
*/
|
|
23885
|
+
var ConnectionEndpointSchema = object({
|
|
23826
23886
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
23827
23887
|
label: string(),
|
|
23828
23888
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -23865,7 +23925,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
23865
23925
|
* ordering between polls.
|
|
23866
23926
|
*/
|
|
23867
23927
|
priority: number()
|
|
23868
|
-
})
|
|
23928
|
+
});
|
|
23929
|
+
/**
|
|
23930
|
+
* Where the advertised local port came from. Ordered most → least
|
|
23931
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
23932
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
23933
|
+
*/
|
|
23934
|
+
var LocalPortSourceEnum = _enum([
|
|
23935
|
+
"server-config",
|
|
23936
|
+
"server-env",
|
|
23937
|
+
"caller-hint",
|
|
23938
|
+
"default"
|
|
23939
|
+
]);
|
|
23940
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
23941
|
+
var AdvertisedLocalPortSchema = object({
|
|
23942
|
+
port: number().int().min(1).max(65535),
|
|
23943
|
+
source: LocalPortSourceEnum
|
|
23944
|
+
});
|
|
23945
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
23946
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
23947
|
+
/**
|
|
23948
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
23949
|
+
* came from.
|
|
23950
|
+
*
|
|
23951
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
23952
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
23953
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
23954
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
23955
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
23956
|
+
* `caller-hint` is the hub's own socket.
|
|
23957
|
+
*
|
|
23958
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
23959
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
23960
|
+
* `caller-hint`.
|
|
23961
|
+
*/
|
|
23962
|
+
localPort: AdvertisedLocalPortSchema
|
|
23963
|
+
});
|
|
23869
23964
|
/**
|
|
23870
23965
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
23871
23966
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -23886,8 +23981,13 @@ var AllowedAddressesSchema = object({
|
|
|
23886
23981
|
*/
|
|
23887
23982
|
addresses: array(string()).readonly() });
|
|
23888
23983
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
23889
|
-
/**
|
|
23890
|
-
|
|
23984
|
+
/**
|
|
23985
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
23986
|
+
* written against the echoing contract keep working; the hub uses it
|
|
23987
|
+
* only when it cannot read its own port, and says so via
|
|
23988
|
+
* `localPort.source === 'caller-hint'`.
|
|
23989
|
+
*/
|
|
23990
|
+
port: number().int().min(1).max(65535).optional(),
|
|
23891
23991
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
23892
23992
|
* candidate. Default `true`. */
|
|
23893
23993
|
includeLoopback: boolean().optional(),
|
|
@@ -37075,7 +37175,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
37075
37175
|
hitPercent: 60,
|
|
37076
37176
|
samplingSeconds: 10
|
|
37077
37177
|
};
|
|
37078
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37079
37178
|
new Set(["devices", "classes"]);
|
|
37080
37179
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37081
37180
|
/**
|
|
@@ -37309,6 +37408,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37309
37408
|
createdAt: number(),
|
|
37310
37409
|
updatedAt: number()
|
|
37311
37410
|
});
|
|
37411
|
+
Object.freeze(Object.fromEntries([{
|
|
37412
|
+
stepId: "face-embedding",
|
|
37413
|
+
label: "Face recognition model",
|
|
37414
|
+
defaultModelId: "arcface-r100",
|
|
37415
|
+
indexName: "the enrolled face gallery",
|
|
37416
|
+
options: [
|
|
37417
|
+
{
|
|
37418
|
+
id: "arcface-r100",
|
|
37419
|
+
label: "ArcFace (ResNet34)"
|
|
37420
|
+
},
|
|
37421
|
+
{
|
|
37422
|
+
id: "auraface-r100",
|
|
37423
|
+
label: "AuraFace R100"
|
|
37424
|
+
},
|
|
37425
|
+
{
|
|
37426
|
+
id: "inception-resnet-v1",
|
|
37427
|
+
label: "Inception ResNet V1"
|
|
37428
|
+
}
|
|
37429
|
+
]
|
|
37430
|
+
}, {
|
|
37431
|
+
stepId: "clip-embedding",
|
|
37432
|
+
label: "Semantic search model",
|
|
37433
|
+
defaultModelId: "mobileclip-s1",
|
|
37434
|
+
indexName: "the object semantic-search index",
|
|
37435
|
+
options: [{
|
|
37436
|
+
id: "mobileclip-s1",
|
|
37437
|
+
label: "MobileCLIP S1"
|
|
37438
|
+
}, {
|
|
37439
|
+
id: "mobileclip-s2",
|
|
37440
|
+
label: "MobileCLIP S2"
|
|
37441
|
+
}]
|
|
37442
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37443
|
+
string().min(1);
|
|
37312
37444
|
object({
|
|
37313
37445
|
/**
|
|
37314
37446
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37329,10 +37461,21 @@ object({
|
|
|
37329
37461
|
*/
|
|
37330
37462
|
square: boolean()
|
|
37331
37463
|
});
|
|
37332
|
-
|
|
37464
|
+
/**
|
|
37465
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37466
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37467
|
+
*/
|
|
37468
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37333
37469
|
paddingRatio: .15,
|
|
37334
37470
|
square: false
|
|
37335
|
-
}
|
|
37471
|
+
};
|
|
37472
|
+
Object.freeze({
|
|
37473
|
+
x: 0,
|
|
37474
|
+
y: 0,
|
|
37475
|
+
w: 1,
|
|
37476
|
+
h: 1
|
|
37477
|
+
});
|
|
37478
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37336
37479
|
/**
|
|
37337
37480
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37338
37481
|
*
|
package/package.json
CHANGED