Convert WEBP to HOCR

Turn WEBP images into HOCR. The text read by OCR as hOCR, HTML with the box of every page area, line and word and how sure the reader is of each word, in English unless language lists others.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop WEBP files on the dialor turn it to pick what to do

Text and word positions from a WebP.The hOCR file holds the text found in the image and where each word sits.

  1. What you get

    One hOCR file for the WebP you convert. hOCR is OCR output written as HTML, with the position of every word on the page.

    Use it when you need the recognized text and its place in the image, not only plain text.

  2. Animated WebP files

    An animation gives only its first frame. The hOCR file comes from that frame.

  3. Setting the language

    Set Language to the languages the text is in, so OCR knows which letters to expect. Naming the right language matters most for Korean, Japanese and Chinese.

    Separate several languages with commas, such as en,ko.

  4. When it stops

    The conversion stops with input_corrupted when the file could not be parsed.

    For other conversions, see every WEBP conversion.

WEBP and HOCR.What each format is, and the options this conversion takes.

  1. 01 · language

    Language

    The languages the text is in, so OCR knows which letters to expect. Without it the text is read as English, so letters such as é, ß and ł come out wrong and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read. Separate several with commas, such as fr,en.

The formats

From · WEBP

WebP

Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.

Extensions
.webp
MIME type
image/webp
Kind
Images
To · HOCR

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

In your code.The same WEBP to HOCR conversion through the API, for your app or your agent.

terminal
$ cv convert photo.webp photo.hocr
$ cv convert photo.webp photo.hocr

Questions.What people ask about WEBP to HOCR.

01OF 04

It is OCR output as HTML with the position of every word on the page.

You get the first frame only, and the hOCR file comes from it.

Yes. Set Language to a comma-separated list, such as en,ko.

The file could not be parsed. The conversion stops with that code in this case.

More conversions.Other ways in and out of WEBP and HOCR.