opencv/opencv

createTrackbar creates bars out of order and without numbers

Closed this issue ยท 30 comments

Transferred from http://code.opencv.org/issues/4459

|| Mitch Berkson on 2015-07-02 14:39
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: None
|| Tracker: Bug
|| Difficulty: Medium
|| PR: 
|| Platform: x86 / Mac OSX

createTrackbar creates bars out of order and without numbers

Trackbars are created without numbers.  They are also not created in the order written in the code.

History

Has this been resolved?

Having similar issues here. Is there a way to control either at creation or afterwards?

nothing? Having the same issue.

Also ran into this :(

Same issue on El Capitan, openCV 3.2.0

Same issue.

Not solve yet...

Still an issue on El Capitan with OpenCV 3.2.0

OpenCV => 3.3.1
Operating System / Platform => macOS 10.13(High Sierra)
Compiler => Anaconda Spyder 3.2.4 (Python 3.6)

3togo commented

homebrew python has this problem as well

I have the same problem when running range-detector script of Adrian Rosebrock from Pyimagesearch.

It works well on windows but when running on MacOS High Sierra 10.13.6, Python 3.7.0 and OpenCV 4.0.0-pre, it does not display number and has wrong order of the bars.

Hopefully some experts can fix it soon.

Just ran into this issue as well

same problem here

Any solution?

My Solution:
It is a conflict between a previously installed version of openCV and a new one. I recently encountered the same problem.
I had installed in my environment conda, an opencv via conda install and it was working perfectly.
However, when I needed to install the
"opencv-contrib-python" via pip I did not uninstall the previous opencv and the problem started to occur.
After that, I fix it by creating a new environment and reinstalling ONLY the last library.
Now it is ok.

I am using
Windows 10
Anaconda3 2020 64bits python 3.8
opencv-contrib-python 4.3.0.38

I have the same issue. Trackbars work but no value is displayed. MacOS Catalina

heart commented

Ok sinc 2015 and now is 2021

MacOS Biug sur 11.2.3
OpenCV 4.5.2

I have the sam issue

I have the same issue - No values displayed on trackbars:

macOS Catalina 10.15.7
Python 3.6.10
OpenCV: opencv-python-3.4.13.47 (installed with pip on a conda environment)

any solutions? I can't make any process in my project :(

I have the same issue :(
bars out of order - No values displayed on trackbars:
MacOS Big sur 11.4
OpenCV: opencv-python-4.5.2 (installed with pip on a conda environment)
Python 3.7.10

Facing the issue in MacOS Big sur 11.5.2
opencv 4.5.3

same issue :(
Trackbars are created without numbers. They are also not created in the order written in the code.
Platform: m1 / Mac OSX
PL: C++

Ok sinc 2015 and now is 2021

It's a free, open source library. So far for those 6 years, most people running into the problem seem to be content with just posting a "me too", rather than rolling up their sleeves and having a shot at fixing it.

heart commented

I'm sorry that I'm not competent enough to fix it myself.
I'm just a noob user.

I'm just here as a spectator. Apple has rented me none of their devices to use.

If anyone feels like getting to know Cocoa, or already knows it, here is the code to dig into:

https://github.com/opencv/opencv/blob/master/modules/highgui/src/window_cocoa.mm

heart commented

@dan-masek I just try to learn OpenCV from the tutorial on youtube then I am stuck here.
I don't have the skill to resolve this yet.

I think many people have the same problem as mine
That's why we can only say me too even if we want to help to fix it.

That's perfectly okay. Reporting an issue is good work already and it is appreciated.

Open source should remember that not everyone has the time to get familiar with an unfamiliar code base. It's there for the curious and exploration should be encouraged, but it should not be an obligation. Nor can volunteer developers, who work on the parts of it they're personally interested in, be expected to fix issues in a timely manner. The work never ends and the few people that do get paid receive priorities attached with the money.

For me, on windows, the trackbar is appearing properly,
But on macOS, the trackbar is out of shape and numbers are not appearing.

Hi, I'm on macOS and I use openCV for a university project.

Trackbars not showing values is a bit annoying so I'll try fixing this bug.

It's the first time I'm contributing to an open-source project, and I'm still a junior developper so it may take some time but I'll do my best.

I just send a PR to solve the order problem. If it is accepted, I will have a look on the numbers issue.