I am trying to access a camera through the python API, using Acquire from a Camera (Getting Started with CVBpy).
All the examples (image, emu camera) works fine but the one to access the camera.
I am using Visual Studio 2017 with Anaconda 5.2 (Python 3.6) with files manually copied to “site-packages” because I didn’t know why anaconda doeans’t see the environmental path.
When running this line:
vin_device = cvb.DeviceFactory.open(cvb.install_path() + “/drivers/GenICam.vin”)
I get the error:
ValueError: failed to load device object
Exception ignored in: <generator object using_format at 0x00000200606670A0>
Traceback (most recent call last):
File “D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Python\Core\Packages\ptvsd\wrapper.py”, line 859, in using_format
SystemError: error return without exception set
I can access the device through CVB Management so the device is connected and accessible.
What can I do to fix it and connect to the device?