This document describes how to connect to and use IMS.
Getting Tencent Cloud account
Getting Tencent Cloud API access key
Tencent Cloud uses secretid
and secretkey
to verify your identity and permissions. You can get the Tencent Cloud API access key in the following steps:
2. Click Create Key to create a key and save the secretid
and secretkey
for subsequent API calls. You can skip this step if you already have a Tencent Cloud key.
Configuring in Console
Activating service
Configuring permission
If you want to call IMS through a sub-account, you need to authorize it by assigning a policy in the following steps:
1. Log in to the CAM console and select User > User List on the left sidebar to enter the User List page. 2. On the User List page, find the target sub-account and click Authorize in the Operation column to pop up the Associate Policy window.
3. In the Associate Policy pop-up window, select the QcloudIMSFullAccess
policy and click OK.
Configuring custom policy
If your business scenarios require a custom moderation policy for image content, you can configure one in Policy Management in the following steps:
1. Log in to the IMS console and select IMS > Policy Management on the left sidebar to enter the Policy Management page. 2. On the Policy Management page, click Create Policy in the top-left corner to enter the Create Policy page.
3. Enter the policy information based on your business scenario, reserve the Biztype
field as an API input parameter, and click Next.
Parameter description:
|
| Text description of the policy, which can contain up to 30 letters, digits, and underscores. |
| Specific policy number used for API calls, which can contain 3–32 letters, digits, and underscores and must be unique. |
Associated Service Template | |
| Category of the industry scenario involved in the policy. |
| It will be displayed only when Industry Category is set. You can select whether to use Tencent Cloud's preset industry templates for moderation. |
4. Select the content to be recognized and filtered in the policy and click Next.
5. If you want to recognize specific text content in images, you can associate a custom dictionary in the drop-down list and click Next.
Note:
Different colors in a custom dictionary represent different blocking logics, where red represents "blocked", yellow represents "suspected", and green represents "allowed".
6. After confirming that everything is correct, click Complete.
Note:
You can pass in the Biztype
of a custom policy as an API input parameter to use the policy for image content moderation.
Was this page helpful?