code: def __init__(
      self,
      data_dir,
      split,
      annotation_type=DEFAULT_ANNOTATION_TYPE,
      default_class=DEFAULT_CLASS,
      objects_key=DEFAULT_OBJECTS_KEY,
      x_min_key=X_MIN_KEY,
      y_min_key=Y_MIN_KEY,
      x_max_key=X_MAX_KEY,
      y_max_key=Y_MAX_KEY,
      **kwargs,
  ):
      super(FlatReader, self).__init__(**kwargs)
      self._data_dir = data_dir
      self._split = split
      self._annotation_type = annotation_type
      self._default_class = default_class
      self._objects_key = objects_key
      self._x_min_key = x_min_key
      self._y_min_key = y_min_key
      self._x_max_key = x_max_key
      self._y_max_key = y_max_key
  
      self._annotated_files = None
      self._annotations = None
  
      self.errors = 0
      self.yielded_records = 0
  
file_path: luminoth/luminoth/tools/dataset/readers/object_detection/flat_reader.py
imports: import json
  import os
  import six
  import tensorflow
  from PIL import Image
  from luminoth.tools.dataset.readers import InvalidDataDirectory
  from luminoth.tools.dataset.readers.object_detection import ObjectDetectionReader
  from luminoth.utils.dataset import read_image
label_desc: Use image node_id 1 to create a new FlatReader object from inherited base classes: ObjectDetectionReader with example: obj = FlatReader(data_dir, split, annotation_type, default_class, objects_key, x_min_key, y_min_key, x_max_key, y_max_key)