How to use the tencentcloud-sdk-nodejs.facefusion function in tencentcloud-sdk-nodejs

To help you get started, we’ve selected a few tencentcloud-sdk-nodejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TencentCloudBase / image-node-sdk / libs / BaseService.js View on Github external
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
github TencentCloudBase / image-node-sdk / libs / BaseService.js View on Github external
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
        });