@trillboards/edge-sdk 0.2.240 → 0.2.241
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/DetectorFields.d.ts +169 -3
- package/dist/DetectorFields.d.ts.map +1 -1
- package/dist/DetectorFields.js +226 -12
- package/dist/DetectorFields.js.map +1 -1
- package/dist/EdgeAgent.js +1 -1
- package/dist/NativeReadiness.d.ts.map +1 -1
- package/dist/NativeReadiness.js +6 -2
- package/dist/NativeReadiness.js.map +1 -1
- package/dist/ScopedVlmReview.d.ts +9 -4
- package/dist/ScopedVlmReview.d.ts.map +1 -1
- package/dist/ScopedVlmReview.js +46 -9
- package/dist/ScopedVlmReview.js.map +1 -1
- package/dist/StaffColour.d.ts +18 -0
- package/dist/StaffColour.d.ts.map +1 -0
- package/dist/StaffColour.js +99 -0
- package/dist/StaffColour.js.map +1 -0
- package/dist/UniformSceneStore.d.ts +6 -1
- package/dist/UniformSceneStore.d.ts.map +1 -1
- package/dist/UniformSceneStore.js +24 -1
- package/dist/UniformSceneStore.js.map +1 -1
- package/dist/diagnose.d.ts +1 -1
- package/dist/diagnose.js +1 -1
- package/dist/localSensing.d.ts.map +1 -1
- package/dist/localSensing.js +8 -3
- package/dist/localSensing.js.map +1 -1
- package/package.json +1 -1
package/dist/DetectorFields.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Detection } from './LocalDetectorClient';
|
|
2
2
|
import { type DetectionColorsRequest, type DetectionColorsResult, type DetectionColorsV2Request } from './DetectionColors';
|
|
3
3
|
import { type NormalizedPoint } from './zoneContainment';
|
|
4
|
+
import { type ActorPosePin, type DetectionPoseRequest } from './ActorPose';
|
|
4
5
|
/**
|
|
5
6
|
* Declared website questions the box's own detector answers on the ORIGINAL
|
|
6
7
|
* frame, so the language model is not asked on every frame. Server-selected per
|
|
@@ -207,6 +208,53 @@ export interface UniformColourAbsenceV3Method extends Omit<UniformColourAbsenceV
|
|
|
207
208
|
method: 'uniform_colour_absence_v3';
|
|
208
209
|
staffRegion: NormalizedPoint[];
|
|
209
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* A camera's own staff colour: the Pillow 8-bit HSV band its labelled staff measure in
|
|
213
|
+
* (sense_camera_settings.staff_band_*). The same shape as a detection_colors v2 request's band.
|
|
214
|
+
*/
|
|
215
|
+
export interface StaffColourBand {
|
|
216
|
+
hue: Array<[number, number]>;
|
|
217
|
+
minSaturation: number;
|
|
218
|
+
maxSaturation: number;
|
|
219
|
+
minValue: number;
|
|
220
|
+
maxValue: number;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* uniform_colour_absence_v2's rule and scene memory with three changes, measured on eye-labelled Texas camera 23
|
|
224
|
+
* stills, Nov 11-14 (docs/runbooks/cctv-detector-tier.md section 5i):
|
|
225
|
+
* - the staff colour is the camera's own band, learned from its labelled staff: the store's red vest renders at
|
|
226
|
+
* Pillow hue 230-248 on camera 23, below the named red band's 240, so v2 measured a vest at 0-9% of the box;
|
|
227
|
+
* - it is measured on the torso first (the RTMPose shoulders and hips), then the upper body, then the whole box,
|
|
228
|
+
* so shelving and a basket a customer carries weigh less than what the person wears;
|
|
229
|
+
* - identity: a person is still staff on a later look while their box continues one whose torso showed the band
|
|
230
|
+
* (one-to-one: IoU >= sameIou, or the foot point moved at most footWidths box widths across and footHeights box
|
|
231
|
+
* heights along, the narrow aisle boxes of camera 23 drop under 0.3 IoU on 9% of 3-s steps; unseen no longer than
|
|
232
|
+
* gapMs), so a vest seen once still counts once the person turns side-on to a shelf. Only torso evidence is
|
|
233
|
+
* remembered; the upper-body and box bars decide one look.
|
|
234
|
+
* The camera's colour (`uniform`) is the one per-camera value; every other number is the measurement.
|
|
235
|
+
*/
|
|
236
|
+
export interface UniformColourAbsenceV4Method extends Omit<UniformColourAbsenceV2Method, 'method' | 'uniform'> {
|
|
237
|
+
method: 'uniform_colour_absence_v4';
|
|
238
|
+
uniform: {
|
|
239
|
+
colour: UniformColour;
|
|
240
|
+
band: StaffColourBand;
|
|
241
|
+
};
|
|
242
|
+
staff: {
|
|
243
|
+
torsoFraction: 0.6;
|
|
244
|
+
upperFraction: 0.1;
|
|
245
|
+
boxFraction: 0.08;
|
|
246
|
+
minTorsoPixels: 8;
|
|
247
|
+
poseMinScore: 0.25;
|
|
248
|
+
maxPosed: 8;
|
|
249
|
+
};
|
|
250
|
+
identity: {
|
|
251
|
+
sameIou: 0.3;
|
|
252
|
+
footWidths: 1;
|
|
253
|
+
footHeights: 0.5;
|
|
254
|
+
gapMs: 15000;
|
|
255
|
+
maxTracks: 64;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
210
258
|
type UniformColourSceneMethod = UniformColourAbsenceV2Method | UniformColourAbsenceV3Method;
|
|
211
259
|
export declare function uniformColourRequest(colour: UniformColour, minScore: number, maxBoxes: number): DetectionColorsV2Request;
|
|
212
260
|
export interface DetectedLabelsMethod {
|
|
@@ -254,7 +302,26 @@ export interface VehicleOrientationGateMethod {
|
|
|
254
302
|
inheritIou: 0.3;
|
|
255
303
|
};
|
|
256
304
|
}
|
|
257
|
-
|
|
305
|
+
/**
|
|
306
|
+
* vehicle_orientation_gate_v1's per-vehicle looks, with the answer changed from a state ("a reversed vehicle is
|
|
307
|
+
* parked") to an arrival ("a reversed vehicle was just announced"): true on the looks of the first announceMs after a
|
|
308
|
+
* vehicle is decided reversed at a position no announced vehicle holds, false otherwise. An announced position is
|
|
309
|
+
* kept (on disk, with the camera's scene memory) until looks have seen no vehicle there for clearMs, so one car is
|
|
310
|
+
* announced once however long it stays, through detector misses, occlusion and connector restarts, and a second car
|
|
311
|
+
* reversing in beside the first is announced on its own. Texas camera 3, Nov 11-14: v1's state answer kept the route's
|
|
312
|
+
* episode open while one reversed car stayed, so 2 more reversed cars that parked beside one got no alert
|
|
313
|
+
* (docs/runbooks/cctv-detector-tier.md section 5c).
|
|
314
|
+
*/
|
|
315
|
+
export interface VehicleOrientationGateV2Method extends Omit<VehicleOrientationGateMethod, 'method'> {
|
|
316
|
+
method: 'vehicle_orientation_gate_v2';
|
|
317
|
+
announce: {
|
|
318
|
+
sameIou: 0.3;
|
|
319
|
+
announceMs: 30000;
|
|
320
|
+
clearMs: 600000;
|
|
321
|
+
maxAnnounced: 32;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
export type DetectorFieldMethod = UnattendedCustomerMethod | UnattendedCustomerV2Method | UniformColourAbsenceMethod | UniformColourSceneMethod | UniformColourAbsenceV4Method | DetectedLabelsMethod | VehicleArrivalGateMethod | VehicleOrientationGateMethod | VehicleOrientationGateV2Method;
|
|
258
325
|
export interface DetectorFieldsPolicy {
|
|
259
326
|
version: 1;
|
|
260
327
|
detector: {
|
|
@@ -271,6 +338,8 @@ export interface DetectorFieldsPolicy {
|
|
|
271
338
|
* connector that names it; 0.2.193 and 0.2.194 send no list and keep the methods they had.
|
|
272
339
|
*/
|
|
273
340
|
export declare const DETECTOR_FIELD_METHODS: readonly string[];
|
|
341
|
+
/** A camera band: 1-4 whole hue ranges and saturation/value bounds, every value a Pillow 8-bit HSV byte. */
|
|
342
|
+
export declare function validStaffBand(value: unknown): value is StaffColourBand;
|
|
274
343
|
/** Only the exact pinned methods; anything else is refused, never adapted. */
|
|
275
344
|
export declare function parseDetectorFields(value: unknown): DetectorFieldsPolicy | undefined;
|
|
276
345
|
/** One detector call serves every detector-answered question of the frame. */
|
|
@@ -282,7 +351,11 @@ export declare function detectorFieldsRequest(policy: DetectorFieldsPolicy): {
|
|
|
282
351
|
sha256: string;
|
|
283
352
|
};
|
|
284
353
|
colors?: DetectionColorsRequest;
|
|
354
|
+
pose?: ActorPosePin;
|
|
355
|
+
detectionPose?: DetectionPoseRequest;
|
|
285
356
|
};
|
|
357
|
+
/** The detection_colors v2 request that measures a camera's own staff band on each confident person box. */
|
|
358
|
+
export declare function staffBandRequest(band: StaffColourBand, minScore: number, maxBoxes: number): DetectionColorsV2Request;
|
|
286
359
|
export declare const policySha256: (policy: DetectorFieldsPolicy) => string;
|
|
287
360
|
export interface UnattendedCustomerTrace {
|
|
288
361
|
method: 'unattended_customer_v1' | 'unattended_customer_v2';
|
|
@@ -384,6 +457,12 @@ export interface UniformSceneMemory {
|
|
|
384
457
|
maxConfidence: number;
|
|
385
458
|
fixture: boolean;
|
|
386
459
|
}>;
|
|
460
|
+
/** uniform_colour_absence_v4 only: the people of recent looks and whether each was staff (identity). */
|
|
461
|
+
people?: Array<{
|
|
462
|
+
box: Box;
|
|
463
|
+
lastSeenAtMs: number;
|
|
464
|
+
staff: boolean;
|
|
465
|
+
}>;
|
|
387
466
|
}
|
|
388
467
|
export interface UniformColourAbsenceV2Trace extends Omit<UniformColourAbsenceTrace, 'method'> {
|
|
389
468
|
method: UniformColourSceneMethod['method'];
|
|
@@ -425,6 +504,53 @@ export declare function decideUniformColourAbsenceV2(input: {
|
|
|
425
504
|
trace: UniformColourAbsenceV2Trace;
|
|
426
505
|
memory: UniformSceneMemory;
|
|
427
506
|
};
|
|
507
|
+
/** The staff colour of one person on one look, measured on the original frame (StaffColour.ts). */
|
|
508
|
+
export interface StaffColourMeasure {
|
|
509
|
+
detectionIndex: number;
|
|
510
|
+
/** Share of the torso quad (RTMPose shoulders and hips) in the camera band; null without all four joints. */
|
|
511
|
+
torso: number | null;
|
|
512
|
+
torsoPixels: number;
|
|
513
|
+
/** Share of the upper body box (rows 0.12-0.65 of the person box, 15% wider each side) in the band. */
|
|
514
|
+
upper: number;
|
|
515
|
+
}
|
|
516
|
+
export interface UniformColourAbsenceV4Trace extends Omit<UniformColourAbsenceV2Trace, 'method' | 'staffAreaPeople'> {
|
|
517
|
+
method: 'uniform_colour_absence_v4';
|
|
518
|
+
/** Each counted person's measures; `remembered`: staff by identity, not by this look's colour. */
|
|
519
|
+
staffEvidence: Array<{
|
|
520
|
+
index: number;
|
|
521
|
+
torso: number | null;
|
|
522
|
+
upper: number;
|
|
523
|
+
box: number;
|
|
524
|
+
staff: boolean;
|
|
525
|
+
remembered?: true;
|
|
526
|
+
}>;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* uniform_colour_absence_v4 on one look: a customer in the area and no staff member in it, where staff is the
|
|
530
|
+
* camera's own band on the torso (>= torsoFraction of at least minTorsoPixels), else on the upper body
|
|
531
|
+
* (>= upperFraction), else on the whole box (>= boxFraction), or a person whose box continues one that was staff
|
|
532
|
+
* on an earlier look (identity). Screens and fixtures as v2. The answer is decided from the memory as it stood
|
|
533
|
+
* BEFORE this look; only a look captured after the memory's last one teaches it. Pure.
|
|
534
|
+
*/
|
|
535
|
+
export declare function decideUniformColourAbsenceV4(input: {
|
|
536
|
+
jpeg: Buffer;
|
|
537
|
+
policy: DetectorFieldsPolicy;
|
|
538
|
+
method: UniformColourAbsenceV4Method;
|
|
539
|
+
frame: {
|
|
540
|
+
width: number;
|
|
541
|
+
height: number;
|
|
542
|
+
};
|
|
543
|
+
detections: ReadonlyArray<Detection>;
|
|
544
|
+
colors: DetectionColorsResult;
|
|
545
|
+
staffColour: ReadonlyArray<StaffColourMeasure>;
|
|
546
|
+
region: ReadonlyArray<NormalizedPoint>;
|
|
547
|
+
capturedAtMs: number;
|
|
548
|
+
memory?: UniformSceneMemory;
|
|
549
|
+
}): {
|
|
550
|
+
value: boolean;
|
|
551
|
+
trace: UniformColourAbsenceV4Trace;
|
|
552
|
+
memory: UniformSceneMemory;
|
|
553
|
+
};
|
|
428
554
|
export interface DetectedLabelsTrace {
|
|
429
555
|
method: 'detected_labels_v1';
|
|
430
556
|
imageSha256: string;
|
|
@@ -529,7 +655,7 @@ export interface VehicleOrientationMemory {
|
|
|
529
655
|
}>;
|
|
530
656
|
}
|
|
531
657
|
export interface VehicleOrientationTrace {
|
|
532
|
-
method: 'vehicle_orientation_gate_v1';
|
|
658
|
+
method: 'vehicle_orientation_gate_v1' | 'vehicle_orientation_gate_v2';
|
|
533
659
|
imageSha256: string;
|
|
534
660
|
policySha256: string;
|
|
535
661
|
buildingSide: BuildingSide;
|
|
@@ -554,6 +680,8 @@ export interface VehicleOrientationTrace {
|
|
|
554
680
|
export interface VehicleOrientationPlan {
|
|
555
681
|
/** Boxes the vehicle-end task must score on THIS frame (first looks, then due later looks). */
|
|
556
682
|
looks: Box[];
|
|
683
|
+
/** Every vehicle of THIS frame the gate counts (label, confidence and area bars), one per IoU group. */
|
|
684
|
+
vehicles: Box[];
|
|
557
685
|
/** The answer, the next memory and the full trace, given the task's score for each look. */
|
|
558
686
|
commit: (scores: number[]) => {
|
|
559
687
|
value: boolean;
|
|
@@ -577,7 +705,7 @@ export interface VehicleOrientationPlan {
|
|
|
577
705
|
export declare function planVehicleOrientation(input: {
|
|
578
706
|
jpeg: Buffer;
|
|
579
707
|
policy: DetectorFieldsPolicy;
|
|
580
|
-
method: VehicleOrientationGateMethod;
|
|
708
|
+
method: VehicleOrientationGateMethod | VehicleOrientationGateV2Method;
|
|
581
709
|
frame: {
|
|
582
710
|
width: number;
|
|
583
711
|
height: number;
|
|
@@ -586,5 +714,43 @@ export declare function planVehicleOrientation(input: {
|
|
|
586
714
|
capturedAtMs: number;
|
|
587
715
|
memory?: VehicleOrientationMemory | VehicleGateMemory;
|
|
588
716
|
}): VehicleOrientationPlan;
|
|
717
|
+
/** Per camera field, kept with the scene memory on disk (UniformSceneStore): the reversed vehicles announced. */
|
|
718
|
+
export interface VehicleAnnounceMemory {
|
|
719
|
+
version: 1;
|
|
720
|
+
lastAtMs: number;
|
|
721
|
+
/** emptyMs: look time with no vehicle at the position, counting only intervals between looks <= maxGapMs. */
|
|
722
|
+
announced: Array<{
|
|
723
|
+
box: Box;
|
|
724
|
+
announcedAtMs: number;
|
|
725
|
+
lastSeenAtMs: number;
|
|
726
|
+
emptyMs: number;
|
|
727
|
+
}>;
|
|
728
|
+
}
|
|
729
|
+
export interface VehicleAnnounceTrace {
|
|
730
|
+
/** Positions held after this look; those announced on it; those cleared (no vehicle there for clearMs of looks). */
|
|
731
|
+
held: number;
|
|
732
|
+
newlyAnnounced: Box[];
|
|
733
|
+
cleared: number;
|
|
734
|
+
}
|
|
735
|
+
/** A stored memory, or a fresh one: a malformed memory costs announcing what is parked again, never a refusal. */
|
|
736
|
+
export declare function readVehicleAnnounceMemory(value: unknown): VehicleAnnounceMemory;
|
|
737
|
+
/**
|
|
738
|
+
* vehicle_orientation_gate_v2's answer on one look, after planVehicleOrientation's commit: a reversed vehicle that
|
|
739
|
+
* overlaps no announced position (IoU < sameIou) is announced now; the answer is true while any position was
|
|
740
|
+
* announced less than announceMs ago. A position stays announced while a vehicle of the looks keeps overlapping it,
|
|
741
|
+
* and is forgotten once looks have seen no vehicle there for clearMs: a stretch without looks (camera or connector
|
|
742
|
+
* down) is not evidence the car left. A late or repeated frame decides from the memory and teaches nothing. Pure.
|
|
743
|
+
*/
|
|
744
|
+
export declare function announceReversedVehicles(input: {
|
|
745
|
+
method: VehicleOrientationGateV2Method;
|
|
746
|
+
capturedAtMs: number;
|
|
747
|
+
vehicles: ReadonlyArray<Box>;
|
|
748
|
+
reversed: ReadonlyArray<Box>;
|
|
749
|
+
memory?: VehicleAnnounceMemory;
|
|
750
|
+
}): {
|
|
751
|
+
value: boolean;
|
|
752
|
+
memory: VehicleAnnounceMemory;
|
|
753
|
+
trace: VehicleAnnounceTrace;
|
|
754
|
+
};
|
|
589
755
|
export {};
|
|
590
756
|
//# sourceMappingURL=DetectorFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetectorFields.d.ts","sourceRoot":"","sources":["../src/DetectorFields.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAA6B,KAAK,sBAAsB,EAAE,KAAK,qBAAqB,EACzF,KAAK,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAwC,KAAK,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,QAAA,MAAM,MAAM,qEA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;CAAC,GACtF;IAAC,KAAK,EAAC,OAAO,CAAC;IAAA,MAAM,EAAC,qBAAqB,CAAC;IAAA,KAAK,EAAC,oBAAoB,CAAA;CAAC,CA2BxE"}
|
package/dist/DetectorFields.js
CHANGED
|
@@ -2,20 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.policySha256 = exports.DETECTOR_FIELD_METHODS = exports.BUILDING_SIDES = exports.VEHICLE_END_PREPROCESSING = exports.UNIFORM_COLOURS = void 0;
|
|
4
4
|
exports.uniformColourRequest = uniformColourRequest;
|
|
5
|
+
exports.validStaffBand = validStaffBand;
|
|
5
6
|
exports.parseDetectorFields = parseDetectorFields;
|
|
6
7
|
exports.detectorFieldsRequest = detectorFieldsRequest;
|
|
8
|
+
exports.staffBandRequest = staffBandRequest;
|
|
7
9
|
exports.decideUnattendedCustomer = decideUnattendedCustomer;
|
|
8
10
|
exports.decideUniformColourAbsence = decideUniformColourAbsence;
|
|
9
11
|
exports.onScreen = onScreen;
|
|
10
12
|
exports.readUniformSceneMemory = readUniformSceneMemory;
|
|
11
13
|
exports.decideUniformColourAbsenceV2 = decideUniformColourAbsenceV2;
|
|
14
|
+
exports.decideUniformColourAbsenceV4 = decideUniformColourAbsenceV4;
|
|
12
15
|
exports.decideDetectedLabels = decideDetectedLabels;
|
|
13
16
|
exports.planVehicleGate = planVehicleGate;
|
|
14
17
|
exports.planVehicleOrientation = planVehicleOrientation;
|
|
18
|
+
exports.readVehicleAnnounceMemory = readVehicleAnnounceMemory;
|
|
19
|
+
exports.announceReversedVehicles = announceReversedVehicles;
|
|
15
20
|
const crypto_1 = require("crypto");
|
|
16
21
|
const util_1 = require("util");
|
|
17
22
|
const DetectionColors_1 = require("./DetectionColors");
|
|
18
23
|
const zoneContainment_1 = require("./zoneContainment");
|
|
24
|
+
const ActorPose_1 = require("./ActorPose");
|
|
19
25
|
/**
|
|
20
26
|
* Declared website questions the box's own detector answers on the ORIGINAL
|
|
21
27
|
* frame, so the language model is not asked on every frame. Server-selected per
|
|
@@ -95,12 +101,19 @@ const PINNED = {
|
|
|
95
101
|
uniform: { colour: '*', staffFraction: 0.08 } },
|
|
96
102
|
uniform_colour_absence_v2: UNIFORM_COLOUR_SCENE,
|
|
97
103
|
uniform_colour_absence_v3: { ...UNIFORM_COLOUR_SCENE, staffRegion: '*' },
|
|
104
|
+
uniform_colour_absence_v4: { ...UNIFORM_COLOUR_SCENE, uniform: { colour: '*', band: '*' },
|
|
105
|
+
staff: { torsoFraction: 0.6, upperFraction: 0.1, boxFraction: 0.08, minTorsoPixels: 8, poseMinScore: 0.25, maxPosed: 8 },
|
|
106
|
+
identity: { sameIou: 0.3, footWidths: 1, footHeights: 0.5, gapMs: 15000, maxTracks: 64 } },
|
|
98
107
|
detected_labels_v1: { minConfidence: 0.5 },
|
|
99
108
|
vehicle_arrival_gate_v1: { vehicleLabels: ['bus', 'car', 'motorcycle', 'truck'], minConfidence: 0.5, minArea: 0.04,
|
|
100
109
|
sameVehicleIou: 0.6, stationaryIou: 0.8, minStationaryMs: 10000, maxGapMs: 120000 },
|
|
101
110
|
vehicle_orientation_gate_v1: { vehicleLabels: ['bus', 'car', 'motorcycle', 'truck'], minConfidence: 0.5, minArea: 0.04,
|
|
102
111
|
sameVehicleIou: 0.6, stationaryIou: 0.8, minStationaryMs: 10000, maxGapMs: 120000,
|
|
103
112
|
orientation: { model: VEHICLE_END, buildingSide: '*', threshold: 0.012, lookIntervalMs: 10000, majorityOf: 3, inheritIou: 0.3 } },
|
|
113
|
+
vehicle_orientation_gate_v2: { vehicleLabels: ['bus', 'car', 'motorcycle', 'truck'], minConfidence: 0.5, minArea: 0.04,
|
|
114
|
+
sameVehicleIou: 0.6, stationaryIou: 0.8, minStationaryMs: 10000, maxGapMs: 120000,
|
|
115
|
+
orientation: { model: VEHICLE_END, buildingSide: '*', threshold: 0.012, lookIntervalMs: 10000, majorityOf: 3, inheritIou: 0.3 },
|
|
116
|
+
announce: { sameIou: 0.3, announceMs: 30000, clearMs: 600000, maxAnnounced: 32 } },
|
|
104
117
|
};
|
|
105
118
|
/**
|
|
106
119
|
* Every method this build implements, sent with each profile request
|
|
@@ -117,6 +130,12 @@ const perCamera = (method, rest) => {
|
|
|
117
130
|
return { ...rest, uniform: null };
|
|
118
131
|
rest = { ...rest, uniform: { ...u, colour: '*' } };
|
|
119
132
|
}
|
|
133
|
+
if (method === 'uniform_colour_absence_v4') {
|
|
134
|
+
const u = rest.uniform;
|
|
135
|
+
if (!keys(u, 'band,colour') || !exports.UNIFORM_COLOURS.includes(u.colour) || !validStaffBand(u.band))
|
|
136
|
+
return { ...rest, uniform: null };
|
|
137
|
+
return { ...rest, uniform: { colour: '*', band: '*' } };
|
|
138
|
+
}
|
|
120
139
|
if (method === 'unattended_customer_v2' || method === 'uniform_colour_absence_v3') {
|
|
121
140
|
try {
|
|
122
141
|
uniformRegion(rest.staffRegion);
|
|
@@ -126,13 +145,23 @@ const perCamera = (method, rest) => {
|
|
|
126
145
|
}
|
|
127
146
|
return { ...rest, staffRegion: '*' };
|
|
128
147
|
}
|
|
129
|
-
if (method !== 'vehicle_orientation_gate_v1')
|
|
148
|
+
if (method !== 'vehicle_orientation_gate_v1' && method !== 'vehicle_orientation_gate_v2')
|
|
130
149
|
return rest;
|
|
131
150
|
const o = rest.orientation;
|
|
132
151
|
if (!o || typeof o !== 'object' || !exports.BUILDING_SIDES.includes(o.buildingSide))
|
|
133
152
|
return { ...rest, orientation: null };
|
|
134
153
|
return { ...rest, orientation: { ...o, buildingSide: '*' } };
|
|
135
154
|
};
|
|
155
|
+
const byte = (v) => Number.isSafeInteger(v) && v >= 0 && v <= 255;
|
|
156
|
+
/** A camera band: 1-4 whole hue ranges and saturation/value bounds, every value a Pillow 8-bit HSV byte. */
|
|
157
|
+
function validStaffBand(value) {
|
|
158
|
+
const v = value;
|
|
159
|
+
return keys(v, 'hue,maxSaturation,maxValue,minSaturation,minValue')
|
|
160
|
+
&& Array.isArray(v.hue) && v.hue.length >= 1 && v.hue.length <= 4
|
|
161
|
+
&& v.hue.every(r => Array.isArray(r) && r.length === 2 && byte(r[0]) && byte(r[1]) && r[0] <= r[1])
|
|
162
|
+
&& byte(v.minSaturation) && byte(v.maxSaturation) && v.minSaturation <= v.maxSaturation
|
|
163
|
+
&& byte(v.minValue) && byte(v.maxValue) && v.minValue <= v.maxValue;
|
|
164
|
+
}
|
|
136
165
|
/** Only the exact pinned methods; anything else is refused, never adapted. */
|
|
137
166
|
function parseDetectorFields(value) {
|
|
138
167
|
if (value === undefined)
|
|
@@ -165,21 +194,32 @@ function detectorFieldsRequest(policy) {
|
|
|
165
194
|
const all = p.fields.some(f => f.method === 'detected_labels_v1');
|
|
166
195
|
const personMethod = (f) => f.method === 'unattended_customer_v1'
|
|
167
196
|
|| f.method === 'unattended_customer_v2' || f.method === 'uniform_colour_absence_v1'
|
|
168
|
-
|| f.method === 'uniform_colour_absence_v2' || f.method === 'uniform_colour_absence_v3';
|
|
197
|
+
|| f.method === 'uniform_colour_absence_v2' || f.method === 'uniform_colour_absence_v3' || f.method === 'uniform_colour_absence_v4';
|
|
169
198
|
const classes = all ? [] : [...new Set(p.fields.flatMap(f => personMethod(f)
|
|
170
199
|
? ['person', ...f.screenLabels] : f.method === 'vehicle_arrival_gate_v1' || f.method === 'vehicle_orientation_gate_v1'
|
|
171
|
-
? f.vehicleLabels : []))].sort();
|
|
172
|
-
const colourRequests = p.fields.filter(personMethod).map(f => f.method
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
200
|
+
|| f.method === 'vehicle_orientation_gate_v2' ? f.vehicleLabels : []))].sort();
|
|
201
|
+
const colourRequests = p.fields.filter(personMethod).map(f => f.method === 'uniform_colour_absence_v4' ? staffBandRequest(f.uniform.band, f.minPersonConfidence, f.maxPeople)
|
|
202
|
+
: f.method !== 'unattended_customer_v1' && f.method !== 'unattended_customer_v2'
|
|
203
|
+
? uniformColourRequest(f.uniform.colour, f.minPersonConfidence, f.maxPeople) : { version: 1, minScore: f.minPersonConfidence, maxBoxes: f.maxPeople,
|
|
204
|
+
hue: f.uniform.hue.map(r => [r[0], r[1]]),
|
|
205
|
+
minSaturation: f.uniform.minSaturation, minValue: f.uniform.minValue });
|
|
176
206
|
if (colourRequests.some(request => !(0, util_1.isDeepStrictEqual)(request, colourRequests[0])))
|
|
177
207
|
throw Error('Detector fields require one shared colour specification');
|
|
208
|
+
// v4 measures each person's torso on the pose of THIS frame's confident people (the held-phone rule's request).
|
|
209
|
+
const torso = p.fields.find((f) => f.method === 'uniform_colour_absence_v4');
|
|
178
210
|
// v2's fixtures are seen below the person bar; every rule still applies its own bar to what it counts.
|
|
179
|
-
return { classes, minConfidence: Math.min(...p.fields.map(f => f.method === 'uniform_colour_absence_v2'
|
|
211
|
+
return { classes, minConfidence: Math.min(...p.fields.map(f => f.method === 'uniform_colour_absence_v2'
|
|
212
|
+
|| f.method === 'uniform_colour_absence_v3' || f.method === 'uniform_colour_absence_v4'
|
|
180
213
|
? Math.min(f.minPersonConfidence, f.fixtures.minConfidence) : personMethod(f) ? f.minPersonConfidence : f.minConfidence)),
|
|
181
214
|
expectedModel: { modelId: p.detector.modelId, sha256: p.detector.sha256 },
|
|
182
|
-
...(colourRequests.length ? { colors: colourRequests[0] } : {})
|
|
215
|
+
...(colourRequests.length ? { colors: colourRequests[0] } : {}),
|
|
216
|
+
...(torso ? { pose: { modelId: ActorPose_1.RTMPOSE_MODEL_ID, sha256: ActorPose_1.RTMPOSE_SHA256 },
|
|
217
|
+
detectionPose: { minScore: torso.staff.poseMinScore, maxPeople: torso.staff.maxPosed } } : {}) };
|
|
218
|
+
}
|
|
219
|
+
/** The detection_colors v2 request that measures a camera's own staff band on each confident person box. */
|
|
220
|
+
function staffBandRequest(band, minScore, maxBoxes) {
|
|
221
|
+
return { version: 2, minScore, maxBoxes, hue: band.hue.map(r => [r[0], r[1]]),
|
|
222
|
+
minSaturation: band.minSaturation, maxSaturation: band.maxSaturation, minValue: band.minValue, maxValue: band.maxValue };
|
|
183
223
|
}
|
|
184
224
|
const policySha256 = (policy) => hash(JSON.stringify(parseDetectorFields(policy)));
|
|
185
225
|
exports.policySha256 = policySha256;
|
|
@@ -312,7 +352,9 @@ function readUniformSceneMemory(value) {
|
|
|
312
352
|
&& v.screens.length <= 1024 && v.tracks.length <= 4096
|
|
313
353
|
&& v.screens.every(s => !!s && boxOf(s.box) && time(s.lastSeenAtMs) && Number.isSafeInteger(s.sightings) && s.sightings > 0)
|
|
314
354
|
&& v.tracks.every(t => !!t && boxOf(t.box) && time(t.sinceMs) && time(t.lastSeenAtMs) && t.sinceMs <= t.lastSeenAtMs
|
|
315
|
-
&& Number.isFinite(t.maxConfidence) && typeof t.fixture === 'boolean')
|
|
355
|
+
&& Number.isFinite(t.maxConfidence) && typeof t.fixture === 'boolean')
|
|
356
|
+
&& (v.people === undefined || Array.isArray(v.people) && v.people.length <= 256
|
|
357
|
+
&& v.people.every(p => !!p && boxOf(p.box) && time(p.lastSeenAtMs) && typeof p.staff === 'boolean'));
|
|
316
358
|
// Read only: every look builds its next memory from copies, so a valid memory is used as it is.
|
|
317
359
|
return valid ? v : { version: 1, lastAtMs: -1, screens: [], tracks: [] };
|
|
318
360
|
}
|
|
@@ -389,6 +431,124 @@ function decideUniformColourAbsenceV2(input) {
|
|
|
389
431
|
colour: m.uniform.colour, people: people.length, pictures, outside, matching, nonMatching, fixtures: still, rememberedPictures,
|
|
390
432
|
...(staffRegion ? { staffAreaPeople } : {}) } };
|
|
391
433
|
}
|
|
434
|
+
/**
|
|
435
|
+
* uniform_colour_absence_v4 on one look: a customer in the area and no staff member in it, where staff is the
|
|
436
|
+
* camera's own band on the torso (>= torsoFraction of at least minTorsoPixels), else on the upper body
|
|
437
|
+
* (>= upperFraction), else on the whole box (>= boxFraction), or a person whose box continues one that was staff
|
|
438
|
+
* on an earlier look (identity). Screens and fixtures as v2. The answer is decided from the memory as it stood
|
|
439
|
+
* BEFORE this look; only a look captured after the memory's last one teaches it. Pure.
|
|
440
|
+
*/
|
|
441
|
+
function decideUniformColourAbsenceV4(input) {
|
|
442
|
+
const p = parseDetectorFields(input.policy);
|
|
443
|
+
const m = p.fields.find(f => f.field === input.method.field);
|
|
444
|
+
if (m?.method !== 'uniform_colour_absence_v4' || !(0, util_1.isDeepStrictEqual)(m, input.method))
|
|
445
|
+
throw Error('Invalid uniform colour method binding');
|
|
446
|
+
const { width, height } = input.frame, t = input.capturedAtMs;
|
|
447
|
+
if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width <= 1 || height <= 1)
|
|
448
|
+
throw Error('Uniform colour absence needs a valid original frame');
|
|
449
|
+
if (!Number.isSafeInteger(t) || t < 0)
|
|
450
|
+
throw Error('Uniform colour absence needs the capture time');
|
|
451
|
+
const region = uniformRegion(input.region);
|
|
452
|
+
const people = input.detections.map((d, index) => ({ d, index }))
|
|
453
|
+
.filter(({ d }) => d.label === 'person' && d.confidence >= m.minPersonConfidence);
|
|
454
|
+
if (people.length > m.maxPeople)
|
|
455
|
+
throw Error('More people than the colour task measured (maximum 32)');
|
|
456
|
+
const colors = (0, DetectionColors_1.parseDetectionColorsResult)(input.colors, staffBandRequest(m.uniform.band, m.minPersonConfidence, m.maxPeople), input.jpeg, input.frame, input.detections);
|
|
457
|
+
const fractions = new Map(colors.people.map(row => [row.detectionIndex, row.fraction]));
|
|
458
|
+
const measured = new Map(input.staffColour.map(row => [row.detectionIndex, row]));
|
|
459
|
+
for (const { index } of people) {
|
|
460
|
+
const row = measured.get(index);
|
|
461
|
+
if (!row || !(row.torso === null || Number.isFinite(row.torso) && row.torso >= 0 && row.torso <= 1)
|
|
462
|
+
|| !Number.isSafeInteger(row.torsoPixels) || row.torsoPixels < 0 || !Number.isFinite(row.upper) || row.upper < 0 || row.upper > 1)
|
|
463
|
+
throw Error('A person has no measured staff colour');
|
|
464
|
+
}
|
|
465
|
+
const prior = readUniformSceneMemory(input.memory);
|
|
466
|
+
const S = m.screenMemory, F = m.fixtures, I = m.identity, B = m.staff;
|
|
467
|
+
const seen = input.detections.filter(d => m.screenLabels.includes(d.label)
|
|
468
|
+
&& d.confidence >= m.minPersonConfidence).map(d => d.box);
|
|
469
|
+
const remembered = prior.screens.filter(s => s.sightings >= S.minSightings && t - s.lastSeenAtMs <= S.memoryMs).map(s => s.box);
|
|
470
|
+
const fixtures = prior.tracks.filter(tr => tr.fixture && t - tr.lastSeenAtMs <= F.expireMs).map(tr => tr.box);
|
|
471
|
+
const pictures = [], rememberedPictures = [], outside = [], still = [];
|
|
472
|
+
const matching = [], nonMatching = [];
|
|
473
|
+
const evidence = [];
|
|
474
|
+
// Colour first: who is staff on THIS look. Only the torso (the garment itself) is evidence strong enough to
|
|
475
|
+
// remember: a customer in a red plaid shirt crosses the upper-body and box bars on some looks (camera 23,
|
|
476
|
+
// Nov 11 00:03Z, 6 of 11 looks) but never the torso bar (0 of 60 customer looks; highest 0.54).
|
|
477
|
+
const direct = new Map(), seeds = new Map();
|
|
478
|
+
const live = [];
|
|
479
|
+
for (const { d, index } of people) {
|
|
480
|
+
if (seen.some(s => contained(d.box, s) >= m.screenContainment)) {
|
|
481
|
+
pictures.push(index);
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
if (remembered.some(s => contained(d.box, s) >= m.screenContainment)) {
|
|
485
|
+
pictures.push(index);
|
|
486
|
+
rememberedPictures.push(index);
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
const row = measured.get(index), box = fractions.get(index);
|
|
490
|
+
const torso = row.torso !== null && row.torsoPixels >= B.minTorsoPixels && row.torso >= B.torsoFraction;
|
|
491
|
+
seeds.set(index, torso);
|
|
492
|
+
direct.set(index, torso || row.upper >= B.upperFraction || box >= B.boxFraction);
|
|
493
|
+
live.push({ d, index });
|
|
494
|
+
}
|
|
495
|
+
// Identity: each person of the memory's latest looks continues at most one box of this look.
|
|
496
|
+
const tracks = t > prior.lastAtMs ? (prior.people ?? []).filter(q => t - q.lastSeenAtMs <= I.gapMs) : [];
|
|
497
|
+
const foot = (b) => ({ x: b.x + b.width / 2, y: b.y + b.height });
|
|
498
|
+
const near = (a, b) => {
|
|
499
|
+
const fa = foot(a), fb = foot(b);
|
|
500
|
+
return Math.abs(fa.x - fb.x) <= I.footWidths * Math.max(a.width, b.width) && Math.abs(fa.y - fb.y) <= I.footHeights * Math.max(a.height, b.height);
|
|
501
|
+
};
|
|
502
|
+
// Overlap first, then the nearest foot point: each pair scores its IoU, a foot-only continuation scores below any.
|
|
503
|
+
const pairs = tracks.flatMap((q, qi) => live.map((l, li) => {
|
|
504
|
+
const v = iou(q.box, l.d.box);
|
|
505
|
+
return { v: v >= I.sameIou ? 1 + v : near(q.box, l.d.box) ? v : -1, qi, li };
|
|
506
|
+
})).filter(e => e.v >= 0).sort((a, b) => b.v - a.v || a.qi - b.qi || a.li - b.li);
|
|
507
|
+
const usedTrack = new Set(), continued = new Map();
|
|
508
|
+
for (const e of pairs) {
|
|
509
|
+
if (usedTrack.has(e.qi) || continued.has(e.li))
|
|
510
|
+
continue;
|
|
511
|
+
usedTrack.add(e.qi);
|
|
512
|
+
continued.set(e.li, e.qi);
|
|
513
|
+
}
|
|
514
|
+
const staffNow = new Map(), staffKept = new Map();
|
|
515
|
+
live.forEach((l, li) => {
|
|
516
|
+
const by = continued.has(li) && tracks[continued.get(li)].staff;
|
|
517
|
+
staffNow.set(l.index, direct.get(l.index) || by);
|
|
518
|
+
staffKept.set(l.index, seeds.get(l.index) || by);
|
|
519
|
+
});
|
|
520
|
+
for (const { d, index } of live) {
|
|
521
|
+
const foot = { x: (d.box.x + d.box.width / 2) / width, y: Math.min(1, (d.box.y + d.box.height) / height) };
|
|
522
|
+
if (!(0, zoneContainment_1.pointInPolygon)(foot.x, foot.y, [...region])) {
|
|
523
|
+
outside.push(index);
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
const row = measured.get(index), fraction = fractions.get(index), staff = staffNow.get(index);
|
|
527
|
+
evidence.push({ index, torso: row.torso, upper: row.upper, box: fraction, staff,
|
|
528
|
+
...(staff && !direct.get(index) ? { remembered: true } : {}) });
|
|
529
|
+
if (staff) {
|
|
530
|
+
matching.push({ index, fraction });
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
if (d.confidence < F.maxConfidence && fixtures.some(f => iou(d.box, f) >= F.sameIou)) {
|
|
534
|
+
still.push(index);
|
|
535
|
+
continue;
|
|
536
|
+
}
|
|
537
|
+
nonMatching.push({ index, fraction });
|
|
538
|
+
}
|
|
539
|
+
let memory = prior;
|
|
540
|
+
if (t > prior.lastAtMs) {
|
|
541
|
+
const scene = learnUniformScene(prior, m, t, seen, [...seen, ...remembered], input.detections);
|
|
542
|
+
// This look's people, then the earlier ones not seen on it while their gap lasts (a missed detection).
|
|
543
|
+
const nowPeople = live.map(l => ({ box: { ...l.d.box }, lastSeenAtMs: t, staff: staffKept.get(l.index) }));
|
|
544
|
+
const kept = tracks.filter((_, qi) => !usedTrack.has(qi)).map(q => ({ ...q, box: { ...q.box } }));
|
|
545
|
+
memory = { ...scene, people: [...nowPeople, ...kept].slice(0, I.maxTracks) };
|
|
546
|
+
}
|
|
547
|
+
return { value: nonMatching.length > 0 && matching.length === 0, memory,
|
|
548
|
+
trace: { method: 'uniform_colour_absence_v4', imageSha256: hash(input.jpeg), policySha256: (0, exports.policySha256)(p),
|
|
549
|
+
colour: m.uniform.colour, people: people.length, pictures, outside, matching, nonMatching, fixtures: still, rememberedPictures,
|
|
550
|
+
staffEvidence: evidence } };
|
|
551
|
+
}
|
|
392
552
|
/** The scene memory after one look: its screens counted, its person-labelled boxes tracked. Bounded. */
|
|
393
553
|
function learnUniformScene(prior, m, t, seen, screens, detections) {
|
|
394
554
|
const S = m.screenMemory, F = m.fixtures;
|
|
@@ -582,13 +742,13 @@ function planVehicleOrientation(input) {
|
|
|
582
742
|
const due = parked.filter(p => p.seen && p.reversed === null && (p.looks.length === 0
|
|
583
743
|
|| p.looks.length < o.majorityOf && t - p.looks[p.looks.length - 1].atMs >= o.lookIntervalMs)).slice(0, 8);
|
|
584
744
|
const base = (action) => ({
|
|
585
|
-
method:
|
|
745
|
+
method: m.method, imageSha256, policySha256: pSha, buildingSide: o.buildingSide, action,
|
|
586
746
|
vehicles: vehicles.length, stationary: stationary.length, parked: parked.length, arrivals, departures, inherited,
|
|
587
747
|
looks: due.map(p => ({ box: { ...p.box }, look: (p.looks.length + 1) }))
|
|
588
748
|
});
|
|
589
749
|
const action = !vehicles.length && !parked.length ? 'no_vehicle'
|
|
590
750
|
: !parked.length ? 'no_parked_vehicle' : due.length ? 'look' : 'reuse';
|
|
591
|
-
return { looks: due.map(p => ({ ...p.box })), commit: (scores) => {
|
|
751
|
+
return { looks: due.map(p => ({ ...p.box })), vehicles: vehicles.map(v => ({ ...v })), commit: (scores) => {
|
|
592
752
|
if (!Array.isArray(scores) || scores.length !== due.length
|
|
593
753
|
|| scores.some(v => typeof v !== 'number' || !Number.isFinite(v) || Math.abs(v) > 2))
|
|
594
754
|
throw Error('Vehicle orientation needs one score per look');
|
|
@@ -607,4 +767,58 @@ function planVehicleOrientation(input) {
|
|
|
607
767
|
trace: { ...base(action), decided, reversedParked } };
|
|
608
768
|
} };
|
|
609
769
|
}
|
|
770
|
+
/** A stored memory, or a fresh one: a malformed memory costs announcing what is parked again, never a refusal. */
|
|
771
|
+
function readVehicleAnnounceMemory(value) {
|
|
772
|
+
const v = value;
|
|
773
|
+
const valid = !!v && v.version === 1 && time(v.lastAtMs) && Array.isArray(v.announced) && v.announced.length <= 256
|
|
774
|
+
&& v.announced.every(a => !!a && boxOf(a.box) && time(a.announcedAtMs) && time(a.lastSeenAtMs) && a.announcedAtMs <= a.lastSeenAtMs
|
|
775
|
+
&& time(a.emptyMs) && a.emptyMs >= 0);
|
|
776
|
+
return valid ? v : { version: 1, lastAtMs: -1, announced: [] };
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* vehicle_orientation_gate_v2's answer on one look, after planVehicleOrientation's commit: a reversed vehicle that
|
|
780
|
+
* overlaps no announced position (IoU < sameIou) is announced now; the answer is true while any position was
|
|
781
|
+
* announced less than announceMs ago. A position stays announced while a vehicle of the looks keeps overlapping it,
|
|
782
|
+
* and is forgotten once looks have seen no vehicle there for clearMs: a stretch without looks (camera or connector
|
|
783
|
+
* down) is not evidence the car left. A late or repeated frame decides from the memory and teaches nothing. Pure.
|
|
784
|
+
*/
|
|
785
|
+
function announceReversedVehicles(input) {
|
|
786
|
+
const A = input.method.announce, t = input.capturedAtMs;
|
|
787
|
+
if (!Number.isSafeInteger(t) || t < 0)
|
|
788
|
+
throw Error('Vehicle announcement needs the capture time');
|
|
789
|
+
const prior = readVehicleAnnounceMemory(input.memory);
|
|
790
|
+
const recent = (entries) => entries.some(a => t >= a.announcedAtMs && t - a.announcedAtMs < A.announceMs);
|
|
791
|
+
if (t <= prior.lastAtMs)
|
|
792
|
+
return { value: recent(prior.announced), memory: prior,
|
|
793
|
+
trace: { held: prior.announced.length, newlyAnnounced: [], cleared: 0 } };
|
|
794
|
+
const entries = prior.announced.map(a => ({ ...a, box: { ...a.box } }));
|
|
795
|
+
// Look time, not the clock: an interval between two looks longer than the gate's maxGapMs (camera or connector
|
|
796
|
+
// down) adds nothing, so a car still there when looks resume is seen and kept, never announced again.
|
|
797
|
+
const interval = prior.lastAtMs >= 0 ? t - prior.lastAtMs : 0, counted = interval <= input.method.maxGapMs ? interval : 0;
|
|
798
|
+
for (const a of entries) {
|
|
799
|
+
if (input.vehicles.some(v => iou(v, a.box) >= A.sameIou)) {
|
|
800
|
+
a.lastSeenAtMs = t;
|
|
801
|
+
a.emptyMs = 0;
|
|
802
|
+
}
|
|
803
|
+
else
|
|
804
|
+
a.emptyMs += counted;
|
|
805
|
+
}
|
|
806
|
+
const kept = entries.filter(a => a.emptyMs < A.clearMs);
|
|
807
|
+
const cleared = entries.length - kept.length;
|
|
808
|
+
const newly = [];
|
|
809
|
+
for (const r of input.reversed) {
|
|
810
|
+
const at = kept.find(a => iou(a.box, r) >= A.sameIou);
|
|
811
|
+
if (at) {
|
|
812
|
+
at.lastSeenAtMs = t;
|
|
813
|
+
at.emptyMs = 0;
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
kept.push({ box: { ...r }, announcedAtMs: t, lastSeenAtMs: t, emptyMs: 0 });
|
|
817
|
+
newly.push({ ...r });
|
|
818
|
+
}
|
|
819
|
+
const bounded = kept.map((a, i) => ({ a, i })).sort((x, y) => y.a.lastSeenAtMs - x.a.lastSeenAtMs || x.i - y.i)
|
|
820
|
+
.slice(0, A.maxAnnounced).sort((x, y) => x.i - y.i).map(e => e.a);
|
|
821
|
+
return { value: recent(bounded), memory: { version: 1, lastAtMs: t, announced: bounded },
|
|
822
|
+
trace: { held: bounded.length, newlyAnnounced: newly, cleared } };
|
|
823
|
+
}
|
|
610
824
|
//# sourceMappingURL=DetectorFields.js.map
|