gocv icon indicating copy to clipboard operation
gocv copied to clipboard

window resize on Windows

Open SleepyPrince opened this issue 2 years ago • 0 comments

Description

gocv not respecting higui window properties on Windows. None of the WindowFlag values really keep the aspect ratio of the mat on ResizeWindow.

Steps to Reproduce

  1. create a window
  2. set WindowPropertyAspectRatio to WindowKeepRatio
  3. IMShow with a fixed size Mat
  4. Resize the generated window
  5. expect the resize to respect the aspect ratio of the content but it is always free resize

Your Environment

  • Operating System and version: Win 10 64-bit
  • OpenCV version used: 4.5.4
  • How did you install OpenCV? win_build_opencv.cmd
  • GoCV version used: 0.29.0
  • Go version: 1.17.2
  • Did you run the env.sh or env.cmd script before trying to go run or go build? no

SleepyPrince avatar Nov 14 '21 18:11 SleepyPrince