Determine how much of object is visible

I’m trying to determine the percentage of an object that is currently visible on screen. For example, if there is nothing blocking the object it would be 100% visible, and as something else moves between the camera and the object, the percentage would go lower.

A solution in Blueprints would be ideal, but C++ would be alright too. Check the video for a real world example: Card Classification Test - YouTube