Hi everyone,
I need help with my camera setup on Jetson Nano. I have successfully connected a CSI camera to my Jetson Nano and I get a decent image from it via gstreamer. But if I align the camera to an object than the image is slightly shifted. Even the wide angle is different at the left and the right side of the image. The camera is an IMX219 160 degree camera module.
Here is my gstreamer pipeline:
def gstreamer_pipeline(
sensor_id=0,
capture_width=1920,
capture_height=1080,
display_width=720,
display_height=480,
framerate=30,
flip_method=0,
):
return (
"nvarguscamerasrc sensor-id=%d sensor-mode=2 ! "
"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 drop=true sync=false"
% (
sensor_id,
capture_width,
capture_height,
framerate,
flip_method,
display_width,
display_height,
)
)
To show you that the camera is somehow not correctly centered I used a squared sheet. I aligned the backblate of the camera on it and faced the camera lens to the sheet, so we can see how the lines on the paper are displayed. Here is the result for the horizontal alignment:
If I rotate the camera 90 Degree and do this test again, we see one line in the center that mirrors both sites. I cant show you the picture about it, because I am a new user and I am only allowed to use one image. If I move the camera until the result image is like I want to have it (like in the first post), I must move it about 3mm to the right and rotate the camera around 15-20 degrees.
Another suspicious behavior is that the wide angle of the camera only works for the right side.
Maybe someone of you can help me.