visual

package
v1.0.143 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 5

README

Example

调用代码示例均在example/visual文件夹下,以下为银行卡OCR调用示例

package main

import (
	"encoding/json"
	"fmt"
	"net/url"

	"github.com/volcengine/volc-sdk-golang/service/visual"
)

func main() {
	testAk := "your-ak"
	testSk := "your-sk"

	visual.DefaultInstance.Client.SetAccessKey(testAk)
	visual.DefaultInstance.Client.SetSecretKey(testSk)

	form := url.Values{}
	form.Add("image_base64", "")

	resp, status, err := visual.DefaultInstance.BankCard(form)
	fmt.Println(status, err)
	b, _ := json.Marshal(resp)
	fmt.Println(string(b))
}

运行代码方式,在根目录下执行

go run example/visual/bank_card.go

接口文档

文档链接请点击这里 并在【视觉智能】列表查看

Documentation

Index

Constants

View Source
const (
	DefaultRegion          = "cn-north-1"
	ServiceVersion20200826 = "2020-08-26"
	ServiceName            = "cv"
)

Variables

View Source
var (
	ServiceInfo = &base.ServiceInfo{
		Timeout: 10 * time.Second,
		Host:    "visual.volcengineapi.com",
		Header:  http.Header{},
	}

	ApiInfoList = map[string]*base.ApiInfo{
		"DistortionFree": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DistortionFree"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"StretchRecovery": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StretchRecovery"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"EmoticonEdit": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"EmoticonEdit"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"EyeClose2Open": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"EyeClose2Open"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageScore": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageScore"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageFlow": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageFlow"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"PoemMaterial": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"PoemMaterial"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"CarPlateDetection": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CarPlateDetection"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"CarSegment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CarSegment"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"CarDetection": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CarDetection"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"SkySegment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SkySegment"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"BankCard": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"BankCard"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"IDCard": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"IDCard"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OCRNormal": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OCRNormal"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"MultiLanguageOCR": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"MultiLanguageOCR"},
				"Version": []string{"2022-08-31"},
			},
		},
		"DrivingLicense": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DrivingLicense"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VehicleLicense": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VehicleLicense"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrTaibao": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrTaibao"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OcrVatInvoice": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrVatInvoice"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrTaxiInvoice": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrTaxiInvoice"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrQuotaInvoice": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrQuotaInvoice"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrTrainTicket": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrTrainTicket"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrFlightInvoice": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrFlightInvoice"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrFinance": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrFinance"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OcrRollInvoice": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrRollInvoice"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OcrPassInvoice": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrPassInvoice"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OcrFoodProduction": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrFoodProduction"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OcrFoodBusiness": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrFoodBusiness"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OcrClueLicense": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrClueLicense"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OCRTrade": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OCRTrade"},
				"Version": []string{"2020-12-21"},
			},
		},
		"OCRRuanzhu": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OCRRuanzhu"},
				"Version": []string{"2020-12-21"},
			},
		},
		"OCRCosmeticProduct": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OCRCosmeticProduct"},
				"Version": []string{"2020-12-21"},
			},
		},
		"OcrSeal": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrSeal"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OcrTextAlignment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OcrTextAlignment"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OCRPdf": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OCRPdf"},
				"Version": []string{"2021-08-23"},
			},
		},
		"OCRTable": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OCRTable"},
				"Version": []string{"2021-08-23"},
			},
		},
		"FaceSwap": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"FaceSwap"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"JPCartoon": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"JPCartoon"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"JPCartoonCut": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"JPCartoonCut"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoSceneDetect": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoSceneDetect"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OverResolution": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OverResolution"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"GoodsSegment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GoodsSegment"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageOutpaint": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageOutpaint"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageInpaint": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageInpaint"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageCut": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageCut"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"EntityDetect": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"EntityDetect"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"GoodsDetect": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GoodsDetect"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ConvertPhoto": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ConvertPhoto"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"EnhancePhoto": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"EnhancePhoto"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"GeneralSegment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GeneralSegment"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"HumanSegment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"HumanSegment"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoInpaintSubmitTask": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoInpaintSubmitTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoInpaintQueryTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoInpaintQueryTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoRetargetingSubmitTask": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoRetargetingSubmitTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoRetargetingQueryTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoRetargetingQueryTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoSummarizationSubmitTask": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoSummarizationSubmitTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoSummarizationQueryTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoSummarizationQueryTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoOverResolutionSubmitTask": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoOverResolutionSubmitTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"VideoOverResolutionQueryTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoOverResolutionQueryTask"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"OverResolutionV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"OverResolutionV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"ImageScoreV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageScoreV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"EnhancePhotoV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"EnhancePhotoV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"T2ILDM": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"T2ILDM"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"Img2ImgStyle": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"Img2ImgStyle"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"Img2ImgAnime": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"Img2ImgAnime"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"BodyDetection": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"BodyDetection"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"AllAgeGeneration": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"AllAgeGeneration"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"VideoOverResolutionSubmitTaskV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoOverResolutionSubmitTaskV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"VideoOverResolutionQueryTaskV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoOverResolutionQueryTaskV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"FaceFusionMovieSubmitTask": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"FaceFusionMovieSubmitTask"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"FaceFusionMovieGetResult": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"FaceFusionMovieGetResult"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"ImageCorrection": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageCorrection"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"CertToken": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CertToken"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"CertConfigInit": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CertConfigInit"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"CertVerifyQuery": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CertVerifyQuery"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"Img2Video3D": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"Img2Video3D"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"VideoCoverSelection": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"VideoCoverSelection"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageStyleConversion": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageStyleConversion"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"PotraitEffect": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"PotraitEffect"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ImageAnimation": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ImageAnimation"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"FacePretty": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"FacePretty"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"HairStyle": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"HairStyle"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"DollyZoom": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DollyZoom"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ThreeDGameCartoon": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"3DGameCartoon"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"HairSegment": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"HairSegment"},
				"Version": []string{ServiceVersion20200826},
			},
		},
		"ConvertPhotoV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ConvertPhotoV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"LensVidaVideoSubmitTaskV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"LensVidaVideoSubmitTaskV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"LensVidaVideoGetResultV2": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"LensVidaVideoGetResultV2"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
		"FaceCompare": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"FaceCompare"},
				"Version": []string{"2022-08-31"},
			},
			Header: http.Header{
				"Content-Type": []string{"application/json"},
			},
		},
	}
)
View Source
var DefaultInstance = NewInstance()

