I have an application written in C that captures an image via webcam,does some processing on it,and then sends the resulting image through socket to a client application,also written in C,in another computer.
I want to do something similar but using a webpage as the client.Is there a way to do this using php or javascript?
I have an application written in C that captures an image via webcam,does some
Share
You could obviously use an intermediary server that accepts the captured images and then serves them out via http requests. (Think flickr.com or photobucket.com) You don’t have to write that server’s code in PHP, you can use any server-side language.
As it so happens, modern standards are actually pushing a thing called “Websockets”:
http://en.wikipedia.org/wiki/WebSocket
But if you’re only serving a single image with processing, it sounds like doing a websocket approach would be overkill. (You say “video”, but then speak about sending “an image…”)
Most people historically did video on the web using flash clients, which have sockets available.