OpenCV: libdc1394 error: Failed to initialize libdc1394

后端 未结 2 1844
感动是毒
感动是毒 2020-12-28 20:00

I installed OpenCV correctly on Ubuntu 14.04. However, when I run: import cv2 I get this error message:

>>> import cv2
libdc1394 error         


        
相关标签:
2条回答
  • 2020-12-28 20:07

    I vaguely remember a similar problem I once had. It has something to do with user-level permission to firewire devices. You need to add a new udev rule. Create a file /etc/udev/rules.d/raw1394.rules and add the following line:

    KERNEL=="raw1394", GROUP="video"
    

    Details can be found here and here.

    0 讨论(0)
  • 2020-12-28 20:26

    Maybe disabling the driver isn't the best solution, but so far this hasn't given me any problems and was the easiest way I found to solve the issue:

    sudo ln /dev/null /dev/raw1394
    

    Attention: It is not a permanent solution.

    0 讨论(0)
提交回复
热议问题