jetcam
jetcam copied to clipboard
Read() does not get the latest frame.
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
Maybe you can try NanoCamera - https://pypi.org/project/NanoCamera/ I believe it shows the latest frame.
If someone still wondering, try setting camera.running = True
, and get the latest image using image = camera.value
.
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
If someone still wondering, try setting
camera.running = True
, and get the latest image usingimage = camera.value
.
That works ! , Thank you