DefaultInstance 默认的实例

Functions

This section is empty.

Types

type Visual

type Visual struct {
	Client *base.Client
}

IAM .

func NewInstance

func NewInstance() *Visual

NewInstance 创建一个实例

func (*Visual) AllAgeGeneration

func (p *Visual) AllAgeGeneration(req *model.AllAgeGenerationRequest) (*model.AllAgeGenerationResult, int, error)

func (*Visual) BankCard

func (p *Visual) BankCard(form url.Values) (*model.BankCardResult, int, error)

func (*Visual) BankCardV2

func (p *Visual) BankCardV2(form url.Values) (*model.BankCardResultV2, int, error)

func (*Visual) BodyDetection

func (p *Visual) BodyDetection(req *model.BodyDetectionRequest) (*model.BodyDetectionResult, int, error)

func (*Visual) CarDetection

func (p *Visual) CarDetection(form url.Values) (*model.CarDetectionResult, int, error)

func (*Visual) CarPlateDetection

func (p *Visual) CarPlateDetection(form url.Values) (*model.CarPlateDetectionResult, int, error)

func (*Visual) CarSegment

func (p *Visual) CarSegment(form url.Values) (*model.CarSegmentResult, int, error)

func (*Visual) CertConfigInit

func (p *Visual) CertConfigInit(req *model.CertConfigInitRequest) (*model.CertConfigInitResult, int, error)

func (*Visual) CertToken

func (p *Visual) CertToken(req *model.CertTokenRequest) (*model.CertTokenResult, int, error)

func (*Visual) CertVerifyQuery

func (p *Visual) CertVerifyQuery(req *model.CertVerifyQueryRequest) (*model.CertVerifyQueryResult, int, error)

func (*Visual) ConvertPhoto

func (p *Visual) ConvertPhoto(form url.Values) (*model.ConvertPhotoResult, int, error)

func (*Visual) ConvertPhotoV2 added in v1.0.103

func (p *Visual) ConvertPhotoV2(req *model.ConvertPhotoV2Request) (*model.ConvertPhotoV2Result, int, error)

