Commit 74215d04 authored by liuyang's avatar liuyang

APK图片抓取识别及轮播流地址抓取, 优化识别结果提取

#BYLSERVER-1438
parent d4ac7aba
......@@ -90,6 +90,16 @@ class OcrManager {
words = newWords
}
// 如果是400电话,保留10位
val start = words.indexOf("400")
if (words.length > 10 && start >= 0) {
if (start > 0)
words = words.substring(start)
if (words.length > 10) {
words = words.substring(0, 10)
}
}
} catch (e : java.lang.Exception) {
e.printStackTrace()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment