import json
import cv2
from tencentcloud.common import credential
from tencentcloud.common.profile.client_profile import ClientProfile
from tencentcloud.common.profile.http_profile import HttpProfile
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
from tencentcloud.iai.v20200303 import iai_client, models
import base64
import matplotlib.pyplot as plt
%matplotlib inline
import warnings
warnings.filterwarnings("ignore")
SecretId="xxxxxxxxxxxxx"
SecretKey="xxxxxxxxxxxxx"
"""
https://cloud.tencent.com/document/product/867/44987
"""
try:
cred = credential.Credential(SecretId, SecretKey)
httpProfile = HttpProfile()