Properly clean up temporary capture files at API exit
This commit is contained in:
parent
dce59f3b88
commit
d3226731d6
3 changed files with 21 additions and 6 deletions
|
|
@ -357,6 +357,7 @@ class StreamingCamera(BaseCamera):
|
|||
fmt (str): Format of the capture.
|
||||
resize ((int, int)): Resize the captured image.
|
||||
"""
|
||||
|
||||
# If no filename is specified, build a non-clashing one
|
||||
if not filename:
|
||||
filename = self.generate_basename(self.images)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue