Jetson nano - nvarguscamerasrc - digital zoom

Hello,
I have standard raspberry PI camera without any manual zooming options but i need to get only part of what camera really see for my code…
is it possible to digitaly zoom camera on jetson nano ? or somehow crop only the middle of video stream without any postprocessing in my code - is there any parameter to the command “nvarguscamerasrc” that I can use ? like define that I need only area starting from poin 150,150 to point 800,600 or anything similar ?

currently i have:
nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)20/1 ! nvvidconv flip-method=0! video/x-raw, width=(int)1280, height=(int)720, format=(string)BGRx ! videoconvert ! appsink

Thanks!

You can do that with nvvidconv (here cropping a 800x600 ROI starting at x=150 and y=100:

nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1280, height=720, format=NV12, framerate=20/1 ! nvvidconv left=150 right=949 top=100 bottom=699 ! video/x-raw, width=800, height=600, format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink drop=1
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.