Open surajgharmalkar opened 2 years ago
ValueError Cell In [104], line 2 1 filename = "../476362180.jpg" ----> 2 bg_rem_img = bg_sub(filename)
Cell In [101], line 13, in bg_sub(filename) 10 kernel = np.ones((50,50),np.uint8) 11 closing = cv2.morphologyEx(im_bw_otsu, cv2.MORPH_CLOSE, kernel) ---> 13 ret_image, contours, hierarchy = cv2.findContours(closing,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) 15 contains = [] 16 y_ri,xri, = resized_image.shape
ValueError: not enough values to unpack (expected 3, got 2)
please assign it to me
ValueError
Cell In [104], line 2 1 filename = "../476362180.jpg" ----> 2 bg_rem_img = bg_sub(filename)
Cell In [101], line 13, in bg_sub(filename) 10 kernel = np.ones((50,50),np.uint8) 11 closing = cv2.morphologyEx(im_bw_otsu, cv2.MORPH_CLOSE, kernel) ---> 13 ret_image, contours, hierarchy = cv2.findContours(closing,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) 15 contains = [] 16 y_ri,xri, = resized_image.shape
ValueError: not enough values to unpack (expected 3, got 2)