@eyepop.ai/eyepop 1.13.0 → 1.13.2

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.
@@ -281,8 +281,8 @@ interface LiveMedia {
281
281
  close(): Promise<void>;
282
282
  }
283
283
  declare enum VideoMode {
284
- stream = "stream",
285
- buffer = "buffer"
284
+ STREAM = "stream",
285
+ BUFFER = "buffer"
286
286
  }
287
287
  interface IngressEvent {
288
288
  readonly ingressId: string;
@@ -281,8 +281,8 @@ interface LiveMedia {
281
281
  close(): Promise<void>;
282
282
  }
283
283
  declare enum VideoMode {
284
- stream = "stream",
285
- buffer = "buffer"
284
+ STREAM = "stream",
285
+ BUFFER = "buffer"
286
286
  }
287
287
  interface IngressEvent {
288
288
  readonly ingressId: string;
@@ -8881,6 +8881,65 @@ function readableStreamAsyncIterable(stream) {
8881
8881
  };
8882
8882
  }
8883
8883
 
8884
+ // worker/worker_types.ts
8885
+ var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
8886
+ VideoMode2["STREAM"] = "stream";
8887
+ VideoMode2["BUFFER"] = "buffer";
8888
+ return VideoMode2;
8889
+ })(VideoMode || {});
8890
+ var ModelFormat = /* @__PURE__ */ ((ModelFormat2) => {
8891
+ ModelFormat2["TensorFlowLite"] = "TensorFlowLite";
8892
+ ModelFormat2["TensorFlowGraphDef"] = "TensorFlowGraphDef";
8893
+ ModelFormat2["ONNX"] = "ONNX";
8894
+ ModelFormat2["TorchScript"] = "TorchScript";
8895
+ ModelFormat2["TorchScriptCpu"] = "TorchScriptCpu";
8896
+ ModelFormat2["TorchScriptCuda"] = "TorchScriptCuda";
8897
+ return ModelFormat2;
8898
+ })(ModelFormat || {});
8899
+ var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
8900
+ ModelPrecisionType2["float32"] = "float32";
8901
+ ModelPrecisionType2["float16"] = "float16";
8902
+ ModelPrecisionType2["int32"] = "int32";
8903
+ ModelPrecisionType2["int8"] = "int8";
8904
+ ModelPrecisionType2["uint8"] = "uint8";
8905
+ return ModelPrecisionType2;
8906
+ })(ModelPrecisionType || {});
8907
+ var PopComponentType = /* @__PURE__ */ ((PopComponentType2) => {
8908
+ PopComponentType2["FORWARD"] = "forward";
8909
+ PopComponentType2["INFERENCE"] = "inference";
8910
+ PopComponentType2["TRACING"] = "tracing";
8911
+ PopComponentType2["CONTOUR_FINDER"] = "contour_finder";
8912
+ PopComponentType2["COMPONENT_FINDER"] = "component_finder";
8913
+ return PopComponentType2;
8914
+ })(PopComponentType || {});
8915
+ var ForwardOperatorType = /* @__PURE__ */ ((ForwardOperatorType2) => {
8916
+ ForwardOperatorType2["FULL"] = "full";
8917
+ ForwardOperatorType2["CROP"] = "crop";
8918
+ ForwardOperatorType2["CROP_WITH_FULL_FALLBACK"] = "crop_with_full_fallback";
8919
+ return ForwardOperatorType2;
8920
+ })(ForwardOperatorType || {});
8921
+ var InferenceType = /* @__PURE__ */ ((InferenceType2) => {
8922
+ InferenceType2["IMAGE_CLASSIFICATION"] = "image_classification";
8923
+ InferenceType2["OBJECT_DETECTION"] = "object_detection";
8924
+ InferenceType2["KEY_POINTS"] = "key_points";
8925
+ InferenceType2["OCR"] = "ocr";
8926
+ InferenceType2["MESH"] = "mesh";
8927
+ InferenceType2["FEATURE_VECTOR"] = "feature_vector";
8928
+ InferenceType2["SEMANTIC_SEGMENTATION"] = "semantic_segmentation";
8929
+ InferenceType2["SEGMENTATION"] = "segmentation";
8930
+ return InferenceType2;
8931
+ })(InferenceType || {});
8932
+ var ContourType = /* @__PURE__ */ ((ContourType2) => {
8933
+ ContourType2["ALL_PIXELS"] = "all_pixels";
8934
+ ContourType2["POLYGON"] = "polygon";
8935
+ ContourType2["CONVEX_HULL"] = "convex_hull";
8936
+ ContourType2["HOUGH_CIRCLES"] = "hough_circles";
8937
+ ContourType2["CIRCLE"] = "circle";
8938
+ ContourType2["TRIANGLE"] = "triangle";
8939
+ ContourType2["RECTANGLE"] = "rectangle";
8940
+ return ContourType2;
8941
+ })(ContourType || {});
8942
+
8884
8943
  // worker/jobs.ts
8885
8944
  var AbstractJob = class {
8886
8945
  constructor(params, getSession, client, requestLogger) {
@@ -8971,7 +9030,7 @@ var UploadJob = class extends AbstractJob {
8971
9030
  this._uploadStream = stream;
8972
9031
  this._mimeType = mimeType;
8973
9032
  this._videoMode = videoMode;
8974
- this._needsFullDuplex = !client.isFullDuplex() && mimeType.startsWith("video/");
9033
+ this._needsFullDuplex = !client.isFullDuplex() && mimeType.startsWith("video/") && videoMode == "stream" /* STREAM */;
8975
9034
  }
8976
9035
  async onEvent(event) {
8977
9036
  if (event.type == "prepared") {
@@ -11583,65 +11642,6 @@ var DataEndpoint = class extends Endpoint {
11583
11642
  }
11584
11643
  };
11585
11644
 
11586
- // worker/worker_types.ts
11587
- var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
11588
- VideoMode2["stream"] = "stream";
11589
- VideoMode2["buffer"] = "buffer";
11590
- return VideoMode2;
11591
- })(VideoMode || {});
11592
- var ModelFormat = /* @__PURE__ */ ((ModelFormat2) => {
11593
- ModelFormat2["TensorFlowLite"] = "TensorFlowLite";
11594
- ModelFormat2["TensorFlowGraphDef"] = "TensorFlowGraphDef";
11595
- ModelFormat2["ONNX"] = "ONNX";
11596
- ModelFormat2["TorchScript"] = "TorchScript";
11597
- ModelFormat2["TorchScriptCpu"] = "TorchScriptCpu";
11598
- ModelFormat2["TorchScriptCuda"] = "TorchScriptCuda";
11599
- return ModelFormat2;
11600
- })(ModelFormat || {});
11601
- var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
11602
- ModelPrecisionType2["float32"] = "float32";
11603
- ModelPrecisionType2["float16"] = "float16";
11604
- ModelPrecisionType2["int32"] = "int32";
11605
- ModelPrecisionType2["int8"] = "int8";
11606
- ModelPrecisionType2["uint8"] = "uint8";
11607
- return ModelPrecisionType2;
11608
- })(ModelPrecisionType || {});
11609
- var PopComponentType = /* @__PURE__ */ ((PopComponentType2) => {
11610
- PopComponentType2["FORWARD"] = "forward";
11611
- PopComponentType2["INFERENCE"] = "inference";
11612
- PopComponentType2["TRACING"] = "tracing";
11613
- PopComponentType2["CONTOUR_FINDER"] = "contour_finder";
11614
- PopComponentType2["COMPONENT_FINDER"] = "component_finder";
11615
- return PopComponentType2;
11616
- })(PopComponentType || {});
11617
- var ForwardOperatorType = /* @__PURE__ */ ((ForwardOperatorType2) => {
11618
- ForwardOperatorType2["FULL"] = "full";
11619
- ForwardOperatorType2["CROP"] = "crop";
11620
- ForwardOperatorType2["CROP_WITH_FULL_FALLBACK"] = "crop_with_full_fallback";
11621
- return ForwardOperatorType2;
11622
- })(ForwardOperatorType || {});
11623
- var InferenceType = /* @__PURE__ */ ((InferenceType2) => {
11624
- InferenceType2["IMAGE_CLASSIFICATION"] = "image_classification";
11625
- InferenceType2["OBJECT_DETECTION"] = "object_detection";
11626
- InferenceType2["KEY_POINTS"] = "key_points";
11627
- InferenceType2["OCR"] = "ocr";
11628
- InferenceType2["MESH"] = "mesh";
11629
- InferenceType2["FEATURE_VECTOR"] = "feature_vector";
11630
- InferenceType2["SEMANTIC_SEGMENTATION"] = "semantic_segmentation";
11631
- InferenceType2["SEGMENTATION"] = "segmentation";
11632
- return InferenceType2;
11633
- })(InferenceType || {});
11634
- var ContourType = /* @__PURE__ */ ((ContourType2) => {
11635
- ContourType2["ALL_PIXELS"] = "all_pixels";
11636
- ContourType2["POLYGON"] = "polygon";
11637
- ContourType2["CONVEX_HULL"] = "convex_hull";
11638
- ContourType2["HOUGH_CIRCLES"] = "hough_circles";
11639
- ContourType2["CIRCLE"] = "circle";
11640
- ContourType2["TRIANGLE"] = "triangle";
11641
- ContourType2["RECTANGLE"] = "rectangle";
11642
- return ContourType2;
11643
- })(ContourType || {});
11644
-
11645
11645
  // index.ts
11646
11646
  var readEnv = (env) => {
11647
11647
  if (typeof process !== "undefined") {