GIF demonstrating real use of the algorithm. Note the labels in the bottom left corner of the images.Working with Artisight, I developed an algorithm in Python for use in determining whether a laparoscopic camera was located inside or ouside the body.