MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / recognize

Function recognize

assets/js/TextExtraction.js:16–24  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

14});
15
16async function recognize(file) {
17 const {
18 data: { text },
19 } = await Tesseract.recognize(file, "eng");
20
21 loader.style.display = "none";
22 result.style.display = "flex";
23 result.innerHTML = text;
24}
25
26function readImage(file) {
27 const reader = new FileReader();

Callers 1

TextExtraction.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected