Open nparker2020 opened 8 months ago
I found the root of the issue. The call of setup_pixel_format AFTER the XML is loaded is the true cause of the exception.
While my issue is technically resolved if I comment that line out, can somebody explain why setting the pixel format after loading settings from XML causes an exception?
Thank you.
I was unable to reproduce the issue, can you let me know the following: -camera model -camera firmware -OS -VimbaX version
Teresa,
Thanks for looking into this. FYI I just re-tried this today and I am no longer getting this same issue. Everyone works fine now even if I set the PixelFormat after loading from XML. Not sure what has changed since I was experiencing this issue.
Still though, here's my system info:
Camera Model: Allied Vision 1800 u-1240c Camera Firmware: 12.0.00611A22 OS: Ubuntu 22.04 VimbaX Version: 2023-2
Hello,
I am modifying the asynchronous_grab_opencv.py example to set the camera's configuration from an XML file that I have, which contains exposure / color balance configuration that I like.
However, when I try to call cam.load_settings() I get an exception:
vmbpy.error.VmbFeatureError: Invalid access while calling 'set()' of Feature 'PixelFormat'. Read access: allowed. Write access: not allowed.
I have added a call to set the access mode of the camera to "Full", in the get_camera method (it's the only place where the cam object is not in a with context block)
I have checked that the access mode is still set to Full later when I call load_settings. I am at a loss as to why this doesn't work, I can change the PixelFormat no problem in VimbaXViewr, that's how I generated this XML file in the first place.
Any help would be appreciated. Thanks in advance.
Here is the python script in its entirety: