mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
feat: 优化ocr日志
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ func (s *vedemCVService) ReadFromBuffer(imageBuf *bytes.Buffer, opts ...option.A
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logger = log.Error().Err(err)
|
logger = log.Error().Err(err)
|
||||||
} else {
|
} else {
|
||||||
logger = log.Info()
|
logger = log.Debug()
|
||||||
if imageResult.URL != "" {
|
if imageResult.URL != "" {
|
||||||
logger = logger.Str("url", imageResult.URL)
|
logger = logger.Str("url", imageResult.URL)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ func (dExt *XTDriver) GetScreenResult(opts ...option.ActionOption) (screenResult
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if imageResult != nil {
|
if imageResult != nil {
|
||||||
|
log.Info().Str("serial", dExt.GetDevice().UUID()).Str("url", imageResult.URL).Msg("ReadFromBuffer from ImageService")
|
||||||
screenResult.Texts = imageResult.OCRResult.ToOCRTexts()
|
screenResult.Texts = imageResult.OCRResult.ToOCRTexts()
|
||||||
screenResult.UploadedURL = imageResult.URL
|
screenResult.UploadedURL = imageResult.URL
|
||||||
screenResult.Icons = imageResult.UIResult
|
screenResult.Icons = imageResult.UIResult
|
||||||
|
|||||||
Reference in New Issue
Block a user