benjaminwan/OcrLiteAndroidNcnn

希望有超时取消识别的设置。 I hope there is a timeout cancel recognition setting.

Closed this issue · 2 comments

hzl512 commented

有些实际的业务场景是直接拍摄图片后再去识别的,安卓手机性能不一样,超过20秒的情况比较多,所以希望有超时设置,希望大佬有空增加一下这个功能,非常感谢。

In some actual business scenarios, it is necessary to directly take pictures and then identify them. The performance of Android phones is different, and there are many cases where it exceeds 20 seconds, so I hope there is a timeout setting. I hope you have time to add this function. Thank you very much.

超时 取消耗时的识别吗?目前的版本用协程来做调度,拿到协程启动返回的job应该就能实现终止运行,后续调试一下看看,就增加一个停止按钮吧。

v1.8.0: 已增加停止按钮