From f9bbbc4cc856d42fdc5736d13246344245bbcd53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Mert=20=C3=96zdemir?= Date: Fri, 4 Feb 2022 00:04:32 +0300 Subject: [PATCH] Update TextRecognitionProcessor.java PASSPORT_TD_3_LINE_2_REGEX is updated in order to fix issue 17. --- .../passportreader/mlkit/text/TextRecognitionProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/alimert/passportreader/mlkit/text/TextRecognitionProcessor.java b/app/src/main/java/com/alimert/passportreader/mlkit/text/TextRecognitionProcessor.java index 36c10d5..8565f62 100644 --- a/app/src/main/java/com/alimert/passportreader/mlkit/text/TextRecognitionProcessor.java +++ b/app/src/main/java/com/alimert/passportreader/mlkit/text/TextRecognitionProcessor.java @@ -52,7 +52,7 @@ public class TextRecognitionProcessor { public static final String PASSPORT_TD_3_LINE_1_REGEX = "(P[A-Z0-9<]{1})([A-Z]{3})([A-Z0-9<]{39})"; - public static final String PASSPORT_TD_3_LINE_2_REGEX = "([A-Z0-9<]{9})([0-9]{1})([A-Z]{3})([0-9]{6})([0-9]{1})([M|F|X|<]{1})([0-9]{6})([0-9]{1})([A-Z0-9<]{14})([0-9]{1})([0-9]{1})"; + public static final String PASSPORT_TD_3_LINE_2_REGEX = "([A-Z0-9<]{9})([0-9]{1})([A-Z]{3})([0-9]{6})([0-9]{1})([M|F|X|<]{1})([0-9]{6})([0-9]{1})([A-Z0-9<]{14})([0-9<]{1})([0-9]{1})"; // Whether we should ignore process(). This is usually caused by feeding input data faster than // the model can handle.