@camstack/addon-provider-ecowitt 0.2.22 → 0.2.23
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 +138 -56
- package/dist/addon.mjs +138 -56
- 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
|
|
@@ -19489,6 +19519,7 @@ DeviceType.Camera, method(object({
|
|
|
19489
19519
|
isBattery: boolean(),
|
|
19490
19520
|
reason: _enum([
|
|
19491
19521
|
"disabled",
|
|
19522
|
+
"offline",
|
|
19492
19523
|
"sleeping",
|
|
19493
19524
|
"unreachable",
|
|
19494
19525
|
"waking"
|
|
@@ -19534,9 +19565,17 @@ targets: array(object({
|
|
|
19534
19565
|
sleeping: boolean(),
|
|
19535
19566
|
/** Current device state rendered over the cached frame. State images
|
|
19536
19567
|
* remain authoritative even when their photographic background is
|
|
19537
|
-
* old; null means the link must carry a current camera frame.
|
|
19568
|
+
* old; null means the link must carry a current camera frame.
|
|
19569
|
+
*
|
|
19570
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19571
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19572
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19573
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19574
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19575
|
+
* state. */
|
|
19538
19576
|
stateReason: _enum([
|
|
19539
19577
|
"disabled",
|
|
19578
|
+
"offline",
|
|
19540
19579
|
"sleeping",
|
|
19541
19580
|
"unreachable",
|
|
19542
19581
|
"waking"
|
|
@@ -37079,7 +37118,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
37079
37118
|
hitPercent: 60,
|
|
37080
37119
|
samplingSeconds: 10
|
|
37081
37120
|
};
|
|
37082
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37083
37121
|
new Set(["devices", "classes"]);
|
|
37084
37122
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37085
37123
|
/**
|
|
@@ -37313,6 +37351,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37313
37351
|
createdAt: number(),
|
|
37314
37352
|
updatedAt: number()
|
|
37315
37353
|
});
|
|
37354
|
+
Object.freeze(Object.fromEntries([{
|
|
37355
|
+
stepId: "face-embedding",
|
|
37356
|
+
label: "Face recognition model",
|
|
37357
|
+
defaultModelId: "arcface-r100",
|
|
37358
|
+
indexName: "the enrolled face gallery",
|
|
37359
|
+
options: [
|
|
37360
|
+
{
|
|
37361
|
+
id: "arcface-r100",
|
|
37362
|
+
label: "ArcFace (ResNet34)"
|
|
37363
|
+
},
|
|
37364
|
+
{
|
|
37365
|
+
id: "auraface-r100",
|
|
37366
|
+
label: "AuraFace R100"
|
|
37367
|
+
},
|
|
37368
|
+
{
|
|
37369
|
+
id: "inception-resnet-v1",
|
|
37370
|
+
label: "Inception ResNet V1"
|
|
37371
|
+
}
|
|
37372
|
+
]
|
|
37373
|
+
}, {
|
|
37374
|
+
stepId: "clip-embedding",
|
|
37375
|
+
label: "Semantic search model",
|
|
37376
|
+
defaultModelId: "mobileclip-s1",
|
|
37377
|
+
indexName: "the object semantic-search index",
|
|
37378
|
+
options: [{
|
|
37379
|
+
id: "mobileclip-s1",
|
|
37380
|
+
label: "MobileCLIP S1"
|
|
37381
|
+
}, {
|
|
37382
|
+
id: "mobileclip-s2",
|
|
37383
|
+
label: "MobileCLIP S2"
|
|
37384
|
+
}]
|
|
37385
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37386
|
+
string().min(1);
|
|
37316
37387
|
object({
|
|
37317
37388
|
/**
|
|
37318
37389
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37333,10 +37404,21 @@ object({
|
|
|
37333
37404
|
*/
|
|
37334
37405
|
square: boolean()
|
|
37335
37406
|
});
|
|
37336
|
-
|
|
37407
|
+
/**
|
|
37408
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37409
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37410
|
+
*/
|
|
37411
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37337
37412
|
paddingRatio: .15,
|
|
37338
37413
|
square: false
|
|
37339
|
-
}
|
|
37414
|
+
};
|
|
37415
|
+
Object.freeze({
|
|
37416
|
+
x: 0,
|
|
37417
|
+
y: 0,
|
|
37418
|
+
w: 1,
|
|
37419
|
+
h: 1
|
|
37420
|
+
});
|
|
37421
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37340
37422
|
/**
|
|
37341
37423
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37342
37424
|
*
|
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
|
|
@@ -19488,6 +19518,7 @@ DeviceType.Camera, method(object({
|
|
|
19488
19518
|
isBattery: boolean(),
|
|
19489
19519
|
reason: _enum([
|
|
19490
19520
|
"disabled",
|
|
19521
|
+
"offline",
|
|
19491
19522
|
"sleeping",
|
|
19492
19523
|
"unreachable",
|
|
19493
19524
|
"waking"
|
|
@@ -19533,9 +19564,17 @@ targets: array(object({
|
|
|
19533
19564
|
sleeping: boolean(),
|
|
19534
19565
|
/** Current device state rendered over the cached frame. State images
|
|
19535
19566
|
* remain authoritative even when their photographic background is
|
|
19536
|
-
* old; null means the link must carry a current camera frame.
|
|
19567
|
+
* old; null means the link must carry a current camera frame.
|
|
19568
|
+
*
|
|
19569
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19570
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19571
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19572
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19573
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19574
|
+
* state. */
|
|
19537
19575
|
stateReason: _enum([
|
|
19538
19576
|
"disabled",
|
|
19577
|
+
"offline",
|
|
19539
19578
|
"sleeping",
|
|
19540
19579
|
"unreachable",
|
|
19541
19580
|
"waking"
|
|
@@ -37078,7 +37117,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
37078
37117
|
hitPercent: 60,
|
|
37079
37118
|
samplingSeconds: 10
|
|
37080
37119
|
};
|
|
37081
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37082
37120
|
new Set(["devices", "classes"]);
|
|
37083
37121
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37084
37122
|
/**
|
|
@@ -37312,6 +37350,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37312
37350
|
createdAt: number(),
|
|
37313
37351
|
updatedAt: number()
|
|
37314
37352
|
});
|
|
37353
|
+
Object.freeze(Object.fromEntries([{
|
|
37354
|
+
stepId: "face-embedding",
|
|
37355
|
+
label: "Face recognition model",
|
|
37356
|
+
defaultModelId: "arcface-r100",
|
|
37357
|
+
indexName: "the enrolled face gallery",
|
|
37358
|
+
options: [
|
|
37359
|
+
{
|
|
37360
|
+
id: "arcface-r100",
|
|
37361
|
+
label: "ArcFace (ResNet34)"
|
|
37362
|
+
},
|
|
37363
|
+
{
|
|
37364
|
+
id: "auraface-r100",
|
|
37365
|
+
label: "AuraFace R100"
|
|
37366
|
+
},
|
|
37367
|
+
{
|
|
37368
|
+
id: "inception-resnet-v1",
|
|
37369
|
+
label: "Inception ResNet V1"
|
|
37370
|
+
}
|
|
37371
|
+
]
|
|
37372
|
+
}, {
|
|
37373
|
+
stepId: "clip-embedding",
|
|
37374
|
+
label: "Semantic search model",
|
|
37375
|
+
defaultModelId: "mobileclip-s1",
|
|
37376
|
+
indexName: "the object semantic-search index",
|
|
37377
|
+
options: [{
|
|
37378
|
+
id: "mobileclip-s1",
|
|
37379
|
+
label: "MobileCLIP S1"
|
|
37380
|
+
}, {
|
|
37381
|
+
id: "mobileclip-s2",
|
|
37382
|
+
label: "MobileCLIP S2"
|
|
37383
|
+
}]
|
|
37384
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37385
|
+
string().min(1);
|
|
37315
37386
|
object({
|
|
37316
37387
|
/**
|
|
37317
37388
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37332,10 +37403,21 @@ object({
|
|
|
37332
37403
|
*/
|
|
37333
37404
|
square: boolean()
|
|
37334
37405
|
});
|
|
37335
|
-
|
|
37406
|
+
/**
|
|
37407
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37408
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37409
|
+
*/
|
|
37410
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37336
37411
|
paddingRatio: .15,
|
|
37337
37412
|
square: false
|
|
37338
|
-
}
|
|
37413
|
+
};
|
|
37414
|
+
Object.freeze({
|
|
37415
|
+
x: 0,
|
|
37416
|
+
y: 0,
|
|
37417
|
+
w: 1,
|
|
37418
|
+
h: 1
|
|
37419
|
+
});
|
|
37420
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37339
37421
|
/**
|
|
37340
37422
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37341
37423
|
*
|
package/package.json
CHANGED