rosys
rosys copied to clipboard
Update OpenCV to 4.18.X and allow numpy 2.X
Motivation
We are still using numpy 1.X. This is because we were stuck at on opencv 4.8 since newer versions at the time had issues with the omnidir camera calibration module. This seems to have been fixed and as such we want to allow newer numpy versions and a new opencv minor version.
Implementation
- The numpy dependency is now
<3.0. - The opencv-python dependency is now
>=4.12.0.88(current newest) and<4.13.0.0. - The opencv-contrib dependency is the same as opencv
- Tests for real hardware cameras were fixed (likely unrelated, but was not a big fix)
Progress
- [x] I chose a meaningful title that completes the sentence: "If applied, this PR will..."
- [x] I chose meaningful labels (if GitHub allows me to so).
- [x] The implementation is complete.
- [x] Pytests have been added (or are not necessary).
- [x] Documentation has been added (or is not necessary).
There seem to be some issues with opencv`s jpeg encode/ decode. Let's wait for #356 where we use PIL and TurboJPEG instead.