Documentation ¶
Index ¶
- Constants
- Variables
- type Visual
- func (p *Visual) AllAgeGeneration(req *model.AllAgeGenerationRequest) (*model.AllAgeGenerationResult, int, error)
- func (p *Visual) BankCard(form url.Values) (*model.BankCardResult, int, error)
- func (p *Visual) BankCardV2(form url.Values) (*model.BankCardResultV2, int, error)
- func (p *Visual) BodyDetection(req *model.BodyDetectionRequest) (*model.BodyDetectionResult, int, error)
- func (p *Visual) CarDetection(form url.Values) (*model.CarDetectionResult, int, error)
- func (p *Visual) CarPlateDetection(form url.Values) (*model.CarPlateDetectionResult, int, error)
- func (p *Visual) CarSegment(form url.Values) (*model.CarSegmentResult, int, error)
- func (p *Visual) CertConfigInit(req *model.CertConfigInitRequest) (*model.CertConfigInitResult, int, error)
- func (p *Visual) CertToken(req *model.CertTokenRequest) (*model.CertTokenResult, int, error)
- func (p *Visual) CertVerifyQuery(req *model.CertVerifyQueryRequest) (*model.CertVerifyQueryResult, int, error)
- func (p *Visual) ConvertPhoto(form url.Values) (*model.ConvertPhotoResult, int, error)
- func (p *Visual) ConvertPhotoV2(req *model.ConvertPhotoV2Request) (*model.ConvertPhotoV2Result, int, error)
- func (p *Visual) DistortionFree(form url.Values) (*model.DistortionFreeResult, int, error)
- func (p *Visual) DollyZoom(form url.Values) (*model.DollyZoomResult, int, error)
- func (p *Visual) DrivingLicense(form url.Values) (*model.DrivingLicenseResult, int, error)
- func (p *Visual) EmoticonEdit(form url.Values) (*model.EmoticonEditResult, int, error)
- func (p *Visual) EnhancePhoto(form url.Values) (*model.EnhancePhotoResult, int, error)
- func (p *Visual) EnhancePhotoV2(req *model.EnhancePhotoV2Request) (*model.EnhancePhotoV2Result, int, error)
- func (p *Visual) EntityDetect(form url.Values) (*model.EntityDetectResult, int, error)
- func (p *Visual) EyeClose2Open(form url.Values) (*model.EyeClose2OpenResult, int, error)
- func (p *Visual) FaceCompare(bodyMap interface{}) (*model.FaceCompareResult, int, error)
- func (p *Visual) FaceFusionMovie(req *model.FaceFusionMovieRequest) (*model.FaceFusionMovieResult, int, error)
- func (p *Visual) FaceFusionMovieGetResult(req *model.FaceFusionMovieGetResultRequest) (*model.FaceFusionMovieGetResultResult, int, error)
- func (p *Visual) FaceFusionMovieSubmitTask(req *model.FaceFusionMovieSubmitTaskRequest) (*model.FaceFusionMovieSubmitTaskResult, int, error)
- func (p *Visual) FacePretty(form url.Values) (*model.FacePrettyResult, int, error)
- func (p *Visual) FaceSwap(form url.Values) (*model.FaceSwapResult, int, error)
- func (p *Visual) GeneralSegment(form url.Values) (*model.GeneralSegmentResult, int, error)
- func (p *Visual) GetAPIInfo(api string) *base.ApiInfo
- func (p *Visual) GetServiceInfo() *base.ServiceInfo
- func (p *Visual) GoodsDetect(form url.Values) (*model.GoodsDetectResult, int, error)
- func (p *Visual) GoodsSegment(form url.Values) (*model.GoodsSegmentResult, int, error)
- func (p *Visual) HairSegment(form url.Values) (*model.HairSegmentResult, int, error)
- func (p *Visual) HairStyle(form url.Values) (*model.HairStyleResult, int, error)
- func (p *Visual) HumanSegment(form url.Values) (*model.HumanSegmentResult, int, error)
- func (p *Visual) IDCard(form url.Values) (*model.IDCardResult, int, error)
- func (p *Visual) IDCardV2(form url.Values) (*model.IDCardResultV2, int, error)
- func (p *Visual) ImageAnimation(form url.Values) (*model.ImageAnimationResult, int, error)
- func (p *Visual) ImageCorrection(imageBase64 []string) (*model.ImageCorrectionResult, int, error)
- func (p *Visual) ImageCut(form url.Values) (*model.ImageCutResult, int, error)
- func (p *Visual) ImageFlow(form url.Values) (*model.ImageFlowResult, int, error)
- func (p *Visual) ImageInpaint(form url.Values) (*model.ImageInpaintResult, int, error)
- func (p *Visual) ImageOutpaint(form url.Values) (*model.ImageOutpaintResult, int, error)
- func (p *Visual) ImageScore(form url.Values) (*model.ImageScoreResult, int, error)
- func (p *Visual) ImageScoreV2(imageBase64 []string) (*model.ImageScoreV2Result, int, error)
- func (p *Visual) ImageStyleConversion(form url.Values) (*model.ImageStyleConversionResult, int, error)
- func (p *Visual) Img2ImgAnime(req *model.Img2ImgAnimeRequest) (*model.Img2ImgAnimeResult, int, error)
- func (p *Visual) Img2ImgStyle(req *model.Img2ImgStyleRequest) (*model.Img2ImgStyleResult, int, error)
- func (p *Visual) Img2Video3D(req *model.Img2Video3DRequest) (*model.Img2Video3DResult, int, error)
- func (p *Visual) JPCartoon(form url.Values) (*model.JPCartoonResult, int, error)
- func (p *Visual) JPCartoonCut(form url.Values) (*model.JPCartoonCutResult, int, error)
- func (p *Visual) LensVidaVideoGetResultV2(req *model.LensVidaVideoGetResultV2Request) (*model.LensVidaVideoGetResultV2Result, int, error)
- func (p *Visual) LensVidaVideoSubmitTaskV2(req *model.LensVidaVideoSubmitTaskV2Request) (*model.LensVidaVideoSubmitTaskV2Result, int, error)
- func (p *Visual) OCRApi(form url.Values, action string) (*model.OcrApiResult, int, error)
- func (p *Visual) OCRNormal(form url.Values) (*model.OCRNormalResult, int, error)
- func (p *Visual) OverResolution(form url.Values) (*model.OverResolutionResult, int, error)
- func (p *Visual) OverResolutionV2(imageBase64 []string) (*model.OverResolutionV2Result, int, error)
- func (p *Visual) PoemMaterial(form url.Values) (*model.PoemMaterialResult, int, error)
- func (p *Visual) PotraitEffect(form url.Values) (*model.PotraitEffectResult, int, error)
- func (p *Visual) SetHost(host string)
- func (p *Visual) SetRegion(region string)
- func (p *Visual) SetSchema(schema string)
- func (p *Visual) SkySegment(form url.Values) (*model.SkySegmentResult, int, error)
- func (p *Visual) StretchRecovery(form url.Values) (*model.StretchRecoveryResult, int, error)
- func (p *Visual) T2ILDM(req *model.T2ILDMRequest) (*model.T2ILDMResult, int, error)
- func (p *Visual) Taibao(form url.Values) (*model.TaibaoResult, int, error)
- func (p *Visual) ThreeDGameCartoon(form url.Values) (*model.ThreeDGameCartoonResult, int, error)
- func (p *Visual) VehicleLicense(form url.Values) (*model.VehicleLicenseResult, int, error)
- func (p *Visual) VideoCoverSelection(form url.Values) (*model.VideoCoverSelectResult, int, error)
- func (p *Visual) VideoInpaintQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)
- func (p *Visual) VideoInpaintSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)
- func (p *Visual) VideoOverResolutionQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)
- func (p *Visual) VideoOverResolutionQueryTaskV2(req *model.VideoOverResolutionQueryTaskV2Request) (*model.VideoOverResolutionQueryTaskV2Result, int, error)
- func (p *Visual) VideoOverResolutionSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)
- func (p *Visual) VideoOverResolutionSubmitTaskV2(req *model.VideoOverResolutionSubmitTaskV2Request) (*model.VideoOverResolutionSubmitTaskV2Result, int, error)
- func (p *Visual) VideoRetargetingQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)
- func (p *Visual) VideoRetargetingSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)
- func (p *Visual) VideoSceneDetect(form url.Values) (*model.VideoSceneDetectResult, int, error)
- func (p *Visual) VideoSummarizationQueryTask(query url.Values) (*model.VideoEditQueryTaskResult, int, error)
- func (p *Visual) VideoSummarizationSubmitTask(form url.Values) (*model.VideoEditSubmitTaskResult, int, error)
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 ¶
IAM .
func (*Visual) AllAgeGeneration ¶
func (p *Visual) AllAgeGeneration(req *model.AllAgeGenerationRequest) (*model.AllAgeGenerationResult, int, error)
func (*Visual) BankCardV2 ¶
func (*Visual) BodyDetection ¶
func (p *Visual) BodyDetection(req *model.BodyDetectionRequest) (*model.BodyDetectionResult, int, error)
func (*Visual) CarDetection ¶
func (*Visual) CarPlateDetection ¶
func (*Visual) CarSegment ¶
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 (*Visual) ConvertPhotoV2 ¶ added in v1.0.103
func (p *Visual) ConvertPhotoV2(req *model.ConvertPhotoV2Request) (*model.ConvertPhotoV2Result, int, error)
func (*Visual) DistortionFree ¶
func (*Visual) DrivingLicense ¶
func (*Visual) EmoticonEdit ¶
func (*Visual) EnhancePhoto ¶
func (*Visual) EnhancePhotoV2 ¶
func (p *Visual) EnhancePhotoV2(req *model.EnhancePhotoV2Request) (*model.EnhancePhotoV2Result, int, error)
func (*Visual) EntityDetect ¶
func (*Visual) EyeClose2Open ¶
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) FaceFusionMovieGetResult ¶
func (p *Visual) FaceFusionMovieGetResult(req *model.FaceFusionMovieGetResultRequest) (*model.FaceFusionMovieGetResultResult, int, error)
func (*Visual) FaceFusionMovieSubmitTask ¶
func (p *Visual) FaceFusionMovieSubmitTask(req *model.FaceFusionMovieSubmitTaskRequest) (*model.FaceFusionMovieSubmitTaskResult, int, error)
func (*Visual) FacePretty ¶
func (*Visual) GeneralSegment ¶
func (*Visual) GetAPIInfo ¶
GetAPIInfo interface
func (*Visual) GetServiceInfo ¶
func (p *Visual) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
func (*Visual) GoodsDetect ¶
func (*Visual) GoodsSegment ¶
func (*Visual) HairSegment ¶
func (*Visual) HumanSegment ¶
func (*Visual) ImageAnimation ¶
func (*Visual) ImageCorrection ¶
func (*Visual) ImageInpaint ¶
func (*Visual) ImageOutpaint ¶
func (*Visual) ImageScore ¶
func (*Visual) ImageScoreV2 ¶
func (*Visual) ImageStyleConversion ¶
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) JPCartoonCut ¶
func (*Visual) LensVidaVideoGetResultV2 ¶ added in v1.0.103
func (p *Visual) LensVidaVideoGetResultV2(req *model.LensVidaVideoGetResultV2Request) (*model.LensVidaVideoGetResultV2Result, int, error)
func (*Visual) LensVidaVideoSubmitTaskV2 ¶ added in v1.0.103
func (p *Visual) LensVidaVideoSubmitTaskV2(req *model.LensVidaVideoSubmitTaskV2Request) (*model.LensVidaVideoSubmitTaskV2Result, int, error)
func (*Visual) OverResolution ¶
func (*Visual) OverResolutionV2 ¶
func (*Visual) PoemMaterial ¶
func (*Visual) PotraitEffect ¶
func (*Visual) SkySegment ¶
func (*Visual) StretchRecovery ¶
func (*Visual) T2ILDM ¶
func (p *Visual) T2ILDM(req *model.T2ILDMRequest) (*model.T2ILDMResult, int, error)
func (*Visual) ThreeDGameCartoon ¶
func (*Visual) VehicleLicense ¶
func (*Visual) VideoCoverSelection ¶
func (*Visual) VideoInpaintQueryTask ¶
func (*Visual) VideoInpaintSubmitTask ¶
func (*Visual) VideoOverResolutionQueryTask ¶
func (*Visual) VideoOverResolutionQueryTaskV2 ¶
func (p *Visual) VideoOverResolutionQueryTaskV2(req *model.VideoOverResolutionQueryTaskV2Request) (*model.VideoOverResolutionQueryTaskV2Result, int, error)
func (*Visual) VideoOverResolutionSubmitTask ¶
func (*Visual) VideoOverResolutionSubmitTaskV2 ¶
func (p *Visual) VideoOverResolutionSubmitTaskV2(req *model.VideoOverResolutionSubmitTaskV2Request) (*model.VideoOverResolutionSubmitTaskV2Result, int, error)
func (*Visual) VideoRetargetingQueryTask ¶
func (*Visual) VideoRetargetingSubmitTask ¶
func (*Visual) VideoSceneDetect ¶
func (*Visual) VideoSummarizationQueryTask ¶
func (*Visual) VideoSummarizationSubmitTask ¶
Click to show internal directories.
Click to hide internal directories.