code: def cv2_to_base64(image):
      return base64.b64encode(image).decode("utf8")
  
file_path: PaddleOCR/tools/test_hubserving.py
imports: import os
  import sys
  from ppocr.utils.logging import get_logger
  import cv2
  import numpy
  import time
  from PIL import Image
  from ppocr.utils.utility import get_image_file_list
  from tools.infer.utility import draw_ocr, draw_boxes, str2bool
  from ppstructure.utility import draw_structure_result
  from ppstructure.predict_system import to_excel
  import requests
  import json
  import base64
label_desc: Use image node_id 1 for calling a global function with example usage: cv2_to_base64(image) and returns: base64