hebrew-ocr-forms
БесплатноЗапускает вложенные скриптыНе проверенProcess and extract data from scanned Israeli government forms using OCR. Supports Tabu (land registry), Tax Authority forms, Bituach Leumi documents, and…
от skills-il★ 28 звёзд на GitHubОб этом скилле
Hebrew OCR Forms
Instructions
Step 0: Decide Whether This Needs OCR At All
Check for a text layer first. Most documents gov.il issues today are born-digital PDFs: the land-registry Nesach, a Form 106 exported from payroll software, Bituach Leumi certificates downloaded from the personal area. Run pdftotext -layout file.pdf - (poppler); if it prints real Hebrew, use that text and skip OCR entirely, because OCR can only lose characters that are already exact. Hebrew from some PDFs comes out in visual (reversed) order; re-order it before matching labels. Only image-only pages (scans, phone photos) go through Steps 2-3. The registry's own page states a Nesach is recognized as an original only in its digital form, not when printed, so ask for the PDF instead of re-scanning a printout.
If you can read images yourself (a vision-capable agent), you may read a page directly instead of installing Tesseract, but still run the deterministic checks from Step 6 (ID check digit, owner-share sum) on what you read.
Privacy. These pages carry ID numbers, salaries, tax and benefit data, which is personal data under the Privacy Protection Law (Amendment 13 in force since 14 August 2025, with stronger enforcement powers). Default to local Tesseract. Before sending pages to a cloud OCR or LLM API:
- confirm the data owner allows it, and never send Bituach Leumi disability or maternity letters (medical details) without their explicit consent;
- remember the major cloud engines may process data outside Israel, which the transfer-abroad regulations (תקנות הגנת הפרטיות (העברת מידע אל מאגרי מידע שמחוץ לגבולות המדינה)) govern, and that an office keeping such scans is also subject to the data-security regulations (תקנות הגנת הפרטיות (אבטחת מידע));
- mask ID numbers in any field you do not need, and delete uploaded pages and intermediate images when the job is done;
- for law and accounting offices, client documents are also covered by professional confidentiality.
The output is an unofficial transcription. Every value the scripts emit is an OCR reading, not the issuing authority's record; the JSON carries a notice field, and the Nesach CSV ends with a notice row saying the same. Never present the CSV as the Nesach itself, and give no opinion on what an entry (a caution, an attachment, an order) means for a transaction.
Step 1: Identify the Form Type
| Form Type | Source | Key Identifiers | Common Fields |
|---|---|---|---|
| Nesach Tabu | Land Registry | "נסח טאבו", "לשכת רישום המקרקעין" | Gush, Chelka, Owner, Liens |
| Form 106 | Tax Authority | "טופס 106", "אישור על משכורת וניכוי מס", "מספר תיק ניכויים" | Tax year, Withholding file no., Employee TZ, Salary (field 158/172), Tax withheld (field 042) |
| Ishur Nikui | Tax Authority | "אישור ניכוי מס במקור", "אישור ניהול ספרים וניכוי מס במקור" | Withholding rate, Validity, File / osek number. Confirm the rate and validity in the Tax Authority's online lookup by file number before applying them |
| Form 806/857 | Tax Authority | "0806/0857", "אישור שנתי על ניכוי מס הכנסה מתשלומים" | Payer's withholding file, Payee ID, Gross paid, Tax withheld (annual certificate of withholding at source on payments, NOT a capital-gains form) |
| Form 102 | Bituach Leumi | "טופס 102", "דין וחשבון על העסקת עובדים" | Employer, Employees, Wages, Contributions (monthly employer report) |
| BL certificate | Bituach Leumi | "המוסד לביטוח לאומי" header, with a title such as "אישור זכאות לגמלאות שנתי" or "אישור תשלומים שנתי" | Benefit type, Period, Amount |
| Rishayon Rechev | Vehicle Licensing | "רישיון רכב" | Plate, Owner, Expiry |
Capital-gains reports are Form 1399, not 857. BL "Form 100" is not an employer report (BL publishes it as a claimant's refusal form), so do not key on it. A document titled "אישור זכויות" is not a Nesach; the extractor keeps it out of the Nesach parser.
Step 2: Preprocess the Scanned Image
See scripts/preprocess_image.py for the full preprocessing pipeline. Key steps:
- Convert to grayscale (optionally crop a dark scanner frame with
--remove-borders PXfirst, so it does not skew the angle estimate) - Deskew -- Israeli forms are often slightly rotated from scanning; estimates beyond 15 degrees are refused rather than guessed. The estimate uses all ink, so on our synthetic test pages a large stamp or signature rotated a straight page by about 1-3 degrees; check the output and use
--no-deskewif so - Denoise (non-local means,
--denoise-strength, default 15) - Binarize only on request (
--binarize, best with--denoise-strength 20). Tesseract binarizes internally, and an adaptive threshold on a grainy scan turns grain into speckle it reads as letters; on our test scans the grayscale output read every field while the binarized one lost some - Phone photos and low-DPI scans: this pipeline does not correct perspective or uneven page curvature. The script warns when the image is far smaller
Установить hebrew-ocr-forms в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(python:*)Bash(pip:*)Bash(tesseract:*)Вложенные файлы
FAQ
Что делает скилл hebrew-ocr-forms?
Process and extract data from scanned Israeli government forms using OCR. Supports Tabu (land registry), Tax Authority forms, Bituach Leumi documents, and other official Israeli paperwork. Use when user asks to OCR Hebrew documents, extract data from Israeli forms, "lesarek tofes", parse Tabu extract, read scanned tax form, or process Israeli government documents. Includes Hebrew OCR configuration, field extraction patterns, and RTL text handling. Do NOT use for handwritten Hebrew recognition (requires specialized models) or non-Israeli form processing.
Как установить скилл hebrew-ocr-forms?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hebrew-ocr-forms запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic