Exemplo n.º 1
0
 def colorize(self, image, options=None):
     options = options or {}
     data = {}
     data['image'] = base64.b64encode(image).decode()
     data.update(options)
     return self._request(self.__colorize_url, data)
Exemplo n.º 2
0
 def style_trans(self, image, options=None):
     options = options or {}
     data = {}
     data['image'] = base64.b64encode(image).decode()
     data.update(options)
     return self._request(self.__style_trans_url, data)
Exemplo n.º 3
0
 def image_quality_enhance(self, image, options=None):
     options = options or {}
     data = {}
     data['image'] = base64.b64encode(image).decode()
     data.update(options)
     return self._request(self.__image_quality_enhance_url, data)