@ultralytics/yolo 0.0.57 → 0.0.58
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 +2 -0
- package/README.zh-CN.md +2 -0
- package/package.json +1 -1
- package/pkg/package.json +1 -1
- package/pkg/ultralytics_inference_web.d.ts +3 -3
- package/pkg/ultralytics_inference_web.js +9 -9
- package/pkg/ultralytics_inference_web_bg.wasm +0 -0
- package/pkg/ultralytics_inference_web_bg.wasm.d.ts +3 -3
package/README.md
CHANGED
|
@@ -241,6 +241,8 @@ the model), pass the same `wasmUrl` you gave `YOLO.load`.
|
|
|
241
241
|
`ort-wasm-simd-threaded.{jsep,asyncify,}.{mjs,wasm}` binaries. If your bundler does not serve this package's
|
|
242
242
|
own `ultralytics_inference_web_bg.wasm`, pass its URL as `wasmUrl`.
|
|
243
243
|
|
|
244
|
+
- **Native only**: scene text OCR (`--ocr`, `TextRecognizer`) and tiled inference (`--tile`) are in the
|
|
245
|
+
[Rust crate](https://github.com/ultralytics/inference) and not in this package.
|
|
244
246
|
- **Telemetry**: `ort-web` can report the page domain to pyke on first session
|
|
245
247
|
creation. This package turns that off, so nothing is sent. See the
|
|
246
248
|
[ort-web docs](https://ort.pyke.io/backends/web) for what it would send.
|
package/README.zh-CN.md
CHANGED
|
@@ -224,6 +224,8 @@ await annotate(canvas, img, results, { keypointRadius: 4, skeleton: [[0, 1]] });
|
|
|
224
224
|
`ort.wasm.min.js`)和 `ort-wasm-simd-threaded.{jsep,asyncify,}.{mjs,wasm}` 二进制文件。如果打包工具没有提供本包自带的
|
|
225
225
|
`ultralytics_inference_web_bg.wasm`,可通过 `wasmUrl` 传入其 URL。
|
|
226
226
|
|
|
227
|
+
- **仅限原生**:场景文字识别(`--ocr`、`TextRecognizer`)和切片推理(`--tile`)属于
|
|
228
|
+
[Rust crate](https://github.com/ultralytics/inference),本包不包含。
|
|
227
229
|
- **遥测**:`ort-web` 可以在首次创建会话时向 pyke 上报页面域名。本包已将其关闭,不会发送任何数据。
|
|
228
230
|
上报内容见 [ort-web 文档](https://ort.pyke.io/backends/web)。
|
|
229
231
|
|
package/package.json
CHANGED
package/pkg/package.json
CHANGED
|
@@ -203,9 +203,9 @@ export interface InitOutput {
|
|
|
203
203
|
readonly yolopipeline_preprocess_rgba: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
204
204
|
readonly yolopipeline_setInputShape: (a: number, b: number, c: number) => void;
|
|
205
205
|
readonly yolopipeline_task: (a: number, b: number) => void;
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
206
|
+
readonly __wasm_bindgen_func_elem_1236: (a: number, b: number, c: number, d: number) => void;
|
|
207
|
+
readonly __wasm_bindgen_func_elem_1867: (a: number, b: number, c: number, d: number) => void;
|
|
208
|
+
readonly __wasm_bindgen_func_elem_1891: (a: number, b: number, c: number, d: number) => void;
|
|
209
209
|
readonly __wasm_bindgen_func_elem_382: (a: number, b: number, c: number, d: number) => void;
|
|
210
210
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
211
211
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -764,7 +764,7 @@ function __wbg_get_imports() {
|
|
|
764
764
|
const a = state0.a;
|
|
765
765
|
state0.a = 0;
|
|
766
766
|
try {
|
|
767
|
-
return
|
|
767
|
+
return __wasm_bindgen_func_elem_1891(a, state0.b, arg0, arg1);
|
|
768
768
|
} finally {
|
|
769
769
|
state0.a = a;
|
|
770
770
|
}
|
|
@@ -957,12 +957,12 @@ function __wbg_get_imports() {
|
|
|
957
957
|
},
|
|
958
958
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
959
959
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 371, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
960
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
960
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1236);
|
|
961
961
|
return addHeapObject(ret);
|
|
962
962
|
},
|
|
963
963
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
964
964
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 655, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
965
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
965
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1867);
|
|
966
966
|
return addHeapObject(ret);
|
|
967
967
|
},
|
|
968
968
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
@@ -1054,14 +1054,14 @@ function __wbg_get_imports() {
|
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
function
|
|
1058
|
-
wasm.
|
|
1057
|
+
function __wasm_bindgen_func_elem_1891(arg0, arg1, arg2, arg3) {
|
|
1058
|
+
wasm.__wasm_bindgen_func_elem_1891(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
function
|
|
1061
|
+
function __wasm_bindgen_func_elem_1236(arg0, arg1, arg2) {
|
|
1062
1062
|
try {
|
|
1063
1063
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1064
|
-
wasm.
|
|
1064
|
+
wasm.__wasm_bindgen_func_elem_1236(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1065
1065
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1066
1066
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1067
1067
|
if (r1) {
|
|
@@ -1072,10 +1072,10 @@ function __wasm_bindgen_func_elem_1232(arg0, arg1, arg2) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
|
-
function
|
|
1075
|
+
function __wasm_bindgen_func_elem_1867(arg0, arg1, arg2) {
|
|
1076
1076
|
try {
|
|
1077
1077
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1078
|
-
wasm.
|
|
1078
|
+
wasm.__wasm_bindgen_func_elem_1867(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1079
1079
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1080
1080
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1081
1081
|
if (r1) {
|
|
Binary file
|
|
@@ -19,9 +19,9 @@ export const yolopipeline_postprocess: (a: number, b: number, c: number, d: numb
|
|
|
19
19
|
export const yolopipeline_preprocess_rgba: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
20
20
|
export const yolopipeline_setInputShape: (a: number, b: number, c: number) => void;
|
|
21
21
|
export const yolopipeline_task: (a: number, b: number) => void;
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
22
|
+
export const __wasm_bindgen_func_elem_1236: (a: number, b: number, c: number, d: number) => void;
|
|
23
|
+
export const __wasm_bindgen_func_elem_1867: (a: number, b: number, c: number, d: number) => void;
|
|
24
|
+
export const __wasm_bindgen_func_elem_1891: (a: number, b: number, c: number, d: number) => void;
|
|
25
25
|
export const __wasm_bindgen_func_elem_382: (a: number, b: number, c: number, d: number) => void;
|
|
26
26
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
27
27
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|