Personification: The act of giving a human quality or characteristic to something which is not human (i.e., animals and objects). If a writer imagines an animal or object to possess human qualities (including emotions, actions, character traits, etc.), then it’s personification.
Anthropomorphism: Showing or treating animals, gods, and objects as if they were human in appearance. If an animal or object actually behaves like a human being, then it’s anthropomorphism.