New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4l2 videoSource is not loading, GStreamer getting paused. #1639
Comments
@nithinpremkumar1999 try changing your code to this: from jetson_utils import videoSource, videoOutput
camera = videoSource("v4l2:///dev/video0")
display = videoOutput("display://0")
while display.IsStreaming():
img = camera.Capture()
if img is None:
continue
display.Render(img)
display.SetStatus("Object Detection | Network {:.0f} FPS".format(self.net.GetNetworkFPS())) There was a change where videoSource.Capture() will return |
sometimes when the camera is first starting it's normal to have a timeout, especially when the video is compressed or it's a network stream |
Okay thank you for the insight I will get back to you if the solution worked or not :) |
@dusty-nv Thank you for the help! Your solution worked :) |
Hi, I use a Logitech C270 webcam, I have built from source this project on a Jetson Nano with jetpack 4.6.1.
My code:
The error:
The camera works fine on cheese, this problem doesn't happen when I run py files from the project, just py files written by me are failing to start the camera. Any help will be greatly appreciated. Because of this I cant use detectNet.detect(img) because it says it expects cudaimage.
The text was updated successfully, but these errors were encountered: