Unable to read onboard camera video

Hi all,

As the title states, I’m trying to read the video stream from the Jetson TX2’s own camera. More specifically I’m trying to run SSD with MobileNet from this Github repo: https://github.com/GustavZ/realtime_object_detection. When I run their run ‘run_objectdetection.py’ script I get the following error:

VIDEOIO ERROR: V4L: device video_input : nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)600, height=(int)600,format=(string)I420, framerate=(fraction)5/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink: Unable to query number of channels

Available Sensor modes : 
2592 x 1944 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
2592 x 1458 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1280 x 720 FR=120.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10

NvCameraSrc: Trying To Set Default Camera Resolution. Selected sensorModeIndex = 1 WxH = 2592x1458 FrameRate = 30.000000 ...

Socket read error. Camera Daemon stopped functioning.....
gst_nvcamera_open() failed ret=0
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
) in icvStartPipeline, file /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp, line 450
Traceback (most recent call last):
  File "run_objectdetection.py", line 180, in <module>
    detection(model, config)
  File "run_objectdetection.py", line 35, in detection
    vs = WebcamVideoStream(config.VIDEO_INPUT,config.WIDTH,config.HEIGHT).start()
  File "/home/nvidia/project/realtime_object_detection/rod/helper.py", line 177, in __init__
    self.stream.set(cv2.CAP_PROP_FRAME_WIDTH, self.width)
cv2.error: /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp:450: error: (-2) GStreamer: unable to start pipeline
 in function icvStartPipeline

This is the output of cv2.getBuildInformation().

print(cv2.getBuildInformation())

General configuration for OpenCV 3.4.0 =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2018-06-15T12:19:00Z
    Host:                        Linux 4.4.38-tegra aarch64
    CMake:                       3.5.1
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               RELEASE

  CPU/HW features:
    Baseline:                    NEON FP16
      required:                  NEON
      disabled:                  VFPV3

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                /usr/bin/c++  (ver 5.4.0)
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/bin/cc
    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):
    Linker flags (Debug):
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:          dl m pthread rt cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-9.0/lib64
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn features2d flann highgui imgcodecs imgproc ml objdetect photo python2 python_bindings_generator shape stitching superres video videoio videostab
    Disabled:                    java js world
    Disabled by dependency:      -
    Unavailable:                 python3 ts viz
    Applications:                apps
    Documentation:               NO
    Non-free algorithms:         NO

  GUI: 
    GTK+:                        YES (ver 2.24.30)
      GThread :                  YES (ver 2.48.2)
      GtkGlExt:                  NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.8)
    JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver )
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.2.54)
    TIFF:                        /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.6)
    JPEG 2000:                   /usr/lib/aarch64-linux-gnu/libjasper.so (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)

  Video I/O:
    DC1394:                      YES (ver 2.2.4)
    FFMPEG:                      YES
      avcodec:                   YES (ver 56.60.100)
      avformat:                  YES (ver 56.40.101)
      avutil:                    YES (ver 54.31.100)
      swscale:                   YES (ver 3.1.101)
      avresample:                NO
    GStreamer:                   
      base:                      YES (ver 1.8.3)
      video:                     YES (ver 1.8.3)
      app:                       YES (ver 1.8.3)
      riff:                      YES (ver 1.8.3)
      pbutils:                   YES (ver 1.8.3)
    libv4l/libv4l2:              1.10.0 / 1.10.0
    v4l/v4l2:                    linux/videodev2.h
    gPhoto2:                     NO

  Parallel framework:            pthreads

  Trace:                         YES (built-in)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       NO
    Custom HAL:                  YES (carotene (ver 0.0.1))

  NVIDIA CUDA:                   YES (ver 9.0, CUFFT CUBLAS)
    NVIDIA GPU arch:             62
    NVIDIA PTX archs:

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.12)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.12)
    numpy:                       /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.14.3)
    packages path:               lib/python2.7/dist-packages

  Python (for build):            /usr/bin/python2.7

  Java:
    ant:                         /usr/bin/ant (ver 1.9.6)
    JNI:                         /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include
    Java wrappers:               NO
    Java tests:                  NO

  Matlab:                        NO

  Install to:                    /usr/local
In the Video I/O section GStreamer seems to be installed correctly.

