From 4c75483865973604de771769402f3885280ff0a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 15 May 2017 12:50:57 +0200 Subject: [PATCH] Add missing PSM_RAW_LINE mode It was added in Tesseract v3.04 --- .../src/com/googlecode/tesseract/android/TessBaseAPI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tess-two/src/com/googlecode/tesseract/android/TessBaseAPI.java b/tess-two/src/com/googlecode/tesseract/android/TessBaseAPI.java index 33846c6df..da9c37797 100644 --- a/tess-two/src/com/googlecode/tesseract/android/TessBaseAPI.java +++ b/tess-two/src/com/googlecode/tesseract/android/TessBaseAPI.java @@ -90,8 +90,11 @@ public static final class PageSegMode { /** Sparse text with orientation and script detection. */ public static final int PSM_SPARSE_TEXT_OSD = 12; + /** Treat the image as a single text line, bypassing hacks that are Tesseract-specific. */ + public static final int PSM_RAW_LINE = 13; + /** Number of enum entries. */ - public static final int PSM_COUNT = 13; + public static final int PSM_COUNT = 14; } /** Whitelist of characters to recognize. */