code: def convert_1d_data(self, meter_image: np.ndarray):
      scale_data = np.zeros((LINE_WIDTH), dtype=np.uint8)
      pointer_data = np.zeros((LINE_WIDTH), dtype=np.uint8)
      for col in range(LINE_WIDTH):
          for row in range(LINE_HEIGHT):
              if meter_image[row, col] == 1:
                  pointer_data[col] += 1
              elif meter_image[row, col] == 2:
                  scale_data[col] += 1
      return scale_data, pointer_data
  
imports: import math
  import os
  import base64
  from typing import Union
  import argparse
  import cv2
  import numpy
  import paddlehub
  import paddlex
  import paddle.nn
  from paddlex.seg import transforms
  from paddlehub.module.module import moduleinfo, runnable, serving
label_desc: Use image node_id 4 for calling the BarometerReader obj's underlying member method code with example usage: obj.convert_1d_data(meter_image) and returns: scale_data,  pointer_data