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: object

Creates 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

end()[source]

Closes the application windows using pysimplegui

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

reset_depth_images(depth_detection_image)[source]

Iterates all of the cropped image elements in the window and sets them to empty Parameters ---------- depth_detection_image : depth detection image

None

speed_update(imu_data, kalman_imu_data)[source]
update_window(key, data1, size_in='')[source]

Changes the displyed element to show updated information

keystr

locates the app element in the window to change

data1str

value to set the element with

size_in : str of image dimensions

None

pyCarDisplay.utils.kitti_data_loader_api module

Parses the Kitti dataset's IMU data into a Pandas DataFrame format.

class pyCarDisplay.utils.kitti_data_loader_api.DataLoader(path_lidar='', path_imu='')[source]

Bases: object

Initilize the parser.

path_lidarstr, optional

path to the lidar data. The default is "".

path_imustr, optional

path to the imu data. The default is "".

None.

get_params()[source]

Returns the object variables.

dict

self.

load_imu()[source]

Returns Pandas DataFrame of IMU data.

imu_dfpd.DataFrame

IMU data.

load_lidar(sample_size=1)[source]

Returns Pandas DataFrame of LiDaR data.

sample_sizefloat, optional

percent of the data to be returned. The default is 1.

lidar_dfpd.DataFrame

lidar data.

Module contents