Skip to content

Commit

Permalink
correct default save path
Browse files Browse the repository at this point in the history
  • Loading branch information
JNatael committed Feb 2, 2021
1 parent b1135e5 commit d3a9dbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pithermalcam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def test_camera():
raise(e)


def display_camera_live(output_folder:str = '/home/pi/pithermalcam/run_data/'):
def display_camera_live(output_folder:str = '/home/pi/pithermalcam/saved_snapshots/'):
"""Display the camera live onscreen"""
thermcam = pithermalcam(output_folder=output_folder) # Instantiate class
thermcam.display_camera_onscreen()


def stream_camera_online(output_folder:str = '/home/pi/pithermalcam/run_data/'):
def stream_camera_online(output_folder:str = '/home/pi/pithermalcam/saved_snapshots/'):
"""Start a flask server streaming the camera live"""
# This is a clunky way to do this, the better approach would likely to be restructuring web_server.py with the Flask Blueprint approach
# If the code were restructure for this, the code would be much more complex and opaque for running directly though
Expand Down
2 changes: 1 addition & 1 deletion pithermalcam/pi_therm_cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class pithermalcam:
_displaying_onscreen=False
_exit_requested=False

def __init__(self,use_f:bool = True, filter_image:bool = False, image_width:int=1200, image_height:int=900, output_folder:str = '/home/pi/pithermalcam/run_data/'):
def __init__(self,use_f:bool = True, filter_image:bool = False, image_width:int=1200, image_height:int=900, output_folder:str = '/home/pi/pithermalcam/saved_snapshots/'):
self.use_f=use_f
self.filter_image=filter_image
self.image_width=image_width
Expand Down
2 changes: 1 addition & 1 deletion pithermalcam/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def generate():
# yield the output frame in the byte format
yield(b'--frame\r\n' b'Content-Type: image/jpeg\r\n\r\n' + bytearray(encodedImage) + b'\r\n')

def start_server(output_folder:str = '/home/pi/pithermalcam/run_data/'):
def start_server(output_folder:str = '/home/pi/pithermalcam/saved_snapshots/'):
global thermcam
# initialize the video stream and allow the camera sensor to warmup
thermcam = pithermalcam(output_folder=output_folder)
Expand Down

0 comments on commit d3a9dbc

Please sign in to comment.