Views
No views yet
| File | Type | Size | Notes |
|---|---|---|---|
| lightonocr-1b-f16.gguf | F16 | 2.3 GB | Full precision |
| lightonocr-1b-q8_0.gguf | Q8_0 | 1.1 GB | Best quality quantized |
| lightonocr-1b-q4_k.gguf | Q4_K | 0.6 GB | Desktop/edge target |
1# CLI
2crispembed --ocr lightonocr-1b-q8_0.gguf image.png
3
4# Server
5crispembed-server --ocr lightonocr-1b-q8_0.gguf
6curl -X POST http://localhost:8080/math/ocr -d '{'"image": "document.png"}'1from crispembed import CrispMathOcr
2ocr = CrispMathOcr("lightonocr-1b-q8_0.gguf")
3text = ocr.recognize("document.png")
4conf = ocr.mean_confidence
5print(f"{text} (confidence: {conf:.2f})")convert-lightonocr-to-gguf.pyapache-2.0. This repository redistributes under the same terms; it grants no rights the upstream licence does not.