Coder Social home page Coder Social logo

Comments (13)

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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.

 avatar commented on July 23, 2024

Stefan,

Sorry for the delayed reply. Your solution worked, thank you very much!

Ben

from ic-imaging-control-samples.

thladnik avatar thladnik commented on July 23, 2024

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.

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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.

thladnik avatar thladnik commented on July 23, 2024

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.

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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.

thladnik avatar thladnik commented on July 23, 2024

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.

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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.

thladnik avatar thladnik commented on July 23, 2024

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.

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

Hi Tim

I will try to download and check by tomorrow.

Stefan

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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.

thladnik avatar thladnik commented on July 23, 2024

Hi Stefan,

thanks, this definitely helps. It works now! Sorry for the inconvenience...

Tim

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.