# OpenCV trackbars not showing values on MacOS

**URL:** <https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551>\
**Category:** Python\
**Tags:** highgui, apple\
**Created:** [February 13, 2022, 5:07pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551 "2022-02-13T17:07:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 5:07pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/1 "2022-02-13T17:07:03Z")

</div>

Hi I am trying to use colour detection for my Raspberry Pi car I’ve made this colour picker script and the track bar works but it doesn’t display the numeric values just the bars. Can anyone help with this?

 ![Screenshot 2022-02-13 at 17.03.52](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/b/bece7594b092536b86a950ecb2dcfbe2176a38b4.png)

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2022, 5:28pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/4 "2022-02-13T17:28:58Z")

</div>

please – NO SCREENSHOTS of ode or errors here.

remove them and replace with TEXT, thank you.

apart from that – what is it now ? macos ? raspi ?

what did you install ? how so ?

---

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 5:39pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/5 "2022-02-13T17:39:03Z")

</div>

Oh okay I’m sorry I didn’t know. I’ve removed the code screenshots. It just doesn’t show the values/ numbers on my trackbars. I have opencv-python and opencv-contrib-python in pycharm as packages I’m working on MacOS Monterey.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2022, 6:45pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/6 "2022-02-13T18:45:17Z")

</div>

> [@elspops](#):
>
> I have opencv-python and opencv-contrib-python

not the problem here, but use ONE of those, not both.

what does `cv2.getBuildInformation()` say about the GUI backend used here ?

---

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 6:50pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/7 "2022-02-13T18:50:07Z")

</div>

Oh okay, and I have added cv2.getBuildInformation() to the script and it outputs: import sys; print(‘Python %s on %s’ % (sys.version, sys.platform))  
sys.path.extend and then just the path to my project. Is the issue something to do with my opencv? On Mac it won’t show the trackbar values I’ve tried searching everywhere and no one has a solution to it.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2022, 6:52pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/8 "2022-02-13T18:52:44Z")

</div>

no, i meant:

```
print(cv2.getBuildInformation())

```

and show us the output (at least the GUI section)

---

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 6:57pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/10 "2022-02-13T18:57:26Z")

</div>

Sorry actually do you want me to copy and paste it all as text and I’ll remove the screenshot?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2022, 7:00pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/11 "2022-02-13T19:00:56Z")

</div>

pleeeaaase !

(again, at least we need the GUI section)

---

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 7:01pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/12 "2022-02-13T19:01:52Z")

</div>

Ok sorry! Here is the ouput:

General configuration for OpenCV 4.5.4 =====================================  
Version control: 4.5.4

Platform:  
Timestamp: 2021-11-19T20:31:27Z  
Host: Darwin 20.6.0 x86\_64  
CMake: 3.22.0  
CMake generator: Unix Makefiles  
CMake build tool: /usr/bin/make  
Configuration: Release

CPU/HW features:  
Baseline: SSE SSE2 SSE3 SSSE3 SSE4\_1  
requested: DETECT  
Dispatched code generation: SSE4\_2 FP16 AVX AVX2 AVX512\_SKX  
requested: SSE4\_1 SSE4\_2 AVX FP16 AVX2 AVX512\_SKX  
SSE4\_2 (1 files): + POPCNT SSE4\_2  
FP16 (0 files): + POPCNT SSE4\_2 FP16 AVX  
AVX (4 files): + POPCNT SSE4\_2 AVX  
AVX2 (30 files): + POPCNT SSE4\_2 FP16 FMA3 AVX AVX2  
AVX512\_SKX (5 files): + POPCNT SSE4\_2 FP16 FMA3 AVX AVX2 AVX\_512F AVX512\_COMMON AVX512\_SKX

C/C++:  
Built as dynamic libs?: NO  
C++ standard: 11  
C++ Compiler: /usr/local/opt/ccache/libexec/clang++ (ver 13.0.0.13000029)  
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG  
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D\_DEBUG  
C Compiler: /usr/local/opt/ccache/libexec/clang  
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG  
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D\_DEBUG  
Linker flags (Release): -Wl,-dead\_strip  
Linker flags (Debug): -Wl,-dead\_strip  
ccache: YES  
Precompiled headers: NO  
Extra dependencies: -framework OpenCL /Applications/Xcode\_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/Accelerate.framework -lm -ldl -framework Cocoa -framework AppKit  
3rdparty dependencies: libprotobuf ade ittnotify libjpeg-turbo libwebp libpng libtiff libopenjp2 IlmImf zlib quirc ippiw ippicv

OpenCV modules:  
To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio  
Disabled: java world  
Disabled by dependency: -  
Unavailable: python2 ts  
Applications: -  
Documentation: NO  
Non-free algorithms: NO

GUI: COCOA  
Cocoa: YES  
VTK support: NO

Media I/O:  
ZLib: build (ver 1.2.11)  
JPEG: build-libjpeg-turbo (ver 2.1.0-62)  
WEBP: build (ver encoder: 0x020f)  
PNG: build (ver 1.6.37)  
TIFF: build (ver 42 - 4.2.0)  
JPEG 2000: build (ver 2.4.0)  
OpenEXR: build (ver 2.3.0)  
HDR: YES  
SUNRASTER: YES  
PXM: YES  
PFM: YES

Video I/O:  
DC1394: NO  
FFMPEG: YES  
avcodec: YES (58.134.100)  
avformat: YES (58.76.100)  
avutil: YES (56.70.100)  
swscale: YES (5.9.100)  
avresample: YES (4.0.0)  
GStreamer: NO  
AVFoundation: YES

Parallel framework: GCD

Trace: YES (with Intel ITT)

Other third-party libraries:  
Intel IPP: 2020.0.0 Gold [2020.0.0]  
at: /Users/runner/work/opencv-python/opencv-python/\_skbuild/macosx-11.0-x86\_64-3.10/cmake-build/3rdparty/ippicv/ippicv\_mac/icv  
Intel IPP IW: sources (2020.0.0)  
at: /Users/runner/work/opencv-python/opencv-python/\_skbuild/macosx-11.0-x86\_64-3.10/cmake-build/3rdparty/ippicv/ippicv\_mac/iw  
Lapack: YES (/Applications/Xcode\_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/Accelerate.framework -lm -ldl)  
Eigen: NO  
Custom HAL: NO  
Protobuf: build (3.5.1)

OpenCL: YES (no extra features)  
Include path: NO  
Link libraries: -framework OpenCL

Python 3:  
Interpreter: /Users/runner/work/opencv-python/opencv-python/venv/bin/python (ver 3.10)  
Libraries: /Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib (ver 3.10.0)  
numpy: /private/var/folders/24/8k48jl6d249\_n\_qfxwsl6xvm0000gn/T/pip-build-env-iyx0bpj4/overlay/lib/python3.10/site-packages/numpy/core/include (ver 1.21.2)  
install path: python/cv2/python-3.10

Python (for build): /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

Java:  
ant: /usr/local/bin/ant (ver 1.10.12)  
JNI: /Users/runner/hostedtoolcache/Java\_Temurin-Hotspot\_jdk/8.0.312-7/x64/Contents/Home/include /Users/runner/hostedtoolcache/Java\_Temurin-Hotspot\_jdk/8.0.312-7/x64/Contents/Home/include/darwin /Users/runner/hostedtoolcache/Java\_Temurin-Hotspot\_jdk/8.0.312-7/x64/Contents/Home/include  
Java wrappers: NO  
Java tests: NO

Install to: /Users/runner/work/opencv-python/opencv-python/\_skbuild/macosx-11.0-x86\_64-3.10/cmake-install

---

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 7:02pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/13 "2022-02-13T19:02:32Z")

</div>

And sorry which GUI section do you need? How can I show you that? Thank you

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2022, 7:07pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/15 "2022-02-13T19:07:15Z")

</div>

no its alright now, we can see:

> [@elspops](#):
>
> GUI: COCOA  
> Cocoa: YES  
> VTK support: NO

it also seems to be [an ongoing, unresolved issue](https://github.com/opencv/opencv/issues/5056)

---

<div class="post-metadata">

**Author:** ![elspops](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@elspops](https://forum.opencv.org/u/elspops)\
**Post date:** [February 13, 2022, 7:08pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/16 "2022-02-13T19:08:55Z")

</div>

Oh okay. Yeah I know i’ve already been on that page and it doesn’t look like there’s a solution to it.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 13, 2022, 11:22pm UTC](https://forum.opencv.org/t/opencv-trackbars-not-showing-values-on-macos/7551/18 "2022-02-13T23:22:31Z")

</div>

i simply think, there is no code to draw tickmarks (or associated numbers) [here](https://github.com/opencv/opencv/blob/4.x/modules/highgui/src/window_cocoa.mm#L931)
