pypylon
pypylon copied to clipboard
Smaller timestamp for newer frame
Is it possible to get a frame with smaller timestamp than previous frame? I have a GigE 2 Megapixel camera.
self.cam.AcquisitionMode.SetValue('Continuous')
self.cam.Close()
self.cam.StartGrabbing(pylon.GrabStrategy_LatestImageOnly)
I use above code to start grabbing and here is my code to grab a frame:
def get_frame(self):
# when there is an exception I try 4 more times to get a successful grab
for i in range(5):
with self.cam.RetrieveResult(5000, pylon.TimeoutHandling_ThrowException) as grabResult:
if grabResult.GrabSucceeded():
print(grabResult.GetTimeStamp())
...
while True:
get_frame()
Sometimes frames not grabbed sequentially and the timestamp of newer frame is smaller than previous frame. Is it possible? If yes how can I solve it? I need ordered frames.
Is your camera operational in Basler pylon viewer on your platform
Yes
Hardware setup & camera model(s) used
PC:
CPU: ARM64 OS: Ubuntu RAM: 4GB
Runtime information:
python: 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
platform: linux/aarch64/5.10.110-rockchip-rk3588
pypylon: 4.0.0 / 8.0.0.10