Convert HOCR to MD
Turn HOCR files into Markdown. Each recognized paragraph becomes a Markdown paragraph with its lines joined, and pages are separated by rules.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop HOCR files on the dialor turn it to pick what to do
The recognized text as plain Markdown.Paragraphs keep their words. Positions and confidence scores are dropped.
What you get
One Markdown file. Each recognized paragraph becomes a Markdown paragraph, and its lines are joined into a single run of text.
Pages are separated by rules, so you can still see where one page ends and the next begins.
What it leaves behind
hOCR stores the position of every word on the page, along with how sure the recognizer was about each word. Markdown has no place for either, so both are dropped. What remains is the text and its paragraph breaks.
When it stops
If the hOCR file cannot be parsed, the conversion stops with
input_corrupted. No Markdown file is produced in that case.
HOCR and MD.What each format is.
The formats
hOCR
OCR output as HTML with the position of every word on the page.
- Extensions
- .hocr
- MIME type
- text
/x -hocr - Kind
- Text and data
Markdown
Plain text with light markup for headings, lists, links and code. What agents and developers write in.
- Extensions
- .md .markdown .mdown
- MIME type
- text
/markdown - Kind
- Text and data
In your code.The same HOCR to MD conversion through the API, for your app or your agent.
$ cv convert report.hocr report.md$ cv convert report.hocr report.mdQuestions.What people ask about HOCR to MD.
No. Word positions are dropped. The paragraphs and the page order are kept.
Pages are separated by rules. Each rule marks the break between one page and the next.
No. This conversion has no options and gives you one file.
The hOCR file could not be parsed. The conversion stops and does not produce a Markdown file.