Versions in this module Expand all Collapse all v2 v2.1.12 Feb 11, 2026 v2.1.11 Nov 16, 2025 Changes in this version + type OCR struct + func NewOCR(c *context.Context) *OCR + func (ocr *OCR) BankCard(path string) (resBankCard ResBankCard, err error) + func (ocr *OCR) BizLicense(path string) (resBizLicense ResBizLicense, err error) + func (ocr *OCR) Common(path string) (resCommon ResCommon, err error) + func (ocr *OCR) Driving(path string) (resDriving ResDriving, err error) + func (ocr *OCR) DrivingLicense(path string) (resDrivingLicense ResDrivingLicense, err error) + func (ocr *OCR) IDCard(path string) (resIDCard ResIDCard, err error) + type ResBankCard struct + Number string + type ResBizLicense struct + Address string + BusinessScope string + CertPosition map[string]position + EnterpriseName string + ImageSize imageSize + LegalRepresentative string + PaidInCapital string + RegisterDate string + RegisterNumber string + RegisteredCapital string + Serial string + TypeOfEnterprise string + TypeOfOrganization string + ValidPeriod string + type ResCommon struct + ImageSize imageSize + Items []commonItem + type ResDriving struct + Address string + CardPositionBack map[string]position + CardPositionFront map[string]position + EngineNumber string + ImageSize imageSize + IssueDate string + Model string + OverallSize string + Owner string + PassengersNumber string + PlateNumber string + PlateNumberB string + PrepareQuality string + Record string + RegisterDate string + TotalQuality string + UseCharacter string + VehicleType string + Vin string + type ResDrivingLicense struct + Address string + Birthday string + CarClass string + IDNumber string + IssueDate string + Name string + Nationality string + OfficialSeal string + Sex string + ValidFrom string + ValidTo string + type ResIDCard struct + Address string + Gender string + ID string + Name string + Nationality string + Type string + ValidDate string