Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.
Developers can combine several Engines in their recognition solutions. When multiple Engines generate different recognition variants for a character or word, the developer can select the best variant by voting between the variants. To enable voting, the ABBYY FineReader Engine has a special Voting API that provides access to different hypotheses of character or word recognition with corresponding weight values. In addition to voting, the developer can use the Voting API to check recognition results using his own databases and algorithms and to correct text. For example, the developer can build words from letters or check all generated hypotheses.
The Voting API is not available for handwritten/handprinted texts recognition.
The WordRecognitionVariants object represents a collection of hypotheses for a word, and the CharacterRecognitionVariants object represents a collection of hypotheses for a character. The elements of these collections are the WordRecognitionVariant and CharacterRecognitionVariant objects, respectively.The WordRecognitionVariant object represents a single hypothesis for a word and contains the text of the hypothesis, type of model, the average width of a stroke, and information on whether the hypothesis has been found in the dictionary. The GetCharParams method of this object provides access to the parameters of a single character.The CharacterRecognitionVariant object represents a single hypothesis for a character and contains character confidence, the probability that a character is written with a serif font, and information on whether the character is superscript or subscript.
How to retrieve recognition variants for a word or character
If you wish to find out all recognition hypotheses for a word or character, do the following:
Set the SaveWordRecognitionVariants and SaveCharacterRecognitionVariants properties of the RecognizerParams object to TRUE. This will instruct FineReader Engine to save recognition variants in the recognition results.
Pass the RecognizerParams object as a subobject of the PageProcessingParams object (or the DocumentProcessingParams object which contains it) to one of the ABBYY FineReader Engine recognition methods.
These methods return zero for non-printable characters (spaces, carriage returns, etc.) and characters that were not recognized but added to the text during editing. Zero is also returned if the text was recognized by one of the previous ABBYY FineReader Engine versions. The hypotheses collections contain recognition variants ranked from best to worst. If the SaveWordRecognitionVariants or SaveCharacterRecognitionVariants property of the RecognizerParams object is set to FALSE, the corresponding collection will contain only one element.
Windows Samples
C++ (COM) code
FREngine::IEnginePtr Engine;FREngine::IFRDocumentPtr frDocument;...// Create the DocumentProcessingParams object, set up the parameters,// and use it during recognitionFREngine::IDocumentProcessingParamsPtr dpp = Engine->CreateDocumentProcessingParams();dpp->PageProcessingParams->RecognizerParams->SaveCharacterRecognitionVariants = VARIANT_TRUE;dpp->PageProcessingParams->RecognizerParams->SaveWordRecognitionVariants = VARIANT_TRUE;frDocument->Process( dpp );// Iterate layout blocksFREngine::ILayoutPtr layout = frDocument->Pages->Item(0)->Layout;for (int i = 0; i < layout->Blocks->Count; i++) { if (layout->Blocks->Item(i)->Type == FREngine::BT_Text) { getVariants (layout->Blocks->Item(i)); }}// Procedure of hypotheses generation for all words and characters of a text blockvoid getVariants(FREngine::IBlockPtr& block){ FREngine::ICharParamsPtr charParams = Engine->CreateCharParams(); FREngine::IParagraphsPtr paragraphs = block->GetAsTextBlock()->Text->Paragraphs; for (int i = 0; i < paragraphs->Count; i++) { for (int j = 0; j < paragraphs->Item(i)->Length; j++) { paragraphs->Item(i)->GetCharParams(j, charParams); FREngine::ICharacterRecognitionVariantsPtr charVariants = charParams->CharacterRecognitionVariants; FREngine::IWordRecognitionVariantsPtr wordVariants = charParams->WordRecognitionVariants; if (wordVariants != 0) { for (int k = 0; k < wordVariants->Count; k++) { FREngine::IWordRecognitionVariantPtr wordVariant = wordVariants->Item(k); } } if (charVariants != 0) { for ( int k = 0; k < charVariants->Count; k++) { FREngine::ICharacterRecognitionVariantPtr charVariant = charVariants->Item(k); } } } }}
C# code
FREngine.IEngine engine;FREngine.IFRDocument document;...// Create the DocumentProcessingParams object, set up the parameters,// and use it during recognitionFREngine.IDocumentProcessingParams dpp = engine.CreateDocumentProcessingParams();dpp.PageProcessingParams.RecognizerParams.SaveCharacterRecognitionVariants = true;dpp.PageProcessingParams.RecognizerParams.SaveWordRecognitionVariants = true;document.Process( dpp );// Iterate layout blocksFREngine.ILayout layout = document.Pages[0].Layout;for (int i = 0; i < layout.Blocks.Count; i++) { if (layout.Blocks[i].Type == FREngine.BlockTypeEnum.BT_Text) { getVariants (layout.Blocks[i]); }}// Procedure of hypotheses generation for all words and characters of a text blockvoid getVariants(FREngine.IBlock block){ FREngine.ICharParams charParams = engine.CreateCharParams(); FREngine.IParagraphs paragraphs = block.GetAsTextBlock().Text.Paragraphs; for (int i = 0; i < paragraphs.Count; i++) { for (int j = 0; j < paragraphs[i].Length; j++) { paragraphs[i].GetCharParams(j, charParams); FREngine.ICharacterRecognitionVariants charVariants = charParams.CharacterRecognitionVariants; FREngine.IWordRecognitionVariants wordVariants = charParams.WordRecognitionVariants; if (wordVariants != null) { for (int k = 0; k < wordVariants.Count; k++) { FREngine.IWordRecognitionVariant wordVariant = wordVariants[k]; } } if (charVariants != null) { for ( int k = 0; k < charVariants.Count; k++) { FREngine.ICharacterRecognitionVariant charVariant = charVariants[k]; } } } }}
What is the difference between CharConfidence, ErrorProbability, and IsSuspicious
To find out if a character was recognized unreliably and needs verification, use the IsSuspicious property of the PlainText or CharParams objects for the given character. It is calculated based on ErrorProbability.To implement more fine-grained distinctions, you can use the ErrorProbability property of the PlainText or CharParams objects, which returns the estimated probability (in range from 0 to 100) that the character was recognized incorrectly. It takes into account the context in which the character is found, for example, whether the word with this character is found in the dictionary.You can also get the character confidence, both for a recognized character (the CharConfidence property of the PlainText object) and for all recognition variants (the CharConfidence property of the CharacterRecognitionVariant object). The confidence provides an accuracy estimate based only on the image of one character, without considering the context. Confidence estimates for different characters are incomparable, and the only safe use of confidence is for comparing several recognition variants of the same image (character).None of these properties make sense for symbols obtained without recognition, for example, those taken directly from the source PDF file.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"ABBYY Documentation","description":"Public documentation for ABBYY products","colors":{"primary":"#ff2038","light":"#ff2038","dark":"#ff2038"},"logo":{"light":"https://mintcdn.com/abbyy/jZX7kaKQgdxaDiIT/logo/ABBYY.png?fit=max\u0026auto=format\u0026n=jZX7kaKQgdxaDiIT\u0026q=85\u0026s=22a894b7aa77d1a21a7cea6a2484f822","dark":"https://mintcdn.com/abbyy/jZX7kaKQgdxaDiIT/logo/ABBYY.png?fit=max\u0026auto=format\u0026n=jZX7kaKQgdxaDiIT\u0026q=85\u0026s=22a894b7aa77d1a21a7cea6a2484f822","href":"/home"},"favicon":"https://mintcdn.com/abbyy/Bmjdl5TjCaidPxKi/favicon.png?fit=max\u0026auto=format\u0026n=Bmjdl5TjCaidPxKi\u0026q=85\u0026s=a48bd110e79a8b2cca62fe532aae9ad7","appearance":{"default":"system"},"navbar":{"links":[{"href":"https://www.abbyy.com","label":"Website"}],"primary":{"type":"button","label":"Get Started","href":"/vantage/getting-started/overview"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/abbyy","x":"https://x.com/ABBYY_Software"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://www.abbyy.com/privacy"},{"label":"Legal","href":"https://www.abbyy.com/legal"},{"label":"Cookie Policy","href":"https://www.abbyy.com/cookie-policy"},{"label":"Do Not Sell","href":"https://abbyy-privacy.my.onetrust.com/webform/89584c5c-03d1-431e-81d2-37c2205d3b5b/a1068ab4-f849-4a25-8b80-c65119915ec3"}]}]},"search":{"prompt":"Search documentation..."},"integrations":{"gtm":{"tagId":"GTM-PC7TQHPL"}},"contextual":{"options":["copy","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"home"},{"language":"de","href":"de/home"},{"language":"es","href":"es/home"},{"language":"fr","href":"fr/home"},{"language":"ja","href":"ja/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"abbyy","hasAudioNarration":false,"actualSubdomain":"abbyy","customDomains":["docs.abbyy.com"],"gitSource":{"type":"github","owner":"abbyyproduct","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":false,"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b073eb185868f7caba2ef10","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"en","tag":"FlexiCapture","count":2069},{"language":"de","tag":"FlexiCapture","count":2068},{"language":"es","tag":"FlexiCapture","count":2068},{"language":"fr","tag":"FlexiCapture","count":2068},{"language":"ja","tag":"FlexiCapture","count":2068},{"language":"de","tag":"FineReader Engine","count":1541},{"language":"es","tag":"FineReader Engine","count":1541},{"language":"en","tag":"FineReader Engine","count":1541},{"language":"fr","tag":"FineReader Engine","count":1541},{"language":"ja","tag":"FineReader Engine","count":1541},{"language":"de","tag":"API Reference","count":1155},{"language":"es","tag":"API Reference","count":1155},{"language":"en","tag":"API Reference","count":1155},{"language":"fr","tag":"API Reference","count":1155},{"language":"ja","tag":"API Reference","count":1155},{"language":"de","tag":"Vantage","count":846},{"language":"es","tag":"Vantage","count":846},{"language":"en","tag":"Vantage","count":846},{"language":"fr","tag":"Vantage","count":846},{"language":"ja","tag":"Vantage","count":846},{"language":"de","tag":"Developer \u0026 Integrations","count":799},{"language":"es","tag":"Developer \u0026 Integrations","count":799},{"language":"en","tag":"Developer \u0026 Integrations","count":799},{"language":"fr","tag":"Developer \u0026 Integrations","count":799},{"language":"ja","tag":"Developer \u0026 Integrations","count":799},{"language":"de","tag":"Project Setup \u0026 Design","count":741},{"language":"es","tag":"Project Setup \u0026 Design","count":741},{"language":"en","tag":"Project Setup \u0026 Design","count":741},{"language":"fr","tag":"Project Setup \u0026 Design","count":741},{"language":"ja","tag":"Project Setup \u0026 Design","count":741},{"language":"de","tag":"Programmer's Guide","count":606},{"language":"es","tag":"Programmer's Guide","count":606},{"language":"en","tag":"Programmer's Guide","count":606},{"language":"fr","tag":"Programmer's Guide","count":606},{"language":"ja","tag":"Programmer's Guide","count":606},{"language":"de","tag":"Advanced Designer","count":520},{"language":"es","tag":"Advanced Designer","count":520},{"language":"en","tag":"Advanced Designer","count":520},{"language":"fr","tag":"Advanced Designer","count":520},{"language":"ja","tag":"Advanced Designer","count":520},{"language":"de","tag":"Skills","count":516},{"language":"es","tag":"Skills","count":516},{"language":"en","tag":"Skills","count":516},{"language":"fr","tag":"Skills","count":516},{"language":"ja","tag":"Skills","count":516},{"language":"de","tag":"Connectors","count":365},{"language":"es","tag":"Connectors","count":365},{"language":"en","tag":"Connectors","count":365},{"language":"fr","tag":"Connectors","count":365},{"language":"ja","tag":"Connectors","count":365}],"searchSettings":{"isFiltersEnabled":true,"maxResults":10}},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"footer{margin-top:auto;padding:2rem 0;border-top:1px solid var(--border-color);width:100%;clear:both;position:relative;z-index:1}body{display:flex;flex-direction:column;min-height:100vh}main{flex:1}footer a{color:var(--text-secondary);text-decoration:none;transition:color 0.2s ease}footer a:hover{color:var(--primary);text-decoration:underline}footer>div{max-width:100%;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem}footer .footer-links{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:1rem}@media (min-width: 1024px){footer{margin-left:0;padding-left:1rem}}.abbyy-stripe{background-image:linear-gradient(45deg, #dfebfd, #dfebfd 10px, #ecf3fe 10px, #ecf3fe 20px)}.dark .abbyy-stripe{background-image:linear-gradient(45deg, rgb(30 41 59 / 0.45), rgb(30 41 59 / 0.45) 10px, rgb(15 23 42 / 0.45) 10px, rgb(15 23 42 / 0.45) 20px)}.abbyy-btn-primary{background-color:#ff2038}.abbyy-btn-primary:hover{background-color:#e01c32}.abbyy-btn-primary:focus{--tw-ring-color: rgb(255 32 56 / 0.35)}.abbyy-link-primary{color:#ff2038}.abbyy-link-primary:hover{color:#e01c32}.dark .abbyy-link-primary{color:#ff4d60}.abbyy-eyebrow{color:#0b4aaa}.dark .abbyy-eyebrow{color:#93b8ec}.docs-home{max-width:80rem;margin:0 auto;padding:2.5rem 1.25rem 8rem}@media (min-width: 1024px){.docs-home{padding-left:2.5rem;padding-right:2.5rem}}.docs-home h1{font-size:2rem;font-weight:800;margin-top:1.5rem;margin-bottom:0.75rem;color:#0f172a;letter-spacing:-0.025em}@media (min-width: 640px){.docs-home h1{font-size:2.5rem}}.docs-home>p:first-of-type{color:#374151;font-size:1.0625rem;line-height:1.75;margin-bottom:2rem}.docs-home h2{font-size:1.375rem;font-weight:700;margin-top:2.5rem;margin-bottom:0.5rem;color:#0f172a}.docs-home a.link,.docs-home p a,.docs-home [data-as=\"p\"] a{color:#0f172a!important;text-decoration:underline!important;text-decoration-thickness:1.5px!important;text-underline-offset:3px!important}.dark .docs-home a.link,.dark .docs-home p a,.dark .docs-home [data-as=\"p\"] a{color:#f1f5f9!important}.docs-home>p{color:#374151;font-size:1rem;line-height:1.75;margin-bottom:1.75rem}.docs-home .card-group{gap:0.75rem!important;margin-top:0.75rem!important;max-width:64rem}.docs-home .card [data-component-part=\"card-content-container\"]{padding:1.25rem 1.5rem!important}.docs-home .card [data-component-part=\"card-title\"]{margin-top:0.5rem!important;font-weight:600!important;font-size:0.9375rem!important;color:#0f172a}.docs-home .card [data-component-part=\"card-content\"]{font-size:0.8125rem!important;line-height:1.5!important;color:#475569}.docs-home .card [data-component-part=\"card-cta\"]{margin-top:0.75rem!important}.docs-home .learn-more{display:block;margin-top:0.5rem;font-size:0.8125rem;color:var(--primary);font-weight:500}.dark .docs-home h1,.dark .docs-home h2{color:#f1f5f9}.dark .docs-home>p,.dark .docs-home .card [data-component-part=\"card-content\"]{color:#94a3b8}.dark .docs-home .card [data-component-part=\"card-title\"]{color:#f1f5f9}@media (max-width: 768px){footer .footer-links{flex-direction:column;gap:0.75rem}footer{padding:1.5rem 1rem}}"}]}
{"page":{"pagePath":"fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","slug":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","pageMetadata":{"title":"Using Voting API","description":"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.","keywords":["FineReader Engine Voting API","WordRecognitionVariants","CharacterRecognitionVariants","recognition hypotheses FRE","character confidence FRE","CharConfidence ErrorProbability IsSuspicious","FineReader Engine 12","FRE"],"href":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Note,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Developers can combine several Engines in their recognition solutions. When multiple Engines generate different recognition variants for a character or word, the developer can select the best variant by voting between the variants. To enable voting, the ABBYY FineReader Engine has a special Voting API that provides access to different hypotheses of character or word recognition with corresponding weight values. In addition to voting, the developer can use the Voting API to check recognition results using his own databases and algorithms and to correct text. For example, the developer can build words from letters or check all generated hypotheses.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The Voting API is not available for handwritten/handprinted texts recognition.`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/wordrecognitionvariants`,children:`WordRecognitionVariants`}),` object represents a collection of hypotheses for a word, and the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/characterrecognitionvariants`,children:`CharacterRecognitionVariants`}),` object represents a collection of hypotheses for a character. The elements of these collections are the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/wordrecognitionvariant`,children:`WordRecognitionVariant`}),` and `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/characterrecognitionvariant`,children:`CharacterRecognitionVariant`}),` objects, respectively.`]}),`\n`,_jsxs(_components.p,{children:[`The WordRecognitionVariant object represents a single hypothesis for a word and contains the text of the hypothesis, type of model, the average width of a stroke, and information on whether the hypothesis has been found in the dictionary. The `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/wordrecognitionvariant/getcharparams-method`,children:`GetCharParams`}),` method of this object provides access to the parameters of a single character.`]}),`\n`,_jsx(_components.p,{children:`The CharacterRecognitionVariant object represents a single hypothesis for a character and contains character confidence, the probability that a character is written with a serif font, and information on whether the character is superscript or subscript.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-retrieve-recognition-variants-for-a-word-or-character`,children:`How to retrieve recognition variants for a word or character`}),`\n`,_jsx(_components.p,{children:`If you wish to find out all recognition hypotheses for a word or character, do the following:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Set the SaveWordRecognitionVariants and SaveCharacterRecognitionVariants properties of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams`,children:`RecognizerParams`}),` object to TRUE. This will instruct FineReader Engine to save recognition variants in the recognition results.`]}),`\n`,_jsxs(_components.li,{children:[`Pass the RecognizerParams object as a subobject of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pageprocessingparams`,children:`PageProcessingParams`}),` object (or the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/documentprocessingparams`,children:`DocumentProcessingParams`}),` object which contains it) to one of the ABBYY FineReader Engine recognition methods.`]}),`\n`,_jsxs(_components.li,{children:[`The collection of hypotheses is accessible after recognition through the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/charparams#wordrecognitionvariants`,children:`ICharParams::WordRecognitionVariants`}),`, `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/charparams#characterrecognitionvariants`,children:`ICharParams::CharacterRecognitionVariants`}),` properties and the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/paragraph/getwordrecognitionvariants-metho`,children:`IParagraph::GetWordRecognitionVariants`}),` method.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`These methods return zero for non-printable characters (spaces, carriage returns, etc.) and characters that were not recognized but added to the text during editing. Zero is also returned if the text was recognized by one of the previous ABBYY FineReader Engine versions. The hypotheses collections contain recognition variants ranked from best to worst. If the SaveWordRecognitionVariants or SaveCharacterRecognitionVariants property of the RecognizerParams object is set to FALSE, the corresponding collection will contain only one element.`})}),`\n`,_jsx(Heading,{level:`3`,id:`windows-samples`,children:`Windows Samples`}),`\n`,_jsx(Accordion,{title:`C++ (COM) code`,id:`c-com-code`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`cpp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`cpp`,children:_jsxs(_components.code,{language:`cpp`,numberOfLines:`39`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IEnginePtr Engine;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IFRDocumentPtr frDocument;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Create the DocumentProcessingParams object, set up the parameters,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// and use it during recognition`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IDocumentProcessingParamsPtr dpp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Engine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`CreateDocumentProcessingParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dpp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PageProcessingParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`RecognizerParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SaveCharacterRecognitionVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` VARIANT_TRUE;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dpp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PageProcessingParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`RecognizerParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SaveWordRecognitionVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` VARIANT_TRUE;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`frDocument`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`( dpp );`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Iterate layout blocks`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::ILayoutPtr layout `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` frDocument`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Blocks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Blocks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(i)->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::BT_Text) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Blocks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(i));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Procedure of hypotheses generation for all words and characters of a text block`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IBlockPtr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` block`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::ICharParamsPtr charParams `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Engine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`CreateCharParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IParagraphsPtr paragraphs `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` block`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetAsTextBlock`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` j `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; j `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(i)->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Length`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; j`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(i)->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetCharParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(j, charParams);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::ICharacterRecognitionVariantsPtr charVariants `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`CharacterRecognitionVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IWordRecognitionVariantsPtr wordVariants `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WordRecognitionVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (wordVariants `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` k `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; k `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` wordVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IWordRecognitionVariantPtr wordVariant `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` wordVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(k);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (charVariants `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ( `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` k `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; k `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::ICharacterRecognitionVariantPtr charVariant `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(k);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Accordion,{title:`C# code`,id:`c-code`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`39`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`39`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IEngine`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` engine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IFRDocument`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`..`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Create the DocumentProcessingParams object, set up the parameters,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// and use it during recognition`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IDocumentProcessingParams`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dpp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` engine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`CreateDocumentProcessingParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dpp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PageProcessingParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`RecognizerParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SaveCharacterRecognitionVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dpp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PageProcessingParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`RecognizerParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SaveWordRecognitionVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`( `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dpp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Iterate layout blocks`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ILayout`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` layout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Blocks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Blocks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BlockTypeEnum`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BT_Text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Blocks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Procedure of hypotheses generation for all words and characters of a text block`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IBlock`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` block`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ICharParams`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` charParams`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` engine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`CreateCharParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IParagraphs`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` block`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetAsTextBlock`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` j`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`j`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Length`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`j`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paragraphs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetCharParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`j`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`charParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ICharacterRecognitionVariants`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` charVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`CharacterRecognitionVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IWordRecognitionVariants`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` wordVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WordRecognitionVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wordVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` wordVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IWordRecognitionVariant`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` wordVariant`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` wordVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`charVariants`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ( `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ICharacterRecognitionVariant`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` charVariant`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` charVariants`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`what-is-the-difference-between-charconfidence-errorprobability-and-issuspicious`,children:`What is the difference between CharConfidence, ErrorProbability, and IsSuspicious`}),`\n`,_jsxs(_components.p,{children:[`To find out if a character was recognized unreliably and needs verification, use the IsSuspicious property of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/plaintext/issuspicious-property`,children:`PlainText`}),` or `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/charparams#issuspicious`,children:`CharParams`}),` objects for the given character. It is calculated based on ErrorProbability.`]}),`\n`,_jsxs(_components.p,{children:[`To implement more fine-grained distinctions, you can use the ErrorProbability property of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/plaintext/errorprobability-property`,children:`PlainText`}),` or `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/charparams#errorprobability`,children:`CharParams`}),` objects, which returns the estimated probability (in range from 0 to 100) that the character was recognized incorrectly. It takes into account the context in which the character is found, for example, whether the word with this character is found in the dictionary.`]}),`\n`,_jsxs(_components.p,{children:[`You can also get the character confidence, both for a recognized character (the CharConfidence property of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/plaintext/charconfidence-property`,children:`PlainText`}),` object) and for all recognition variants (the CharConfidence property of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/characterrecognitionvariant#charconfidence`,children:`CharacterRecognitionVariant`}),` object). The confidence provides an accuracy estimate based only on the image of one character, without considering the context. Confidence estimates for different characters are incomparable, and the only safe use of confidence is for comparing several recognition variants of the same image (character).`]}),`\n`,_jsx(_components.p,{children:`None of these properties make sense for symbols obtained without recognition, for example, those taken directly from the source PDF file.`}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/characterrecognitionvariant`,children:`CharacterRecognitionVariant`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/fine-reader/engine/api-reference/text-related-objects/wordrecognitionvariant`,children:`WordRecognitionVariant`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Using Voting API","description":"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.","keywords":["FineReader Engine Voting API","WordRecognitionVariants","CharacterRecognitionVariants","recognition hypotheses FRE","character confidence FRE","CharConfidence ErrorProbability IsSuspicious","FineReader Engine 12","FRE"],"href":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How to retrieve recognition variants for a word or character","slug":"how-to-retrieve-recognition-variants-for-a-word-or-character","depth":2,"children":[{"title":"Windows Samples","slug":"windows-samples","depth":3,"children":[]}]},{"title":"What is the difference between CharConfidence, ErrorProbability, and IsSuspicious","slug":"what-is-the-difference-between-charconfidence-errorprobability-and-issuspicious","depth":2,"children":[]},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/abbyy/1facc084b5289853/images/vantage/scanning-station/breadcrumbs.js"],"subdomain":"abbyy","siteName":"ABBYY Documentation","title":"Using Voting API - ABBYY Documentation","relatedPagesConfig":{"enabled":false,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","matchLevel":0},"de":{"href":"/de/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","matchLevel":1},"es":{"href":"/es/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","matchLevel":1},"fr":{"href":"/fr/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","matchLevel":1},"ja":{"href":"/ja/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api","matchLevel":1}},"searchTabScopes":[{"language":"en","product":"Vantage","tab":"Getting Started"},{"language":"en","product":"Vantage","tab":"Skills"},{"language":"en","product":"Vantage","tab":"Operations"},{"language":"en","product":"Vantage","tab":"Administration"},{"language":"en","product":"Vantage","tab":"Developer"},{"language":"en","product":"Vantage","tab":"Release Notes"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"en","product":"FineParser","tab":"Basic"},{"language":"en","product":"FineParser","tab":"Enterprise"},{"language":"en","product":"FineParser","tab":"Release Notes"},{"language":"en","product":"FineReader Engine","tab":"Introduction"},{"language":"en","product":"FineReader Engine","tab":"Guided Tour"},{"language":"en","product":"FineReader Engine","tab":"API Reference"},{"language":"en","product":"FineReader Engine","tab":"Visual Components"},{"language":"en","product":"FineReader Engine","tab":"Licensing"},{"language":"en","product":"FineReader Engine","tab":"Installation"},{"language":"en","product":"FineReader Engine","tab":"Distribution"},{"language":"en","product":"FineReader Engine","tab":"Specifications"},{"language":"en","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"en","product":"FineReader Engine","tab":"Release Notes"},{"language":"en","product":"FlexiCapture","tab":"Get Started"},{"language":"en","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"en","product":"FlexiCapture","tab":"Operator Guides"},{"language":"en","product":"FlexiCapture","tab":"Administration"},{"language":"en","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"en","product":"FlexiCapture","tab":"Release Notes"},{"language":"de","product":"Vantage","tab":"Getting Started"},{"language":"de","product":"Vantage","tab":"Skills"},{"language":"de","product":"Vantage","tab":"Operations"},{"language":"de","product":"Vantage","tab":"Administration"},{"language":"de","product":"Vantage","tab":"Developer"},{"language":"de","product":"Vantage","tab":"Release Notes"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"de","product":"FineParser","tab":"Basic"},{"language":"de","product":"FineParser","tab":"Enterprise"},{"language":"de","product":"FineParser","tab":"Release Notes"},{"language":"de","product":"FineReader Engine","tab":"Introduction"},{"language":"de","product":"FineReader Engine","tab":"Guided Tour"},{"language":"de","product":"FineReader Engine","tab":"API Reference"},{"language":"de","product":"FineReader Engine","tab":"Visual Components"},{"language":"de","product":"FineReader Engine","tab":"Licensing"},{"language":"de","product":"FineReader Engine","tab":"Installation"},{"language":"de","product":"FineReader Engine","tab":"Distribution"},{"language":"de","product":"FineReader Engine","tab":"Specifications"},{"language":"de","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"de","product":"FineReader Engine","tab":"Release Notes"},{"language":"de","product":"FlexiCapture","tab":"Get Started"},{"language":"de","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"de","product":"FlexiCapture","tab":"Operator Guides"},{"language":"de","product":"FlexiCapture","tab":"Administration"},{"language":"de","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"de","product":"FlexiCapture","tab":"Release Notes"},{"language":"es","product":"Vantage","tab":"Getting Started"},{"language":"es","product":"Vantage","tab":"Skills"},{"language":"es","product":"Vantage","tab":"Operations"},{"language":"es","product":"Vantage","tab":"Administration"},{"language":"es","product":"Vantage","tab":"Developer"},{"language":"es","product":"Vantage","tab":"Release Notes"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"es","product":"FineParser","tab":"Basic"},{"language":"es","product":"FineParser","tab":"Enterprise"},{"language":"es","product":"FineParser","tab":"Release Notes"},{"language":"es","product":"FineReader Engine","tab":"Introduction"},{"language":"es","product":"FineReader Engine","tab":"Guided Tour"},{"language":"es","product":"FineReader Engine","tab":"API Reference"},{"language":"es","product":"FineReader Engine","tab":"Visual Components"},{"language":"es","product":"FineReader Engine","tab":"Licensing"},{"language":"es","product":"FineReader Engine","tab":"Installation"},{"language":"es","product":"FineReader Engine","tab":"Distribution"},{"language":"es","product":"FineReader Engine","tab":"Specifications"},{"language":"es","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"es","product":"FineReader Engine","tab":"Release Notes"},{"language":"es","product":"FlexiCapture","tab":"Get Started"},{"language":"es","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"es","product":"FlexiCapture","tab":"Operator Guides"},{"language":"es","product":"FlexiCapture","tab":"Administration"},{"language":"es","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"es","product":"FlexiCapture","tab":"Release Notes"},{"language":"fr","product":"Vantage","tab":"Getting Started"},{"language":"fr","product":"Vantage","tab":"Skills"},{"language":"fr","product":"Vantage","tab":"Operations"},{"language":"fr","product":"Vantage","tab":"Administration"},{"language":"fr","product":"Vantage","tab":"Developer"},{"language":"fr","product":"Vantage","tab":"Release Notes"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"fr","product":"FineParser","tab":"Basic"},{"language":"fr","product":"FineParser","tab":"Enterprise"},{"language":"fr","product":"FineParser","tab":"Release Notes"},{"language":"fr","product":"FineReader Engine","tab":"Introduction"},{"language":"fr","product":"FineReader Engine","tab":"Guided Tour"},{"language":"fr","product":"FineReader Engine","tab":"API Reference"},{"language":"fr","product":"FineReader Engine","tab":"Visual Components"},{"language":"fr","product":"FineReader Engine","tab":"Licensing"},{"language":"fr","product":"FineReader Engine","tab":"Installation"},{"language":"fr","product":"FineReader Engine","tab":"Distribution"},{"language":"fr","product":"FineReader Engine","tab":"Specifications"},{"language":"fr","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"fr","product":"FineReader Engine","tab":"Release Notes"},{"language":"fr","product":"FlexiCapture","tab":"Get Started"},{"language":"fr","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"fr","product":"FlexiCapture","tab":"Operator Guides"},{"language":"fr","product":"FlexiCapture","tab":"Administration"},{"language":"fr","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"fr","product":"FlexiCapture","tab":"Release Notes"},{"language":"ja","product":"Vantage","tab":"Getting Started"},{"language":"ja","product":"Vantage","tab":"Skills"},{"language":"ja","product":"Vantage","tab":"Operations"},{"language":"ja","product":"Vantage","tab":"Administration"},{"language":"ja","product":"Vantage","tab":"Developer"},{"language":"ja","product":"Vantage","tab":"Release Notes"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"ja","product":"FineParser","tab":"Basic"},{"language":"ja","product":"FineParser","tab":"Enterprise"},{"language":"ja","product":"FineParser","tab":"Release Notes"},{"language":"ja","product":"FineReader Engine","tab":"Introduction"},{"language":"ja","product":"FineReader Engine","tab":"Guided Tour"},{"language":"ja","product":"FineReader Engine","tab":"API Reference"},{"language":"ja","product":"FineReader Engine","tab":"Visual Components"},{"language":"ja","product":"FineReader Engine","tab":"Licensing"},{"language":"ja","product":"FineReader Engine","tab":"Installation"},{"language":"ja","product":"FineReader Engine","tab":"Distribution"},{"language":"ja","product":"FineReader Engine","tab":"Specifications"},{"language":"ja","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"ja","product":"FineReader Engine","tab":"Release Notes"},{"language":"ja","product":"FlexiCapture","tab":"Get Started"},{"language":"ja","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"ja","product":"FlexiCapture","tab":"Operator Guides"},{"language":"ja","product":"FlexiCapture","tab":"Administration"},{"language":"ja","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"ja","product":"FlexiCapture","tab":"Release Notes"}]},"lastModified":"2026-05-20T00:30:03.895Z","originalFileLocation":"fine-reader/engine/guided-tour/advanced-techniques/using-voting-api.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ABBYY Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Using Voting API - ABBYY Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ABBYY Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://abbyy.mintlify.site/_mintlify/api/og/v2?division=Advanced+Techniques\u0026amp;title=Using+Voting+API\u0026amp;description=Use+the+ABBYY+FineReader+Engine+Voting+API+to+access+character+and+word+recognition+hypotheses+%28WordRecognitionVariants%2C+CharacterRecognitionVariants%29+with+thei\u0026amp;theme=4f2d1c712ddc27b116468484\u0026amp;signature=6a58a265787261bfb32ec63dbbe7b291b5456db402f11355431ce58ebc31b817\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Using Voting API - ABBYY Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://abbyy.mintlify.site/_mintlify/api/og/v2?division=Advanced+Techniques\u0026amp;title=Using+Voting+API\u0026amp;description=Use+the+ABBYY+FineReader+Engine+Voting+API+to+access+character+and+word+recognition+hypotheses+%28WordRecognitionVariants%2C+CharacterRecognitionVariants%29+with+thei\u0026amp;theme=4f2d1c712ddc27b116468484\u0026amp;signature=6a58a265787261bfb32ec63dbbe7b291b5456db402f11355431ce58ebc31b817\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ABBYY Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff2038\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.abbyy.com/de/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.abbyy.com/es/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.abbyy.com/fr/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.abbyy.com/ja/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.abbyy.com/#organization\",\"name\":\"ABBYY Documentation\",\"url\":\"https://docs.abbyy.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/abbyy/jZX7kaKQgdxaDiIT/logo/ABBYY.png?fit=max\u0026auto=format\u0026n=jZX7kaKQgdxaDiIT\u0026q=85\u0026s=22a894b7aa77d1a21a7cea6a2484f822\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.abbyy.com#website\",\"name\":\"ABBYY Documentation\",\"url\":\"https://docs.abbyy.com\",\"publisher\":{\"@id\":\"https://docs.abbyy.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api#webpage\",\"url\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\",\"name\":\"Using Voting API\",\"description\":\"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.\",\"dateModified\":\"2026-05-20T00:30:03.895Z\",\"isPartOf\":{\"@id\":\"https://docs.abbyy.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Advanced Techniques\",\"item\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Voting API\",\"item\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api#article\",\"headline\":\"Using Voting API\",\"name\":\"Using Voting API\",\"description\":\"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.\",\"url\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api\",\"mainEntityOfPage\":{\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api#webpage\"},\"dateModified\":\"2026-05-20T00:30:03.895Z\",\"keywords\":\"FineReader Engine Voting API, WordRecognitionVariants, CharacterRecognitionVariants, recognition hypotheses FRE, character confidence FRE, CharConfidence ErrorProbability IsSuspicious, FineReader Engine 12, FRE\",\"publisher\":{\"@id\":\"https://docs.abbyy.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.abbyy.com#website\"}}]}\u003c/script>","agentPointerHref":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api.md","siteName":"ABBYY Documentation","nav":{"languages":[{"language":"en","products":[{"product":"Home","description":"ABBYY Documentation Portal","pages":[{"title":"Home","href":"/home"}]},{"product":"Vantage","description":"AI-powered Intelligent Document Processing","pages":[{"title":"Vantage","href":"/vantage/introduction"}]},{"product":"Vantage Self-Hosted","description":"Customer-hosted deployment of ABBYY Vantage on Kubernetes","versions":[{"version":"2.7"},{"version":"3.0"}],"pages":[{"title":"Vantage Self-Hosted","href":"/vantage/self-hosted/v3.0/introduction"}]},{"product":"FineParser","description":"Docker-native document parsing for AI pipelines","pages":[{"title":"FineParser","href":"/fine-parser/getting-started/introduction"}]},{"product":"FineReader Engine","description":"OCR SDK for developers","tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/fine-reader/engine/introduction"}]},{"tab":"Guided Tour","groups":[{"group":"Overview","pages":[{"title":"Guided Tour","href":"/fine-reader/engine/guided-tour"}]},{"group":"Basic Usage Scenarios Implementation","pages":[{"title":"Scenario Implementation","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation"},{"title":"Data Extraction","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/data-extraction"},{"title":"Document Conversion","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-conversion"},{"title":"Document Archiving","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-archiving"},{"title":"Text Extraction","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/text-extraction"},{"title":"Field-Level Recognition","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/field-level-recognition"},{"title":"Barcode Recognition","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/barcode-recognition"},{"title":"Business Card Recognition","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/business-card-recognition"},{"title":"Machine-Readable Zone Capture","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/machine-readable-zone-capture"},{"title":"Document Classification","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-classification"},{"title":"Scanning","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/scanning"},{"title":"Document Comparison","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-comparison"}]},{"group":"Advanced Techniques","pages":[{"title":"Overview","href":"/fine-reader/engine/guided-tour/advanced-techniques"},{"group":"Programming Aspects","pages":[{"title":"Programming Aspects","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects"},{"title":"Different Ways to Load the Engine Object","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/different-ways-to-load-engine"},{"title":"Use FineReader Engine in Multi-Threaded Server Applications","sidebarTitle":"Using ABBYY FineReader Engine in","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-server-applications"},{"title":"Error Handling","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/error-handling"},{"title":"Handling Errors During PDF/XPS Export","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/handling-errors-during-pdfxps-export"},{"title":"Working with Properties","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties"},{"title":"Working with Collections","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections"},{"title":"Working with Connectable Objects","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-connectable-objects"},{"title":"Working with COM Interfaces from a Scripting Language","sidebarTitle":"Working with COM Interfaces from a","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-scripting-languages"},{"title":"Using ABBYY FineReader Engine in Java","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-java"},{"title":"Using Java with FRE for Windows","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-java/using-fre-in-java-in-windows"},{"title":"Using Java with FRE for Linux","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-java/using-fre-in-java-in-linux"},{"title":"Cross-platform development in Java","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/cross-platform-development-in-java"},{"title":"Using ABBYY FineReader Engine in .NET Core","sidebarTitle":"Using ABBYY FineReader Engine in","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-net-core"},{"title":"Using ABBYY FineReader Engine in C (Objective-C)","sidebarTitle":"Using ABBYY FineReader Engine in C","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-cobjective-c"},{"title":"Out-of-Process Server Implementation","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/out-of-process-server-implementation"}]},{"title":"Working with Profiles","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles"},{"title":"Tune Preprocessing, Analysis, Recognition, and Synthesis","sidebarTitle":"Tuning Parameters of Page","href":"/fine-reader/engine/guided-tour/advanced-techniques/tuning-parameters-of-preprocessing-analysis-recognition-and-synthesis"},{"title":"Tuning Export Parameters","href":"/fine-reader/engine/guided-tour/advanced-techniques/tuning-export-parameters"},{"group":"Parallel Processing","pages":[{"title":"Parallel Processing with ABBYY FineReader Engine","sidebarTitle":"Parallel Processing with ABBYY","href":"/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing"},{"title":"Parallel Processing in Windows","href":"/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing/parallel-processing-in-windows"},{"title":"Parallel Processing in Linux","href":"/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing/parallel-processing-in-linux"}]},{"title":"Working with Images","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-images"},{"title":"Working with Languages","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-languages"},{"title":"Working with Layout and Blocks","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-layout-and-blocks"},{"title":"Working with Text","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-text"},{"title":"Working with Fonts","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-fonts"},{"title":"Iterating Document Pages","description":"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.","href":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"},{"title":"Using Voting API","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"},{"title":"Using Text Type Autodetection","description":"Use ABBYY FineReader Engine text type autodetection by setting multiple TextTypeEnum values in RecognizerParams.TextTypes — recommended for forms, used sparingly for common OCR.","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-text-type-autodetection"},{"title":"Recognizing Checkmarks","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-checkmarks"},{"title":"Recognizing Barcodes","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-barcodes"},{"title":"Recognizing Handwritten Texts","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-handwritten-texts"},{"title":"Recognizing Handprinted Arabic Digits","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-handprinted-arabic-digits"},{"title":"Recognizing Chinese, Japanese, and Korean Languages","sidebarTitle":"Recognizing Chinese, Japanese, and","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-cjk-languages"},{"title":"Working with Dictionaries","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-dictionaries"},{"title":"Working with ABBYY FineReader Engine Regular Expressions","sidebarTitle":"Working with ABBYY FineReader","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-regular-expressions"},{"title":"Recognizing Words with Spaces","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-words-with-spaces"},{"title":"ZUGFeRD-compliant electronic invoices","href":"/fine-reader/engine/guided-tour/advanced-techniques/zugferd-compliant-electronic-invoices"},{"group":"Using GUI Elements","pages":[{"title":"Using Graphical User Interface Elements","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements"},{"title":"Creating an Application with a Graphical User Interface","sidebarTitle":"Creating an Application with a","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/creating-an-application-with-gui"},{"title":"Customize the Context Menu and Toolbar of a Visual Component","sidebarTitle":"Customizing the Context Menu and","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/customizing-the-context-menu-and-toolbar-of-a-visual-component"},{"title":"How Component Synchronizer Works","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/how-component-synchronizer-works"},{"title":"Visual Components Localization","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/visual-components-localization"},{"title":"Recognizing with Training","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/recognizing-with-training"},{"title":"Training User Patterns","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/training-user-patterns"},{"title":"Pattern Training Dialog Box","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/training-user-patterns/pattern-training-dialog-box"}]},{"title":"Description of the ABBYY FineReader Engine Samples","sidebarTitle":"FineReader Engine Samples","href":"/fine-reader/engine/guided-tour/samples"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/fine-reader/engine/api-reference"}]},{"tab":"Visual Components","pages":[{"title":"Visual Components","href":"/fine-reader/engine/visual-components-reference"}]},{"tab":"Licensing","pages":[{"title":"Licensing","href":"/fine-reader/engine/licensing"}]},{"tab":"Installation","pages":[{"title":"Installation","href":"/fine-reader/engine/installation"}]},{"tab":"Distribution","pages":[{"title":"Distribution","href":"/fine-reader/engine/distribution"}]},{"tab":"Specifications","pages":[{"title":"Specifications","href":"/fine-reader/engine/specifications"}]},{"tab":"Frequently Asked Questions","pages":[{"title":"Frequently Asked Questions","href":"/fine-reader/engine/frequently-asked-questions"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/fine-reader/engine/release-notes/12.8"}]}]},{"product":"FlexiCapture","description":"ABBYY FlexiCapture: design, capture, scan, process, verify, administer, and integrate intelligent document processing.","pages":[{"title":"FlexiCapture","href":"/flexi-capture/overview/hub"}]}]},{"language":"de","pages":[{"title":"de","href":"/de/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"}]},{"language":"es","pages":[{"title":"es","href":"/es/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"}]}]},"basePath":"","title":"Using Voting API - ABBYY Documentation","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":[],"chunks":[]}