You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @dusty-nv
I'm using a ros:humble docker container which is not a ros_deeplearning container and I want to send camera images through ros2 topic. The problem is this container doesn't have nvgstreamer so I can't use: std::string gstreamer_pipeline (int capture_width, int capture_height, int display_width, int display_height, int framerate, int flip_method) { return "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)" + std::to_string(capture_width) + ", height=(int)" + std::to_string(capture_height) + ", framerate=(fraction)" + std::to_string(framerate) + "/1 ! nvvidconv flip-method=" + std::to_string(flip_method) + " ! video/x-raw, width=(int)" + std::to_string(display_width) + ", height=(int)" + std::to_string(display_height) + ", format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink"; }
Is there any way I can use the csi camera?
As I know, camera devices always have their name inside /dev folder so we can read from the device. i searched but haven't found where csi camera in that folder. I only found /dev/video0. Is that it? Tks for helping!
The text was updated successfully, but these errors were encountered:
@dusty-nv Thanks for reply i see, but i still don't know what to do. Can you tell me exactly what steps in order to run the csi camera inside a container? Or how to install nvgstreamer inside the container?
I don't use your docker images so those nvgst commands are not available now
Hi @dusty-nv
I'm using a ros:humble docker container which is not a ros_deeplearning container and I want to send camera images through ros2 topic. The problem is this container doesn't have nvgstreamer so I can't use:
std::string gstreamer_pipeline (int capture_width, int capture_height, int display_width, int display_height, int framerate, int flip_method) { return "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)" + std::to_string(capture_width) + ", height=(int)" + std::to_string(capture_height) + ", framerate=(fraction)" + std::to_string(framerate) + "/1 ! nvvidconv flip-method=" + std::to_string(flip_method) + " ! video/x-raw, width=(int)" + std::to_string(display_width) + ", height=(int)" + std::to_string(display_height) + ", format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink"; }
std::string pipeline = gstreamer_pipeline(capture_width, capture_height, display_width, display_height, framerate, flip_method); std::cout << "Using pipeline: \n\t" << pipeline << "\n";
cv::VideoCapture cap(pipeline, cv::CAP_GSTREAMER);
Is there any way I can use the csi camera?
As I know, camera devices always have their name inside /dev folder so we can read from the device. i searched but haven't found where csi camera in that folder. I only found /dev/video0. Is that it? Tks for helping!
The text was updated successfully, but these errors were encountered: