rosys icon indicating copy to clipboard operation
rosys copied to clipboard

Update OpenCV to 4.18.X and allow numpy 2.X

Open NiklasNeugebauer opened this issue 5 months ago • 1 comments

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).

NiklasNeugebauer avatar Nov 12 '25 09:11 NiklasNeugebauer

There seem to be some issues with opencv`s jpeg encode/ decode. Let's wait for #356 where we use PIL and TurboJPEG instead.

NiklasNeugebauer avatar Nov 12 '25 09:11 NiklasNeugebauer