At school, we are busy with a project where we need to have 2 camera input's connected to an android phone with a unity application running.
At the moment we have the idea to use some USB webcams and plug those into a raspberry pi. This has been done before. But the part that we are not really sure about is how we can connect the raspberry pi to an android phone and transfer the video.
Here is a schematic of what I want to achieve. The idea is that we want to simulate different kinds of vision of animals in a google cardboard experience.
The part I'm not sure about is the connection to the android phone and unity. The USB webcams to raspberry shouldn't make a problem.
I hope someone can give an answer or point me in the right direction.
Many thanks in advance,
Bastien Olivier Dijkstra
This sounds like a neat project. Are you setting it up so each camera gives the view for each eye (hence the 3D aspect)?
For starters, if you simply want static images, you can try to SCP or FTP the resultant video files to your android.
AndFTP does a pretty good job of FTP for Android devices.
On the other hand, if you want to watch a live stream of the video from the RaspiCam, you can do that also with a myriad of other apps, but I personally use IP Cam Viewer to view the RTSP stream.
You will basically be viewing each RTSP stream independently. You may need to adjust the viewing resolution so it doesn't overload your RPi, but Unity can deal with up to eight cameras and up to eight viewing 'screens'.
Related
I have a plan to develop an instrument app, when we shake the android phone, it will produce "angklung" (Google it) sound.
THE PROBLEM:
How to make one android phone can share its produced sound (by shake
gesture) to the other android phones having my application?
The connection that I want to use is mobile data connection and wi-fi.
I think this person has the same problem, but I don't know how to communicate with him. Stream android to android
But there is no help..
I need solution/example/suggestion for this problem. So far I succeed to produce the "angklung" sound when it is shaken.
I have no idea how to start this application. I've searched in the internet but there is no help :(
Thanks for your help.
I would give you the suggestion of streaming the audio data to a server and beaming that to other android devices (that are registered to your app). As the question/issue you have asked are way bigger than couple of lines code, hence am pointing you to some good resources, dig those deep & good luck.
Live-stream video from one android phone to another over WiFi
Stream Live Android Audio to Server
Would it be possible to attain video from a webcam, and display it on an android device? Say, the webcam is displayed on a computer, and the android device streams the live video feed from the computer to the Android Device?
Can someone guide me on how do I do this?
Yes, it can.
You will have to code your own simple server which captures the raw bytes from the webcam and turns them into Bitmap.
The server will then listen for phones to connect on a specific port (greater than 1024) and then send the Bitmaps to them.
On the phone, you will have to make an app that connects to that port, gets the data, decodes it and then displays it on the screen.
Basically, you are sending a lot of Bitmap over the wire and at a very fast rate.
Or, you can look into YAWCam, or android-eye for video streaming. The choice is yours.
I've done this couple years ago using motion software (on the linux computer) and tinyCam on the android smartphone. Motion does require a few configurations, but it very simple and straightforward, although via text. You will also need to open and forward ports on your router.
I would like to get started on this, but I can put everything on my mind right. So maybe someone could help me to know steps that are required to achieve this: I have laptop with integrated video camera and I would like to make it as IP camera and then embed it in my android app, that will let user to View that camera(my Laptop integrated camera) is streaming.
So far I came up with this:
I need to use software (webcamXP, webcam 7) to make my integrated laptop cam to an IP cam.
(Maybe there is a way that I would not need to do that, because software developers put their logo on streaming video)
I will probably need some kind decoder? WebCam 7 let's me stream video as : Javascript, Motion JPEG, Flash JPEG stream, Flash FLV stream.
And that is, I don't know what I will need more, any help will be appreciated. :)
It is possible do a little bit of research
I have been working on an android app that streams videos live on a server using android built-in camera and anyone can watch that live stream from my website which is deployed on the server.
So can any one help me on how should i start working on my project because at present i have no direction to start with.
More specific example is:-
Like a person goes to a picnic and he wants his friends and family to see whats going on with the tour and his family can see live what he's doing live.....
There is an open-source project that does a very similar thing:
http://code.google.com/p/ipcamera-for-android/
It basically uses the LocalSocket of the camera to read the video and stream it from a webserver. You should be able to find lots of information in the source code.
If you want to stream over the internet, for everyone to see i can recommend you the service justin.tv which lets you broadcast you stream to the whole internet. If tried it, and it works very good!
However, if there's no wifi you will probably have a very laggy connection, unless you convert the video in a smaller size...
I have a requirement where I need to detect human prescence from a live video feed which is coming from a phones camera
I was wonering if this was possible from the phone itself on an android phone (latest models such as the HTC Desire HD and higher perhaps)? And if possible can anyone guide me to a place (with links or such) to get an idea on how to proceed
However if this was not possible from within the phone itself is it possible to take a live video stream from the phone and transmit it to a server, which for example process the feed using open cv and sends an output back to the phone, can anyone tell me if the transmission of the live video feed to a server is possible and any guidance is appreciated as well.
Any suggestions?
Check this out
https://github.com/billmccord/OpenCV-Android
It may not be the most convenient thing to set up. But seems like it would work.
This might be helpful too.
http://www.slideshare.net/pickerweng/opencv-220-for-android