2103677649 / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

bug in project "tesseract" #399

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I want to save the binarized result of input image into files in project 
"tesseract", in version 3.0.
2.And I set the the para "tessedit_write_images" to true in funciton 
"TesseractImage", in file of api\tesseractmain.cpp
3.The binarized image is saved to file sucessfully, however, producing a debug 
assertation failure. Maybe there are some memory leaks.

What is the expected output? What do you see instead?
expected to save images file sucessfully, however, a "debug assertation 
failure" happens.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by cyan...@gmail.com on 10 Nov 2010 at 9:53

GoogleCodeExporter commented 9 years ago
I can not reproduce problem. I created config file twi (in c:\Program 
Files\Tesseract-OCR\tessdata\configs) with line:
tessedit_write_images 1

Than I run (0222.png is from 
http://code.google.com/p/tesseract-ocr/issues/detail?id=398):
    tesseract 0222.png 0222 twi

Tesseract created output 0222.txt and tessinput.tif without any error message 
(on Windows XP SP3)

Original comment by zde...@gmail.com on 10 Nov 2010 at 12:47

GoogleCodeExporter commented 9 years ago
1, I think the bug I reported above was not clearly described.
2, I tested the project based on the latest SVN development version, not based 
on the released executable version. 
3, Envirement: VS2008, WinXP SP3
4, I changed the para "tessedit_write_images" to "true", the para is in line 
169 of file "tesseractmain.cpp". 
5, Then the bug information will appear. And I think the problem is independent 
on the input images, as I have tested it with several images and the same 
assertation failure is always reported.

So would please try it again and fix the bug? 

Original comment by cyan...@gmail.com on 12 Nov 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Can you try process I described? e.g. not to change source code but to use 
config (standard way)?

It is strange for me to change source code and than to complain it produce 
error. 

Original comment by zde...@gmail.com on 12 Nov 2010 at 10:05