Mindket

anaksor-ocr

Newversion 1 · updated

Overview

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who need Khmer OCR in Python.

anaksor-ocr is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python with pip
  • The anaksor-ocr package, with the torch extra if you want the PyTorch backend
  • A few hundred MB at most of weights, which the package fetches for you
Runs in
  • Python on Windows, macOS or Linux
  • ONNX Runtime, which needs no PyTorch
  • The PyTorch backend, with CUDA or Apple MPS support
  • Offline machines, with weights placed in a local folder
Start with
pip install anaksor-ocr
pip install "anaksor-ocr[torch]"

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

anaksor-ocr holds the weights for Khmer OCR, with English and Latin text supported too. Two models work together. A detector finds the lines of text in an image, and a recogniser reads each cropped line. They power the anaksor-ocr Python package.

Who it suits

Developers who need to turn Khmer documents, receipts and sign photos into text, under the Apache 2.0 license.

IndustryWho uses itHow they use itExample
AdministrationRecords teamsDigitize Khmer letters and formsTurn a scanned letter into text
Retail and financeBack-office teamsRead receipts that mix Khmer and Latin textPull the text from a receipt photo
SoftwareApp developersAdd Khmer OCR to an appRead a sign photo in a mobile app
ResearchNLP researchersStudy Khmer text detection and recognitionCompare model versions on a test set

Skip it if your text is in other scripts, since the model covers Khmer and English.

Where to use it

It runs in Python through the anaksor-ocr package, or from its command line.

  • Python on Windows, macOS or Linux
  • ONNX Runtime, which needs no PyTorch
  • The PyTorch backend, with CUDA or Apple MPS support
  • Offline machines, with weights placed in a local folder
Use caseWhoWhat they get back
Document OCRBack-office teamsThe text of a letter or form
Receipt readingFinance teamsThe text lines found on a receipt
Sign readingApp developersText recognised in a photo

How to set it up

You need Python and the package.

  • Python with pip
  • The anaksor-ocr package, with the torch extra if you want the PyTorch backend
  • A few hundred MB at most of weights, which the package fetches for you
  1. Install the anaksor-ocr package with pip.
  2. Optionally add the torch extra for the PyTorch backend.
  3. Run it once so the package downloads and caches the model files.
pip install anaksor-ocr
pip install "anaksor-ocr[torch]"

You can also download the repository by hand, and pin a release by its tag.

pip install -U huggingface_hub
hf download Sokheng/anaksor-ocr --local-dir weights/huggingface
hf download Sokheng/anaksor-ocr --revision rec-v4-det-dbpp-v1 --local-dir weights/huggingface

How to use it

Create the OCR object, pass it an image path, and read the text from the result.

import anaksor

ocr    = anaksor.OCR()
result = ocr("letter.jpg")
print(result["text"])

The command line does the same. Environment variables pin a release or use local weights with no network.

ANAKSOR_HF_REVISION=rec-v4-det-v3 anaksor letter.jpg
anaksor --fetch-models
ANAKSOR_WEIGHTS_DIR=./weights anaksor letter.jpg
ToolWhat it does
anaksor.OCRRuns detection and recognition on an image
anaksorCommand line that reads an image file
anaksor --fetch-modelsDownloads the model files ahead of time
ANAKSOR_HF_REVISIONPins a tagged release of the weights
ANAKSOR_WEIGHTS_DIRUses local weights and no network

Example

You pass a photo of a typed Khmer letter to the OCR object. The result comes back with a text field, and you print it to read the letter's text.

For newcomers and experts

If you are new to OCR, install the package, run it on one clear photo and print the text. Fetching the models first is a good idea if your network is slow.

If you know the field, recognition is an SVTRv2-B encoder with a CTC head, and detection is a mobile DBNet++ with a RepViT backbone and an Adaptive Scale Fusion block. The package hash-checks each download and caches it. The card adds that loading these file types does not execute code. Load a .pth checkpoint with the .yml config from the same revision.

  1. Load an image
  2. Detector finds the text lines
  3. Crop each line
  4. Recogniser reads each crop
  5. Return the text

Good to know

The card reports recognition v4 at 86.7% line accuracy on real validation lines, against 84.8% for the previous version. Gains are largest on Latin text, while Khmer-only lines are about one point behind v3.

Line accuracy on real validation lines
v3 all lines84.8%
v4 all lines86.7%
v3 Latin lines66.9%
v4 Latin lines76.4%
  • License: Apache 2.0
  • Cost to run: none named, apart from your own hardware
  • Data it reaches: the images you give it, plus model downloads and a local cache under your home folder
  • Not for: scripts other than Khmer and Latin, and reading text without checking the output

README and files

README

anaksor-ocr

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who need Khmer OCR in Python.

Made by Sokheng on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: anaksor-ocr holds the weights for Khmer OCR, with English and Latin text supported too. Two models work together. A detector finds the lines of text in an image, and a recogniser reads each cropped line. They power the anaksor-ocr Python package.

