
An open source computer vision library in Mojo
README
An image processing library in Mojo
Overview • Installation • Examples • Documentation • Acknowledgements
Mosaic is a cross-platform (macOS and linux) image processing library for prototyping and production.
By transparently leveraging hardware acceleration, Mosaic is built specifically for heterogenous compute: CPUs, GPUs, and more in the future.
It can unify image processing workflows into one language that runs on any hardware.
Principlespixi add mosaic-mojoThe pixi.toml file should include the Modular community channel and the Mosaic dependency:
[project]
channels = ["https://repo.prefix.dev/modular-community"]
[dependencies]
mosaic-mojo = "*"Clone the repo and build Mosaic:
git clone git@github.com:brainwave-sh/mosaic.git
cd mosaic
pixi run buildAfter building, run 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
Docs are available at brainwave.sh/mosaic
Mosaic makes use of vendored libraries to help with image codecs and FFTs, many thanks to:
DETAILS