feat: cache screenshot ocr texts

This commit is contained in:
lilong.129
2023-04-28 14:12:31 +08:00
parent 2323015755
commit 1d41d276ab
3 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ func (dExt *DriverExt) GetScreenTextsByOCR() (texts OCRTexts, err error) {
}
o, _ := json.Marshal(ocrTexts)
dExt.stepScreenShots[imagePath] = string(o)
dExt.cacheStepData.OcrResults[imagePath] = string(o)
return ocrTexts, nil
}