CSI-Camera icon indicating copy to clipboard operation
CSI-Camera copied to clipboard

video_capture.read() not working in my jetson nano[BUG]

Open mmzz16 opened this issue 3 years ago • 0 comments

Describe the issue i was working on using my CSI camera with jetson nano and when i try to run the code from simple_camera.py i get the following error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow' ​

What version of L4T/JetPack L4T/JetPack version: 4.5

What version of OpenCV OpenCV version:4.1.1

Python Version Python version if applicable: 3.6.9

To Reproduce Steps to reproduce the behavior: For example, what command line did you run?

i tried running the whole simple_camera.py but when i try to check it the problem starts with this line of code: ret_val, frame = video_capture.read()

Expected behavior A clear and concise description of what you expected to happen.

i wanted to connect to the csi camera and see a display window

Additional context Add any other context about the problem here.

mmzz16 avatar Jul 15 '22 07:07 mmzz16