anomalyco / anomalyco/opencode
[FEATURE]: Add RapidOCR-json support — reading image text into the model when it can't see imagesI come from CHINA! I solution OPENCODE'S EYE problem, you can use RapidOCR-json, let bigpickle model (LLM) takes the picture's words!!
Open
@neriousy is already working on this.
Since Sep 2, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Problem
OpenCode refuses images for models that don't support image input, e.g. "Cannot read image.png ... this model does not support image input". Users who rely on text-only LLMs (like bigpickle) can't share screenshots of errors, logs, or documents.
Proposed solution
Integrate the local, offline RapidOCR-json engine as an optional image-to-text step:
- When a user attaches an image and the active model doesn't accept vision, run RapidOCR-json locally to extract the text.
- Replace the image part with that extracted text before sending to the model, so text-only models can still read image content.
- Fall back gracefully if no OCR engine is installed or recognition fails (vision models keep receiving the image unchanged).
Expected behavior
A user can paste a screenshot and, on a non-vision model, receive a reply based on the text read from the image — with no network and no image data sent to the provider.
Environment
- Windows, OCR engine: RapidOCR-json (offline, RapidOcrOnnx based)
- Region/backends: local text-only LLM (bigpickle)words!!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.