jordens / pydc1394

python libdc1394 wrapper
GNU Lesser General Public License v3.0
3 stars 9 forks source link

Format7 error #5

Closed eghbalhosseini closed 6 years ago

eghbalhosseini commented 6 years ago

Hi I am trying to capture at high rate(>100Hz) on point grey grasshopper. My understanding is that I need to change FORMAT7 packet size to do that. but I am running to the following issue:

from pydc1394 import Camera, Camera2, Format7, Mode cam=camera2.Camera() camprp=Format7(cam,7)

ArgumentError Traceback (most recent call last)

in () 1 cam=camera2.Camera() 2 camprp=Format7(cam,7) ----> 3 camprp.color_coding /Library/Python/2.7/site-packages/pydc1394-2.0-py2.7.egg/pydc1394/camera2.pyc in color_coding(self) 777 cc = color_coding_t() 778 dll.dc1394_format7_get_color_coding( --> 779 self._cam, self._mode_id, byref(cc)) 780 return color_coding_vals[cc.value] 781 **ArgumentError: argument 1: : expected LP_camera_t instance instead of Camera** I can't tell if it is due to how I define Format7 instance or something else. Thanks, Eghbal
jordens commented 6 years ago

As the documentation says: https://github.com/jordens/pydc1394/blob/master/pydc1394/camera2.py#L586