If your story suffers from cardboard characters, it probably also suffers from plot contrivances. Good news: if you fix one, you fix both.