docstr: Run as a command
docstr_tok: ["Run","as","a","command"]
code: def run_cmd(self, argvs):
      """
      Run as a command
      """
      parser = self.arg_parser()
      args = parser.parse_args(argvs)
      if args.lang is not None:
          self.lang = args.lang
      self.det = args.det
      self.rec = args.rec
      self.use_angle_cls = args.use_angle_cls
      self.engine = PaddleOCR(
          lang=self.lang,
          det=args.det,
          rec=args.rec,
          use_angle_cls=args.use_angle_cls,
          enable_mkldnn=args.enable_mkldnn,
          use_gpu=args.use_gpu,
          det_db_box_thresh=args.box_thresh,
          cls_thresh=args.angle_classification_thresh,
      )
      results = self.recognize_text(
          paths=[args.input_path],
          output_dir=args.output_dir,
          visualization=args.visualization,
      )
      return results
  
file_path: PaddleHub/modules/image/text_recognition/multi_languages_ocr_db_crnn/module.py
imports: import argparse
  import os
  import ast
  import paddle
  import paddle.static
  import paddle2onnx
  import paddle2onnx
  from paddleocr import PaddleOCR
  from paddleocr.ppocr.utils.logging import get_logger
  from paddleocr.tools.infer.utility import base64_to_cv2
  from paddlehub.module.module import moduleinfo, runnable, serving
  from .utils import read_images, save_result_image, mkdir
label_desc: Use image node_id 4 for calling the MultiLangOCR obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results