cihologramas / pyueye

Python wrapper for ueye cameras
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Error loading camera configuration file #15

Open binflo13 opened 5 years ago

binflo13 commented 5 years ago

Good morning,

I´m trying to load a camera configuration file (.ini) with the following function:

pParam="config.ini" ueye.is_ParameterSet(hCam, ueye.IS_PARAMETERSET_CMD_LOAD_FILE, pParam, 0)

But I get this error:

File "E:/Proyectos/PruebaIDS/FreerunMode.py", line 55, in <module> ueye.is_ParameterSet(hCam, ueye.IS_PARAMETERSET_CMD_LOAD_FILE, pParam, 0) File "E:\Proyectos\PruebaIDS\venv\lib\site-packages\pyueye\ueye.py", line 8271, in is_ParameterSet _pParam = _pointer_cast(pParam, ctypes.c_void_p) File "E:\Proyectos\PruebaIDS\venv\lib\site-packages\pyueye\ueye.py", line 102, in _pointer_cast _to_obj = ctypes.cast(ctypes.pointer(from_obj), to_type) TypeError: _type_ must have storage info Am I passing the right parameters to the function?