Skip to content

Commit

Permalink
自定义文本库
Browse files Browse the repository at this point in the history
  • Loading branch information
mossju committed Jun 20, 2022
1 parent 4e73256 commit e3243c6
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,21 @@ type TextAuditingJobDetail struct {
UserInfo *UserExtraInfo `xml:",omitempty"`
}

// TextLibResult
type TextLibResult struct {
LibType int32 `xml:"LibType,omitempty"`
LibName string `xml:"LibName,omitempty"`
Keywords []string `xml:"Keywords,omitempty"`
}

// TextRecognitionInfo
type TextRecognitionInfo struct {
Code int `xml:",omitempty"`
HitFlag int `xml:",omitempty"`
Score int `xml:",omitempty"`
Count int `xml:",omitempty"`
Keywords string `xml:",omitempty"`
Code int `xml:",omitempty"`
HitFlag int `xml:",omitempty"`
Score int `xml:",omitempty"`
Count int `xml:",omitempty"`
Keywords string `xml:",omitempty"`
LibResults []TextLibResult `xml:",omitempty"`
}

// TextSectionResult is the section result of TextAuditingJobDetail
Expand Down Expand Up @@ -705,8 +713,9 @@ type ObjectResult struct {

// LibResult
type LibResult struct {
ImageId string `xml:"ImageId"`
Score uint32 `xml:"Score"`
ImageId string `xml:"ImageId,omitempty"`
Score uint32 `xml:"Score,omitempty"`
TextLibResult
}

// Location
Expand Down

0 comments on commit e3243c6

Please sign in to comment.