[Motmot] Fview color question
Andrew Straw
astraw at caltech.edu
Tue Jun 15 16:59:11 UTC 2010
Hi James,
These "generic failure" errors sometimes show up for no discernable
reason, but I find that re-plugging the camera usually fixes them. Did
you try that?
-Andrew
James Waters wrote:
> Andrew, Trying the YU411 or 422 didn't work:
>
> FView Error:
> the camera thread appears to have died unexpectedly. The log file
> will have more details.
>
> /usr/lib/pymodules/python2.6/motmot/cam_iface/choose.py:14:
> UserWarning: only mega backend supported
> warnings.warn('only mega backend supported')
> /usr/lib/pymodules/python2.6/motmot/cam_iface/choose.py:14:
> UserWarning: only mega backend supported
> warnings.warn('only mega backend supported')
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line
> 1702, in OnUpdateROIPanel
> result=self._get_lbrt()
> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line
> 1689, in _get_lbrt
> return self._mainthread_roi
> AttributeError: 'App' object has no attribute '_mainthread_roi'
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.6/threading.py", line 484, in run
> self.__target(*self.__args, **self.__kwargs)
> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line 193,
> in grab_func
> cam.start_camera()
> File "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
> line 356, in start_camera
> _check_error()
> File "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
> line 292, in _check_error
> raise exc_type(err_str)
> CamIFaceError: /build/buildd/libcamiface-0.5.8/src/cam_iface_dc1394.c
> (1215): libdc1394 err -1: Generic failure
>
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.6/threading.py", line 484, in run
> self.__target(*self.__args, **self.__kwargs)
> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line 193,
> in grab_func
> cam.start_camera()
> File "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
> line 356, in start_camera
> _check_error()
> File "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
> line 292, in _check_error
> raise exc_type(err_str)
> CamIFaceError: /build/buildd/libcamiface-0.5.8/src/cam_iface_dc1394.c
> (1215): libdc1394 err -1: Generic failure
>
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.6/threading.py", line 484, in run
> self.__target(*self.__args, **self.__kwargs)
> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line 193,
> in grab_func
> cam.start_camera()
> File "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
> line 356, in start_camera
> _check_error()
> File "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
> line 292, in _check_error
> raise exc_type(err_str)
> CamIFaceError: /build/buildd/libcamiface-0.5.8/src/cam_iface_dc1394.c
> (1215): libdc1394 err -1: Generic failure
>
>
> On Tue, Jun 15, 2010 at 8:29 AM, Andrew Straw <astraw at caltech.edu> wrote:
>
>> Hi James,
>>
>> The YUV422 and YUV411 color modes should work. If they don't, can you send the error message associated with them?
>>
>> Thanks,
>> Andrew
>>
>> On Mon, 14 Jun 2010 19:23:42 -0700, James Waters <james.waters at asu.edu> wrote:
>>
>>> Andrew,
>>>
>>> Here are a few screen captures of what I'm looking at.
>>>
>>> james
>>>
>>> On Mon, Jun 14, 2010 at 6:56 PM, Andrew Straw <astraw at caltech.edu> wrote:
>>>
>>>> Hi james, can you copy exactly the color coding string and email it? In
>>>> general, fview records in color just fine, just the display doesn't
>>>>
>>> (yet)
>>>
>>>> show color.
>>>>
>>>> - Andrew
>>>>
>>>> ----- Original message -----
>>>>
>>>>> We need to record video of ant colonies in FView that will be used for
>>>>> two things, 1) Ctrax tracking, and 2) 'manual' frame by frame
>>>>> behavioral observations. That second project requires that the ants
>>>>> be individually marked with color dots -- so we need to record color
>>>>> video.
>>>>>
>>>>> We're using a PtGrey Flea2 and Ubuntu 10.04 and all the latest
>>>>> releases. When initializing the camera and choosing a ...MONO8 video
>>>>> mode, it works, but this is grayscale. We get the following error
>>>>> message when trying to initialize the camera using any RGB video mode:
>>>>>
>>>>> Error opening camera
>>>>> mega backend error (/build/buildd/libcamiface - 0.5.8/src/
>>>>> cam_iface_mega.c 305): /build/buildd/libcamiface-0.5.8/src/
>>>>> cam_iface_dc1394.c (1118): Currently unsupported color coding
>>>>>
>>>>> Here is the fview.log:
>>>>>
>>>>> /usr/lib/pymodules/python2.6/motmot/cam_iface/choose.py:14:
>>>>> UserWarning: only mega backend supported
>>>>> warnings.warn('only mega backend supported')
>>>>> /usr/lib/pymodules/python2.6/motmot/cam_iface/choose.py:14:
>>>>> UserWarning: only mega backend supported
>>>>> warnings.warn('only mega backend supported')
>>>>> Traceback (most recent call last):
>>>>> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line
>>>>> 1702, in OnUpdateROIPanel
>>>>> result=self._get_lbrt()
>>>>> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line
>>>>> 1689, in _get_lbrt
>>>>> return self._mainthread_roi
>>>>> AttributeError: 'App' object has no attribute '_mainthread_roi'
>>>>> Exception in thread Thread-1:
>>>>> Traceback (most recent call last):
>>>>> File "/usr/lib/python2.6/threading.py", line 532, in
>>>>>
>>> __bootstrap_inner
>>>
>>>>> self.run()
>>>>> File "/usr/lib/python2.6/threading.py", line 484, in run
>>>>> self.__target(*self.__args, **self.__kwargs)
>>>>> File "/usr/lib/pymodules/python2.6/motmot/fview/fview.py", line
>>>>>
>>> 193,
>>>
>>>>> in grab_func
>>>>> cam.start_camera()
>>>>> File
>>>>> "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
>>>>> line 356, in start_camera _check_error()
>>>>> File
>>>>> "/usr/lib/pymodules/python2.6/motmot/cam_iface/cam_iface_ctypes.py",
>>>>> line 292, in _check_error raise exc_type(err_str)
>>>>> CamIFaceError: /build/buildd/libcamiface-0.5.8/src/cam_iface_dc1394.c
>>>>> (1215): libdc1394 err -1: Generic failure
>>>>>
>>>>>
>>>>> Is there any chance there is a quick fix for this? If color recording
>>>>> is not possible with this camera in FView at this time... can you
>>>>> recommend any other programs? If we absolutely had to, we could
>>>>> record grayscale video in FView for use with Ctrax and then record a
>>>>> second video in color in another program for the other
>>>>> (color-necessary) analysis... but it would be really preferable to
>>>>> have these data come from the same source video.
>>>>>
>>>>> Thanks for your help!
>>>>>
>>>>> James
>>>>>
>>>>> --
>>>>> ________________________
>>>>> School of Life Sciences
>>>>> Arizona State University
>>>>> PO Box 874601
>>>>> Tempe, AZ 85287-4601
>>>>> cell: (480) 388-0728
>>>>> http://solsgrads.asu.edu/waters
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>
>
>
>
--
Andrew D. Straw, Ph.D.
California Institute of Technology
http://www.its.caltech.edu/~astraw/
More information about the Motmot
mailing list