feat: 优化ocr日志

This commit is contained in:
余泓铮
2025-07-22 17:58:03 +08:00
parent 097594abb3
commit a9e2097fcf
2 changed files with 2 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ func (s *vedemCVService) ReadFromBuffer(imageBuf *bytes.Buffer, opts ...option.A
if err != nil {
logger = log.Error().Err(err)
} else {
logger = log.Info()
logger = log.Debug()
if imageResult.URL != "" {
logger = logger.Str("url", imageResult.URL)
}

View File

@@ -112,6 +112,7 @@ func (dExt *XTDriver) GetScreenResult(opts ...option.ActionOption) (screenResult
return nil, err
}
if imageResult != nil {
log.Info().Str("serial", dExt.GetDevice().UUID()).Str("url", imageResult.URL).Msg("ReadFromBuffer from ImageService")
screenResult.Texts = imageResult.OCRResult.ToOCRTexts()
screenResult.UploadedURL = imageResult.URL
screenResult.Icons = imageResult.UIResult