code: def setDetector(self, detect_network):
      detector_path = self.getDetectorPath(detect_network)
      self.detector = self.initDetector(detector_path)
  
imports: from .recognition import get_recognizer, get_text
  from .utils import group_text_box, get_image_list, calculate_md5, get_paragraph, download_and_unzip, printProgressBar, diff, reformat_input, make_rotated_img_list, set_result_with_confidence, reformat_input_batched, merge_to_free
  from .config import *
  from bidi.algorithm import get_display
  import numpy
  import cv2
  import torch
  import os
  import sys
  from PIL import Image
  from logging import getLogger
  import yaml
  import json
label_desc: Use image node_id 4 for calling the Reader obj's underlying member method code with example usage: obj.setDetector(detect_network) without return types