-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting the exposure time #73
Comments
Hallo die PropertyMap Dokumentation ist unter https://www.theimagingsource.com/en-us/documentation/ic4python/technical-device-properties.html. Die Eigenschaften werde mit grabber.device_property_map.set_value(ic4.PropId.EXPOSURE_AUTO, "Off")
grabber.device_property_map.set_value(ic4.PropId.EXPOSURE_TIME, 1000.0) gesetzt und mit exptime = grabber.device_property_map.get_value_float(ic4.PropId.EXPOSURE_TIME) gelesen werden. (Ich habe das nicht ausprobiert.) Stefan |
Thanks for the response. I'm using the simple version with creating a ic object. Do you know what i can do if i don't use a grabber? Or how to easy implement a grabber? Create the IC Imaging Control object.
|
Hallo Entschuldigung, ich war schon bei IC Imaging Control 4. Die Lösung für tisgrabber.dll ist: exposure = ctypes.c_float()
ic.IC_GetPropertyAbsoluteValue(hGrabber, tis.T("Exposure"), tis.T("Value"),
exposure) Das komplette Beispiel ist unter https://github.com/TheImagingSource/IC-Imaging-Control-Samples/blob/master/Python/tisgrabber/samples/05-properties.py |
Hallo Stefan,
vielleciht kannst du mir weiterhelfen. In meinem Porgramm kann ich die device properties aufrufen und darüber auch die exposure time setzten. Dies ermöglicht mir die folgenden Zeilen:
def ShowProperties():
if ic.DeviceValid is True:
ic.ShowPropertyDialog()
ic.SaveDeviceStateToFile("device.xml")
Nun möchte ich das die dabei gesetzte exposure time in einer python variable gespeichert wird. ich weiß jedoch nicht wie ich darauf zugreifen kann. Hast du eine Idee für mich? Danke schonmal.
The text was updated successfully, but these errors were encountered: