Usually in my OpenCV projects, after creating a trackbar and placing it in a window, it appears horizontally and at the bottom of the window.
Is it possible to change the trackbar's position and orientation?
Usually in my OpenCV projects, after creating a trackbar and placing it in a window, it appears horizontally and at the bottom of the window.
Is it possible to change the trackbar's position and orientation?
Unfortunately no, cv::createTrackbar()
doesn't allow changing the position and orientation of the trackbar.
But if you have Qt installed you can create your own GUI, with the trackbar (QSlider) you want. You just need to learn to convert a cv::Mat
into a QImage