code: def cv2_to_base64(image):
      return base64.b64encode(image).decode("utf8")
  
file_path: PaddleOCR/deploy/pdserving/ocr_cpp_client.py
imports: from paddle_serving_client import Client
  import sys
  import numpy
  import base64
  import os
  import cv2
  from paddle_serving_app.reader import Sequential, URL2Image, ResizeByFactor
  from paddle_serving_app.reader import Div, Normalize, Transpose
  from ocr_reader import OCRReader
  import codecs
  import paddle
label_desc: Use image node_id 1 for calling a global function with example usage: cv2_to_base64(image) and returns: base64