No Print console.log("Result:", text); Here not covert file exp .txt
ในวันที่ พ. 10 ม.ค. 2024 เวลา 23:44 Zdenko Podobny <zde...@gmail.com> เขียนว่า: > Tesseract is not trained for handwritten text. > > Zdenko > > > st 10. 1. 2024 o 7:02 Sandeep Shakya <sandeepshakya2...@gmail.com> > napísal(a): > >> import tesseract from "node-tesseract-ocr"; >> import fs from "fs"; >> >> const img = fs.readFileSync("./src/extract_user_input/2.jpg"); >> >> const config = { >> lang: "eng", >> // oem: 1, >> psm: 4, >> }; >> >> tesseract >> .recognize(img, config) >> .then((text) => { >> console.log("Result:", text); >> }) >> .catch((error) => { >> console.log("err"); >> console.log(error); >> }); >> >> I want to extract the hand writtenn text (for ex. point no.24 ) >> from the below image. which config should i use (or any other >> changes needed to be done in image)?? >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "tesseract-ocr" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to tesseract-ocr+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tesseract-ocr/6cf4dc50-ecbd-4110-a6b8-6c29335bee79n%40googlegroups.com >> <https://groups.google.com/d/msgid/tesseract-ocr/6cf4dc50-ecbd-4110-a6b8-6c29335bee79n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tesseract-ocr+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8wMjYPByCP4WvVsYvCx8LKs%2BVH5GHAsBEhf6pJ7ABN-Bg%40mail.gmail.com > <https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8wMjYPByCP4WvVsYvCx8LKs%2BVH5GHAsBEhf6pJ7ABN-Bg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CALQaf%2BmUJzeBGw1QKCb28qeT%3Dtu8eYzfNRqQWM2yJwWdRwdDtw%40mail.gmail.com.