dusty-nv / ros_deep_learning

Deep learning inference nodes for ROS / ROS2 with support for NVIDIA Jetson and TensorRT
866 stars 258 forks source link

How to modify the frame rate of the v4l2 camera #49

Open Shame-fight opened 3 years ago

Shame-fight commented 3 years ago

Thanks for your work,I use the ros node for video reading, video_source.launch.I saw the place to modify the csi camera in line 360 in gstCamera.cpp, but I don’t know how to modify the frame rate of the v4l2 camera (I use a usb camera), the default is the highest frame rate, in fact I only need about 10 frames to read , Please tell me how to modify the frame rate of the v4l2 camera. Thanks for all helpful suggestions.