First time here? Check out the FAQ!
answered 2015-10-27 05:58:42 -0600
that's because from your code the upper contour is open. Look below:
so just modify the canny thresholds in order to get the whole contour ;-)