Skip to content

python: fix trackbar warning#20420

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
berak:python_fix_trackbar_warning
Jul 15, 2021
Merged

python: fix trackbar warning#20420
opencv-pushbot merged 1 commit intoopencv:3.4from
berak:python_fix_trackbar_warning

Conversation

@berak
Copy link
Copy Markdown
Contributor

@berak berak commented Jul 15, 2021

resolves #20408

this pr tries to avoid the Using 'value' pointer is unsafe and deprecated. warning in the python bindings.

use a nullptr in createTrackbar(), and set the value later

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@berak berak force-pushed the python_fix_trackbar_warning branch from 1ef26d4 to 9f2dcc3 Compare July 15, 2021 15:43
Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done 👍

@opencv-pushbot opencv-pushbot merged commit eb9218a into opencv:3.4 Jul 15, 2021
@berak berak deleted the python_fix_trackbar_warning branch July 15, 2021 20:08
@alalek alalek mentioned this pull request Jul 16, 2021
@alalek alalek mentioned this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handling of 'value' in cv2.createTrackbar in Python

3 participants