image

package
v3.2.54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

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

func (*Client) UploadImage

func (comp *Client) UploadImage(ctx context.Context, entryPoint string, imgURL string, img *power.HashMap, result interface{}) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL