class_docstr: Generate data for a KITTI dataset.
  
  See http://www.cvlibs.net/datasets/kitti/ for more information.
class_docstr_tok: ["Generate","data","for","a","KITTI","dataset",".","See","http",":","\/\/www.cvlibs.net\/datasets\/kitti\/","for","more","information","."]
docstr: Compute the aspect ratio for an image with image_index.
          
docstr_tok: ["Compute","the","aspect","ratio","for","an","image","with","image_index","."]
code: def image_aspect_ratio(self, image_index):
      """Compute the aspect ratio for an image with image_index."""
      # PIL is fast for metadata
      image = Image.open(self.images[image_index])
      return float(image.width) / float(image.height)
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/preprocessing/kitti.py
imports: import csv
  import os.path
  import numpy
  from PIL import Image
  from .generator import Generator
  from ..utils.image import read_image_bgr
label_desc: Use image node_id 8 for calling the KittiGenerator obj's underlying member method code with example usage: obj.image_aspect_ratio(image_index) and returns: unknown