VAV_ImageStreaming|教育線上App不用買

シェア記事:

【免費教育App】VAV_ImageStreaming-APP點子

Simple free application to stream image from mobile phone to a tcp socket server.

(This version is beta and only tested on samsung galaxy note).

To retrieved a jpeg image, you only have to cherck start of file 0xFFD8 and end of file 0xFFD9.

For example in python you have only to do :

from socket import *

import threading

import thread

def handler(clientsock,addr):

while 1:

data = clientsock.recv(BUFSIZ)

if not data:

break

msg = 'echoed:... ' + data

clientsock.send(msg)

clientsock.close()

if __name__=='__main__':

HOST = ''

PORT = 8013

BUFSIZ = 1024

ADDR = (HOST, PORT)

【免費教育App】VAV_ImageStreaming-APP點子

serversock = socket(AF_INET, SOCK_STREAM)

serversock.bind(ADDR)

serversock.listen(2)

while 1:

print 'waiting for connection...'

clientsock, addr = serversock.accept()

print '...connected from:', addr

data =""

fullData =""

while data:

data= clientsock.recv(4096)

fullData+=fullData

startOfFrame = fullData.find("\xFF\xD8")

endOfFrame = fullData.find("\xFF\xD9")

if ((startOfFrame != -1) and (endOfFrame != -1) ):

print "file find"

jpegFile = fullData[startOfFrame:endOfFrame+1+1]

myFile =open("./toto.jpeg","wb")

myFile.write(jpegFile)

【免費教育App】VAV_ImageStreaming-APP點子

myFile.close()

fullData =""

【免費教育App】VAV_ImageStreaming-APP點子

免費玩VAV_ImageStreaming APP玩免費

免費玩VAV_ImageStreaming App

VAV_ImageStreaming APP LOGO

VAV_ImageStreaming LOGO-APP點子

VAV_ImageStreaming APP QRCode

VAV_ImageStreaming QRCode-APP點子
熱門國家系統支援版本費用APP評分上架日期更新日期
未知Android
Google Play
1.0
App下載
免費
1970-01-012015-04-20
シェア記事: