change: remove image result to reduce summary size

This commit is contained in:
lilong.129
2024-11-14 22:14:56 +08:00
parent d97de403f9
commit b8b42d420b
3 changed files with 10 additions and 13 deletions

View File

@@ -784,8 +784,8 @@ func (dExt *DriverExt) DoAction(action MobileAction) (err error) {
type SleepConfig struct {
StartTime time.Time `json:"start_time"`
Seconds float64 `json:"seconds"`
Milliseconds int64 `json:"milliseconds"`
Seconds float64 `json:"seconds,omitempty"`
Milliseconds int64 `json:"milliseconds,omitempty"`
}
var errActionNotImplemented = errors.New("UI action not implemented")

View File

@@ -21,15 +21,13 @@ import (
type ScreenResult struct {
bufSource *bytes.Buffer // raw image buffer bytes
ImagePath string // image file path
ImageResult *ImageResult // image result
Resolution Size `json:"resolution"`
UploadedURL string `json:"uploaded_url"` // uploaded image url
Texts OCRTexts `json:"texts"` // dumped raw OCRTexts
Icons UIResultMap `json:"icons"` // CV 识别的图标
Tags []string `json:"tags"` // tags for image, e.g. ["feed", "ad", "live"]
Popup *PopupInfo `json:"popup,omitempty"`
ImagePath string `json:"image_path"` // image file path
Resolution Size `json:"resolution"`
UploadedURL string `json:"uploaded_url"` // uploaded image url
Texts OCRTexts `json:"texts"` // dumped raw OCRTexts
Icons UIResultMap `json:"icons"` // CV 识别的图标
Tags []string `json:"tags"` // tags for image, e.g. ["feed", "ad", "live"]
Popup *PopupInfo `json:"popup,omitempty"`
}
// GetScreenResult takes a screenshot, returns the image recognition result
@@ -114,7 +112,6 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
}
}
}
screenResult.ImageResult = imageResult
}
log.Debug().