Skip to main content

Customizing Filename Format When Saving Images

Answered

Comments

4 comments

  • Official comment
    TDY_Ifeanyi
    Community team
    Great answers
    Expert (Gold)

    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.

  • Hijn Tromp

    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
  • TDY_Demos
    Community team
    Expert (Gold)

    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
  • Hijn Tromp

    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.

Powered by Zendesk