vjrantal / iot-edge-darknet-module

18 stars 8 forks source link

Error occurs when capturing the Jetson TX2 onboard camera (dev/video0) #7

Open mingqxu-zz opened 6 years ago

mingqxu-zz commented 6 years ago

I am having a Jetson TX2 running JetPack 3.2

nvidia@tegra-ubuntu:~/Projects/iot-edge-darknet-module$ docker run -it --privileged vjrantal/iot-edge-darknet-module:latest /bin/bash root@70d89c8a96c4:/# python Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import cv2 capture = cv2.VideoCapture(0) HIGHGUI ERROR: libv4l unable convert to requested pixfmt HIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICT

vjrantal commented 6 years ago

@mingqxu I used a USB-connected camera. I did notice that others have run into this issue as well such as here.

I am not planning to try to make this work with the in-built camera in the near future, but please comment back if you get it working and what kind of workaround worked for you.