I'm using a Logitech Webcam (C270) hooked up to the sentry turret. Everything works fine except when I try to actually run the code. The camera feed runs at a decent framerate (20+). But when an object moves into view that is tracked (Ex. Box drawn around it) the framerate is fine for the first 3¬ frames of tracking, and then after that, the framerate tanks to something like 1 frame every 2 seconds. The turret's motors are also slowed. I'm using OpenCV 3.1 right now. How can I solve this issue?
Thanks!