Who it suits: Developers who need to turn Khmer documents, receipts and sign photos into text, under the Apache 2.0 license.

Industry | Who uses it | How they use it | Example
Administration | Records teams | Digitize Khmer letters and forms | Turn a scanned letter into text
Retail and finance | Back-office teams | Read receipts that mix Khmer and Latin text | Pull the text from a receipt photo
Software | App developers | Add Khmer OCR to an app | Read a sign photo in a mobile app
Research | NLP researchers | Study Khmer text detection and recognition | Compare model versions on a test set

Skip it if your text is in other scripts, since the model covers Khmer and English.

Where to use it: It runs in Python through the anaksor-ocr package, or from its command line.

  • Python on Windows, macOS or Linux
  • ONNX Runtime, which needs no PyTorch
  • The PyTorch backend, with CUDA or Apple MPS support
  • Offline machines, with weights placed in a local folder
Use case | Who | What they get back
Document OCR | Back-office teams | The text of a letter or form
Receipt reading | Finance teams | The text lines found on a receipt
Sign reading | App developers | Text recognised in a photo

How to set it up: You need Python and the package.

  • Python with pip
  • The anaksor-ocr package, with the torch extra if you want the PyTorch backend
  • A few hundred MB at most of weights, which the package fetches for you
  1. Install the anaksor-ocr package with pip.
  2. Optionally add the torch extra for the PyTorch backend.
  3. Run it once so the package downloads and caches the model files.
pip install anaksor-ocr
pip install "anaksor-ocr[torch]"

You can also download the repository by hand, and pin a release by its tag.

pip install -U huggingface_hub
hf download Sokheng/anaksor-ocr --local-dir weights/huggingface
hf download Sokheng/anaksor-ocr --revision rec-v4-det-dbpp-v1 --local-dir weights/huggingface

How to use it: Create the OCR object, pass it an image path, and read the text from the result.

import anaksor

ocr    = anaksor.OCR()
result = ocr("letter.jpg")
print(result["text"])

The command line does the same. Environment variables pin a release or use local weights with no network.

ANAKSOR_HF_REVISION=rec-v4-det-v3 anaksor letter.jpg
anaksor --fetch-models
ANAKSOR_WEIGHTS_DIR=./weights anaksor letter.jpg
Tool | What it does
anaksor.OCR | Runs detection and recognition on an image
anaksor | Command line that reads an image file
anaksor --fetch-models | Downloads the model files ahead of time
ANAKSOR_HF_REVISION | Pins a tagged release of the weights
ANAKSOR_WEIGHTS_DIR | Uses local weights and no network

Example: You pass a photo of a typed Khmer letter to the OCR object. The result comes back with a text field, and you print it to read the letter's text.

For newcomers and experts: If you are new to OCR, install the package, run it on one clear photo and print the text. Fetching the models first is a good idea if your network is slow.

If you know the field, recognition is an SVTRv2-B encoder with a CTC head, and detection is a mobile DBNet++ with a RepViT backbone and an Adaptive Scale Fusion block. The package hash-checks each download and caches it. The card adds that loading these file types does not execute code. Load a .pth checkpoint with the .yml config from the same revision.

Load an image
Detector finds the text lines
Crop each line
Recogniser reads each crop
Return the text

Good to know: The card reports recognition v4 at 86.7% line accuracy on real validation lines, against 84.8% for the previous version. Gains are largest on Latin text, while Khmer-only lines are about one point behind v3.

Title: Line accuracy on real validation lines
v3 all lines: 84.8%
v4 all lines: 86.7%
v3 Latin lines: 66.9%
v4 Latin lines: 76.4%
  • License: Apache 2.0
  • Cost to run: none named, apart from your own hardware
  • Data it reaches: the images you give it, plus model downloads and a local cache under your home folder
  • Not for: scripts other than Khmer and Latin, and reading text without checking the output

On Hugging Face, 14 November 2026

  • Task: image to text
  • Library: pytorch
  • Formats: Safetensors
  • Downloads in the last 30 days: 61
  • Likes: 4
  • License: apache-2.0
  • Languages: km, en
  • Tags: pytorch, onnx, khmer, text-detection, text-recognition, svtrv2, dbnet, dbnetpp, safetensors, image-to-text

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download Sokheng/anaksor-ocr

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-14

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
anaksor-ocr This page614—apache-2.0
PP-OCRv6_mangaShares text-recognition · text-detection · image-to-text43714—apache-2.0
indra-ocrShares image-to-text · onnx · safetensors8,6245291.3Mopenrail
Koharu Layout HighResShares text-detection · safetensors125546.6Mapache-2.0
all-MiniLM-L6-v2Shares pytorch · onnx · safetensors174,740,1846,10422.7Mapache-2.0
bge-small-en-v1.5Shares pytorch · onnx · safetensors45,750,54867133.4Mmit
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-14.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Merlin-Cancer-Super

AbdomenAtlas · Kit

Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k