2017-02-24 07:17:05 -0600 | asked a question | HTTP stream from camera delayed by a long time Hi all, I have a raspberry pi camera with "Motion" operating at After the fact, I decide I needed to get the "profile" across a frame for data processing reasons and, since I already have other data coming from a python server running tornado, I decided to include python-opencv and use that to analyse the frames. I initialise the video with: Within the tornado ioloop I have a scheduled function which sends data to the client every 50ms or so, to update numeric indicators on a display, and again this works flawlessly. I also have the following function as part of the scheduler (which takes And this works, but there is a BIG delay between the stream shown in the iframe (which updates close to real time) and the I don't know where this delay comes from, since both the iframe and the cv2 capture are pointed at the exact same URI for the motion server and so should be receiving frames at roughly the same time, right? In any case, this is really annoying for a ~real time application viewing the profiles (maximum desired lag ~2 seconds or less) so does anyone know what I should do differently? |