A bit of a discussion on the issue I opened: https://github.com/GustavZ/realtime_object_detection/issues/26.

What can the problem be?
Thanks

My guess would be that onboard camera was already in use, either by another program or another instance of your application. Another possibility would be if you have used v4l2-ctl for configuring onboard camera without --set-ctrl bypass_mode=0.

I have checked that the capture pipeline works with opencv-3.4.0 on my TX2.

So I’d suggest to retry after a reboot. If this doesn’t work, you may find some nvcameradeamon traces in /var/log/syslog.

does it read from the onboard camera if you run nvgstcapture ?

Hi,

Thank you for your replies.

Yes it does. The camera works without problems with other algorithms but not with this one.

I don’t think the camera is being used by another process. I’ve tried rebooting already but no luck. Not sure what you mean by configuring the onboard camera. When would I have it configured? I’m pretty sure I never used that --set-ctrl flag. Where would I use it?

I’ll paste down here what I think might be relevant from the /var/log/syslog:

Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: nvcamera-daemon started new client thread = 548379541984
Jun 22 16:04:22 tegra-ubuntu rc.local[814]: need at least a destination address
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) USB Sensors :  1 CSI Sensors :  1
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) getSource successful
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: Available Sensor modes :
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: W= 2592 H= 1944 FR= 30.000000
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: W= 2592 H= 1458 FR= 30.000000
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: W= 1280 H= 720 FR= 120.000000
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) CreateSession Successful
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) Shared Memory: mmap address= 0x7fac709000
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) getSource successful
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) Sensor Metadata: Available :  0 Sensor Metadata: W :  5184 Sensor Metadata: H :  0
Jun 22 16:04:22 tegra-ubuntu kernel: [100691.666021] misc tegra_camera_ctrl: ISO BW req 2147483647 > 4687500 (max) capping to max
Jun 22 16:04:22 tegra-ubuntu kernel: [100691.674215] misc tegra_camera_ctrl: vi_v4l2_update_isobw: requested iso bw is larger than max
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) New Resolution W = 2592 H = 1458
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 93
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 94
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 96
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 97
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 99
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 100
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 102
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 103
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 105
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 106
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 108
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 109
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 111
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 112
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 123
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 124
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 126
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 127
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_BAYER fd = 129
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: RECEIVED REGISTER_BUFFER_META fd = 130
Jun 22 16:04:22 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) REQ_NVCAM_ENABLE_METADATA Enabled=0
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 128
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 130
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 125
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 127
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 113
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 124
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 110
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 112
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 107
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 109
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 104
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 106
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 101
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 103
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 98
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 100
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 95
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 97
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER fd = 92
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: CLOSING REGISTER_BUFFER_META fd = 94
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) Closing Client Connection Thread: nbytes 820
Jun 22 16:04:23 tegra-ubuntu nvcamera-daemon[3401]: (548379541984) Capture Done: Thread Exiting....
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.380086] nvcamera-daemon[4564]: unhandled level 2 translation fault (11) at 0x00000060, esr 0x92000006
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.389749] pgd = ffffffc1995b1000
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.393249] [00000060] *pgd=0000000254d19003, *pud=0000000254d19003, *pmd=0000000000000000
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.401640] 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.403217] CPU: 4 PID: 4564 Comm: nvcamera-daemon Tainted: G        W       4.4.38-tegra #1
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.411736] Hardware name: quill (DT)
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.415491] task: ffffffc1e618e400 ti: ffffffc0093d0000 task.ti: ffffffc0093d0000
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.423062] PC is at 0x7f9e5213c0
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.426466] LR is at 0x7f9e5213b8
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.429874] pc : [<0000007f9e5213c0>] lr : [<0000007f9e5213b8>] pstate: 80000000
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.437362] sp : 0000007f76ff9f20
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.440759] x29: 0000007f76ffe9d0 x28: 0000007f76fff1e0 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.446212] x27: 0000007faa2446c0 x26: 0000007f76ffe300 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.451686] x25: 0000007fb01ae6f0 x24: 0000007faf7d1000 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.457150] x23: 0000007fafe91000 x22: 0000000000000000 
Jun 22 16:04:23 tegra-ubuntu rc.local[814]: need at least a destination address
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.462585] x21: 0000000000000001 x20: 0000007f2548cf20 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.468016] x19: 0000000000000001 x18: 0000000000000a03 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471351] x17: 0000007faf7b42c0 x16: 0000007f9ee90ef8 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471383] x15: 0000007fb01be000 x14: 0000007fae16e9f8 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471405] x13: 0000007fae16e98c x12: 0000007fae16e93c 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471418] x11: 0000007fae16e8e0 x10: 0000007fae16e874 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471433] x9 : 0000007fae16e81c x8 : 0000000000000018 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471436] x7 : 00000000000011d4 x6 : 0000000000000000 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471439] x5 : 0000007fac735d10 x4 : 0000007f9ef6fbd8 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471443] x3 : 0000000000000000 x2 : 0000000000000018 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471448] x1 : 000000000000001b x0 : 0000000000000000 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471449] 
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471458] Library at 0x7f9e5213c0: 0x7f9d5de000 /usr/lib/aarch64-linux-gnu/tegra/libnvidia-eglcore.so.28.2.0
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471461] Library at 0x7f9e5213b8: 0x7f9d5de000 /usr/lib/aarch64-linux-gnu/tegra/libnvidia-eglcore.so.28.2.0
Jun 22 16:04:23 tegra-ubuntu kernel: [100692.471462] vdso base = 0x7fb01bd000
Jun 22 16:04:23 tegra-ubuntu systemd[1]: nvcamera-daemon.service: Main process exited, code=killed, status=11/SEGV
Jun 22 16:04:24 tegra-ubuntu rc.local[814]: need at least a destination address
Jun 22 16:04:25 tegra-ubuntu rc.local[814]: need at least a destination address
Jun 22 16:04:25 tegra-ubuntu systemd[1]: nvcamera-daemon.service: Unit entered failed state.
Jun 22 16:04:25 tegra-ubuntu systemd[1]: nvcamera-daemon.service: Failed with result 'signal'.
Jun 22 16:04:26 tegra-ubuntu systemd[1]: nvcamera-daemon.service: Service hold-off time over, scheduling restart.
Jun 22 16:04:26 tegra-ubuntu systemd[1]: Stopped nvcamera daemon.
Jun 22 16:04:26 tegra-ubuntu systemd[1]: Started nvcamera daemon.
Jun 22 16:04:26 tegra-ubuntu nvcamera-daemon[4599]: Started nvcamera daemon...
Jun 22 16:04:26 tegra-ubuntu nvcamera-daemon[4599]: nvcamera-daemon listening for clients to connect...
Jun 22 16:04:26 tegra-ubuntu rc.local[814]: need at least a destination address
Jun 22 16:05:19 tegra-ubuntu rc.local[814]: message repeated 53 times: [ need at least a destination address]

