Versions in this module Expand all Collapse all v0 v0.2.0 Jan 15, 2018 Changes in this version + const OCR_BANKCARD_URL + const OCR_DRIVERLICENSE_URL + const OCR_FORM_URL + const OCR_GENERAL_BASIC_URL + const OCR_GENERAL_ENHANCED_URL + const OCR_GENERAL_WITH_LOCATION_URL + const OCR_IDCARD_URL + const OCR_LICENSEPLATE_URL + const OCR_VEHICLELICENSE_URL + const OCR_WEBIMAGE_URL + type OCRClient struct + func NewOCRClient(apiKey, secretKey string) *OCRClient + func (oc *OCRClient) BankcardRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) DriverLicenseRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) FromdataRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) GeneralRecognizeBasic(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) GeneralRecognizeEnhanced(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) GeneralRecognizeWithLocation(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) IdcardRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) LicensePlateRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) VehicleLicenseRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + func (oc *OCRClient) WebImageRecognize(imageReader io.Reader, params ...RequestParam) ([]byte, error) + type RequestParam func(map[string]interface{}) + func Accuracy(opt string) RequestParam + func DetectDirection() RequestParam + func DetectLanguage() RequestParam + func DetectRisk() RequestParam + func IDCardSide(side string) RequestParam + func LanguageType(lang string) RequestParam + func MultiDetect() RequestParam + func RecognizeGranularity() RequestParam + func UnifiedValidPeriod() RequestParam + func WithProbability() RequestParam + func WithVertexesLocation() RequestParam + type Size struct + Height int + Width int