
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Perform font classification and text recognition (in one step) on historic documents.
> Open and deserialize PAGE input files and their respective images,
> iterating over the element hierarchy down to the text line level.
> Then for each line, retrieve the raw image and feed it to the font
> classifier and/or the OCR.
> Annotate font predictions by name and score as a comma-separated
> list under ``./TextStyle/@fontFamily``, if any.
> Annotate the text prediction as a string under ``./TextEquiv``.
> If ``method`` is `adaptive`, then use `SelOCR` if font classification is confident
> enough, otherwise use `COCR`.
> Finally, produce a new PAGE output file by serialising the resulting hierarchy.
The default.froc model is composed of a SelOCR network and a COCR architecture, and is trained to classify and OCR textlines on the following 12 classes:
Antiqua
Bastarda
Fraktur
Textura
Schwabacher
Greek *
Italic
Hebrew *
Gotico-antiqua
Manuscript *
Rotunda
No class/Ignore
* Greek, Hebrew and Manuscript font groups do not currently provide good results due to a lack of training data.
OCR-D processor interface ocrd-froc
To be used with PAGE-XML documents in an OCR-D annotation workflow.
Parameters:
"ocr_method" [string - "none"]
The method to use for text recognition
Possible values: ["none", "SelOCR", "COCR", "adaptive"]
"replace_textstyle" [bool - true]
Whether to replace existing textStyle
"network" [string]
The file name of the neural network to use, including sufficient path
information. Defaults to the model bundled with ocrd_froc.
"fast_cocr" [boolean - true]
Whether to use optimization steps on the COCR strategy
"adaptive_threshold" [number - 95]
Threshold of certitude needed to use SelOCR when using the adaptive
strategy
"font_class_priors" [array - []]
List of font classes which are known to be present on the data when
using the adaptive/SelOCR strategies. If this option is specified,
any font classes not included are ignored. If 'other' is
included in the list, no font classification is output and
a generic model is used for transcriptions.
FAQs
font recognition and OCR
We found that ocrd-froc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.