Documentation ¶
Index ¶
- type Client
- func (comp *Client) AICrop(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseIMGAICrop, error)
- func (comp *Client) ScanQRCode(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseIMGScanQRCode, error)
- func (comp *Client) SuperResolution(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseIMGSuperResolution, error)
- func (comp *Client) UploadImage(ctx context.Context, entryPoint string, imgURL string, img *power.HashMap, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) AICrop ¶
func (comp *Client) AICrop(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseIMGAICrop, error)
本接口提供基于小程序的图片智能裁剪能力 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.aiCrop.html
func (*Client) ScanQRCode ¶
func (comp *Client) ScanQRCode(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseIMGScanQRCode, error)
本接口提供基于小程序的条码/二维码识别的API https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.scanQRCode.html
func (*Client) SuperResolution ¶
func (comp *Client) SuperResolution(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseIMGSuperResolution, error)
本接口提供基于小程序的图片高清化能力 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.superresolution.html
Click to show internal directories.
Click to hide internal directories.