Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fis the issue with recording actually starting with 't', not 'r' #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/controllers/guiController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/controllers/thermalcameracontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/defaults/gui_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/defaults/recording_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

### DEFAULT RECORDING CONSTANTS
MEDIA_OUTPUT_PATH: str = f"{getcwd()}/output"
RECORDING: bool = False
RECORDING: bool = True