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

Update to Tesseract.js Version 4 #691

Merged
merged 22 commits into from
Nov 25, 2022
Merged

Update to Tesseract.js Version 4 #691

merged 22 commits into from
Nov 25, 2022

Conversation

Balearica
Copy link
Member

Merges the development branch for Version 4 into Master. For a full list of changes, see this issue.

Comment on lines +427 to +437
({
load,
FS,
loadLanguage,
initialize,
setParameters,
recognize,
getPDF,
detect,
terminate,
})[packet.action](packet, res)

Check failure

Code scanning / CodeQL

Unvalidated dynamic method call

Invocation of method with [user-controlled](1) name may dispatch to unexpected target and cause an exception.

<script>
const recognize = async ({ target: { files } }) => {
document.getElementById("imgInput").src = URL.createObjectURL(files[0]);

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML

[DOM text](1) is reinterpreted as HTML without escaping meta-characters.
@Balearica Balearica merged commit 5ccb3d9 into master Nov 25, 2022
@Balearica Balearica deleted the dev/v4 branch November 25, 2022 20:10
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

Successfully merging this pull request may close these issues.

None yet

1 participant