my project is tracking a ball using webcam My code works fine and track the ball with high speed when all my code is in one .py file. I decided to create a def in