Skip to content

Commit

Permalink
Merge pull request #20 from CyJaySong/master
Browse files Browse the repository at this point in the history
Iocr ClassifierId Auto ignore when equal to 0
  • Loading branch information
cyjaysong committed Dec 17, 2020
2 parents 81b3e27 + d557975 commit 6662eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vision/ocr/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ func TemplateSign(templateSign string) RequestParam {
//自定义模板文字识别 分类器Id
func ClassifierId(classifierId int) RequestParam {
return func(m map[string]interface{}) {
m["classifierId"] = classifierId
if classifierId != 0 {
m["classifierId"] = classifierId
}
}
}

0 comments on commit 6662eff

Please sign in to comment.