From 66bb134f080c10d1efffa9d74d5c35c1bb7454ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Lindset?= Date: Mon, 29 Jun 2026 19:42:25 +0200 Subject: [PATCH 1/2] fix references to old image_detection library --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eef29c6..b44d10b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ `Image` is a fast, memory-efficient image processing library for Elixir. It is a high-level wrapper around [Vix](https://hex.pm/packages/vix), the Elixir bindings for the [libvips](https://www.libvips.org) C library, and provides an idiomatic functional API for image manipulation, drawing, text rendering, EXIF/XMP metadata, video frame extraction (via Xav/FFmpeg), blurhash, perceptual hashing, and many other image-related operations. -Machine-learning features (object detection, image classification, image generation) live in the companion [`image_detection`](https://hex.pm/packages/image_detection) library, which depends on `:image` and pulls in [Bumblebee](https://hex.pm/packages/bumblebee) and [Nx](https://hex.pm/packages/nx) as its own optional dependencies. +Machine-learning features (object detection, image classification, image segmentation, face detection, image captioning, background removal, and zero-shot classification) live in the companion [`image_vision`](https://hex.pm/packages/image_vision) library, which depends on `:image` and pulls in [Nx](https://hex.pm/packages/nx), [EXLA](https://hex.pm/packages/exla), and optionally [Ortex](https://hex.pm/packages/ortex) and [Bumblebee](https://hex.pm/packages/bumblebee). In a simple resize benchmark, `Image` is approximately 2 to 3 times faster than [Mogrify](https://hex.pm/packages/mogrify) and uses about 5 times less memory. @@ -42,7 +42,7 @@ Documentation can be found at . * `Image.to_nx/2` / `Image.from_nx/1` via [Nx](https://hex.pm/packages/nx). - * **Object detection, image classification, and image generation** live in the separate [`:image_detection`](https://hex.pm/packages/image_detection) package. Add it alongside `:image` in your `mix.exs` to get `Image.Detection`, `Image.Classification`, and `Image.Generation` (which depend on `:axon_onnx` and [Bumblebee](https://hex.pm/packages/bumblebee) respectively). + * **Object detection, image classification, image segmentation, face detection, image captioning, background removal, and zero-shot classification** live in the separate [`:image_vision`](https://hex.pm/packages/image_vision) package. Add it alongside `:image` in your `mix.exs` to get `Image.Detection`, `Image.Classification`, `Image.Segmentation`, `Image.FaceDetection`, `Image.Captioning`, `Image.Background`, and `Image.ZeroShot`. * **Hashing** — perceptual difference hash (`Image.dhash/2`), blurhash encode/decode (`Image.Blurhash`), Hamming distance. @@ -240,7 +240,7 @@ optional dependencies enable specific features: | `:xav` | `Image.Video` (FFmpeg-backed frame extraction) | | `:evision` | `Image.to_evision/2`, `Image.from_evision/1` (Mat ↔ Vimage interop) | | `:image_qrcode` | QR code encoding and decoding (sibling package — drop-in for the removed `Image.QRcode`) | -| `:image_detection` | `Image.Detection`, `Image.Classification`, `Image.Generation` (object detection, classification, image generation — pulls Bumblebee, Nx, Axon as its own transitive deps) | +| `:image_vision` | `Image.Detection`, `Image.Classification`, `Image.Segmentation`, `Image.FaceDetection`, `Image.Captioning`, `Image.Background`, and `Image.ZeroShot` (has dependencies to Nx, EXLA, and optionally Bumblebee and Ortex) | `:plug` | streaming via `Plug.Conn` | | `:req` | streaming over HTTP | | `:kino` | `Image.Kino` (Livebook integration) | From 6c8adfe476f344ef95635f081fd89f13be85b7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Lindset?= Date: Mon, 29 Jun 2026 19:49:14 +0200 Subject: [PATCH 2/2] add references to image_lens_correction and image_ocr --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b44d10b..55217a1 100644 --- a/README.md +++ b/README.md @@ -239,8 +239,10 @@ optional dependencies enable specific features: | `:scholar` | `Image.k_means/2` | | `:xav` | `Image.Video` (FFmpeg-backed frame extraction) | | `:evision` | `Image.to_evision/2`, `Image.from_evision/1` (Mat ↔ Vimage interop) | +| `:image_vision` | `Image.Detection`, `Image.Classification`, `Image.Segmentation`, `Image.FaceDetection`, `Image.Captioning`, `Image.Background`, and `Image.ZeroShot` (has dependencies to Nx, EXLA, and optionally Bumblebee and Ortex) | | `:image_qrcode` | QR code encoding and decoding (sibling package — drop-in for the removed `Image.QRcode`) | -| `:image_vision` | `Image.Detection`, `Image.Classification`, `Image.Segmentation`, `Image.FaceDetection`, `Image.Captioning`, `Image.Background`, and `Image.ZeroShot` (has dependencies to Nx, EXLA, and optionally Bumblebee and Ortex) +| `:image_lens_correction` | Correct camera-lens distortion, vignetting, or chromatic aberration | +| `:image_ocr` | Run OCR over image content | | `:plug` | streaming via `Plug.Conn` | | `:req` | streaming over HTTP | | `:kino` | `Image.Kino` (Livebook integration) |