jetcam icon indicating copy to clipboard operation
jetcam copied to clipboard

Read() does not get the latest frame.

Open 32nguyen opened this issue 5 years ago • 4 comments

the read() does not get the latest frame. Which is the same as I experience when using a modified version from here: https://github.com/JetsonHacksNano/CSI-Camera

This is my quick test for the read():

from jetcam.csi_camera import CSICamera import time import numpy as np import matplotlib.pyplot as plt camera = CSICamera(width=1280, height=720, capture_width=3280, capture_height=2464, capture_fps=21) for i in range(50):

print('Record LED ' + str(i)) ime.sleep(1) image = camera.read() plt.imshow(image) plt.show()

I feel like the frames are read and stored somewhere then the read() just return those frames in order but not get the the frames corresponding to the time of reading.

Bests, Thanh

32nguyen avatar Dec 06 '19 20:12 32nguyen

Maybe you can try NanoCamera - https://pypi.org/project/NanoCamera/ I believe it shows the latest frame.

thehapyone avatar Jan 12 '20 18:01 thehapyone

If someone still wondering, try setting camera.running = True, and get the latest image using image = camera.value.

azizkayumov avatar Apr 13 '20 10:04 azizkayumov

Maybe you can try NanoCamera - https://pypi.org/project/NanoCamera/ I believe it shows the latest frame.

nanocam is not one to one compatible with jetcam

  • Each object must be "HasTraits" is not there

tcolov avatar Oct 08 '20 06:10 tcolov

If someone still wondering, try setting camera.running = True, and get the latest image using image = camera.value.

That works ! , Thank you

FelosRG avatar Jun 24 '21 17:06 FelosRG