finding contours

finding contours function
but it doesn't work and i don't know why :)