Any idea of why this is happening? I can run the algorithms with an external webcam without any problem, but something is happening with the onboard camera and I can’t figure out what.

Thanks

Seems the capture works, but a crash happens when it is closed.
If you’re running R28.1, you may check this.

Not sure this is related, but I notice error messages from rc.local:

Jun 22 16:04:26 tegra-ubuntu rc.local[814]: need at least a destination address

. Seems you have a startup script having problems…you may also investigate that.

Hi,

any luck with solving this issue? Having the same issue with my TX2 and its onboard camera.

Setup with JetPack3.2, opencv-3.4.1 and python-2.7.

Camera works just fine when I use opencv with gstreamer in a python console. But when using object_detection_video.py from mentioned Github repo i get the same error message.

Can’t provide any additional info as it’s all the exact same problem, so just wanted to check in if anyone found a solution to this.

I am also having the same issue… :(

Hi, scbean

Have you checked the suggestion of Honey in comment #5?
Thanks.

I think I did what #5 suggested by replacing the binary file and setting permissions for it. Now I get this:

VIDEOIO ERROR: V4L: device nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720,format=(string)I420, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink: Unable to query number of channels
Killed

Hi,

Do you build OpenCV from source.

Please noticed that the default OpenCV in JetPack doesn’t enable V4L support.
Please build it with the script here:
[url]https://github.com/AastaNV/JEP/blob/master/script/install_opencv3.4.0.sh[/url]

Thanks.