func (*Visual) DistortionFree

func (p *Visual) DistortionFree(form url.Values) (*model.DistortionFreeResult, int, error)

func (*Visual) DollyZoom

func (p *Visual) DollyZoom(form url.Values) (*model.DollyZoomResult, int, error)

func (*Visual) DrivingLicense

func (p *Visual) DrivingLicense(form url.Values) (*model.DrivingLicenseResult, int, error)

func (*Visual) EmoticonEdit

func (p *Visual) EmoticonEdit(form url.Values) (*model.EmoticonEditResult, int, error)

func (*Visual) EnhancePhoto

func (p *Visual) EnhancePhoto(form url.Values) (*model.EnhancePhotoResult, int, error)

func (*Visual) EnhancePhotoV2

func (p *Visual) EnhancePhotoV2(req *model.EnhancePhotoV2Request) (*model.EnhancePhotoV2Result, int, error)

func (*Visual) EntityDetect

func (p *Visual) EntityDetect(form url.Values) (*model.EntityDetectResult, int, error)

func (*Visual) EyeClose2Open

func (p *Visual) EyeClose2Open(form url.Values) (*model.EyeClose2OpenResult, int, error)

func (*Visual) FaceCompare added in v1.0.116

func (p *Visual) FaceCompare(bodyMap interface{}) (*model.FaceCompareResult, int, error)

func (*Visual) FaceFusionMovie added in v1.0.110

func (p *Visual) FaceFusionMovie(req *model.FaceFusionMovieRequest) (*model.FaceFusionMovieResult, int, error)

func (*Visual) FacePretty

func (p *Visual) FacePretty(form url.Values) (*model.FacePrettyResult, int, error)

func (*Visual) FaceSwap

func (p *Visual) FaceSwap(form url.Values) (*model.FaceSwapResult, int, error)

func (*Visual) GeneralSegment

func (p *Visual) GeneralSegment(form url.Values) (*model.GeneralSegmentResult, int, error)

func (*Visual) GetAPIInfo

func (p *Visual) GetAPIInfo(api string) *base.ApiInfo

GetAPIInfo interface

func (*Visual) GetServiceInfo

func (p *Visual) GetServiceInfo() *base.ServiceInfo

GetServiceInfo interface

func (*Visual) GoodsDetect

func (p *Visual) GoodsDetect(form url.Values) (*model.GoodsDetectResult, int, error)

func (*Visual) GoodsSegment

func (p *Visual) GoodsSegment(form url.Values) (*model.GoodsSegmentResult, int, error)

func (*Visual) HairSegment

func (p *Visual) HairSegment(form url.Values) (*model.HairSegmentResult, int, error)

func (*Visual) HairStyle

func (p *Visual) HairStyle(form url.Values) (*model.HairStyleResult, int, error)

func (*Visual) HumanSegment

func (p *Visual) HumanSegment(form url.Values) (*model.HumanSegmentResult, int, error)

func (*Visual) IDCard

func (p *Visual) IDCard(form url.Values) (*model.IDCardResult, int, error)

func (*Visual) IDCardV2

func (p *Visual) IDCardV2(form url.Values) (*model.IDCardResultV2, int, error)

func (*Visual) ImageAnimation

func (p *Visual) ImageAnimation(form url.Values) (*model.ImageAnimationResult, int, error)

func (*Visual) ImageCorrection

func (p *Visual) ImageCorrection(imageBase64 []string) (*model.ImageCorrectionResult, int, error)

func (*Visual) ImageCut

func (p *Visual) ImageCut(form url.Values) (*model.ImageCutResult, int, error)

func (*Visual) ImageFlow

func (p *Visual) ImageFlow(form url.Values) (*model.ImageFlowResult, int, error)

func (*Visual) ImageInpaint

func (p *Visual) ImageInpaint(form url.Values) (*model.ImageInpaintResult, int, error)

func (*Visual) ImageOutpaint

func (p *Visual) ImageOutpaint(form url.Values) (*model.ImageOutpaintResult, int, error)

func (*Visual) ImageScore

func (p *Visual) ImageScore(form url.Values) (*model.ImageScoreResult, int, error)

func (*Visual) ImageScoreV2

func (p *Visual) ImageScoreV2(imageBase64 []string) (*model.ImageScoreV2Result, int, error)

