Using Webcam, Movement detection and Object Direction on PsychoPy

Hello everyone,

Further to this innovative study:

And this video:
Fish exp

We want to test fish movement in the lab. For this purpose, I would be happy for general guidance on the following topics:

  1. How do I get webcam information on PsychoPy? Is it even possible to do this?

  2. I would love to get general guidance on detecting the movement of objects using a webcam

  3. I would love to get general guidance on identifying the static direction of objects (to identify whether the fish’s head or tail is at 0 degrees or 360 degrees depending on its location in the aquarium)

If any of you have dealt with a similar topic or developed a similar code I would be very happy for guidance,

with gratitude,

Avishai