diff --git a/README.md b/README.md index 1fb628c..909bfe5 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This is a fork of the now-outdated (June 2023) Python script to display the temp - [TODO](#todo) ## Introduction -No commands are sent the the camera. Instead, we take the raw video feed, do some OpenCV processing, and display a nice heatmap along with relevant temperature points highlighted. +No commands are sent to the camera. Instead, we take the raw video feed, do some OpenCV processing, and display a nice heatmap along with relevant temperature points highlighted. ![Screenshot](media/TC00120230701-131032.png) diff --git a/src/controllers/guiController.py b/src/controllers/guiController.py index a7bec8d..cd7107c 100644 --- a/src/controllers/guiController.py +++ b/src/controllers/guiController.py @@ -34,7 +34,7 @@ def __init__(self, self.isInverted: bool = False # Recording stats - self.recordingStartTime: str = RECORDING_START_TIME + self.recordingStartTime: float = RECORDING_START_TIME self.last_snapshot_time: str = LAST_SNAPSHOT_TIME self.recordingDuration: str = RECORDING_DURATION diff --git a/src/controllers/thermalcameracontroller.py b/src/controllers/thermalcameracontroller.py index 04ce78c..bbe12f5 100644 --- a/src/controllers/thermalcameracontroller.py +++ b/src/controllers/thermalcameracontroller.py @@ -34,7 +34,7 @@ def __init__(self, self._lrow: int = 0 # Media/recording init - self._isRecording = RECORDING + self._isRecording = not RECORDING self._mediaOutputPath: str = mediaOutputPath if not os.path.exists(self._mediaOutputPath): @@ -155,7 +155,7 @@ def _checkForKeyPress(self, keyPress: int, img): ### RECORDING/MEDIA CONTROLS - if keyPress == ord(KEY_RECORD) and self._isRecording == False: # Start reording + if keyPress == ord(KEY_RECORD) and self._isRecording == False: # Start recording self._videoOut = self._record() self._isRecording = RECORDING self._guiController.recordingStartTime = time.time() diff --git a/src/defaults/gui_values.py b/src/defaults/gui_values.py index 36779a8..cd1be5d 100644 --- a/src/defaults/gui_values.py +++ b/src/defaults/gui_values.py @@ -5,7 +5,7 @@ FULLSCREEN: bool = False HUD_VISIBLE: bool = True LAST_SNAPSHOT_TIME: str = "" -RECORDING_START_TIME: str = "" +RECORDING_START_TIME: float = 0 RECORDING_DURATION: str = "00:00:00" FONT: int = FONT_HERSHEY_SIMPLEX # Scale diff --git a/src/defaults/recording_values.py b/src/defaults/recording_values.py index 6f6a34a..faeacfa 100644 --- a/src/defaults/recording_values.py +++ b/src/defaults/recording_values.py @@ -2,4 +2,4 @@ ### DEFAULT RECORDING CONSTANTS MEDIA_OUTPUT_PATH: str = f"{getcwd()}/output" -RECORDING: bool = False \ No newline at end of file +RECORDING: bool = True \ No newline at end of file