문제

Need Help!

Let's assume I have a robot in a room with a camera on it. I need the video source to be available live on a website. I don't want any latency at all (assuming that I have a good internet connection). Also if a user presses any keys while on the website, the robot needs to detect it and do actions accordingly. Now, I can handle all the actions the robot needs to do once I get the keys. There's a raspberry pi on the robot.

What would be the easiest way where we could achieve a bi-directional communication (one direction being video and another being plain text) between a browser and my robot, keeping the communication as fast as possible.

PS: I tried initiating a Google hangout and embedding the video, but there's a latency of atleast 1 minute.

도움이 되었습니까?

해결책

Simple to do. get the camera for Raspberry Pi from here.

http://www.adafruit.com/products/1367

You could use Motion JPEG for transmitting the video. Follow the instructions below.

http://blog.miguelgrinberg.com/post/stream-video-from-the-raspberry-pi-camera-to-web-browsers-even-on-ios-and-android

Once you the the IP of your video stream, you could display it in a website.

To send commands to rap pi, whats the complication ? If your Rasp. pi have an internet (it should be for the video stream), you could write a program to read commands from your browser.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top