Source code for Apps_CarsafetySystem

"""
This module provides functionality for processing images related to car safety.
"""

from ShowResult import ShowImageResult


[docs] class Car_Safety: """ This class encapsulates methods for processing images related to car safety. """ def __init__(self, Mainwindow): self.parent = Mainwindow self.show = ShowImageResult(self.parent)
[docs] def carAplication(self): """ Process the car safety image. This method processes the car safety image based on the selected options. """ if self.parent.image is None: pass else: image = self.parent.image.copy() self.show.showOriginalImage(image) if self.parent.ui.checkAnypoint.isChecked(): self.parent.anypoint.showPolygon() self.show.showPanoAnyImage(self.parent.angle) elif self.parent.ui.checkPanorama.isChecked(): self.parent.panorama.showOriginalPanorama() self.show.showPanoAnyImage() else: self.show.showResult(image)