@eyepop.ai/eyepop 3.6.0 → 3.7.0

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.
@@ -18,13 +18,46 @@ interface Box {
18
18
  readonly bottomRight: Point2d;
19
19
  }
20
20
  interface StreamTime {
21
+ /**
22
+ * Temporal offset of prediction from start of the media (video or audio) in nano seconds.
23
+ */
21
24
  timestamp?: number;
25
+ /**
26
+ * Convenience, same vale as 'timestamp' just in seconds.
27
+ */
22
28
  seconds?: number;
29
+ /**
30
+ * Temporal length of the chunk that was the source for this prediction in nano seconds.
31
+ */
32
+ duration?: number;
33
+ /**
34
+ * Real time when the media was captured as epoch timestamp in nano seconds.
35
+ *
36
+ * Only provided if source provides this timestamp e.g. as timestamp/x-ntp in RTSP.
37
+ */
38
+ captured_at?: number;
39
+ /**
40
+ * A media specific offset.
41
+ *
42
+ * For video frames, this is the frame number of prediction.
43
+ * For audio samples, this is the offset of the first sample for this prediction.
44
+ */
23
45
  offset?: number;
46
+ /**
47
+ * Offset length of the chunk used for this prediction.
48
+ *
49
+ * It has the same format as offset.
50
+ */
51
+ offset_duration?: number;
24
52
  }
25
53
  interface Prediction extends StreamTime {
26
- captured_at?: number;
54
+ /**
55
+ * The width of the source coordinate system for all prediction coordinates.
56
+ */
27
57
  source_width: number;
58
+ /**
59
+ * The height of the source coordinate system for all prediction coordinates.
60
+ */
28
61
  source_height: number;
29
62
  source_id?: string;
30
63
  objects?: Array<PredictedObject>;
@@ -225,6 +258,7 @@ interface TrackingComponent extends BaseComponent {
225
258
  classHysteresisHighThreshold?: number;
226
259
  classHysteresisLowThreshold?: number;
227
260
  classHysteresisMinHoldFrames?: number;
261
+ classHysteresisAllowedClasses?: string[];
228
262
  }
229
263
  declare enum ContourType {
230
264
  ALL_PIXELS = "all_pixels",
@@ -575,7 +609,7 @@ interface Annotation {
575
609
  auto_annotate?: string;
576
610
  auto_annotate_params?: AutoAnnotateParams;
577
611
  uncertainty_score?: number;
578
- annotation: Prediction;
612
+ predictions: Prediction[];
579
613
  }
580
614
  declare enum TranscodeMode {
581
615
  original = "original",
@@ -820,7 +854,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
820
854
  getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
821
855
  deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
822
856
  resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
823
- updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction): Promise<void>;
857
+ updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
824
858
  deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
825
859
  updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
826
860
  downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
@@ -18,13 +18,46 @@ interface Box {
18
18
  readonly bottomRight: Point2d;
19
19
  }
20
20
  interface StreamTime {
21
+ /**
22
+ * Temporal offset of prediction from start of the media (video or audio) in nano seconds.
23
+ */
21
24
  timestamp?: number;
25
+ /**
26
+ * Convenience, same vale as 'timestamp' just in seconds.
27
+ */
22
28
  seconds?: number;
29
+ /**
30
+ * Temporal length of the chunk that was the source for this prediction in nano seconds.
31
+ */
32
+ duration?: number;
33
+ /**
34
+ * Real time when the media was captured as epoch timestamp in nano seconds.
35
+ *
36
+ * Only provided if source provides this timestamp e.g. as timestamp/x-ntp in RTSP.
37
+ */
38
+ captured_at?: number;
39
+ /**
40
+ * A media specific offset.
41
+ *
42
+ * For video frames, this is the frame number of prediction.
43
+ * For audio samples, this is the offset of the first sample for this prediction.
44
+ */
23
45
  offset?: number;
46
+ /**
47
+ * Offset length of the chunk used for this prediction.
48
+ *
49
+ * It has the same format as offset.
50
+ */
51
+ offset_duration?: number;
24
52
  }
25
53
  interface Prediction extends StreamTime {
26
- captured_at?: number;
54
+ /**
55
+ * The width of the source coordinate system for all prediction coordinates.
56
+ */
27
57
  source_width: number;
58
+ /**
59
+ * The height of the source coordinate system for all prediction coordinates.
60
+ */
28
61
  source_height: number;
29
62
  source_id?: string;
30
63
  objects?: Array<PredictedObject>;
@@ -225,6 +258,7 @@ interface TrackingComponent extends BaseComponent {
225
258
  classHysteresisHighThreshold?: number;
226
259
  classHysteresisLowThreshold?: number;
227
260
  classHysteresisMinHoldFrames?: number;
261
+ classHysteresisAllowedClasses?: string[];
228
262
  }
229
263
  declare enum ContourType {
230
264
  ALL_PIXELS = "all_pixels",
@@ -575,7 +609,7 @@ interface Annotation {
575
609
  auto_annotate?: string;
576
610
  auto_annotate_params?: AutoAnnotateParams;
577
611
  uncertainty_score?: number;
578
- annotation: Prediction;
612
+ predictions: Prediction[];
579
613
  }
580
614
  declare enum TranscodeMode {
581
615
  original = "original",
@@ -820,7 +854,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
820
854
  getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
821
855
  deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
822
856
  resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
823
- updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction): Promise<void>;
857
+ updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
824
858
  deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
825
859
  updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
826
860
  downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
@@ -11170,12 +11170,12 @@ var DataEndpoint = class extends Endpoint {
11170
11170
  method: "POST"
11171
11171
  });
11172
11172
  }
11173
- async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, prediction) {
11173
+ async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, predictions) {
11174
11174
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11175
11175
  const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11176
11176
  return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
11177
11177
  method: "PATCH",
11178
- body: JSON.stringify(prediction)
11178
+ body: JSON.stringify(predictions)
11179
11179
  });
11180
11180
  }
11181
11181
  async deleteAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version) {