Customizing Filename Format When Saving Images
AnsweredHi everyone,
I'm trying to change the filename format used when saving images.
In the Recording Window, there's a note saying:
"A timestamp, sequence number and file extension based on output type will be appended."
When I set the label to "time", the saved files are named like this:time-ddmmaaHHmmss-#frame_number.tif,
meaning that the current date and time (day, month, year, hour, minute, second) and the frame number are automatically appended.
However, I would like the filename format to be something like:time_%06d.tif
That is, no date/time in the name, just a zero-padded frame number.
Is this possible to configure?
Thanks in advance!
-
Official comment
Hello Leonardo,
Custom file name would require to recording with spinnaker API. Please reference SaveToVideo example project (default location: "C:\Program Files\Teledyne\Spinnaker\src") for more insight on how to record video file.
Regards,
Ifeanyi.
-
tif is not a video. is there another example that shows how the separate tif files can be captured and timestamped? I am looking for info to change the timestamping from how Spinview does it with seconds and then an index but to actually include milliseconds as well as from a seconds offset an index does not give absolute time for a frame but only relative to a second that can start anytime and is not aligned with gps 1pps.
0 -
Hello Hijn and Leonardo,
Using our SpinView demo GUI, there is no option to change what is appended to video or image fixes that are saved.
To customize the filename, you would need to use the API and make your own application that does the saving.
Most of our examples in our src folder grab and save images. Our basic Acquisition example grabs 10 images and saves them as bmp. You can use the same example and change it to save .tif, with the filename structure that you wish.
Unfortunately, we do not have any example GUI code, only command line. We have a simple .NET GUI example in our github (Spinnaker-Examples/SpinDotNet_PictureBox at main · Teledyne-MV/Spinnaker-Examples) but that doesn't save images.
To summarize, our demo GUI does not allow you to change the tagging of images or video files. You could use our source code to customize the filenames without a GUI, or start from our default .NET GUI example and add image saving to that.
I hope this helps point you in the right direction.
Thank you,
Demos
0 -
Thanks Demos for a quick response and confirming my fears. I am doing some last synchronization experiments with mitxela's accurate gps clock and our strobe too to confirm that we cannot derive the 1PPS from the file timestamp on the computer and will then tackle that SDK to sort it out.
("Nothing is impossible, some things are just hard", Franco Pucci)
0
Please sign in to leave a comment.
Comments
4 comments