zdenop / qt-box-editor

QT Box Editor of tesseract-ocr box files
https://zdenop.github.io/qt-box-editor/
Apache License 2.0
172 stars 65 forks source link

cannot load tiff file #32

Closed asino closed 3 weeks ago

asino commented 11 years ago

env: windows 7 SP1 qt-box-editor v1.10 when open a tif or tiff (even default tests/8.tif) file , popup wrong file window and said cannot load xxxxxxx.tif. etc.

zdenop commented 11 years ago

Did you installed necessary qt-box-editor dependencies?

blasfamous commented 11 years ago

I have the same issue. I installed qt-box-editor with all the dependencies. I then bundled the exe and the dependencies in the same folder and added this path to the PATH env variable. I still see the wrong file error. I have tried various sizes of tifs (small and big), with and without compression.

I am on Win 8, 64bit.

zdenop commented 11 years ago

Can you try other image format e.g. png?

blasfamous commented 11 years ago

png works! Thanks.

asino commented 11 years ago

I have installed everything about qt-box-editor dependencies, include libtiff-3.dll . png works me , thanks !

zdenop commented 11 years ago

Can you please try this:

  1. create new directory e.g. c:\qtb
  2. copy there qt-box-editor-1.10.exe
  3. extract there qt-box-editor-dependecies-1.09.zip
  4. open windows command line (WIN+R and there write (without quotes): "cmd" and hit ENTER)
  5. move to the directory (write to command line "C:" and hit ENTER, than write "cd c:\qtb"
  6. than write to command line "set PATH=" and hit ENTER
  7. than write to command line "qt-box-editor-1.10.exe" and hit ENTER
  8. try to open your tif file and report whats happened (e.g. error message, or result)
blasfamous commented 11 years ago

The result is exactly the same. Wrong file error. Attached is the image. qtb-error

asino commented 11 years ago

same error error

zdenop commented 11 years ago

Can you please try to download and test http://www.sk-spell.sk.cx/qt-box-editor/qt-box-editor-1.11dev.exe? For opening tiff I started to use leptonica instead of QT QImage loader... I need to be sure this solve your problems...

blasfamous commented 11 years ago

This one works well. I was able to open big tiff files even upto ~10MB.

Thanks much for this great tool zdenop. It tightened the time to train tesseract - thirty (days) to trice! :-)

zdenop commented 11 years ago

I am closing this issues as solved in current code.

asino commented 11 years ago

thanks for lot. I'm sorry about the replay late. i tested qt-box-editor-1.11dev.exe , and same issue still in there. when a Tiff file format was 16bit (gray) , it would not be  loaded. when load a 8Bit(Indexed)  file , it is worked , but some file can not display the graphic on the screen. tiff files created by GIMP v2.6.6 .    


From: zdenop notifications@github.com To: zdenop/qt-box-editor qt-box-editor@noreply.github.com Cc: asino asinomn@yahoo.com Sent: Wednesday, May 29, 2013 3:20 AM Subject: Re: [qt-box-editor] cannot load tiff file (#32)

I am closing this issues as solved in current code. — Reply to this email directly or view it on GitHub.

zdenop commented 11 years ago

if version 1.11 is not able to work with your tiff will not work in tesseract too. You can send me you tiff file for further investigation, but it looks like you choose wrong parameters for tiff.

asino commented 11 years ago

Thanks for your support, you pointed me to the right direction. when open a file (include tesseract sample photo) and create box file, qt-box(v1.11) be going to crash in my environment . Attachment a screenshot and some sample tiff.

zdenop commented 11 years ago

You did not attached anything ;-) Did you tried to create boxfile outside of QTB (directly by tesseract)?

asino commented 11 years ago

sorry, directly attached zip in the replay email. how to send original tiff file for you? I directly tried make box file by tesseract command line, it's ok, nothing wrong. if open tiff file that already existed box file ,it's worked fine. crash

zdenop commented 11 years ago

You can send original tiff to zdenop @ gmail . com (remove spaces ;-) ) Message you see is (Error in...) is from leptonica and the same be produced by tesseract... So I need your file for analyze.

asino commented 11 years ago

I sent sample package to given address

gajump commented 11 years ago

it is really odd that you can import png instead of tiff image. is you tiff 16 bits or 8bits. it will decide whether you can load tiff images vb.net or not. give another try.

asino commented 11 years ago

Thanks a lot

zdenop commented 11 years ago

@asino is the issue solved for you? Unfortunately I was not able to find any useful information from package you sent me...

asino commented 11 years ago

@zdenop sorry, the issue is not solved for me. maybe it is my OS env problam or wrong type tiff , whatever I used the png file for make box. Thanks.

arronwall commented 10 years ago

I wonder whether the Tiff processor I am testing about theses days can help with the Tiff loading problem or not. I am not so sure about it. Or you can also google it and select an image loading SDK whose way of processing is simple and fast to help you with the related work. Remember to check its free trial package first if possible. But I hope you success. Good luck.

Best regards, Arron