How to locate object parts of rigged object visible in camera I'm pretty new to blender. Currently I work in animate a rigged character, and render the depth for a computer vision project. My scene consist of some walls, floor, random objects and a human character performing re-targeted motion. In addition I also add an index pass to the human character to render a binary mask to locate it easily in the depth image. 

Everything works fine. Now, I would like to know which of the parts of the object are visible to the camera, e.g. head, arms, hands, etc. The character consist only in one big mesh. Does any body know what would be the best way to achieve this? I thought that perhaps the best way  is to split the mesh into different meshes and assign an index pass to each of them but I didn't find a good example to do this in python.
Thanks in advance
Either use an index pass as you suggested, or just mimick one by using an unshaded material with a distinct colour for each body part.

You say you want to do this in Python, but you don't say why or what part of the process you want to automate. If you elaborate in a comment I might be able to give more Python-related info in this answer.