#include #include #include #include const char *gst_cap = "rtspsrc location=rtsp://192.168.1.88/live/1 latency=100 !" " rtph264depay ! h264parse ! omxh264dec ! " " nvvidconv ! video/x-raw, format=BGRx ! " " videoconvert ! video/x-raw, format=BGR ! appsink max-buffers=1 drop=true"; int main() { cv::VideoCapture cap(gst_cap, cv::CAP_GSTREAMER); if(!cap.isOpened()) { std::cout<<"Failed to open camera."<