On Apr 30, 12:58 pm, Arjun <
arjun.che...@gmail.com> wrote:
> As an update:
>
> I've managed to access most of the 'features' of the camera -- using
> getattr() and setattr() calls. Everything works as expected with the
> camera settings -- although it felt for a bit strange to be using
> these handles for the cam.features.
>
> If this is how it is meant to be accessed anyhow with pydc1394, then I
> guess it obviates the reply to my previous mail. Most of the queries
> then get shifted over to the manual of the camera instead.
>
> Thanks again!
>
> Cheers,
> Arjun
Hi Arjun,
You do not have to call the getattr(), setattr() functions normally.
If you have a camera set up, let us say:
from pydc1394 import DC1394Library, Camera
lib = DC1394Library()
cam = Camera(lib, lib.cameralist[0]['guid'])
Then:
print cam.features
gives you the list of available features, and:
print cam.shutter.range, cam.shutter.val
should tell you the possible and actual shutter values. (First is a
min, max tuple.)
cam.shutter.val = 100
Should set the shutter value on the camera. This set operation will
call the setter(), and send the data to the camera.
Sometimes the range is (0L,0L), thus no value can be set, then an
error comes up. These properties (such as the temperature) may be only
turned ON or OFF (usually this activates or deactivates the Peltier
cooling of a camera).
I hope this helped to start up a bit.
Tomio