Python uses Baidu cloud interface to realize black and white picture coloring

Python can use python+Opencv to achieve a lot of work such as image transformation, because the function of the OpenCV library can be said to be quite powerful, and many functions can be completed. However, it takes time and energy to make the wheels by ourselves, so we can directly learn to call the Baidu AI intelligent platform interface to implement many useful functions. Today, I will introduce one of them-python uses Baidu cloud interface to implement black and white pictures Color .

Image transformation interface: https://ai.baidu.com/ai-doc/IMAGEPROCESS/ck3bclu2u

New AipImageProcess
AipImageProcess is a Python SDK client for image enhancement and special effects. It provides a series of interactive methods for developers who use image enhancement and special effects.

Refer to the following code to create a new AipImageProcess:

from aip import AipImageProcess

""" 你的 APPID AK SK """
APP_ID = '你的 App ID'
API_KEY = '你的 Api Key'
SECRET_KEY 

Guess you like

Origin blog.csdn.net/weixin_46530492/article/details/108479267