code: def cv2_to_base64(image):
      # cv2转base64函数
      data = cv2.imencode(".jpg", image)[1]
      return base64.b64encode(data.tostring()).decode("utf8")
  
file_path: PaddleHub/modules/image/Image_gan/style_transfer/UGATIT_92w/processor.py
imports: import os
  import cv2
  import time
  import base64
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: cv2_to_base64(image) and returns: base64