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

New recordings always overwrite old ones #1

Open
m516 opened this issue Apr 27, 2019 · 1 comment
Open

New recordings always overwrite old ones #1

m516 opened this issue Apr 27, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@m516
Copy link
Member

m516 commented Apr 27, 2019

Line 68:
with open('Positions.csv', mode = 'w') as csv_file:

Line 79:
camera.start_recording('3D_Scan.h264')#Start recording the video

If the program is run a second time, it will try to write to the same files it wrote to the first time. To do that, it replaces the existing file with the one it just created. Is there a way to create a new set of files each time a new scan is made? If not, that's ok, we just don't need to worry about storage

@m516 m516 added the enhancement New feature or request label Apr 27, 2019
@hailucas11
Copy link

Well i’m not sure how we have it set up right now, but if we had two loops, for example, one loop that kept the program running even when we turn the scanner on and off, with the button, and one for actually continuously scanning, we could create a count variable, and every time the inside loop is left it could update, and then the file names includes that count. Example, we have outside loop running to look for the whether the button is on or off. Count is 0, button is pressed, scanner starts scanning to files0. Button is pressed, stops scanning, count is 1. Button is pressed, starts scanning to files1, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants