change: update NewData function

This commit is contained in:
xucong.053
2022-10-17 15:29:51 +08:00
parent 299a5b2c65
commit f553755124
7 changed files with 17 additions and 37 deletions
+2 -2
View File
@@ -110,7 +110,7 @@ func getLogID(header http.Header) string {
}
func (s *veDEMOCRService) FindText(text string, imageBuf []byte, options ...DataOption) (rect image.Rectangle, err error) {
data := NewData(options...)
data := NewData(map[string]interface{}{}, options...)
ocrResults, err := s.getOCRResult(imageBuf)
if err != nil {
@@ -184,7 +184,7 @@ func (s *veDEMOCRService) FindTexts(texts []string, imageBuf []byte, options ...
return
}
data := NewData(options...)
data := NewData(map[string]interface{}{}, options...)
ocrTexts := map[string]bool{}
var success bool