TRACK BAR in python

asked 2017-11-16 08:23:41 -0500

poljakov13 gravatar image

updated 2017-11-16 08:37:27 -0500

berak gravatar image

I have issue with track bar. Can anybody give me blueprint of trackbar. As minimal 1 slider code as possible , what gives output as value of slider. Like if slider is from 0 to 10 then , i get output value 5 if slider is at middle.

I have function what changes gamma of image , I want to read trackbar value and send it in to function where i give input , what changes my image gamma value. Lets say , function name is : gammachanger(x)
i want read trackbar value and enter it in to X

I have not find yet good tutorial what could explain me use of trackbar . All tutorials start to explain somewhere in the middle , and half info is not explained :(

My function code example:

edit retag flag offensive close merge delete


i removed your useless screenshot, please add a TEXT version of your code to your question instead.

berak gravatar imageberak ( 2017-11-16 08:38:04 -0500 )edit

You cannot use only one slider. You need 3 sliders. The trackbar can be found on opencv3.3.1/samples folder

supra56 gravatar imagesupra56 ( 2017-11-16 09:36:54 -0500 )edit