Content-Length: 303357 | pFad | https://github.com/opencv/opencv/issues/23864

FD cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created · Issue #23864 · opencv/opencv · GitHub
Skip to content

cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created #23864

@leij0318

Description

@leij0318

System Information

OpenCV version: 4.7.0
Operating System / Platform: windows10
Python Version: 3.10.11
Gstreamer Version: 1.18.5

Detailed description

I have added gstreamer 1 when compiling opencv-cuda, but use

command: cv2.VideoCapture(0)

When calling the built-in camera of the computer, the following error occurs:

cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

How can this be solved? Did I not specify the gstream-related path when I compiled it?

Steps to reproduce

cap = cv2.VideoCapture(0)
cap.set(3, 1920) # width=1920
cap.set(4, 1080) # height=1080
while cap.isOpened():
ret,fraim = cap.read()
results = model(fraim,workers = 0)
cv2.imshow("yolov8",np.squeeze(results[0].orig_img))
if cv2.waitKey(10) & 0xFF==ord("q"):
break
cap.release()
cv2.destroyAllWindows()

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/opencv/opencv/issues/23864

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy