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
+1 -1
View File
@@ -1 +1 @@
v5.0.0+2411142130 v5.0.0+2411142214
+2 -2
View File
@@ -784,8 +784,8 @@ func (dExt *DriverExt) DoAction(action MobileAction) (err error) {
type SleepConfig struct { type SleepConfig struct {
StartTime time.Time `json:"start_time"` StartTime time.Time `json:"start_time"`
Seconds float64 `json:"seconds"` Seconds float64 `json:"seconds,omitempty"`
Milliseconds int64 `json:"milliseconds"` Milliseconds int64 `json:"milliseconds,omitempty"`
} }
var errActionNotImplemented = errors.New("UI action not implemented") var errActionNotImplemented = errors.New("UI action not implemented")
+7 -10
View File
@@ -21,15 +21,13 @@ import (
type ScreenResult struct { type ScreenResult struct {
bufSource *bytes.Buffer // raw image buffer bytes bufSource *bytes.Buffer // raw image buffer bytes
ImagePath string // image file path ImagePath string `json:"image_path"` // image file path
ImageResult *ImageResult // image result Resolution Size `json:"resolution"`
UploadedURL string `json:"uploaded_url"` // uploaded image url
Resolution Size `json:"resolution"` Texts OCRTexts `json:"texts"` // dumped raw OCRTexts
UploadedURL string `json:"uploaded_url"` // uploaded image url Icons UIResultMap `json:"icons"` // CV 识别的图标
Texts OCRTexts `json:"texts"` // dumped raw OCRTexts Tags []string `json:"tags"` // tags for image, e.g. ["feed", "ad", "live"]
Icons UIResultMap `json:"icons"` // CV 识别的图标 Popup *PopupInfo `json:"popup,omitempty"`
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 // 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(). log.Debug().