Skip to content

Commit

Permalink
Update TextRecognitionProcessor.java
Browse files Browse the repository at this point in the history
PASSPORT_TD_3_LINE_2_REGEX is updated in order to fix issue 17.
  • Loading branch information
alimertozdemir authored Feb 3, 2022
1 parent b7828a2 commit f9bbbc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f9bbbc4

Please sign in to comment.