pypylon
pypylon copied to clipboard
_genicam.OutOfRangeException: The difference between Value = 450 and Min = 32 must be dividable without rest by Inc = 32. : OutOfRangeException thrown in node 'Width' while calling 'Width.SetValue()' (file 'integert.h', line 79)
I work with acA2500-60uc camera.
When i set Image ROI:
#Image ROI Configuration
camera.Width.SetValue(1080)
camera.Height.SetValue(480)
camera.OffsetX.SetValue(32)
camera.OffsetY.SetValue(32)
There will be an error:
Traceback (most recent call last):
File "D:/Graduation Design/GrabAFrame.py", line 14, in
I wonder if the value i set must be dividable without rest by Inc = 32 or i missed something?
yes, some camera sensor has increment.
There is a function to readout given increment
camera.Height.GetIInc() something like this.
ok. I will try it. Thanks a lot.