简体   繁体   English

Google Goggles和Layar使用哪种应用层协议?

[英]What application layer protocol does Google Goggles and Layar use?

These applications stream video from client app to their own server. 这些应用程序将视频从客户端应用程序流式传输到自己的服务器。 I am interested in knowing what type of protocol they use? 我有兴趣知道他们使用哪种协议? I am planning on building a similar application but I dont know how to go about the video streaming. 我正在计划构建类似的应用程序,但我不知道如何进行视频流传输。 Once I get the stream to my server I will use OpenCV to do some processing and return the result to the client. 将流发送到服务器后,我将使用OpenCV进行一些处理并将结果返回给客户端。

I recommend you to send only a minimum of data and do the processing as much as possible on the client. 我建议您仅发送最少的数据,并在客户端上尽可能多地进行处理。 Since sending the whole video stream is a huge waste of traffic (and can not be done in realtime I think) 由于发送整个视频流会浪费大量流量(我认为不能实时完成)

I would use a TCP connection to send an intermediate result to the server, that the server can process further. 我将使用TCP连接将中间结果发送到服务器,以便服务器可以进一步处理。 The desing of that communication depends on what you are sending and what you want to do with it. 该通信的设计取决于您要发送的内容以及您要使用的内容。

You can wrap it in xml for instance, or serialize an object and so on. 例如,您可以将其包装在xml中,或序列化一个对象,依此类推。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM