refactor: GetScreenTextsByOCR returns image path and ocr texts

This commit is contained in:
lilong.129
2023-05-04 00:39:57 +08:00
parent 0d8d53d431
commit 8330e6ccf6
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func TestIOSDemo(t *testing.T) {
// 持续监测手机屏幕,直到出现青少年模式弹窗后,点击「我知道了」
for {
// take screenshot and get screen texts by OCR
texts, err := driverExt.GetScreenTextsByOCR()
_, texts, err := driverExt.GetScreenTextsByOCR()
if err != nil {
log.Error().Err(err).Msg("OCR GetTexts failed")
t.Fatal(err)