Comments (13)
Hi Ben
You are right, there are two of them... thus, for exposure please use
IC_EnableAutoCameraProperty(hGrabber, PROP_CAM_EXPOSURE, 0); // disable autoexposure
That should solve the issue.
I will fix that issue in the next tisgrabber.dll by giving a different name to the auto max exposure.
Stefan
from ic-imaging-control-samples.
Stefan,
Sorry for the delayed reply. Your solution worked, thank you very much!
Ben
from ic-imaging-control-samples.
Hi @TIS-Stefan,
I have the exact same issue with the exposure setting in Python. Camera.SetPropertySwitch('Exposure', 'Auto', 0)
does not work. Where am I supposed to use IC_EnableAutoCameraProperty(hGrabber, PROP_CAM_EXPOSURE, 0);
?
Tim
from ic-imaging-control-samples.
Where am I supposed to use IC_EnableAutoCameraProperty(hGrabber, PROP_CAM_EXPOSURE, 0);?
You are suppose to write that on a position in your code, on which you want to disable the automatic of Exposure.
Ok sorry, that is not that helpful. I would place the call after you have opened the camera.
Stefan
from ic-imaging-control-samples.
Where am I supposed to use IC_EnableAutoCameraProperty(hGrabber, PROP_CAM_EXPOSURE, 0);?
You are suppose to write that on a position in your code, on which you want to disable the automatic of Exposure.
Ok sorry, that is not that helpful. I would place the call after you have opened the camera.Stefan
Thanks for your reply, but IC_EnableAutoCameraProperty
doesn't appear to be a function implemented in tisgrabber.py
from ic-imaging-control-samples.
Hello
You may implement that on your own, that should not be too hard. Would that be ok for you?
Stefan
from ic-imaging-control-samples.
Hello Stefan,
I've tried implementing it for a couple of hours now, without success. Could you please give me some pointers as to how to do this?
Am I correct to assume that I first have to create a reference to the imported method IC_EnableAutoCameraProperty
in the TIS_GrabberDLL class,
like SetAutoExposureSwitch = __tisgrabber.IC_EnableAutoCameraProperty
and then set the restype
and argtypes
on SetAutoExposureSwitch
and call it in a newly created method in TIS_CAM like so error = TIS_GrabberDLL.SetAutoExposureSwitch(...)
?
If so then I coudn't get it to work. Where do I for example get PROP_CAM_EXPOSURE
from?
Tim
from ic-imaging-control-samples.
Hello Tim
Do you really depend on Python?
However.
Do you need to disable the automatic once and never enable it? If yes, then you may use the property dialog to disable the automatic and save all setting in a DeviceState file, as shown in the samples.
You can load this at program start and you are done.
(I write this in this way, because I am at home and have not all possibilities as in my office)
Is this a way?
Stefan
from ic-imaging-control-samples.
Hello Stefan,
unfortunately the whole application I'm using this for is written in Python, so in the long run having this as part of the Python bindings would be helpful.
But thank you for this tip! Setting the property manually works well and is definitely good enough for development purposes right now.
Would it be possible to include the auto exposure setting in some future release, when you get the chance?
Tim
from ic-imaging-control-samples.
Hi Tim
I will try to download and check by tomorrow.
Stefan
from ic-imaging-control-samples.
Hi Tim
C to Python drives my crazy....
I updated the tisgrabber.py with two new functions. They are used as
Camera.enableVideoAutoProperty(9,0) # Gain Auto off
Camera.enableCameraAutoProperty(4,0) # Gain Auto off
Do not be shocked by magic numbers. They are from TISGrabberGlobalDefs.h file.
I hope, this helps.
from ic-imaging-control-samples.
Hi Stefan,
thanks, this definitely helps. It works now! Sorry for the inconvenience...
Tim
from ic-imaging-control-samples.
Hi Tim
no need to excuse. It was my error and I had to find a solution.
Stefan
from ic-imaging-control-samples.
Related Issues (20)
- Try to reach the framerate limit of camera HOT 9
- Implementing hardware trigger code using "bursts" HOT 12
- Implement IEEE 1588 PTP HOT 14
- DFK37BUX287:WDR function through tisgrabber.py HOT 9
- Confusion about version of tisgrabber.dll HOT 3
- Framesnapsink/Framequesink HOT 3
- Noise Reduction HOT 18
- Taking images after external trigger for a fixed time HOT 13
- How to operate multiple cameras at the same time get image through python HOT 2
- Knowing when callback fails HOT 8
- Detailed trigger mode setting HOT 2
- Capture AVI program is not working HOT 12
- Activate/deactivate external trigger using python script HOT 4
- Exception: A set operation on a VCDProperty object failed HOT 10
- IC_StartLive fail HOT 3
- Cannot get Map Strings for Strobe Mode in python HOT 18
- Get crashed on create MediaStreamSink object in C# in .net core 7 HOT 2
- Web browser stream HOT 5
- Getting the exposure time HOT 3
- IC Imaging source upgrade to 3.5 from 3.4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ic-imaging-control-samples.