-
Notifications
You must be signed in to change notification settings - Fork 0
qwen3 vl python ocr script mlx.stub
Nicolas Cravino edited this page Apr 13, 2026
·
4 revisions
id: qwen3-vl-python-ocr-script-mlx name: Qwen3 VL OCR Script (MLX) repo_path: /sessions/epic-magical-hawking/Documents/sw30labs/repos/qwen-ocr-mlx remote_url: https://github.com/sw30labs/QWEN3-VL-Python-OCR-Script-MLX.git primary_language: Python framework: mlx-vlm ingested: 2026-04-11 last_commit_date: 2026-04-11
Batch caption every image in an input directory using a local MLX vision-language model (Qwen3-VL-30B). Auto-downloads model weights. Fully offline OCR and image understanding.
Single script (src/run_ocr.py):
- Scans input directory for images
- Auto-downloads Qwen3-VL-30B weights via huggingface-hub
- Loads MLX model
- Generates captions per image
- Writes individual JSON files + combined captions.json
- Individual JSON files per image with caption metadata
- Combined captions.json for batch analysis
- Vision-Language Model: Qwen3-VL-30B via mlx-vlm
- Image Processing: OpenCV, Pillow, torchvision
- MLX Framework: Apple Silicon optimized
mlx, mlx-lm, Pillow, huggingface-hub, mlx-vlm, torch, torchvision, opencv-python, numpy
python, mlx, apple-silicon, local-inference, ocr
- screenlens — shared Qwen3 VL captioning