I am trying to include negative values in the range of the Trackbar of cv2.createTrackbar. But each time I run the script, the negative values are not considered.
How could I include the negative values?
import cv2
import numpy as np
from cv2 import CV_WINDOW_AUTOSIZE
def nothing(x):
pass
cv2.namedWindow('image', flags = CV_WINDOW_AUTOSIZE)
cv2.createTrackbar('val1','image',-50,500, nothing)
This resets from 0 to 500, instead of staying at -50. How could I keep it from -50 to 500?