开发者

How to speed up transfer of images from client to server

I am solving a p开发者_C百科roblem of transferring images from a camera in a loop from a client (a robot with camera) to a server (PC).

I am trying to come up with ideas how to maximize the transfer speed so I can get the best possible FPS (that is because I want to create a live video stream out of the transferred images). Disregarding the physical limitations of WIFI stick on the robot, what would you suggest?

So far I have decided:

  • to use YUV colorspace instead of RGB
  • to use UDP protocol instead of TCP/IP

Is there anything else I could do to get the maximum fps possible?


This might be quite a bit of work but if your client can handle the computations in real time you could use the same method that video encoders use. Send a key frame every say 5 frames and in between only send the information that changed not the whole frame. I don't know the details of how this is done, but try Googling p-frames or video compression.


Compress the difference between successive images. Add some checksum. Provide some way for the receiver to request full image data for the case where things get out of synch.

There are probably a host of protocols doing that already.

So, search for live video stream protocols.

Cheers & hth.,

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