@eyepop.ai/eyepop 3.6.1 → 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.
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -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
|
-
|
|
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>;
|
|
@@ -576,7 +609,7 @@ interface Annotation {
|
|
|
576
609
|
auto_annotate?: string;
|
|
577
610
|
auto_annotate_params?: AutoAnnotateParams;
|
|
578
611
|
uncertainty_score?: number;
|
|
579
|
-
|
|
612
|
+
predictions: Prediction[];
|
|
580
613
|
}
|
|
581
614
|
declare enum TranscodeMode {
|
|
582
615
|
original = "original",
|
|
@@ -821,7 +854,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
821
854
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
822
855
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
823
856
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
824
|
-
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number,
|
|
857
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
|
|
825
858
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
826
859
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
827
860
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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>;
|
|
@@ -576,7 +609,7 @@ interface Annotation {
|
|
|
576
609
|
auto_annotate?: string;
|
|
577
610
|
auto_annotate_params?: AutoAnnotateParams;
|
|
578
611
|
uncertainty_score?: number;
|
|
579
|
-
|
|
612
|
+
predictions: Prediction[];
|
|
580
613
|
}
|
|
581
614
|
declare enum TranscodeMode {
|
|
582
615
|
original = "original",
|
|
@@ -821,7 +854,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
821
854
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
822
855
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
823
856
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
824
|
-
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number,
|
|
857
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
|
|
825
858
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
826
859
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
827
860
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
package/dist/eyepop.index.js
CHANGED
|
@@ -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,
|
|
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(
|
|
11178
|
+
body: JSON.stringify(predictions)
|
|
11179
11179
|
});
|
|
11180
11180
|
}
|
|
11181
11181
|
async deleteAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version) {
|