Skip to content

Commit

Permalink
fixing the tests that write Jpeg.
Browse files Browse the repository at this point in the history
default quality (0 is translated to 75) produces too much noise, use 85 is much better
  • Loading branch information
alexcohn committed Jul 3, 2019
1 parent 48d4352 commit cb181a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tesseract4android/src/main/cpp/leptonica/writefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jboolean Java_com_googlecode_leptonica_android_WriteFile_nativeWriteImpliedForma

jboolean result = JNI_TRUE;

if (pixWriteImpliedFormat(c_fileName, pixs, 0, JNI_FALSE)) {
if (pixWriteImpliedFormat(c_fileName, pixs, 85, JNI_FALSE)) {
LOGE("could not write pix data to %s", c_fileName);
result = JNI_FALSE;
}
Expand Down

0 comments on commit cb181a0

Please sign in to comment.