This document describes how to connect to and use VM.
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
Log in to the CMS console and click Activate Now. You will be gifted a free trial package of 600 minutes (equivalent to 36,000 images and 600 minutes of audio) valid for one month. Configuring permission
If you want to call VM 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 QcloudVMFullAccess
policy and click OK.
Configuring custom policy (optional)
Note:
This step is optional. If you don't use a custom recognition policy, you can use the default policy (by leaving the Biztype
field empty when calling APIs) for content recognition.
If your business scenarios require a custom recognition policy for video content, you can configure one in Policy Management in the following steps:
1. Log in to the CMS console and select VM > 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:
|
Policy Name | Text description of the policy, which can contain up to 30 letters, digits, and underscores. |
Biztype Name | Specific policy number used for API calls, which can contain 3–32 letters, digits, and underscores and must be unique. |
Associate Service Template | Currently, only the default template can be used for configuration. |
Industry Category | Category of the industry scenario involved in the policy. |
Use Industry Template | It will be displayed only when Industry Category is set. You can select whether to use Tencent Cloud's preset industry templates for recognition. |
4. On the Recognition Policy Configuration page, select whether to recognize different types of content based on your business needs and click Next.
5. You can choose to associate a custom dictionary you configured 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 video content recognition.
Was this page helpful?