http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html#find-contoursIt works well.Just change the file path to the absolute one.