
An open source computer vision library in Mojo
README
An open source computer vision library in Mojo
Overview • Installation • Examples
Mosaic is a cross-platform (macOS and linux) computer vision library for prototyping and production.
By transparently leveraging hardware acceleration and using the latest MLIR compiler technology, Mosaic is the first computer vision library built specifically for heterogenous compute: CPUs, GPUs, XPUs.
It unifies the computer vision workflow into one language that runs on any hardware.
Principlespixi add mosaicThe pixi.toml file should include the Modular community channel and the Mosaic dependency:
[project]
channels = ["https://repo.prefix.dev/modular-community"]
[dependencies]
mosaic = "*"Clone the repo and build Mosaic:
git clone git@github.com:christianbator/mosaic.git
cd mosaic
pixi run buildRun an example file from the examples/ directory like so:
cd examples
pixi run mojo load_image.mojo
uint8 image, explicitly converts it to float64
float64 RGB image to uint8 greyscale in one method
DETAILS