@eyepop.ai/eyepop 1.13.1 → 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.
- package/dist/eyepop.index.js +60 -60
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +60 -60
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.mjs
CHANGED
|
@@ -8818,6 +8818,65 @@ function readableStreamAsyncIterable(stream) {
|
|
|
8818
8818
|
};
|
|
8819
8819
|
}
|
|
8820
8820
|
|
|
8821
|
+
// worker/worker_types.ts
|
|
8822
|
+
var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
|
|
8823
|
+
VideoMode2["STREAM"] = "stream";
|
|
8824
|
+
VideoMode2["BUFFER"] = "buffer";
|
|
8825
|
+
return VideoMode2;
|
|
8826
|
+
})(VideoMode || {});
|
|
8827
|
+
var ModelFormat = /* @__PURE__ */ ((ModelFormat2) => {
|
|
8828
|
+
ModelFormat2["TensorFlowLite"] = "TensorFlowLite";
|
|
8829
|
+
ModelFormat2["TensorFlowGraphDef"] = "TensorFlowGraphDef";
|
|
8830
|
+
ModelFormat2["ONNX"] = "ONNX";
|
|
8831
|
+
ModelFormat2["TorchScript"] = "TorchScript";
|
|
8832
|
+
ModelFormat2["TorchScriptCpu"] = "TorchScriptCpu";
|
|
8833
|
+
ModelFormat2["TorchScriptCuda"] = "TorchScriptCuda";
|
|
8834
|
+
return ModelFormat2;
|
|
8835
|
+
})(ModelFormat || {});
|
|
8836
|
+
var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
|
|
8837
|
+
ModelPrecisionType2["float32"] = "float32";
|
|
8838
|
+
ModelPrecisionType2["float16"] = "float16";
|
|
8839
|
+
ModelPrecisionType2["int32"] = "int32";
|
|
8840
|
+
ModelPrecisionType2["int8"] = "int8";
|
|
8841
|
+
ModelPrecisionType2["uint8"] = "uint8";
|
|
8842
|
+
return ModelPrecisionType2;
|
|
8843
|
+
})(ModelPrecisionType || {});
|
|
8844
|
+
var PopComponentType = /* @__PURE__ */ ((PopComponentType2) => {
|
|
8845
|
+
PopComponentType2["FORWARD"] = "forward";
|
|
8846
|
+
PopComponentType2["INFERENCE"] = "inference";
|
|
8847
|
+
PopComponentType2["TRACING"] = "tracing";
|
|
8848
|
+
PopComponentType2["CONTOUR_FINDER"] = "contour_finder";
|
|
8849
|
+
PopComponentType2["COMPONENT_FINDER"] = "component_finder";
|
|
8850
|
+
return PopComponentType2;
|
|
8851
|
+
})(PopComponentType || {});
|
|
8852
|
+
var ForwardOperatorType = /* @__PURE__ */ ((ForwardOperatorType2) => {
|
|
8853
|
+
ForwardOperatorType2["FULL"] = "full";
|
|
8854
|
+
ForwardOperatorType2["CROP"] = "crop";
|
|
8855
|
+
ForwardOperatorType2["CROP_WITH_FULL_FALLBACK"] = "crop_with_full_fallback";
|
|
8856
|
+
return ForwardOperatorType2;
|
|
8857
|
+
})(ForwardOperatorType || {});
|
|
8858
|
+
var InferenceType = /* @__PURE__ */ ((InferenceType2) => {
|
|
8859
|
+
InferenceType2["IMAGE_CLASSIFICATION"] = "image_classification";
|
|
8860
|
+
InferenceType2["OBJECT_DETECTION"] = "object_detection";
|
|
8861
|
+
InferenceType2["KEY_POINTS"] = "key_points";
|
|
8862
|
+
InferenceType2["OCR"] = "ocr";
|
|
8863
|
+
InferenceType2["MESH"] = "mesh";
|
|
8864
|
+
InferenceType2["FEATURE_VECTOR"] = "feature_vector";
|
|
8865
|
+
InferenceType2["SEMANTIC_SEGMENTATION"] = "semantic_segmentation";
|
|
8866
|
+
InferenceType2["SEGMENTATION"] = "segmentation";
|
|
8867
|
+
return InferenceType2;
|
|
8868
|
+
})(InferenceType || {});
|
|
8869
|
+
var ContourType = /* @__PURE__ */ ((ContourType2) => {
|
|
8870
|
+
ContourType2["ALL_PIXELS"] = "all_pixels";
|
|
8871
|
+
ContourType2["POLYGON"] = "polygon";
|
|
8872
|
+
ContourType2["CONVEX_HULL"] = "convex_hull";
|
|
8873
|
+
ContourType2["HOUGH_CIRCLES"] = "hough_circles";
|
|
8874
|
+
ContourType2["CIRCLE"] = "circle";
|
|
8875
|
+
ContourType2["TRIANGLE"] = "triangle";
|
|
8876
|
+
ContourType2["RECTANGLE"] = "rectangle";
|
|
8877
|
+
return ContourType2;
|
|
8878
|
+
})(ContourType || {});
|
|
8879
|
+
|
|
8821
8880
|
// worker/jobs.ts
|
|
8822
8881
|
var AbstractJob = class {
|
|
8823
8882
|
constructor(params, getSession, client, requestLogger) {
|
|
@@ -8908,7 +8967,7 @@ var UploadJob = class extends AbstractJob {
|
|
|
8908
8967
|
this._uploadStream = stream;
|
|
8909
8968
|
this._mimeType = mimeType;
|
|
8910
8969
|
this._videoMode = videoMode;
|
|
8911
|
-
this._needsFullDuplex = !client.isFullDuplex() && mimeType.startsWith("video/")
|
|
8970
|
+
this._needsFullDuplex = !client.isFullDuplex() && mimeType.startsWith("video/") && videoMode == "stream" /* STREAM */;
|
|
8912
8971
|
}
|
|
8913
8972
|
async onEvent(event) {
|
|
8914
8973
|
if (event.type == "prepared") {
|
|
@@ -11520,65 +11579,6 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11520
11579
|
}
|
|
11521
11580
|
};
|
|
11522
11581
|
|
|
11523
|
-
// worker/worker_types.ts
|
|
11524
|
-
var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
|
|
11525
|
-
VideoMode2["STREAM"] = "stream";
|
|
11526
|
-
VideoMode2["BUFFER"] = "buffer";
|
|
11527
|
-
return VideoMode2;
|
|
11528
|
-
})(VideoMode || {});
|
|
11529
|
-
var ModelFormat = /* @__PURE__ */ ((ModelFormat2) => {
|
|
11530
|
-
ModelFormat2["TensorFlowLite"] = "TensorFlowLite";
|
|
11531
|
-
ModelFormat2["TensorFlowGraphDef"] = "TensorFlowGraphDef";
|
|
11532
|
-
ModelFormat2["ONNX"] = "ONNX";
|
|
11533
|
-
ModelFormat2["TorchScript"] = "TorchScript";
|
|
11534
|
-
ModelFormat2["TorchScriptCpu"] = "TorchScriptCpu";
|
|
11535
|
-
ModelFormat2["TorchScriptCuda"] = "TorchScriptCuda";
|
|
11536
|
-
return ModelFormat2;
|
|
11537
|
-
})(ModelFormat || {});
|
|
11538
|
-
var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
|
|
11539
|
-
ModelPrecisionType2["float32"] = "float32";
|
|
11540
|
-
ModelPrecisionType2["float16"] = "float16";
|
|
11541
|
-
ModelPrecisionType2["int32"] = "int32";
|
|
11542
|
-
ModelPrecisionType2["int8"] = "int8";
|
|
11543
|
-
ModelPrecisionType2["uint8"] = "uint8";
|
|
11544
|
-
return ModelPrecisionType2;
|
|
11545
|
-
})(ModelPrecisionType || {});
|
|
11546
|
-
var PopComponentType = /* @__PURE__ */ ((PopComponentType2) => {
|
|
11547
|
-
PopComponentType2["FORWARD"] = "forward";
|
|
11548
|
-
PopComponentType2["INFERENCE"] = "inference";
|
|
11549
|
-
PopComponentType2["TRACING"] = "tracing";
|
|
11550
|
-
PopComponentType2["CONTOUR_FINDER"] = "contour_finder";
|
|
11551
|
-
PopComponentType2["COMPONENT_FINDER"] = "component_finder";
|
|
11552
|
-
return PopComponentType2;
|
|
11553
|
-
})(PopComponentType || {});
|
|
11554
|
-
var ForwardOperatorType = /* @__PURE__ */ ((ForwardOperatorType2) => {
|
|
11555
|
-
ForwardOperatorType2["FULL"] = "full";
|
|
11556
|
-
ForwardOperatorType2["CROP"] = "crop";
|
|
11557
|
-
ForwardOperatorType2["CROP_WITH_FULL_FALLBACK"] = "crop_with_full_fallback";
|
|
11558
|
-
return ForwardOperatorType2;
|
|
11559
|
-
})(ForwardOperatorType || {});
|
|
11560
|
-
var InferenceType = /* @__PURE__ */ ((InferenceType2) => {
|
|
11561
|
-
InferenceType2["IMAGE_CLASSIFICATION"] = "image_classification";
|
|
11562
|
-
InferenceType2["OBJECT_DETECTION"] = "object_detection";
|
|
11563
|
-
InferenceType2["KEY_POINTS"] = "key_points";
|
|
11564
|
-
InferenceType2["OCR"] = "ocr";
|
|
11565
|
-
InferenceType2["MESH"] = "mesh";
|
|
11566
|
-
InferenceType2["FEATURE_VECTOR"] = "feature_vector";
|
|
11567
|
-
InferenceType2["SEMANTIC_SEGMENTATION"] = "semantic_segmentation";
|
|
11568
|
-
InferenceType2["SEGMENTATION"] = "segmentation";
|
|
11569
|
-
return InferenceType2;
|
|
11570
|
-
})(InferenceType || {});
|
|
11571
|
-
var ContourType = /* @__PURE__ */ ((ContourType2) => {
|
|
11572
|
-
ContourType2["ALL_PIXELS"] = "all_pixels";
|
|
11573
|
-
ContourType2["POLYGON"] = "polygon";
|
|
11574
|
-
ContourType2["CONVEX_HULL"] = "convex_hull";
|
|
11575
|
-
ContourType2["HOUGH_CIRCLES"] = "hough_circles";
|
|
11576
|
-
ContourType2["CIRCLE"] = "circle";
|
|
11577
|
-
ContourType2["TRIANGLE"] = "triangle";
|
|
11578
|
-
ContourType2["RECTANGLE"] = "rectangle";
|
|
11579
|
-
return ContourType2;
|
|
11580
|
-
})(ContourType || {});
|
|
11581
|
-
|
|
11582
11582
|
// index.ts
|
|
11583
11583
|
var readEnv = (env) => {
|
|
11584
11584
|
if (typeof process !== "undefined") {
|