Coder Social home page Coder Social logo

Comments (5)

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024

Hello

I think, the sample in https://github.com/TheImagingSource/tiscamera/blob/master/examples/python/01-list-properties.py is exactly, what you need.

Stefan

from ic-imaging-control-samples.

julienGautier77 avatar julienGautier77 commented on August 26, 2024

Hello
Thanks for your answer but I use a window sytem and i can not use Gi and gst
I only use this repesitorie : https://github.com/TheImagingSource/IC-Imaging-Control-Samples/tree/master/Python
In particulary the code tisgrabber.py

Thanks in advance

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024

Ah

now I understand. I mixed up the Linux and Windows repositories.
I am very sorry, but the Python port is not as sophisticated as the IC Imaging Control .NET and Classlibrary SDK. Therefore, there is no function for listing all camera properties in.
I would like to suggest to install the IC Imaging Control SDK from https://www.theimagingsource.com/support/downloads-for-windows/software-development-kits-sdks/icimagingcontrol/. It installs the "VCD Property Inspector" and provides a list of all properties. However, you can only copy the property names from there, but you can not enumerate the properties dynamically.

I would have to implement such functionality in the tisgrabber.dll first and port it to Python.

Stefan

from ic-imaging-control-samples.

julienGautier77 avatar julienGautier77 commented on August 26, 2024

Thanks
If finnally find a solution in the tisgrabber.py program I add
in the TIS\cam class :
def GetPropertyRange(self,Property,Element):

        ValueMax = C.c_float()
        ValueMin = C.c_float()
        error = TIS_GrabberDLL.GetPropertyRange(self._handle,
                                                self.s(Property),self.s(Element),
                                               ValueMin,ValueMax)
        
        return (ValueMin.value,ValueMax.value)

and in the TIS_GrabberDLL class
GetPropertyRange=__tisgrabber.IC_GetPropertyAbsoluteValueRange
GetPropertyRange.restype= C.c_int
GetPropertyRange.argtypes = (GrabberHandlePtr,
C.c_char_p,
C.c_char_p,
C.POINTER(C.c_float),
C.POINTER(C.c_float))

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024

Perfect!

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.