You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi, I'm getting the following exception when trying to get an image using the fetch_buffer method:
Exception has occurred: NotImplementedException GenTL exception: Requested operation not implemented. (Message from the source: GC_ERR_NOT_IMPLEMENTED) (ID: -1003)
File "C:\Users\jv\source\repos\P1108_Rosalind\Rosalind\Camera\CoreCamera.py", line 110, in __init__
arrFrame, oTimestamp = self.getLastFrame()
File "C:\Users\jv\source\repos\P1108_Rosalind\Rosalind\Camera\CoreCamera.py", line 275, in getLastFrame
buffer = self.m_oImageAcq.fetch_buffer()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 2563, in fetch_buffer
logger=self._logger
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 1094, in __init__
logger=self._logger
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 1227, in _build_payload
buffer=buffer, node_map=node_map, logger=logger
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 1403, in __init__
buffer=buffer, node_map=node_map
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 1326, in _build_component
logger=self._logger
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 834, in __init__
self._data = self._to_np_array(proxy)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\harvesters\core.py", line 843, in _to_np_array
nr_bytes += self._buffer.padding_y
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\genicam\gentl.py", line 4383, in _get_padding_y
return _gentl.Buffer__get_padding_y(self)
_gentl.NotImplementedException: GenTL exception: Requested operation not implemented. (Message from the source: GC_ERR_NOT_IMPLEMENTED) (ID: -1003)
I'm not sure why this is happening, everything was working fine a couple of days ago. The camera is also working, tried using the manufacturer software successfully.
To Reproduce
This is how I call it, m_oImageAcq is an image acquirer that has been initialised:
def getLastFrame (self):
m_arrLastFrame = np.zeros((1920, 1200))
if not self.m_oImageAcq:
return m_arrLastFrame
if not self.m_oImageAcq.is_acquiring_images():
return m_arrLastFrame
buffer = self.m_oImageAcq.fetch_buffer()
component = buffer.payload.components[0]
# Reshape the NumPy array into a 2D array:
m_arrLastFrame = component.data.reshape(component.height, component.width)
logging.info("Image frame acquired")
return m_arrLastFrame
Desktop:
OS: Windows 10
Python: 3.7
Harvester: 1.2.3
The text was updated successfully, but these errors were encountered:
@jvieira88 Hi. Thank you for the information. I have just committed the fix to branch _issue_172. Could you try that out and tell me if it fixed the issue, please? /Kazunari
Describe the bug
Hi, I'm getting the following exception when trying to get an image using the fetch_buffer method:
Exception has occurred: NotImplementedException GenTL exception: Requested operation not implemented. (Message from the source: GC_ERR_NOT_IMPLEMENTED) (ID: -1003)
I'm not sure why this is happening, everything was working fine a couple of days ago. The camera is also working, tried using the manufacturer software successfully.
To Reproduce
This is how I call it, m_oImageAcq is an image acquirer that has been initialised:
Desktop:
The text was updated successfully, but these errors were encountered: