pyCarDisplay.utils package¶
Submodules¶
pyCarDisplay.utils.display_api module¶
Autonomous vehicle display application window
-
class
pyCarDisplay.utils.display_api.Display(speed: int, total_frames: int, theme: str)[source]¶ Bases:
objectCreates and updates the application window created with PySimpleGui using the Autonomous vehicle information for images and environmental observations
Initializes the display class
- speedint
speed of the autonomous vehicle
- total_frames :
number of saved images to iterate
- theme :
color of the PySimpleGui window as defined in https://user-images.githubusercontent.com/46163555/70382042-796da500-1923-11ea-8432-80d08cd5f503.jpg
-
define_layout()[source]¶ Sets the layout for the PySimpleGui application window
- elementslist
List of List contains window elements
-
depth_images_update(depth_detection_image)[source]¶ Iterates the cropped image list and updates the display with the predefined limit on image count
- depth_detection_imagelist
list of PIL images cropped from the depth detection image
None
-
grid_update(imu_data, kalman_imu_data)[source]¶ Sets the tabled grid with all of the updated Inertial Measurment Unit (IMU) Data and Kalman filter data
imu_data : data frame containing sensor reads kalman_imu_data : data frame containing updated kalman filter information
None
-
img(path, key)[source]¶ Simplification of PySimpleGUI function
- pathstr
path to the pil image.
- keystr
name to find the image in the application window.
image_element: Pysimple Gui image element
-
play(annotated_image: <module 'PIL.Image' from '/opt/anaconda3/envs/pyCarDisplay/lib/python3.8/site-packages/Pillow-8.1.2-py3.8-macosx-10.9-x86_64.egg/PIL/Image.py'>, depth_detection_image: <module 'PIL.Image' from '/opt/anaconda3/envs/pyCarDisplay/lib/python3.8/site-packages/Pillow-8.1.2-py3.8-macosx-10.9-x86_64.egg/PIL/Image.py'>, imu_data: pandas.core.frame.DataFrame, kalman_imu_data: pandas.core.frame.DataFrame, frame: int, verbose: bool, kalman_plot: <module 'PIL.Image' from '/opt/anaconda3/envs/pyCarDisplay/lib/python3.8/site-packages/Pillow-8.1.2-py3.8-macosx-10.9-x86_64.egg/PIL/Image.py'>)[source]¶ Takes in autonomous car information and displays the images from the object and depth detection moddels,and other data about travel path
annotated_image : Image of detected objects annotated depth_detection_image : Image of depth data imu_data : data frame containing sensor reads kalman_imu_data : data frame containing updated kalman filter information frame : int of pictture frame verbose : bool
None
pyCarDisplay.utils.kitti_data_loader_api module¶
Parses the Kitti dataset's IMU data into a Pandas DataFrame format.