Moondream2 enables real-time image recognition on mobile devices, allowing for efficient on-device processing without the need for cloud connectivity.
import { Moondream2 } from 'moondream2'
const model = await Moondream2.load()
const image = await loadImageFromCamera()
const result = await model.recognizeImage(image)
console.log(result)