func (*Visual) ImageStyleConversion

func (p *Visual) ImageStyleConversion(form url.Values) (*model.ImageStyleConversionResult, int, error)

func (*Visual) Img2ImgAnime

func (p *Visual) Img2ImgAnime(req *model.Img2ImgAnimeRequest) (*model.Img2ImgAnimeResult, int, error)

func (*Visual) Img2ImgStyle

func (p *Visual) Img2ImgStyle(req *model.Img2ImgStyleRequest) (*model.Img2ImgStyleResult, int, error)

func (*Visual) Img2Video3D

func (p *Visual) Img2Video3D(req *model.Img2Video3DRequest) (*model.Img2Video3DResult, int, error)

func (*Visual) JPCartoon

func (p *Visual) JPCartoon(form url.Values) (*model.JPCartoonResult, int, error)

func (*Visual) JPCartoonCut

func (p *Visual) JPCartoonCut(form url.Values) (*model.JPCartoonCutResult, int, error)

func (*Visual) LensVidaVideoGetResultV2 added in v1.0.103

func (*Visual) LensVidaVideoSubmitTaskV2 added in v1.0.103

func (*Visual) OCRApi

func (p *Visual) OCRApi(form url.Values, action string) (*model.OcrApiResult, int, error)

func (*Visual) OCRNormal

func (p *Visual) OCRNormal(form url.Values) (*model.OCRNormalResult, int, error)

func (*Visual) OverResolution

func (p *Visual) OverResolution(form url.Values) (*model.OverResolutionResult, int, error)

func (*Visual) OverResolutionV2

func (p *Visual) OverResolutionV2(imageBase64 []string) (*model.OverResolutionV2Result, int, error)

func (*Visual) PoemMaterial

func (p *Visual) PoemMaterial(form url.Values) (*model.PoemMaterialResult, int, error)

func (*Visual) PotraitEffect

func (p *Visual) PotraitEffect(form url.Values) (*model.PotraitEffectResult, int, error)

func (*Visual) SetHost

func (p *Visual) SetHost(host string)

SetHost .

func (*Visual) SetRegion

func (p *Visual) SetRegion(region string)

SetRegion

func (*Visual) SetSchema

func (p *Visual) SetSchema(schema string)

SetSchema .

func (*Visual) SkySegment

func (p *Visual) SkySegment(form url.Values) (*model.SkySegmentResult, int, error)

func (*Visual) StretchRecovery

func (p *Visual) StretchRecovery(form url.Values) (*model.StretchRecoveryResult, int, error)

func (*Visual) T2ILDM

func (p *Visual) T2ILDM(req *model.T2ILDMRequest) (*model.T2ILDMResult, int, error)

func (*Visual) Taibao

func (p *Visual) Taibao(form url.Values) (*model.TaibaoResult, int, error)

func (*Visual) ThreeDGameCartoon

func (p *Visual) ThreeDGameCartoon(form url.Values) (*model.ThreeDGameCartoonResult, int, error)

func (*Visual) VehicleLicense

func (p *Visual) VehicleLicense(form url.Values) (*model.VehicleLicenseResult, int, error)

func (*Visual) VideoCoverSelection

func (p *Visual) VideoCoverSelection(form url.Values) (*model.VideoCoverSelectResult, int, error)

func (*Visual) VideoInpaintQueryTask

func (p *Visual) VideoInpaintQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)

func (*Visual) VideoInpaintSubmitTask

func (p *Visual) VideoInpaintSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)

func (*Visual) VideoOverResolutionQueryTask

func (p *Visual) VideoOverResolutionQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)

func (*Visual) VideoOverResolutionSubmitTask

func (p *Visual) VideoOverResolutionSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)

func (*Visual) VideoRetargetingQueryTask

func (p *Visual) VideoRetargetingQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)

func (*Visual) VideoRetargetingSubmitTask

func (p *Visual) VideoRetargetingSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)

func (*Visual) VideoSceneDetect

func (p *Visual) VideoSceneDetect(form url.Values) (*model.VideoSceneDetectResult, int, error)

func (*Visual) VideoSummarizationQueryTask

func (p *Visual) VideoSummarizationQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)

func (*Visual) VideoSummarizationSubmitTask

func (p *Visual) VideoSummarizationSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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