feat: support action options for ScreenShot, WithScreenShotOCR/WithScreenShotUpload/WithScreenShotLiveType/WithScreenShotUIType

This commit is contained in:
lilong.129
2023-08-22 21:04:04 +08:00
parent 12d9b92782
commit e523c4ecc9
8 changed files with 135 additions and 51 deletions
+2 -1
View File
@@ -189,7 +189,8 @@ func (vc *VideoCrawler) startLiveCrawler(enterPoint PointF) error {
}
// take screenshot and get screen texts by OCR
screenResult, err := vc.driverExt.GetScreenResult()
screenResult, err := vc.driverExt.GetScreenResult(
WithScreenShotOCR(true), WithScreenShotUpload(true))
if err != nil {
log.Error().Err(err).Msg("OCR GetTexts failed")
time.Sleep(3 * time.Second)