-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set image size to maxWidth and maxHeight #29
Comments
@boitumeloruf from the error code it looks like you are trying to set a max value that is too large for your device. Try changing your 4096 max width value to 3344 from the error output. |
Yes, with a width of 3344 and a corresponding height value it works. But I actually want to set it to the maximum value of the camera which is 4096x3000 (see the lines above). I have noticed that when I change the |
@boitumeloruf it could be. I'm pretty sure at start up IDS peak cameras are smart enough to auto-adjust the max size available based on the network. |
Same issue, here, despite setting DeviceLinkThroughputLimit to the maximum value. |
@danieldugas happy to help out if you can share any logs of the error. It might also be a frame rate thing where the size of the image is limited if the frame rate is too high |
Thanks! I'd been away last week but tried again with a different network setup and it seemed to let me use the full resolution this time without error. I still find it strange, since the error was happening in this ROS driver but not when using IDS Peak Cockpit. Maybe a combination of a network issue and a driver issue? I can't reproduce for now, if it happens again I'll save the logs and past them here. From memory, this is the line which was failing https://github.com/SherifN/peak_cam/blob/master/src/peak_cam.cpp#L184 , with an error message which is not inside this codebase (so must be defined inside the closed-source driver), despite advertising a larger max width than the one being set. |
I am having trouble trying to set the image size to maxWidth and maxHeight, which in case of the cameras I am using 4096x3000 pixels.
This is the error I get:
[ INFO] [1641906701.666786698]: [PEAK_CAM]: GV-520xFA-C found
[ INFO] [1641906701.705481934]: [PEAK_CAM]: maxWidth '4096'
[ INFO] [1641906701.708041339]: [PEAK_CAM]: maxHeight '3000'
[ERROR] [1641906701.719373761]: [PEAK_CAM]: EXCEPTION: Error-Code: 12 (PEAK_RETURN_CODE_OUT_OF_RANGE) | Error-Description: Value = 4096 must be equal or smaller than Max = 3344. : OutOfRangeException thrown in node 'Width' while calling 'Width.SetValue()' (file 'IntegerT.h', line 79)
Can anyone help me with this? Where do I find the file
IntegerT.h
?The text was updated successfully, but these errors were encountered: