original_docstring: 
          Show an external image on the live display
          Args:
              img - [H, W, C] input image, opencv format
              bannerPath - location of the external image
              concat - replace the top segment of the img if False
          
          Returns:
              img - the modified image
              
      
docstring: Show an external image on the live display
  Args:
  img - [H, W, C] input image, opencv format
  bannerPath - location of the external image
  concat - replace the top segment of the img if False
  
  the modified image
docstring_tokens: Show an external image on the live display Args : img - [ H W C ] input image opencv format bannerPath - location of the external image concat - replace the top segment of the img if False the modified image
code: def addbanner(img, bannerPath, concat=True):
      '''
          Show an external image on the live display
          Args:
              img - [H, W, C] input image, opencv format
              bannerPath - location of the external image
              concat - replace the top segment of the img if False
          
          Returns:
              img - the modified image
              
      '''
  
      global bannerDict
      banner = bannerDict.get(bannerPath)
      if banner is None:
          banner = cv2.imread(bannerPath)
          bannerDict[bannerPath] = banner
          
      if concat:
          img = np.concatenate([banner, img])
      else:
          img[:banner.shape[0]] = banner
      
      return img
code_tokens: def addbanner ( img , bannerPath , concat = True ) : global bannerDict banner = bannerDict . get ( bannerPath ) if banner is None : banner = cv2 . imread ( bannerPath ) bannerDict [ bannerPath ] = banner if concat : img = np . concatenate ( [ banner , img ] ) else : img [ : banner . shape [ 0 ] ] = banner return img
short_docstring: Show an external image on the live display
  Args:
  img - [H, W, C] input image, opencv format
  bannerPath - location of the external image
  concat - replace the top segment of the img if False
short_docstring_tokens: Show an external image on the live display Args : img - [ H W C ] input image opencv format bannerPath - location of the external image concat - replace the top segment of the img if False
comment: '''
          Show an external image on the live display
          Args:
              img - [H, W, C] input image, opencv format
              bannerPath - location of the external image
              concat - replace the top segment of the img if False
          
          Returns:
              img - the modified image
              
      '''