tesseract-android-tools
tesseract-android-tools copied to clipboard
Add tests for Bitmap <=> Pix conversion
It looks like conversion from Pic to Bitmap (or vice versa) is not working
correctly. This should be tested in ReadFileTest or WriteFileTest with a Bitmap
=> Pic => Bitmap conversion.
Original issue reported on code.google.com by [email protected]
on 11 Sep 2012 at 8:53
It seems that ReadFileTest.testReadFile_bmp()
is redundant. This tests is duplicate of ReadFileTest.testReadFile_png()
and uses same PNG file compression.
That's quite natural because Android Bitmap class does not provide an API to save or read BMP file format. This can be done with a 3rd party library, but it does not make much sense to introduce yet another dependency for such minor task.