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