Documentation ¶
Index ¶
- func ReadImage(image_path string) gocv.Mat
- func ReadYaml(yamlPath string) (map[string]interface{}, error)
- type ClsResult
- type DBDetector
- type DBPostProcess
- type DBPreProcess
- type DetPostProcess
- type DetPreProcess
- type OCRSystem
- type OCRText
- type PaddleModel
- type TextClassifier
- type TextPredictSystem
- type TextRecognizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBDetector ¶
type DBDetector struct { *PaddleModel // contains filtered or unexported fields }
func NewDBDetector ¶
func NewDBDetector(modelDir string, args map[string]interface{}) *DBDetector
type DBPostProcess ¶
type DBPostProcess struct {
// contains filtered or unexported fields
}
func NewDBPostProcess ¶
func NewDBPostProcess(thresh, boxThresh, unClipRatio float64) *DBPostProcess
func (*DBPostProcess) Run ¶
func (d *DBPostProcess) Run(output *paddle.ZeroCopyTensor, oriH, oriW int, ratioH, ratioW float64) [][][]int
type DBPreProcess ¶
type DBPreProcess struct {
// contains filtered or unexported fields
}
func NewDBProcess ¶
func NewDBProcess(shape []int, sideLen int) *DBPreProcess
type DetPostProcess ¶
type DetPostProcess interface {
Run(output *paddle.ZeroCopyTensor, oriH, oriW int, ratioH, ratioW float64) [][][]int
}
type OCRSystem ¶
type OCRSystem struct {
// contains filtered or unexported fields
}
func NewOCRSystem ¶
func (*OCRSystem) PredictDirImages ¶
func (*OCRSystem) StartServer ¶
type PaddleModel ¶
type PaddleModel struct {
// contains filtered or unexported fields
}
func NewPaddleModel ¶
func NewPaddleModel(args map[string]interface{}) *PaddleModel
func (*PaddleModel) LoadModel ¶
func (model *PaddleModel) LoadModel(modelDir string)
type TextClassifier ¶
type TextClassifier struct { *PaddleModel // contains filtered or unexported fields }
func NewTextClassifier ¶
func NewTextClassifier(modelDir string, args map[string]interface{}) *TextClassifier
type TextPredictSystem ¶
type TextPredictSystem struct {
// contains filtered or unexported fields
}
func NewTextPredictSystem ¶
func NewTextPredictSystem(args map[string]interface{}) *TextPredictSystem
type TextRecognizer ¶
type TextRecognizer struct { *PaddleModel // contains filtered or unexported fields }
func NewTextRecognizer ¶
func NewTextRecognizer(modelDir string, args map[string]interface{}) *TextRecognizer
Click to show internal directories.
Click to hide internal directories.