I would like to present 2 methods of automatic rotoscoping in Python.
Refined clean plate based (high quality rotoscoping):
Depth detection based: https://www.youtube.com/watch?v=jytFzXrG5K0
It has been also shared in other places in the forum. If this is against the policy of the forum, please delete the post.