[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-15 Thread Quan Nguyen
setDatapath should be set to the path to tessdata folder, which contains *.traineddata files. It's not the path to your image files. On Saturday, February 15, 2020 at 8:14:09 AM UTC-6, Rajith Kariyawsam wrote: > > Hi Quan, > > I got the point. By the below video. > I miss download dependency. >

[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-15 Thread Rajith Kariyawsam
Hi Quan, I got the point. By the below video. I miss download dependency. https://www.youtube.com/watch?v=5DqW9KP-aQo=425s And I will try that. Thank you very much. On Saturday, February 15, 2020 at 7:22:36 PM UTC+5:30, Rajith Kariyawsam wrote: > > Hi Quan, > > 'pth' is the image location in

[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-15 Thread Rajith Kariyawsam
Hi Quan, 'pth' is the image location in my PC. I verified it with debug mood too. As I know image location should set to the 'Datapath.' If the 'pth' is incorrect what should pass for that parameter. Realy helpful if you can further explain it to me, please ? On Saturday, February 15, 2020

[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-14 Thread Quan Nguyen
cptcha.setDatapath(pth); < incorrect pth value On Wednesday, February 12, 2020 at 10:00:31 PM UTC-6, Rajith Kariyawsam wrote: > > Hi Quan, > I didn't got wht do you mean by 'tessdata ' folder. > given pth is the copied image(png) location. my image name is* > 'testcap.png'* > > as per

[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-12 Thread Rajith Kariyawsam
Hi Quan, I didn't got wht do you mean by 'tessdata ' folder. given pth is the copied image(png) location. my image name is* 'testcap.png'* as per the below line String pth = "C:\\Users\\username\\Downloads\\capthca1\\testcap.png"; FileHandler.copy(imgFile, new File(pth)); Appreciate it if

[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-12 Thread Quan Nguyen
It looks like the datapath is set incorrectly. It should be set to tessdata folder. On Tuesday, February 11, 2020 at 2:30:45 AM UTC-6, Rajith Kariyawsam wrote: > > Still, the same error occurred for me. > > code: > > > net.sourceforge.tess4j > tess4j > 4.3.1 > > > > >

[tesseract-ocr] Re: Tess4J: Invalid memory access

2020-02-11 Thread Rajith Kariyawsam
Still, the same error occurred for me. code: net.sourceforge.tess4j tess4j 4.3.1 org.seleniumhq.selenium selenium-java 3.141.59 File imgFile = findElement(captchaimgIdPath).getScreenshotAs(OutputType.FILE); String pth =

Re: [tesseract-ocr] Re: Tess4J: Invalid memory access

2018-09-03 Thread Subramaniyan Suresh
Thanks for your quick turnaround. On Mon 3 Sep, 2018, 8:50 PM Quan Nguyen, wrote: > The issue has been fixed in the latest releases published today. > > Thanks. > > On Sunday, September 2, 2018 at 11:50:53 AM UTC-5, Subramaniyan Suresh > wrote: >> >> I am using Tess4J in my project to extract

[tesseract-ocr] Re: Tess4J: Invalid memory access

2018-09-03 Thread Quan Nguyen
The issue has been fixed in the latest releases published today. Thanks. On Sunday, September 2, 2018 at 11:50:53 AM UTC-5, Subramaniyan Suresh wrote: > > I am using Tess4J in my project to extract text from an image (Using > Eclipse IDE). I am getting the following error when I try run the

[tesseract-ocr] Re: Tess4J: Invalid memory access

2018-09-02 Thread Quan Nguyen
Subramaniyan, If possible, please put in a new issue at https://github.com/nguyenq/tess4j/issues for tracking purpose. Thanks. On Sunday, September 2, 2018 at 1:52:14 PM UTC-5, Quan Nguyen wrote: > > I tested your sample image and confirmed the error. It looks like a bug in > the routine that

[tesseract-ocr] Re: Tess4J: Invalid memory access

2018-09-02 Thread Quan Nguyen
I tested your sample image and confirmed the error. It looks like a bug in the routine that determines the image's bit depth. A new version will be released once a fix is worked out and committed. Thank you for reporting. On Sunday, September 2, 2018 at 11:50:53 AM UTC-5, Subramaniyan Suresh