tencentcloud-sdk-nodejs
Version:
50 lines (49 loc) • 1.97 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* ticm client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("ticm.tencentcloudapi.com", "2018-11-27", clientConfig);
}
/**
* 本接口提供多种维度的图像审核能力,支持色情和性感内容识别,政治人物和涉政敏感场景识别,以及暴恐人物、场景、旗帜标识等违禁内容的识别。
*/
async ImageModeration(req, cb) {
return this.request("ImageModeration", req, cb);
}
/**
* 本接口提供多种维度的视频审核能力,支持色情和性感内容识别,政治人物和涉政敏感场景识别,以及暴恐人物、场景、旗帜标识等违禁内容的识别。
*/
async VideoModeration(req, cb) {
return this.request("VideoModeration", req, cb);
}
/**
* 提交完视频审核任务后,可以通过本接口来获取当前处理的进度和结果
*/
async DescribeVideoTask(req, cb) {
return this.request("DescribeVideoTask", req, cb);
}
}
exports.Client = Client;
;