Hello,
I am experiencing a strange image acquisition issue in my project involving a Jetson Orin NX with an IMX477 camera connected. My goal is to capture images at a specific framerate and save them into a folder for use in other parts of my project.
The acquisition is performed using the following GStreamer pipeline:
def __gstreamer_pipeline__(
sensor_id=0,
width=1920,
height=1080,
framerate=30,
flip_method=0,
):
return (
"nvarguscamerasrc sensor-id=%d sensor-mode=0 ! "
"video/x-raw(memory:NVMM), width=(int)%d, height=(int)%d, framerate=(fraction)%d/1 ! "
"nvvidconv flip-method=%d ! "
"video/x-raw, width=(int)%d, height=(int)%d, format=(string)BGRx ! "
"videoconvert ! "
"video/x-raw, format=(string)BGR ! appsink"
% (
sensor_id,
width,
height,
framerate,
flip_method,
width,
height,
)
)
video_capture = cv2.VideoCapture(__gstreamer_pipeline__, cv2.CAP_GSTREAMER)
_, frame = video_capture.read()
However, the images I captured have the following issue: Image
As shown, the camera retains an older frame while it is building a new one. This occurs every time there is movement in the stream, making the issue most noticeable under those conditions.
I have already followed the configuration guidelines provided here:https://wiki.seeedstudio.com/J401_carrierboard_Hardware_Interfaces_Usage/#supported-cameras-are-as-follows but the issue is still there.
I have also tried to chage some parameters in the pipeline including: --exposuretimerange --gainrange --enc-bitrate --hw-enc-path in the nvarguscamerasrc element of the pipeline but it didn’t work.
What it is worse is that I have another Jetson Orin NX, identical to this one and connected to the same type of camera, which runs the exact same code without any issues. This leads me to believe that the problem relies on some hardware configuration I haven’t made.
I have been stuck on this issue for two weeks now and would greatly appreciate any guidance that could help resolve it. If you need any additional information to clarify my situation, please feel free to ask.
Thanks in advance!