zengxiange / tesseract-android-tools

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

WriteFile don't work as expected #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take a picture using device camera
2. Move the picture to Environment.getExternalStorageDirectory()
3. Rename it to image.jpg
4. Run the JUnit test case

What is the expected output? What do you see instead?

. WriteFile.writeBytes8:
     I expected as output a 8bpp image as output
     I see instead a invalid file format with 4.9Mb. I tried to open the file using Gimp 2.6 (attached image) but received a error dialog;

. WriteFile.writeMem:
     I expected as output a array of bytes filled with the specified format
     I see instead a null value

. WriteFile.writeImpliedFormat 
     I expected as output a file saved with the format compatible with the extesion
     I see instead that the file don't exist anywhere

What version of the product are you using? On what operating system?

Mac OS X Lion - Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; 
root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Eclipse Android Developer Tools: Build: v21.1.0-569685
Android Debug Bridge version 1.0.31
ndk-build version: GNU Make 3.81 (This program built for 
i386-apple-darwin10.8.0)
The Device is the Galaxy Note II GT-N7100 with Android 4.1.2 and LG Optimus L7 
(p700) with CyanogenMod (http://get.cm/get/7De)

Please provide any additional information below.

Please, see the JUnit test case attached

Original issue reported on code.google.com by valentim...@gmail.com on 22 May 2013 at 8:16

Attachments: