Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix types for setting Tesseract parameters in recognize #856

Open
Balearica opened this issue Nov 27, 2023 · 0 comments
Open

Fix types for setting Tesseract parameters in recognize #856

Balearica opened this issue Nov 27, 2023 · 0 comments

Comments

@Balearica
Copy link
Member

Since Version 4, Tesseract.js has allowed for setting parameters for a single recognition job (see #665). However, it does not look like the types were ever updated--the following code results in a type error.

const res = await tessScheduler.addJob('recognize', inputImage, {
    tessedit_pageseg_mode: "6" // "Single block"
  });

Additionally, the api.md file does not clearly describe this capability, so we should make sure this feature is well documented.

@Balearica Balearica changed the title Fix types for setting Tesseract config options in recognize Fix types for setting Tesseract parameters in recognize Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant