Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
faceFuse(params, options) {
const {
ProjectId,
ModelId,
Image,
RspImgType,
region
} = params.data;
const FacefusionClient = tencentcloud.facefusion.v20181201.Client;
const models = tencentcloud.facefusion.v20181201.Models;
let cred = new Credential(this.SecretId, this.SecretKey);
let httpProfile = new HttpProfile();
httpProfile.endpoint = 'facefusion.tencentcloudapi.com';
let clientProfile = new ClientProfile();
clientProfile.httpProfile = httpProfile;
let client = new FacefusionClient(cred, region || 'ap-shanghai', clientProfile);
let req = new models.FaceFusionRequest();
let reqParams = JSON.stringify({
ProjectId,
ModelId,
Image,
RspImgType
faceFuse(params, options) {
const {
ProjectId,
ModelId,
Image,
RspImgType,
region
} = params.data;
const FacefusionClient = tencentcloud.facefusion.v20181201.Client;
const models = tencentcloud.facefusion.v20181201.Models;
let cred = new Credential(this.SecretId, this.SecretKey);
let httpProfile = new HttpProfile();
httpProfile.endpoint = 'facefusion.tencentcloudapi.com';
let clientProfile = new ClientProfile();
clientProfile.httpProfile = httpProfile;
let client = new FacefusionClient(cred, region || 'ap-shanghai', clientProfile);
let req = new models.FaceFusionRequest();
let reqParams = JSON.stringify({
ProjectId,
ModelId,
Image,
RspImgType
});