Traceback (most recent call last): File \"demo.py\", line 132, in `result = find_strawberry(image)` File \"demo.py\", line 63, in find_strawberry `image = cv2.
get the same error while using trackbar in opencv but this method resolved it:
img = np.full((512,512,3), 12, np.uint8)
where img is your image
img