MasteringOpenCV / code

Code for the book "Mastering OpenCV with Practical Computer Vision Projects" by Packt Publishing 2012.
Other
2.73k stars 1.65k forks source link

OpenCV: libdc1394 error: Failed to initialize libdc1394 #48

Closed ghost closed 9 years ago

ghost commented 9 years ago

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

>>> import cv2
libdc1394 error: Failed to initialize libdc1394

I read the answers fro a similar question, but all of them assume the existence of this file which I don't have: /dev/raw1394. So I installed the library:

sudo apt-get install libdc1394-22-dev libdc1394-22 libdc1394-utils

But still get the same error.

Note that this answer is the only one that works for me, however I can not pick it because I need to use camera in my application.

How can I resolve this ?

Thank you in advance. Begueradj

shervinemami commented 9 years ago

Hi Begueradj,

This is the bug section for the book rather than for OpenCV in general. So I think you should search the web about firewire cameras in OpenCV using python and if you don't find the answer then ask on "answers.opencv.org".

Cheers, Shervin.

ghost commented 9 years ago

@shervinemami I'm very sorry, I did not even know I was posting after a book. Sorry, I'm not familiar with this website yet. You can remove my question.