def get_trackbar_values(range_filter):
    values = []
    for i in ['MIN', 'MAX']:
        for j in range_filter:
            v = cv2.getTrackbarPos(('%s_%s' % (j, i)), 'Thresholds')
            values.append(v)
    return values
def get_trackbar_values(range_filter):
    values = []
    for i in ['MIN', 'MAX']:
        for j in range_filter:
            v = cv2.getTrackbarPos(('%s_%s' % (j, i)), 'Thresholds')
            values.append(v)
    return values