Can I capture video from an IP camera using OpenIMAJ? - java

Using the OpenIMAJ library can I capture and record video from an IP camera and also show live video in a web application?

I've not got an IP camera to test with, but in theory you can use the XuggleVideo class to do it - you basically just need to provide the URL of the stream provided by the camera:
Video<MBFImage> video = new XuggleVideo("rtsp://10.10.10.121/cam0_0");
Any type of stream/url that FFmpeg supports should work.

Related

Send OpenCV video to another android device

I'm trying to stream a video generated with OpenCV (using the webcam and doing some image processing) and audio to another android device over Internet. This will be similar to a video call with custom video frame.
I looked at WebRTC and could not find a way to send a custom image (OpenCV Mat object).
Could you suggest me any other way, any SDK or an approach to overcome this step (Client-server model) ?
Thanks in advance

Streaming video from IP Camera to JavaFX application

I am running a JavaFX application on a Raspberry Pi that is on the same network as my Wansview NBC540W ip camera. At the moment I simply would like to see the output of the ip camera in the JavaFX application. Any suggestions or working examples?
If you look at this link: https://www.ispyconnect.com/man.aspx?n=wansview you can see that the video stream from that camera is an .asf stream.
Here is some information on streaming in Java applications: How to play radio live stream .asx video/x-ms-asf?

Accessing android phone Camera thru USB from my java openCV application in real time

I'm trying to learn computer vision with OpenCV and i need camera to work with but the only camera that i have is on my android phone.
So im thinking about connecting it to my pc (via USB) and using it with my application. Is anything like that possible? Can i take information from camera connected via usb in real time?
I have no experience with something like this. I know i can just record video ,save it,put it on my pc, and use it as resource -bud i would prefer to have real time streaming of video while my application will work in background on my desktop computer.
Will i have to code some android application to get this working?Or can i simple ask for that data from my desktop application?
If you only want to experiment and learn to use OpenCV, you can get an IP Camera app for your phone and then read the image stream from your computer (here's an example of how to do that). That is the easiest "real time-ish" solution I can think of.
I found a simple way to use the a web cam (IP Webcam installed on my smartphone through Play Store) as camera using OpenCV and Java. Here is how: just copy the IP Webcam web link inside the Video Capture. Like this.
org.opencv.videoio.VideoCapture webSource = new VideoCapture("http://192.168.43.1:8080/video");
The smartphone and the laptop should be inside the same Wi-Fi.

Capturing video with cell phone integrated camera via Java ME

I'm trying to capture a video stream using the video camera on a Java ME capable cell phone. How do I go about doing this? I've read about using MMAPI for capturing still images through a live camera feed, but I'm not sure whether it can capture a video stream that can be saved (with sound) and forwarded to a remote server.
a nice writeup on the subject in this javaworld article.
Hope that helps,
Petri

java:web cam application

I am looking to do develop the following application. How to proceed?
Scan the system for installed webcams and their supported video modes.
Let the user select a cam and a video mode.
Displays a video of the camera.
Starts a frame grabber/processor, it doesn't have to do nothing for now. I want to have the possibility to elaborate frames or at least one frame every x.
Not sure if it's possible but i'd need also a routine to overlay processed frames on the playing video.
Check this post on SO for inspiration.
The JMF framework supports capturing real-time data, audio or video, as detailed in this article
You can also try LTI-Civil
I would recommend you using Webcam Capture project since neither JMF nor LTI-CIVIL are maintained any more. Webcam capture is a cross-platform, open source project hosted on Github. There are plenty of examples, e.g. of how to do things you've asked:
How to enumerate webcams and listen for new devices connected
Display video from camera
Enable grabbing and take snapshot on demand
Unfortunately there is no possibility to overlay image obtained thru Webcam Capture API on the playing video. At least not within the Webcam Capture itself, but you could use Xuggler to do that - it contains example of how this can be done.
Please note that Webcam Capture API can be used on top of the JMF, FMJ, LTI-CIVIL, GStreamer, OpenIMAJ and other.

Categories

Resources