I can't use usb camera on jetson nano all the time

hello, I opened a topic about using a usb camera on jetson nano before. The camera gives the same error once a week.'Traceback (most recent call last):
** File “video.py”, line 15, in **
** cv2.imshow(‘vid’, frame)**
cv2.error: OpenCV(4.5.5) /io/opencv/modules/highgui/src/window.cpp:1000: error: (-215:Assertion failed) size.width>0 && size.height>0 in function ’ imshow’’. Below is the output of the commands you said.
,Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
gstv4l2src.c(658): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.045398337
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Hi,
Do you use multiple USB2 cameras? You will hit bandwidth constraint when using USB2 cameras. Here is a relevant topic:
connected more than two usb cameras problem on deepstream-app (Jetson Nano Dev Kit) - #12 by DaneLLL

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.