@eyepop.ai/eyepop 0.15.0 → 0.16.1

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/README.md CHANGED
@@ -138,7 +138,7 @@ until the entire file has been processed.
138
138
  ```
139
139
  ### Visualizing Results
140
140
  Visualization components are provided as separate modules. Please refer to the module's documentation for usage examples.
141
- * [EyePop Render 2d](../eyepop-render-2d/README.md)
141
+ * [EyePop Render 2d](https://www.npmjs.com/package/@eyepop.ai/eyepop-render-2d)
142
142
  ### Asynchronous uploading and processing of images
143
143
  The above _synchronous_ way, process() then iterate all results, is great for individual images or reasonable
144
144
  sized batches. For larger batch sizes, or continuous stream of images, don't `await` the results but instead
@@ -44,10 +44,12 @@ interface UrlSource {
44
44
  readonly url: string;
45
45
  }
46
46
  type Source = FileSource | StreamSource | PathSource | LiveSource | UrlSource;
47
- interface Prediction {
47
+ interface StreamTime {
48
48
  timestamp: number;
49
49
  seconds: number;
50
50
  offset: number;
51
+ }
52
+ interface Prediction extends StreamTime {
51
53
  source_width: number;
52
54
  source_height: number;
53
55
  source_id: string;
@@ -192,4 +194,4 @@ declare namespace EyePop {
192
194
  function endpoint(opts?: Options): Endpoint;
193
195
  }
194
196
 
195
- export { EndpointState, EyePop, type FileSource, type IngressEvent, type LiveMedia, type LiveSource, type PathSource, type Point2d, type Point3d, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Session, type Source, type StreamSource, type UrlSource, EyePop as default };
197
+ export { EndpointState, EyePop, type FileSource, type IngressEvent, type LiveMedia, type LiveSource, type PathSource, type Point2d, type Point3d, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Session, type Source, type StreamSource, type StreamTime, type UrlSource, EyePop as default };
@@ -44,10 +44,12 @@ interface UrlSource {
44
44
  readonly url: string;
45
45
  }
46
46
  type Source = FileSource | StreamSource | PathSource | LiveSource | UrlSource;
47
- interface Prediction {
47
+ interface StreamTime {
48
48
  timestamp: number;
49
49
  seconds: number;
50
50
  offset: number;
51
+ }
52
+ interface Prediction extends StreamTime {
51
53
  source_width: number;
52
54
  source_height: number;
53
55
  source_id: string;
@@ -192,4 +194,4 @@ declare namespace EyePop {
192
194
  function endpoint(opts?: Options): Endpoint;
193
195
  }
194
196
 
195
- export { EndpointState, EyePop, type FileSource, type IngressEvent, type LiveMedia, type LiveSource, type PathSource, type Point2d, type Point3d, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Session, type Source, type StreamSource, type UrlSource, EyePop as default };
197
+ export { EndpointState, EyePop, type FileSource, type IngressEvent, type LiveMedia, type LiveSource, type PathSource, type Point2d, type Point3d, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Session, type Source, type StreamSource, type StreamTime, type UrlSource, EyePop as default };