original_docstring:  Stores information about the annotation json file.
  
          :param path_to_json: path to json file
          :return: None
          
docstring: Stores information about the annotation json file.
docstring_tokens: Stores information about the annotation json file .
code: def load_json(self, path_to_json):
          """ Stores information about the annotation json file.
  
          :param path_to_json: path to json file
          :return: None
          """
          # Open JSON file
          f = open(path_to_json)
          # JSON object as a dictionary
          data = json.load(f)
          # Iterate through the json and store info
          for d in data['annotations']:
              self.image_name.append(d['image_name'])
              self.container_id.append(d['container id'])
              self.ar_w.append(d['aspect ratio width'])
              self.ar_h.append(d['aspect ratio height'])
              self.avg_d.append(d['average distance'])
              self.wt.append(d['width top'])
              self.wb.append(d['width bottom'])
              self.height.append(d['height'])
              self.capacity.append(d['capacity'])
              self.mass.append(d['mass'])
          # Close file
          f.close()
code_tokens: def load_json ( self , path_to_json ) : f = open ( path_to_json ) data = json . load ( f ) for d in data [ 'annotations' ] : self . image_name . append ( d [ 'image_name' ] ) self . container_id . append ( d [ 'container id' ] ) self . ar_w . append ( d [ 'aspect ratio width' ] ) self . ar_h . append ( d [ 'aspect ratio height' ] ) self . avg_d . append ( d [ 'average distance' ] ) self . wt . append ( d [ 'width top' ] ) self . wb . append ( d [ 'width bottom' ] ) self . height . append ( d [ 'height' ] ) self . capacity . append ( d [ 'capacity' ] ) self . mass . append ( d [ 'mass' ] ) f . close ( )
short_docstring: Stores information about the annotation json file.
short_docstring_tokens: Stores information about the annotation json file .
comment: """ Stores information about the annotation json file.
  
          :param path_to_json: path to json file
          :return: None
          """$SEP$# Open JSON file
  $SEP$# JSON object as a dictionary
  $SEP$# Iterate through the json and store info
  $SEP$# Close file
  