find contours in every region separately