docstr: Run as a command
docstr_tok: ["Run","as","a","command"]
code: def run_cmd(self, argvs):
      """
      Run as a command
      """
      self.parser = argparse.ArgumentParser(
          description="Run the %s module." % self.name,
          prog="hub run %s" % self.name,
          usage="%(prog)s",
          add_help=True,
      )
  
      self.arg_input_group = self.parser.add_argument_group(
          title="Input options", description="Input data. Required"
      )
      self.arg_config_group = self.parser.add_argument_group(
          title="Config options",
          description="Run configuration for controlling module behavior, not required.",
      )
  
      self.add_module_config_arg()
      self.add_module_input_arg()
  
      args = self.parser.parse_args(argvs)
      results = self.recognize_text(
          paths=[args.input_path],
          use_gpu=args.use_gpu,
          output_dir=args.output_dir,
          visualization=args.visualization,
      )
      return results
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import ast
  import copy
  import math
  import os
  import time
  import cv2
  import numpy
  import paddle
  from chinese_ocr_db_crnn_server.character import CharacterOps
  from chinese_ocr_db_crnn_server.utils import base64_to_cv2
  from chinese_ocr_db_crnn_server.utils import draw_ocr
  from chinese_ocr_db_crnn_server.utils import get_image_ext
  from chinese_ocr_db_crnn_server.utils import sorted_boxes
  from paddle.inference import Config
  from paddle.inference import create_predictor
  from PIL import Image
  import paddlehub
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
  from paddlehub.utils.log import logger
label_desc: Use image node_id 17 for calling the ChineseOCRDBCRNNServer obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results