I have read Firewire 1394 camera with OpenCV, Firewire camera with OpenCv 2.4. not working, ctypes error: libdc1394 error: Failed to initialize libdc1394 but I have found no working solution up to now.
How to open a Firewire dc1394 camera on Windows with OpenCV?
I installed it with pip install opencv-python
. Is there a specific version of OpenCV to install to use the libdc1394 on Windows?
This code:
import cv2
cam = cv2.VideoCapture(cv2.CAP_FIREWIRE + 0) # like in https://answers.opencv.org/question/203165/opencv-3-python-3-firewire-cameras/
# or is it this instead:
# cam = cv2.VideoCapture(0, cv2.CAP_FIREWIRE)
while True:
ret_val, img = cam.read()
cv2.imshow('test', img)
if cv2.waitKey(1) == 27:
break # esc to quit
does not find any device. Is there something specific to be able to open FireWire cameras with OpenCV Python for Windows?
(see also this opencv.org question)