use generator to make ocrLine/UI coroutine