Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
629f3fd
Join Arabic letters and order right-to-left labels like the Python an…
onuralpszr Nov 3, 2026
093b50a
Set canvas text direction per label so Safari draws right-to-left labels
onuralpszr Nov 3, 2026
927bd37
Pick the canvas text direction from the first letter of each label
onuralpszr Nov 3, 2026
7059db1
Bump the version to 0.0.56
onuralpszr Nov 3, 2026
8bc1e0d
Pair and mirror brackets in right-to-left labels and drop the unused …
onuralpszr Nov 3, 2026
b7cb926
Follow the Unicode number rules in right-to-left labels and rasterize…
onuralpszr Nov 3, 2026
de75716
Merge branch 'main' into rtl-labels
onuralpszr Nov 3, 2026
167b73c
Mirror and pair full-width, CJK and other Unicode brackets and signs …
onuralpszr Nov 3, 2026
efd3b7c
Merge branch 'main' into rtl-labels
onuralpszr Nov 3, 2026
cf6a3df
Use the full Unicode bracket and mirror lists and reorder labels with…
onuralpszr Nov 3, 2026
048bb1a
Pick the Unicode font for classification and OBB labels with non-ASCI…
onuralpszr Nov 3, 2026
d307942
Center Hebrew points and Arabic harakat over their letter in labels
onuralpszr Nov 3, 2026
1e7fa8c
Treat every combining mark in the right-to-left blocks as a mark, inc…
onuralpszr Nov 3, 2026
8b3e9fd
Size the classification label background from the measured text width
onuralpszr Nov 3, 2026
0468840
Classify every bidi number, sign, separator and terminator so full-wi…
onuralpszr Nov 3, 2026
90f2015
Honor direction marks and keep ZWJ joined numbers together in right-t…
onuralpszr Nov 3, 2026
3a0614f
Join lam and alef into their ligature when a vowel sits between them
onuralpszr Nov 3, 2026
9093979
Draw Hebrew letters with points as their precomposed forms so shin an…
onuralpszr Nov 3, 2026
8be2339
Shape labels with harfrust and unicode-bidi instead of hand-written A…
onuralpszr Nov 3, 2026
59be0ba
Merge rtl-labels into rtl-shaping-proto
onuralpszr Nov 3, 2026
bc8d54e
Draw web labels run by run so Safari places brackets in right-to-left…
onuralpszr Nov 3, 2026
4a3aced
Merge web-bidi-runs into rtl-shaping-proto
onuralpszr Nov 3, 2026
bbcd4a5
Shape each label once with runs split by script and context, and meas…
onuralpszr Nov 3, 2026
a88840e
Reuse one shaping plan per direction and script in a frame, which mak…
onuralpszr Nov 3, 2026
922069a
Draw web labels run by run only when a right-to-left label has bracke…
onuralpszr Nov 3, 2026
a4647ee
List harfrust and unicode-bidi among the annotate dependencies in the…
onuralpszr Nov 3, 2026
393ca58
Keep web label widths from the whole string and measure only between …
onuralpszr Nov 3, 2026
404e850
Keep the label layout test to run order, script split and shaping
onuralpszr Nov 3, 2026
02aaab2
Let annotate load the wasm engine from a given wasmUrl when no model …
onuralpszr Nov 3, 2026
8ddd5fd
Draw right-to-left web labels as the engine's bidi runs, each wrapped…
onuralpszr Nov 3, 2026
63ee55f
Measure each web label run once per annotate call and reuse the width…
onuralpszr Nov 3, 2026
384c217
Document right-to-left labels and the annotate wasmUrl option in the …
onuralpszr Nov 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default-members = ["."]

