Object detection on ipcamera is delayed as compared to webcam why ?
I have done facial detection and TLD(using OpenTLD) on opencv 2.4 C++ . To alter the code to stream ipcamera i did this.
VideoCapture captureDevice; string videoStreamAddress = "http://admin:[email protected]:80/video/mjpg.cgi?&.mjpg"; captureDevice.open(videoStreamAddress); //in main loop captureDevice>>frame; //in main loop
It feels like it waits for each frame to process unlike webcam which maybe dropping frames . i have done ipcamera opencv video stream (without object detection code) using wired ethernet and its quite realtime like webcam , but when i run object detection on it , it delays much more than webcam .Video resolution of both are same.
please help.