valueerror not enough values to unpack (expected 4 got 2) train_test_split code example
Example: ValueError: not enough values to unpack (expected 3, got 2)
contours, hierarchy = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
contours, hierarchy = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)