[package]
name = "ultralytics-inference"
version = "0.0.55"
version = "0.0.56"
edition = "2024"
rust-version = "1.92"
authors = [
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ ultralytics-inference predict
```text
WARNING ⚠️ 'model' argument is missing. Using default '--model=yolo26n.onnx'.
WARNING ⚠️ 'source' argument is missing. Using default images: https://ultralytics.com/images/bus.jpg, https://ultralytics.com/images/zidane.jpg
Ultralytics Inference 0.0.55 🚀 Rust ONNX FP32 CPU
Ultralytics Inference 0.0.56 🚀 Rust ONNX FP32 CPU
Using ONNX Runtime CPUExecutionProvider
YOLO26n summary: 80 classes, imgsz=(640, 640)

Expand All @@ -264,7 +264,7 @@ ultralytics-inference predict --task segment
```text
WARNING ⚠️ 'model' argument is missing. Using default '--model=yolo26n-seg.onnx'.
WARNING ⚠️ 'source' argument is missing. Using default images: https://ultralytics.com/images/bus.jpg, https://ultralytics.com/images/zidane.jpg
Ultralytics Inference 0.0.55 🚀 Rust ONNX FP32 CPU
Ultralytics Inference 0.0.56 🚀 Rust ONNX FP32 CPU
Using ONNX Runtime CPUExecutionProvider
YOLO26n-seg summary: 80 classes, imgsz=(640, 640)

Expand Down Expand Up @@ -371,7 +371,7 @@ Add to your `Cargo.toml` (choose one):
```toml
# Stable release from crates.io
[dependencies]
ultralytics-inference = "0.0.55"
ultralytics-inference = "0.0.56"
```

```toml
Expand Down Expand Up @@ -611,7 +611,7 @@ Each accelerator feature links a prebuilt ONNX Runtime containing that provider.

```toml
[dependencies]
ultralytics-inference = { version = "0.0.55", features = ["coreml", "xnnpack"] }
ultralytics-inference = { version = "0.0.56", features = ["coreml", "xnnpack"] }
ort = { version = "=2.0.0-rc.15", features = ["lax-feature-matching"] }
```

Expand Down Expand Up @@ -717,10 +717,10 @@ One of the key benefits of this library is a Rust/ONNX Runtime stack with no PyT

### Optional Dependencies (for the `annotate` feature)

| Crate | Purpose |
| ----------- | ---------------------------------------------------- |
| `imageproc` | Drawing boxes and shapes |
| `ab_glyph` | Text rendering (Arial font, downloaded on first use) |
| Crate | Purpose |
| ----------- | -------------------------------------------------------------------------------------------------- |
| `imageproc` | Drawing boxes and shapes |
| `ab_glyph` | Text rendering (Arial font, downloaded on first use; Arabic and Hebrew labels drawn right to left) |

### Optional Dependencies (for Video & Visualization)

Expand Down
16 changes: 8 additions & 8 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ ultralytics-inference predict
```text
WARNING ⚠️ 'model' argument is missing. Using default '--model=yolo26n.onnx'.
WARNING ⚠️ 'source' argument is missing. Using default images: https://ultralytics.com/images/bus.jpg, https://ultralytics.com/images/zidane.jpg
Ultralytics Inference 0.0.55 🚀 Rust ONNX FP32 CPU
Ultralytics Inference 0.0.56 🚀 Rust ONNX FP32 CPU
Using ONNX Runtime CPUExecutionProvider
YOLO26n summary: 80 classes, imgsz=(640, 640)

Expand All @@ -263,7 +263,7 @@ ultralytics-inference predict --task segment
```text
WARNING ⚠️ 'model' argument is missing. Using default '--model=yolo26n-seg.onnx'.
WARNING ⚠️ 'source' argument is missing. Using default images: https://ultralytics.com/images/bus.jpg, https://ultralytics.com/images/zidane.jpg
Ultralytics Inference 0.0.55 🚀 Rust ONNX FP32 CPU
Ultralytics Inference 0.0.56 🚀 Rust ONNX FP32 CPU
Using ONNX Runtime CPUExecutionProvider
YOLO26n-seg summary: 80 classes, imgsz=(640, 640)

Expand Down Expand Up @@ -370,7 +370,7 @@ YOLOv8、YOLO11 和 YOLO26 ONNX 模型支持 **n / s / m / l / x** 尺寸,并
```toml
# crates.io 稳定版本
[dependencies]
ultralytics-inference = "0.0.55"
ultralytics-inference = "0.0.56"
```

```toml
Expand Down Expand Up @@ -606,7 +606,7 @@ cargo build --release --features "cuda,tensorrt"

```toml
[dependencies]
ultralytics-inference = { version = "0.0.55", features = ["coreml", "xnnpack"] }
ultralytics-inference = { version = "0.0.56", features = ["coreml", "xnnpack"] }
ort = { version = "=2.0.0-rc.15", features = ["lax-feature-matching"] }
```

Expand Down Expand Up @@ -709,10 +709,10 @@ JS/TS 封装与构建说明见 [`web/`](web/README.md)。需要支持 WebGPU 的

### 可选依赖(用于 `annotate` feature)

| Crate | 用途 |
| ----------- | -------------------------------------- |
| `imageproc` | 绘制框和形状 |
| `ab_glyph` | 文本渲染(Arial 字体,首次使用时下载) |
| Crate | 用途 |
| ----------- | -------------------------------------------------------------------------- |
| `imageproc` | 绘制框和形状 |
| `ab_glyph` | 文本渲染(Arial 字体,首次使用时下载;阿拉伯语和希伯来语标签从右到左绘制) |

### 可选依赖(用于视频和可视化)

Expand Down
2 changes: 1 addition & 1 deletion crates/web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "ultralytics-inference-web"
version = "0.0.55"
version = "0.0.56"
edition = "2024"
rust-version = "1.92"
description = "Browser/WebAssembly bindings for ultralytics-inference (WebGPU via ort-web)"
Expand Down
6 changes: 3 additions & 3 deletions docs/CUDA.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Add the feature you need in your `Cargo.toml`:

```toml
[dependencies]
ultralytics-inference = { version = "0.0.55", features = ["tensorrt"] }
ultralytics-inference = { version = "0.0.56", features = ["tensorrt"] }
# or, for the fastest path:
ultralytics-inference = { version = "0.0.55", features = ["cuda-preprocess"] }
ultralytics-inference = { version = "0.0.56", features = ["cuda-preprocess"] }
```

Then `cargo build --release`: no extra flags needed.
Expand Down Expand Up @@ -71,7 +71,7 @@ If you need to pin a specific version at compile time instead, override the cuda

```toml
[dependencies]
ultralytics-inference = { version = "0.0.55", features = ["cuda-preprocess"] }
ultralytics-inference = { version = "0.0.56", features = ["cuda-preprocess"] }
# Replace the default feature with a pinned one (e.g. CUDA 12.8):
cudarc = { version = "0.19", default-features = false, features = ["driver", "nvrtc", "dynamic-loading", "cuda-12080"] }
```
Expand Down
2 changes: 1 addition & 1 deletion docs/OPENVINO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```toml
# Cargo.toml
[dependencies]
ultralytics-inference = { version = "0.0.55", features = ["openvino-native"] }
ultralytics-inference = { version = "0.0.56", features = ["openvino-native"] }
```

```bash
Expand Down
Loading
Loading