Skip to main content

dropped frames

Comments

8 comments

  • Kathryn Salvati

    any help would be appreciated! I may be doing something silly.

    0
  • TDY_Manuel
    Community team
    Expert (Gold)

    Hi Kathryn, 

    I would suggest to use the image chunk data timestamp and frameID instead of time.time() to check for frame drops. Currently, a long frame_time - last_frame_time interval doesn't necessarily mean you are dropping a frame since you are using a high number of buffers. 

    I suspect that once you check chunk data frameID you will notice that you do not drop any frames for the first 840. 
    If you drop frames only after that, your processing is probably slower than the camera frame rate. Instead of converting every frame to a numpy array, would it be possible to write the image data to one big file directly and process it later? We do the same in our C++ example AcquisitionMultipleCamerasWriteToFile. 

    Best regards,

    Manuel 

    0
  • Kathryn Salvati

    Hi Manuel,

    What do you mean by processing speed? CPU to disk writing? The same issue happens when I use the spinnaker software independent of this code.

    Is this C++ also available via Pyspin?

    Is the interval between exposure and date write too short?

    Thanks,
    Katie

    0
  • TDY_Manuel
    Community team
    Expert (Gold)

    Hi Kathryn, 

    I don't think your disk write speed can cause the image drops. If writing to disk is slower than the camera frame rate, your image_queue will just keep growing in size. I mean that the code you run between two consecutive GetNextImage calls probably takes too long. I suspect that it is the converting to numpy array. 

    I'm afraid the example is not available in Python. 

    You can look at it both ways. Either your camera frame rate is too high, or your grab loop is too slow. Writing to disk is decoupled from your grab loop, so it shouldn't be causing the problem. 

    Best regards,

    Manuel  

    0
  • Kathryn Salvati

    okay, thanks for the advice. I am confused why the software does not capture the correct number of frames by triggering it as well...this is independent of the python code.

    Any thoughts?

    0
  • TDY_Manuel
    Community team
    Expert (Gold)

    Which software do you mean? The same code? And how did you notice this exactly? 

    If you think this is not related to the original issue, it might be best to open a new thread to stay on top of things. 

    0
  • Kathryn Salvati

    Spinnaker gives me the same frame count. So also dropping frames unless the text for the number of frames it acquires is not accurate.

    0
  • Kathryn Salvati

    I figured out the problem. Thanks for the help.

    0

Please sign in to leave a comment.

Powered by Zendesk