camera-mc-dev / mc_grabber

Tools as deployed on Boromir for grabbing images/video from the JAI cameras using the SISO grabbers.
0 stars 0 forks source link

Frame sync issue #14

Open laurieneedham opened 2 years ago

laurieneedham commented 2 years ago

When the user does not allow the buffer to refill, frame numbers are often out by one frame. The first frame in one camera view should not be there and causes the disparity. See example:

    /data/ssd0/recording/2022-09-14/test_02/00/
    /data/ssd1/recording/2022-09-14/test_02/01/

And:

    /data/ssd0/recording/2022-09-14/test_07/*/
    /data/ssd1/recording/2022-09-14/test_07/*/

I am not sure that is the same bug that I have spotted in other sessions. During tennis session I have noticed one or more cameras are off by one frame but there is no obvious 'extra frame' at the start throwing the sequence off. I have also seen a push track sessions with some cameras out of sync by approx 3 frames. I have noticed the extra frame issue in some trials but not all where the frame sync is present. I cannot access this data however as it is on the damaged RAID.

laurieneedham commented 2 years ago

Update:

Bug confirmed with following data: test_08/ to test_10/ were collected while not allowing the buffer to refill. These all show an out by one frame sync error.

I guess this could be prevented by disabling the capture keystroke until the capture duration has passed allowing the buffer to refill. A progress bar or some text could be rendered so the user knows that the buffer is refilling.

laurieneedham commented 2 years ago

Sorry @reubenlindroos and @mureva I don't seem to be able to assign more than one person to this and wasn't sure who would be best placed to address?