Some prior knowledge can be viewed in the blog above.
Python uses Baidu cloud interface to achieve black and white image coloring
New AipImageClassify
AipImageClassify is a Python SDK client for image recognition, which provides a series of interactive methods for developers who use image recognition.
Refer to the following code to create a new AipImageClassify:
from aip import AipImageClassify
""" 你的 APPID AK SK """
APP_ID = '你的 App ID'
API_KEY = '你的 Api Key'
SECRET_KEY = '你的 Secret Key'
client = AipImageClassify(APP_ID