@camstack/addon-ai 0.4.13 → 0.4.15
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
|
@@ -7772,7 +7772,7 @@ var RecordingBandSchema = object({
|
|
|
7772
7772
|
postBufferSec: number$1().min(0).optional()
|
|
7773
7773
|
});
|
|
7774
7774
|
({
|
|
7775
|
-
preBufferSec:
|
|
7775
|
+
preBufferSec: 15,
|
|
7776
7776
|
postBufferSec: 30
|
|
7777
7777
|
}).postBufferSec * 1e3;
|
|
7778
7778
|
/**
|
|
@@ -13792,128 +13792,103 @@ var COCO_TO_MACRO = {
|
|
|
13792
13792
|
var AUDIO_MACRO_LABELS = [
|
|
13793
13793
|
{
|
|
13794
13794
|
id: "speech",
|
|
13795
|
-
name: "Speech"
|
|
13796
|
-
icon: "🗣️"
|
|
13795
|
+
name: "Speech"
|
|
13797
13796
|
},
|
|
13798
13797
|
{
|
|
13799
13798
|
id: "scream",
|
|
13800
|
-
name: "Scream / Shout"
|
|
13801
|
-
icon: "😱"
|
|
13799
|
+
name: "Scream / Shout"
|
|
13802
13800
|
},
|
|
13803
13801
|
{
|
|
13804
13802
|
id: "crying",
|
|
13805
|
-
name: "Crying / Baby"
|
|
13806
|
-
icon: "😢"
|
|
13803
|
+
name: "Crying / Baby"
|
|
13807
13804
|
},
|
|
13808
13805
|
{
|
|
13809
13806
|
id: "laughter",
|
|
13810
|
-
name: "Laughter"
|
|
13811
|
-
icon: "😂"
|
|
13807
|
+
name: "Laughter"
|
|
13812
13808
|
},
|
|
13813
13809
|
{
|
|
13814
13810
|
id: "music",
|
|
13815
|
-
name: "Music"
|
|
13816
|
-
icon: "🎵"
|
|
13811
|
+
name: "Music"
|
|
13817
13812
|
},
|
|
13818
13813
|
{
|
|
13819
13814
|
id: "dog",
|
|
13820
|
-
name: "Dog"
|
|
13821
|
-
icon: "🐕"
|
|
13815
|
+
name: "Dog"
|
|
13822
13816
|
},
|
|
13823
13817
|
{
|
|
13824
13818
|
id: "cat",
|
|
13825
|
-
name: "Cat"
|
|
13826
|
-
icon: "🐈"
|
|
13819
|
+
name: "Cat"
|
|
13827
13820
|
},
|
|
13828
13821
|
{
|
|
13829
13822
|
id: "bird",
|
|
13830
|
-
name: "Bird"
|
|
13831
|
-
icon: "🐦"
|
|
13823
|
+
name: "Bird"
|
|
13832
13824
|
},
|
|
13833
13825
|
{
|
|
13834
13826
|
id: "animal",
|
|
13835
|
-
name: "Animal (other)"
|
|
13836
|
-
icon: "🐾"
|
|
13827
|
+
name: "Animal (other)"
|
|
13837
13828
|
},
|
|
13838
13829
|
{
|
|
13839
13830
|
id: "alarm",
|
|
13840
|
-
name: "Alarm / Siren"
|
|
13841
|
-
icon: "🚨"
|
|
13831
|
+
name: "Alarm / Siren"
|
|
13842
13832
|
},
|
|
13843
13833
|
{
|
|
13844
13834
|
id: "doorbell",
|
|
13845
|
-
name: "Doorbell / Knock"
|
|
13846
|
-
icon: "🔔"
|
|
13835
|
+
name: "Doorbell / Knock"
|
|
13847
13836
|
},
|
|
13848
13837
|
{
|
|
13849
13838
|
id: "glass_breaking",
|
|
13850
|
-
name: "Glass Breaking"
|
|
13851
|
-
icon: "💥"
|
|
13839
|
+
name: "Glass Breaking"
|
|
13852
13840
|
},
|
|
13853
13841
|
{
|
|
13854
13842
|
id: "gunshot",
|
|
13855
|
-
name: "Gunshot / Explosion"
|
|
13856
|
-
icon: "💣"
|
|
13843
|
+
name: "Gunshot / Explosion"
|
|
13857
13844
|
},
|
|
13858
13845
|
{
|
|
13859
13846
|
id: "vehicle",
|
|
13860
|
-
name: "Vehicle"
|
|
13861
|
-
icon: "🚗"
|
|
13847
|
+
name: "Vehicle"
|
|
13862
13848
|
},
|
|
13863
13849
|
{
|
|
13864
13850
|
id: "siren",
|
|
13865
|
-
name: "Emergency Siren"
|
|
13866
|
-
icon: "🚑"
|
|
13851
|
+
name: "Emergency Siren"
|
|
13867
13852
|
},
|
|
13868
13853
|
{
|
|
13869
13854
|
id: "fire",
|
|
13870
|
-
name: "Fire / Smoke"
|
|
13871
|
-
icon: "🔥"
|
|
13855
|
+
name: "Fire / Smoke"
|
|
13872
13856
|
},
|
|
13873
13857
|
{
|
|
13874
13858
|
id: "water",
|
|
13875
|
-
name: "Water"
|
|
13876
|
-
icon: "💧"
|
|
13859
|
+
name: "Water"
|
|
13877
13860
|
},
|
|
13878
13861
|
{
|
|
13879
13862
|
id: "wind",
|
|
13880
|
-
name: "Wind / Weather"
|
|
13881
|
-
icon: "🌬️"
|
|
13863
|
+
name: "Wind / Weather"
|
|
13882
13864
|
},
|
|
13883
13865
|
{
|
|
13884
13866
|
id: "door",
|
|
13885
|
-
name: "Door"
|
|
13886
|
-
icon: "🚪"
|
|
13867
|
+
name: "Door"
|
|
13887
13868
|
},
|
|
13888
13869
|
{
|
|
13889
13870
|
id: "footsteps",
|
|
13890
|
-
name: "Footsteps"
|
|
13891
|
-
icon: "👣"
|
|
13871
|
+
name: "Footsteps"
|
|
13892
13872
|
},
|
|
13893
13873
|
{
|
|
13894
13874
|
id: "crowd",
|
|
13895
|
-
name: "Crowd / Chatter"
|
|
13896
|
-
icon: "👥"
|
|
13875
|
+
name: "Crowd / Chatter"
|
|
13897
13876
|
},
|
|
13898
13877
|
{
|
|
13899
13878
|
id: "telephone",
|
|
13900
|
-
name: "Telephone"
|
|
13901
|
-
icon: "📞"
|
|
13879
|
+
name: "Telephone"
|
|
13902
13880
|
},
|
|
13903
13881
|
{
|
|
13904
13882
|
id: "engine",
|
|
13905
|
-
name: "Engine / Motor"
|
|
13906
|
-
icon: "⚙️"
|
|
13883
|
+
name: "Engine / Motor"
|
|
13907
13884
|
},
|
|
13908
13885
|
{
|
|
13909
13886
|
id: "tools",
|
|
13910
|
-
name: "Tools / Construction"
|
|
13911
|
-
icon: "🔨"
|
|
13887
|
+
name: "Tools / Construction"
|
|
13912
13888
|
},
|
|
13913
13889
|
{
|
|
13914
13890
|
id: "silence",
|
|
13915
|
-
name: "Silence"
|
|
13916
|
-
icon: "🤫"
|
|
13891
|
+
name: "Silence"
|
|
13917
13892
|
}
|
|
13918
13893
|
];
|
|
13919
13894
|
var YAMNET_TO_MACRO = {
|
|
@@ -16377,7 +16352,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16377
16352
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16378
16353
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16379
16354
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16380
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16355
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16381
16356
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16382
16357
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16383
16358
|
* (`getObjectEvents` et al.).
|
|
@@ -16672,6 +16647,35 @@ var TrackSchema = object({
|
|
|
16672
16647
|
*/
|
|
16673
16648
|
hasFace: boolean().optional(),
|
|
16674
16649
|
/**
|
|
16650
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16651
|
+
* face an operator could ASSIGN to an identity.
|
|
16652
|
+
*
|
|
16653
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16654
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16655
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16656
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16657
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16658
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16659
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16660
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16661
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16662
|
+
* operator something to assign and delivers nothing.
|
|
16663
|
+
*
|
|
16664
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16665
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16666
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16667
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16668
|
+
*
|
|
16669
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16670
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16671
|
+
*
|
|
16672
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16673
|
+
* before the column omits it, and so does every server that predates the
|
|
16674
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16675
|
+
* never infer "no assignable face".
|
|
16676
|
+
*/
|
|
16677
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16678
|
+
/**
|
|
16675
16679
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16676
16680
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16677
16681
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18021,6 +18025,32 @@ var DetailResultSchema = object({
|
|
|
18021
18025
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18022
18026
|
bbox: NativeCropBboxSchema.optional(),
|
|
18023
18027
|
embedding: string().optional(),
|
|
18028
|
+
/**
|
|
18029
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18030
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18031
|
+
* the consuming gate treats as accept — never as reject.
|
|
18032
|
+
*/
|
|
18033
|
+
embeddingMagnitude: number$1().optional(),
|
|
18034
|
+
/**
|
|
18035
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18036
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18037
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18038
|
+
* the inference this model exists to forbid.
|
|
18039
|
+
*
|
|
18040
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18041
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18042
|
+
* its previous assumption instead of refusing.
|
|
18043
|
+
*
|
|
18044
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18045
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18046
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18047
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18048
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18049
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18050
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18051
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18052
|
+
*/
|
|
18053
|
+
embeddingModelId: string().optional(),
|
|
18024
18054
|
label: string().optional(),
|
|
18025
18055
|
/**
|
|
18026
18056
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18896,6 +18926,12 @@ var CameraStatusSchema = object({
|
|
|
18896
18926
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18897
18927
|
fetchedAt: number$1()
|
|
18898
18928
|
});
|
|
18929
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18930
|
+
"disabled",
|
|
18931
|
+
"unavailable",
|
|
18932
|
+
"cannot-host-camera-root",
|
|
18933
|
+
"accelerator-preferred"
|
|
18934
|
+
]);
|
|
18899
18935
|
var NodeInferenceDeviceSchema = object({
|
|
18900
18936
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18901
18937
|
key: string(),
|
|
@@ -18926,7 +18962,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18926
18962
|
* available per format; this is the stored selection that becomes the
|
|
18927
18963
|
* default for EVERY camera landing on this accelerator.
|
|
18928
18964
|
*/
|
|
18929
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18965
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18966
|
+
/**
|
|
18967
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18968
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18969
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18970
|
+
* never disagree with the election — deriving it in the UI from
|
|
18971
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18972
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18973
|
+
* "an accelerator is serving" predicate).
|
|
18974
|
+
*/
|
|
18975
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18930
18976
|
});
|
|
18931
18977
|
var NodeInferenceDevicesSchema = object({
|
|
18932
18978
|
nodeId: string(),
|
|
@@ -19431,6 +19477,7 @@ DeviceType.Camera, method(object({
|
|
|
19431
19477
|
isBattery: boolean(),
|
|
19432
19478
|
reason: _enum([
|
|
19433
19479
|
"disabled",
|
|
19480
|
+
"offline",
|
|
19434
19481
|
"sleeping",
|
|
19435
19482
|
"unreachable",
|
|
19436
19483
|
"waking"
|
|
@@ -19476,9 +19523,17 @@ targets: array(object({
|
|
|
19476
19523
|
sleeping: boolean(),
|
|
19477
19524
|
/** Current device state rendered over the cached frame. State images
|
|
19478
19525
|
* remain authoritative even when their photographic background is
|
|
19479
|
-
* old; null means the link must carry a current camera frame.
|
|
19526
|
+
* old; null means the link must carry a current camera frame.
|
|
19527
|
+
*
|
|
19528
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19529
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19530
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19531
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19532
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19533
|
+
* state. */
|
|
19480
19534
|
stateReason: _enum([
|
|
19481
19535
|
"disabled",
|
|
19536
|
+
"offline",
|
|
19482
19537
|
"sleeping",
|
|
19483
19538
|
"unreachable",
|
|
19484
19539
|
"waking"
|
|
@@ -22675,7 +22730,12 @@ var ListResultSchema = object({
|
|
|
22675
22730
|
probedAt: number$1()
|
|
22676
22731
|
});
|
|
22677
22732
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22678
|
-
|
|
22733
|
+
/**
|
|
22734
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22735
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22736
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22737
|
+
*/
|
|
22738
|
+
var ConnectionEndpointSchema = object({
|
|
22679
22739
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22680
22740
|
label: string(),
|
|
22681
22741
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22718,7 +22778,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22718
22778
|
* ordering between polls.
|
|
22719
22779
|
*/
|
|
22720
22780
|
priority: number$1()
|
|
22721
|
-
})
|
|
22781
|
+
});
|
|
22782
|
+
/**
|
|
22783
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22784
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22785
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22786
|
+
*/
|
|
22787
|
+
var LocalPortSourceEnum = _enum([
|
|
22788
|
+
"server-config",
|
|
22789
|
+
"server-env",
|
|
22790
|
+
"caller-hint",
|
|
22791
|
+
"default"
|
|
22792
|
+
]);
|
|
22793
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22794
|
+
var AdvertisedLocalPortSchema = object({
|
|
22795
|
+
port: number$1().int().min(1).max(65535),
|
|
22796
|
+
source: LocalPortSourceEnum
|
|
22797
|
+
});
|
|
22798
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22799
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22800
|
+
/**
|
|
22801
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22802
|
+
* came from.
|
|
22803
|
+
*
|
|
22804
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22805
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22806
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22807
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22808
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22809
|
+
* `caller-hint` is the hub's own socket.
|
|
22810
|
+
*
|
|
22811
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22812
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22813
|
+
* `caller-hint`.
|
|
22814
|
+
*/
|
|
22815
|
+
localPort: AdvertisedLocalPortSchema
|
|
22816
|
+
});
|
|
22722
22817
|
/**
|
|
22723
22818
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22724
22819
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22739,8 +22834,13 @@ var AllowedAddressesSchema = object({
|
|
|
22739
22834
|
*/
|
|
22740
22835
|
addresses: array(string()).readonly() });
|
|
22741
22836
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22742
|
-
/**
|
|
22743
|
-
|
|
22837
|
+
/**
|
|
22838
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22839
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22840
|
+
* only when it cannot read its own port, and says so via
|
|
22841
|
+
* `localPort.source === 'caller-hint'`.
|
|
22842
|
+
*/
|
|
22843
|
+
port: number$1().int().min(1).max(65535).optional(),
|
|
22744
22844
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22745
22845
|
* candidate. Default `true`. */
|
|
22746
22846
|
includeLoopback: boolean().optional(),
|
|
@@ -33664,7 +33764,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
33664
33764
|
hitPercent: 60,
|
|
33665
33765
|
samplingSeconds: 10
|
|
33666
33766
|
};
|
|
33667
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33668
33767
|
new Set(["devices", "classes"]);
|
|
33669
33768
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33670
33769
|
/**
|
|
@@ -33898,6 +33997,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
33898
33997
|
createdAt: number$1(),
|
|
33899
33998
|
updatedAt: number$1()
|
|
33900
33999
|
});
|
|
34000
|
+
Object.freeze(Object.fromEntries([{
|
|
34001
|
+
stepId: "face-embedding",
|
|
34002
|
+
label: "Face recognition model",
|
|
34003
|
+
defaultModelId: "arcface-r100",
|
|
34004
|
+
indexName: "the enrolled face gallery",
|
|
34005
|
+
options: [
|
|
34006
|
+
{
|
|
34007
|
+
id: "arcface-r100",
|
|
34008
|
+
label: "ArcFace (ResNet34)"
|
|
34009
|
+
},
|
|
34010
|
+
{
|
|
34011
|
+
id: "auraface-r100",
|
|
34012
|
+
label: "AuraFace R100"
|
|
34013
|
+
},
|
|
34014
|
+
{
|
|
34015
|
+
id: "inception-resnet-v1",
|
|
34016
|
+
label: "Inception ResNet V1"
|
|
34017
|
+
}
|
|
34018
|
+
]
|
|
34019
|
+
}, {
|
|
34020
|
+
stepId: "clip-embedding",
|
|
34021
|
+
label: "Semantic search model",
|
|
34022
|
+
defaultModelId: "mobileclip-s1",
|
|
34023
|
+
indexName: "the object semantic-search index",
|
|
34024
|
+
options: [{
|
|
34025
|
+
id: "mobileclip-s1",
|
|
34026
|
+
label: "MobileCLIP S1"
|
|
34027
|
+
}, {
|
|
34028
|
+
id: "mobileclip-s2",
|
|
34029
|
+
label: "MobileCLIP S2"
|
|
34030
|
+
}]
|
|
34031
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34032
|
+
string().min(1);
|
|
33901
34033
|
object({
|
|
33902
34034
|
/**
|
|
33903
34035
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -33918,10 +34050,21 @@ object({
|
|
|
33918
34050
|
*/
|
|
33919
34051
|
square: boolean()
|
|
33920
34052
|
});
|
|
33921
|
-
|
|
34053
|
+
/**
|
|
34054
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
34055
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
34056
|
+
*/
|
|
34057
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
33922
34058
|
paddingRatio: .15,
|
|
33923
34059
|
square: false
|
|
33924
|
-
}
|
|
34060
|
+
};
|
|
34061
|
+
Object.freeze({
|
|
34062
|
+
x: 0,
|
|
34063
|
+
y: 0,
|
|
34064
|
+
w: 1,
|
|
34065
|
+
h: 1
|
|
34066
|
+
});
|
|
34067
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
33925
34068
|
/**
|
|
33926
34069
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
33927
34070
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -7798,7 +7798,7 @@ var RecordingBandSchema = object({
|
|
|
7798
7798
|
postBufferSec: number$1().min(0).optional()
|
|
7799
7799
|
});
|
|
7800
7800
|
({
|
|
7801
|
-
preBufferSec:
|
|
7801
|
+
preBufferSec: 15,
|
|
7802
7802
|
postBufferSec: 30
|
|
7803
7803
|
}).postBufferSec * 1e3;
|
|
7804
7804
|
/**
|
|
@@ -13818,128 +13818,103 @@ var COCO_TO_MACRO = {
|
|
|
13818
13818
|
var AUDIO_MACRO_LABELS = [
|
|
13819
13819
|
{
|
|
13820
13820
|
id: "speech",
|
|
13821
|
-
name: "Speech"
|
|
13822
|
-
icon: "🗣️"
|
|
13821
|
+
name: "Speech"
|
|
13823
13822
|
},
|
|
13824
13823
|
{
|
|
13825
13824
|
id: "scream",
|
|
13826
|
-
name: "Scream / Shout"
|
|
13827
|
-
icon: "😱"
|
|
13825
|
+
name: "Scream / Shout"
|
|
13828
13826
|
},
|
|
13829
13827
|
{
|
|
13830
13828
|
id: "crying",
|
|
13831
|
-
name: "Crying / Baby"
|
|
13832
|
-
icon: "😢"
|
|
13829
|
+
name: "Crying / Baby"
|
|
13833
13830
|
},
|
|
13834
13831
|
{
|
|
13835
13832
|
id: "laughter",
|
|
13836
|
-
name: "Laughter"
|
|
13837
|
-
icon: "😂"
|
|
13833
|
+
name: "Laughter"
|
|
13838
13834
|
},
|
|
13839
13835
|
{
|
|
13840
13836
|
id: "music",
|
|
13841
|
-
name: "Music"
|
|
13842
|
-
icon: "🎵"
|
|
13837
|
+
name: "Music"
|
|
13843
13838
|
},
|
|
13844
13839
|
{
|
|
13845
13840
|
id: "dog",
|
|
13846
|
-
name: "Dog"
|
|
13847
|
-
icon: "🐕"
|
|
13841
|
+
name: "Dog"
|
|
13848
13842
|
},
|
|
13849
13843
|
{
|
|
13850
13844
|
id: "cat",
|
|
13851
|
-
name: "Cat"
|
|
13852
|
-
icon: "🐈"
|
|
13845
|
+
name: "Cat"
|
|
13853
13846
|
},
|
|
13854
13847
|
{
|
|
13855
13848
|
id: "bird",
|
|
13856
|
-
name: "Bird"
|
|
13857
|
-
icon: "🐦"
|
|
13849
|
+
name: "Bird"
|
|
13858
13850
|
},
|
|
13859
13851
|
{
|
|
13860
13852
|
id: "animal",
|
|
13861
|
-
name: "Animal (other)"
|
|
13862
|
-
icon: "🐾"
|
|
13853
|
+
name: "Animal (other)"
|
|
13863
13854
|
},
|
|
13864
13855
|
{
|
|
13865
13856
|
id: "alarm",
|
|
13866
|
-
name: "Alarm / Siren"
|
|
13867
|
-
icon: "🚨"
|
|
13857
|
+
name: "Alarm / Siren"
|
|
13868
13858
|
},
|
|
13869
13859
|
{
|
|
13870
13860
|
id: "doorbell",
|
|
13871
|
-
name: "Doorbell / Knock"
|
|
13872
|
-
icon: "🔔"
|
|
13861
|
+
name: "Doorbell / Knock"
|
|
13873
13862
|
},
|
|
13874
13863
|
{
|
|
13875
13864
|
id: "glass_breaking",
|
|
13876
|
-
name: "Glass Breaking"
|
|
13877
|
-
icon: "💥"
|
|
13865
|
+
name: "Glass Breaking"
|
|
13878
13866
|
},
|
|
13879
13867
|
{
|
|
13880
13868
|
id: "gunshot",
|
|
13881
|
-
name: "Gunshot / Explosion"
|
|
13882
|
-
icon: "💣"
|
|
13869
|
+
name: "Gunshot / Explosion"
|
|
13883
13870
|
},
|
|
13884
13871
|
{
|
|
13885
13872
|
id: "vehicle",
|
|
13886
|
-
name: "Vehicle"
|
|
13887
|
-
icon: "🚗"
|
|
13873
|
+
name: "Vehicle"
|
|
13888
13874
|
},
|
|
13889
13875
|
{
|
|
13890
13876
|
id: "siren",
|
|
13891
|
-
name: "Emergency Siren"
|
|
13892
|
-
icon: "🚑"
|
|
13877
|
+
name: "Emergency Siren"
|
|
13893
13878
|
},
|
|
13894
13879
|
{
|
|
13895
13880
|
id: "fire",
|
|
13896
|
-
name: "Fire / Smoke"
|
|
13897
|
-
icon: "🔥"
|
|
13881
|
+
name: "Fire / Smoke"
|
|
13898
13882
|
},
|
|
13899
13883
|
{
|
|
13900
13884
|
id: "water",
|
|
13901
|
-
name: "Water"
|
|
13902
|
-
icon: "💧"
|
|
13885
|
+
name: "Water"
|
|
13903
13886
|
},
|
|
13904
13887
|
{
|
|
13905
13888
|
id: "wind",
|
|
13906
|
-
name: "Wind / Weather"
|
|
13907
|
-
icon: "🌬️"
|
|
13889
|
+
name: "Wind / Weather"
|
|
13908
13890
|
},
|
|
13909
13891
|
{
|
|
13910
13892
|
id: "door",
|
|
13911
|
-
name: "Door"
|
|
13912
|
-
icon: "🚪"
|
|
13893
|
+
name: "Door"
|
|
13913
13894
|
},
|
|
13914
13895
|
{
|
|
13915
13896
|
id: "footsteps",
|
|
13916
|
-
name: "Footsteps"
|
|
13917
|
-
icon: "👣"
|
|
13897
|
+
name: "Footsteps"
|
|
13918
13898
|
},
|
|
13919
13899
|
{
|
|
13920
13900
|
id: "crowd",
|
|
13921
|
-
name: "Crowd / Chatter"
|
|
13922
|
-
icon: "👥"
|
|
13901
|
+
name: "Crowd / Chatter"
|
|
13923
13902
|
},
|
|
13924
13903
|
{
|
|
13925
13904
|
id: "telephone",
|
|
13926
|
-
name: "Telephone"
|
|
13927
|
-
icon: "📞"
|
|
13905
|
+
name: "Telephone"
|
|
13928
13906
|
},
|
|
13929
13907
|
{
|
|
13930
13908
|
id: "engine",
|
|
13931
|
-
name: "Engine / Motor"
|
|
13932
|
-
icon: "⚙️"
|
|
13909
|
+
name: "Engine / Motor"
|
|
13933
13910
|
},
|
|
13934
13911
|
{
|
|
13935
13912
|
id: "tools",
|
|
13936
|
-
name: "Tools / Construction"
|
|
13937
|
-
icon: "🔨"
|
|
13913
|
+
name: "Tools / Construction"
|
|
13938
13914
|
},
|
|
13939
13915
|
{
|
|
13940
13916
|
id: "silence",
|
|
13941
|
-
name: "Silence"
|
|
13942
|
-
icon: "🤫"
|
|
13917
|
+
name: "Silence"
|
|
13943
13918
|
}
|
|
13944
13919
|
];
|
|
13945
13920
|
var YAMNET_TO_MACRO = {
|
|
@@ -16403,7 +16378,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16403
16378
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16404
16379
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16405
16380
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16406
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16381
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16407
16382
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16408
16383
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16409
16384
|
* (`getObjectEvents` et al.).
|
|
@@ -16698,6 +16673,35 @@ var TrackSchema = object({
|
|
|
16698
16673
|
*/
|
|
16699
16674
|
hasFace: boolean().optional(),
|
|
16700
16675
|
/**
|
|
16676
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16677
|
+
* face an operator could ASSIGN to an identity.
|
|
16678
|
+
*
|
|
16679
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16680
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16681
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16682
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16683
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16684
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16685
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16686
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16687
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16688
|
+
* operator something to assign and delivers nothing.
|
|
16689
|
+
*
|
|
16690
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16691
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16692
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16693
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16694
|
+
*
|
|
16695
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16696
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16697
|
+
*
|
|
16698
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16699
|
+
* before the column omits it, and so does every server that predates the
|
|
16700
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16701
|
+
* never infer "no assignable face".
|
|
16702
|
+
*/
|
|
16703
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16704
|
+
/**
|
|
16701
16705
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16702
16706
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16703
16707
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18047,6 +18051,32 @@ var DetailResultSchema = object({
|
|
|
18047
18051
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18048
18052
|
bbox: NativeCropBboxSchema.optional(),
|
|
18049
18053
|
embedding: string().optional(),
|
|
18054
|
+
/**
|
|
18055
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18056
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18057
|
+
* the consuming gate treats as accept — never as reject.
|
|
18058
|
+
*/
|
|
18059
|
+
embeddingMagnitude: number$1().optional(),
|
|
18060
|
+
/**
|
|
18061
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18062
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18063
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18064
|
+
* the inference this model exists to forbid.
|
|
18065
|
+
*
|
|
18066
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18067
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18068
|
+
* its previous assumption instead of refusing.
|
|
18069
|
+
*
|
|
18070
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18071
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18072
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18073
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18074
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18075
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18076
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18077
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18078
|
+
*/
|
|
18079
|
+
embeddingModelId: string().optional(),
|
|
18050
18080
|
label: string().optional(),
|
|
18051
18081
|
/**
|
|
18052
18082
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -18922,6 +18952,12 @@ var CameraStatusSchema = object({
|
|
|
18922
18952
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
18923
18953
|
fetchedAt: number$1()
|
|
18924
18954
|
});
|
|
18955
|
+
var InferenceDeviceExclusionReasonSchema = _enum([
|
|
18956
|
+
"disabled",
|
|
18957
|
+
"unavailable",
|
|
18958
|
+
"cannot-host-camera-root",
|
|
18959
|
+
"accelerator-preferred"
|
|
18960
|
+
]);
|
|
18925
18961
|
var NodeInferenceDeviceSchema = object({
|
|
18926
18962
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
18927
18963
|
key: string(),
|
|
@@ -18952,7 +18988,17 @@ var NodeInferenceDeviceSchema = object({
|
|
|
18952
18988
|
* available per format; this is the stored selection that becomes the
|
|
18953
18989
|
* default for EVERY camera landing on this accelerator.
|
|
18954
18990
|
*/
|
|
18955
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
18991
|
+
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
18992
|
+
/**
|
|
18993
|
+
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
18994
|
+
* the reason the dispatcher drops it. Computed by the SAME
|
|
18995
|
+
* `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
|
|
18996
|
+
* never disagree with the election — deriving it in the UI from
|
|
18997
|
+
* `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
|
|
18998
|
+
* the node's model catalog) and `accelerator-preferred` (needs the node-wide
|
|
18999
|
+
* "an accelerator is serving" predicate).
|
|
19000
|
+
*/
|
|
19001
|
+
exclusion: InferenceDeviceExclusionReasonSchema.nullable()
|
|
18956
19002
|
});
|
|
18957
19003
|
var NodeInferenceDevicesSchema = object({
|
|
18958
19004
|
nodeId: string(),
|
|
@@ -19457,6 +19503,7 @@ DeviceType.Camera, method(object({
|
|
|
19457
19503
|
isBattery: boolean(),
|
|
19458
19504
|
reason: _enum([
|
|
19459
19505
|
"disabled",
|
|
19506
|
+
"offline",
|
|
19460
19507
|
"sleeping",
|
|
19461
19508
|
"unreachable",
|
|
19462
19509
|
"waking"
|
|
@@ -19502,9 +19549,17 @@ targets: array(object({
|
|
|
19502
19549
|
sleeping: boolean(),
|
|
19503
19550
|
/** Current device state rendered over the cached frame. State images
|
|
19504
19551
|
* remain authoritative even when their photographic background is
|
|
19505
|
-
* old; null means the link must carry a current camera frame.
|
|
19552
|
+
* old; null means the link must carry a current camera frame.
|
|
19553
|
+
*
|
|
19554
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19555
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19556
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19557
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19558
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19559
|
+
* state. */
|
|
19506
19560
|
stateReason: _enum([
|
|
19507
19561
|
"disabled",
|
|
19562
|
+
"offline",
|
|
19508
19563
|
"sleeping",
|
|
19509
19564
|
"unreachable",
|
|
19510
19565
|
"waking"
|
|
@@ -22701,7 +22756,12 @@ var ListResultSchema = object({
|
|
|
22701
22756
|
probedAt: number$1()
|
|
22702
22757
|
});
|
|
22703
22758
|
var PreferredSchema = LocalInterfaceSchema.nullable();
|
|
22704
|
-
|
|
22759
|
+
/**
|
|
22760
|
+
* Candidate base URL for the SDK to race on connect. Order matters —
|
|
22761
|
+
* the SDK should attempt these top-to-bottom with a short per-candidate
|
|
22762
|
+
* timeout (e.g. 1500ms) and cache the winner for the session.
|
|
22763
|
+
*/
|
|
22764
|
+
var ConnectionEndpointSchema = object({
|
|
22705
22765
|
/** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
|
|
22706
22766
|
label: string(),
|
|
22707
22767
|
/** Fully-formed base URL with scheme + host + port. */
|
|
@@ -22744,7 +22804,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
|
|
|
22744
22804
|
* ordering between polls.
|
|
22745
22805
|
*/
|
|
22746
22806
|
priority: number$1()
|
|
22747
|
-
})
|
|
22807
|
+
});
|
|
22808
|
+
/**
|
|
22809
|
+
* Where the advertised local port came from. Ordered most → least
|
|
22810
|
+
* authoritative, and the whole point of returning it: a client must be able to
|
|
22811
|
+
* tell a FACT about the hub's socket from an echo of its own guess.
|
|
22812
|
+
*/
|
|
22813
|
+
var LocalPortSourceEnum = _enum([
|
|
22814
|
+
"server-config",
|
|
22815
|
+
"server-env",
|
|
22816
|
+
"caller-hint",
|
|
22817
|
+
"default"
|
|
22818
|
+
]);
|
|
22819
|
+
/** The port every LAN/loopback `baseUrl` in the same result was built with. */
|
|
22820
|
+
var AdvertisedLocalPortSchema = object({
|
|
22821
|
+
port: number$1().int().min(1).max(65535),
|
|
22822
|
+
source: LocalPortSourceEnum
|
|
22823
|
+
});
|
|
22824
|
+
var GetConnectionEndpointsResultSchema = object({
|
|
22825
|
+
endpoints: array(ConnectionEndpointSchema).readonly(),
|
|
22826
|
+
/**
|
|
22827
|
+
* The port the hub built the LAN/loopback URLs with, and where that number
|
|
22828
|
+
* came from.
|
|
22829
|
+
*
|
|
22830
|
+
* Returned rather than merely applied, because "the URL is right" and "the
|
|
22831
|
+
* client can KNOW the URL is right" are different properties. A client that
|
|
22832
|
+
* only sees a corrected URL cannot distinguish a hub that fixed the port from
|
|
22833
|
+
* a hub that echoed the port the client sent, so it cannot decide whether to
|
|
22834
|
+
* race the candidate or discard it. With `source` it can: anything but
|
|
22835
|
+
* `caller-hint` is the hub's own socket.
|
|
22836
|
+
*
|
|
22837
|
+
* Absent on hubs predating this field — a client that finds it missing is
|
|
22838
|
+
* talking to an echoing hub and must degrade exactly as it does for
|
|
22839
|
+
* `caller-hint`.
|
|
22840
|
+
*/
|
|
22841
|
+
localPort: AdvertisedLocalPortSchema
|
|
22842
|
+
});
|
|
22748
22843
|
/**
|
|
22749
22844
|
* The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
|
|
22750
22845
|
* AUTO (resolved from the candidate ranking at send time); `resolved` reports
|
|
@@ -22765,8 +22860,13 @@ var AllowedAddressesSchema = object({
|
|
|
22765
22860
|
*/
|
|
22766
22861
|
addresses: array(string()).readonly() });
|
|
22767
22862
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22768
|
-
/**
|
|
22769
|
-
|
|
22863
|
+
/**
|
|
22864
|
+
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
22865
|
+
* written against the echoing contract keep working; the hub uses it
|
|
22866
|
+
* only when it cannot read its own port, and says so via
|
|
22867
|
+
* `localPort.source === 'caller-hint'`.
|
|
22868
|
+
*/
|
|
22869
|
+
port: number$1().int().min(1).max(65535).optional(),
|
|
22770
22870
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22771
22871
|
* candidate. Default `true`. */
|
|
22772
22872
|
includeLoopback: boolean().optional(),
|
|
@@ -33690,7 +33790,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
33690
33790
|
hitPercent: 60,
|
|
33691
33791
|
samplingSeconds: 10
|
|
33692
33792
|
};
|
|
33693
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33694
33793
|
new Set(["devices", "classes"]);
|
|
33695
33794
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33696
33795
|
/**
|
|
@@ -33924,6 +34023,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
33924
34023
|
createdAt: number$1(),
|
|
33925
34024
|
updatedAt: number$1()
|
|
33926
34025
|
});
|
|
34026
|
+
Object.freeze(Object.fromEntries([{
|
|
34027
|
+
stepId: "face-embedding",
|
|
34028
|
+
label: "Face recognition model",
|
|
34029
|
+
defaultModelId: "arcface-r100",
|
|
34030
|
+
indexName: "the enrolled face gallery",
|
|
34031
|
+
options: [
|
|
34032
|
+
{
|
|
34033
|
+
id: "arcface-r100",
|
|
34034
|
+
label: "ArcFace (ResNet34)"
|
|
34035
|
+
},
|
|
34036
|
+
{
|
|
34037
|
+
id: "auraface-r100",
|
|
34038
|
+
label: "AuraFace R100"
|
|
34039
|
+
},
|
|
34040
|
+
{
|
|
34041
|
+
id: "inception-resnet-v1",
|
|
34042
|
+
label: "Inception ResNet V1"
|
|
34043
|
+
}
|
|
34044
|
+
]
|
|
34045
|
+
}, {
|
|
34046
|
+
stepId: "clip-embedding",
|
|
34047
|
+
label: "Semantic search model",
|
|
34048
|
+
defaultModelId: "mobileclip-s1",
|
|
34049
|
+
indexName: "the object semantic-search index",
|
|
34050
|
+
options: [{
|
|
34051
|
+
id: "mobileclip-s1",
|
|
34052
|
+
label: "MobileCLIP S1"
|
|
34053
|
+
}, {
|
|
34054
|
+
id: "mobileclip-s2",
|
|
34055
|
+
label: "MobileCLIP S2"
|
|
34056
|
+
}]
|
|
34057
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34058
|
+
string().min(1);
|
|
33927
34059
|
object({
|
|
33928
34060
|
/**
|
|
33929
34061
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -33944,10 +34076,21 @@ object({
|
|
|
33944
34076
|
*/
|
|
33945
34077
|
square: boolean()
|
|
33946
34078
|
});
|
|
33947
|
-
|
|
34079
|
+
/**
|
|
34080
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
34081
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
34082
|
+
*/
|
|
34083
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
33948
34084
|
paddingRatio: .15,
|
|
33949
34085
|
square: false
|
|
33950
|
-
}
|
|
34086
|
+
};
|
|
34087
|
+
Object.freeze({
|
|
34088
|
+
x: 0,
|
|
34089
|
+
y: 0,
|
|
34090
|
+
w: 1,
|
|
34091
|
+
h: 1
|
|
34092
|
+
});
|
|
34093
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
33951
34094
|
/**
|
|
33952
34095
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
33953
34096
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.15",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|