Documentation
¶
Index ¶
- Variables
- func RecCaptchaBase64Handle(c *gin.Context)
- func RecCaptchaImageHandle(c *gin.Context)
- func Recognition(captcha []byte, opt *Options) string
- func ThresholdBinary(buf []byte) ([]byte, error)
- type Captcha
- type CaptchaBase64
- type CaptchaText
- type Options
- type RecaptchaClient
- type Result
- type Status
- type Tesseract
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTesseract = New("tesseract")
Functions ¶
func RecCaptchaBase64Handle ¶
func RecCaptchaImageHandle ¶
RecCaptchaImageHandle https://gin-gonic.com/docs/examples/upload-file/multiple-file/
func Recognition ¶
func ThresholdBinary ¶
Types ¶
type CaptchaBase64 ¶
type CaptchaBase64 struct { Captcha []CaptchaText `json:"captcha"` Options }
type CaptchaText ¶
type RecaptchaClient ¶
type RecaptchaClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(url string, options Options) *RecaptchaClient
func (*RecaptchaClient) Base64 ¶
func (c *RecaptchaClient) Base64() ([]CaptchaText, error)
func (*RecaptchaClient) Image ¶
func (c *RecaptchaClient) Image() ([]CaptchaText, error)
func (*RecaptchaClient) PushCaptcha ¶
func (c *RecaptchaClient) PushCaptcha(captcha Captcha)
type Tesseract ¶
type Tesseract struct {
// contains filtered or unexported fields
}
func (*Tesseract) Run ¶
Run
options => map[string]interface{}{ "-c": []string{"tessedit_char_whitelist=1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"}, "--oem": "1", "--psm": "13", }
func (*Tesseract) SetTessdata ¶
Click to show internal directories.
Click to hide internal directories.