I am having an exit code 139 while running a trackbar training program, My code is as follows: '''
import cv2
import numpy as np
def empty():
pass
path = "Resources/cards.png"
#Create trackbars for adjustment
cv2.namedWindow("TrackBars")
cv2.resizeWindow("TrackBars",640,240)
cv2.createTrackbar("Hue Min","TrackBars",0,179,empty)
img = cv2.imread(path)
imgHSV =cv2.cvtColor(img,cv2.COLOR_BGR2HSV)
cv2.imshow("Original img",img)
cv2.imshow("HSV img",imgHSV)
cv2.waitKey(0)
''' anyone couldgive advise? I am running it on PyCharm CE on MacOS :)
I attach image, it does load. however when threshold bars are clicked it crashes.enter image description here