From 48eecebebed8ec249e48db838a67bda868b93448 Mon Sep 17 00:00:00 2001 From: syan Date: Thu, 15 Mar 2018 15:10:17 +0800 Subject: [PATCH] Update SegmentationFreeRecognizer.cpp --- Prj-Linux/lpr/src/SegmentationFreeRecognizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Prj-Linux/lpr/src/SegmentationFreeRecognizer.cpp b/Prj-Linux/lpr/src/SegmentationFreeRecognizer.cpp index 8fcd442..2976305 100644 --- a/Prj-Linux/lpr/src/SegmentationFreeRecognizer.cpp +++ b/Prj-Linux/lpr/src/SegmentationFreeRecognizer.cpp @@ -55,7 +55,7 @@ namespace pr { int i = 0; - if(judgeCharRange(seq_decode_res[0].first) && judgeCharRange(seq_decode_res[1].first)) + if (seq_decode_res.size()>1 && judgeCharRange(seq_decode_res[0].first) && judgeCharRange(seq_decode_res[1].first)) { i=2; int c = seq_decode_res[0].second