FRCTeam2910 / JesterVision

0 stars 0 forks source link

Time to push a frame to the streamer is too long #2

Closed king-shak closed 4 years ago

king-shak commented 4 years ago

Right now the way the Pipeline send frames to the streamer is through a queue. If I remember correctly this is taking about 2ms at 320x240 and 10ms at 640x480, which it too long. The first thing we need to do is establish a baseline. Set the pipeline to find last years' target, and run the camera connected to a client (so streaming) for 1 min or so. Record the results from the logs. Something else worth looking into is whether this is caused by actually putting the frame in the queue or if it's because the conversions the pipeline is doing. (It's scales the numpy array down to 320x240 and then converts it to a bytes object representing a .jpg image). Once we establish a baseline we can move on to testing possible solutions. What I have in mind is:

king-shak commented 4 years ago

Done. Turned out to just be OpenCV processing down the frame, which has now been moved to the streamer.

king-shak commented 4 years ago

Same situation situation as #1 , but this is now fixed