genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
501 stars 86 forks source link

Acquiring images #356

Open mwaleed34 opened 2 years ago

mwaleed34 commented 2 years ago

What is the goal that you want to achieve by the request? I am using harvesters library to access camera but i am not be able to acquire camera. my code is as following: from harvesters.core import Harvester h = Harvester() h.add_file('C:/Program Files/Imperx/Imperx Camera SDK/bin/win64_x64/IpxCTI.cti') h.update() h.device_info_list() ia = h.create(0)

but i am having the following erro

NotImplementedException Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_37004\592497928.py in ----> 1 ia = h.create(0)

~.conda\envs\genicam\lib\site-packages\harvesters\core.py in create(self, search_key, config) 2897 assert parent 2898 device_proxy = Device(module=raw_device, parent=parent) -> 2899 return self._create_acquirer(device_proxy=device_proxy, config=config) 2900 2901 def _create_acquirer(self, *, device_proxy: Device,

~.conda\envs\genicam\lib\site-packages\harvesters\core.py in _create_acquirer(self, device_proxy, config, file_dict) 2922 else: 2923 _logger.debug( -> 2924 'opened: {}'.format(_family_tree(deviceproxy))) 2925 2926 if config:

~.conda\envs\genicam\lib\site-packages\harvesters\core.py in _familytree(node, tree) 164 165 try: --> 166 name = node.id 167 except AttributeError: 168 name = str(node)

~.conda\envs\genicam\lib\site-packages\harvesters\core.py in getattr(self, attribute) 209 getattr(type(self._source_object), attribute, None), 210 property): --> 211 return getattr(self._source_object, attribute) 212 else: 213 def m(*args):

~.conda\envs\genicam\lib\site-packages\genicam\gentl.py in _getid(self) 3260 3261 """ -> 3262 return _gentl.Device__getid(self) 3263 3264

NotImplementedException: GenTL exception: Requested operation not implemented. (Message from the source: Unknown DEVICE_INFO_CMD 0: Requested operation not implemented) (ID: -1003)