Boofcv record from RTSP link - java

Current status
I have successfully recording videos from RTSP with the help of javacv which is not purely on java.
Problem
Create pure java application. Found boofcv which is completely java. Have found example for recording in android device. My program is not in android its should run in windows and linux. Need to record many camera at the same time.
Objective.
Motion detection which is implemented in javacv just need to port into a independent java program.
Extra information
Using rtsp to get video from cameras.
Thanks in advance.

Related

Playing Video On External Monitor With Java

The problem I am trying to solve is playing a video streamed online to a laptop, and then having the laptop play it on HDMI/VGA connected monitor.
Are there any good libraries tutorials in Java for doing this? Or is there a better cross platform language to accomplish this?

Live-stream video from one android phone to another via bluetooth

I am intended to make an app that stream live videos from one android phone to other one via Bluetooth,i need a simple player and there is no need to save the file,just play it.
My knowledge about stream in java is not enough and I really don't know where to start!
Please help me in finding any solution. Any help will be appreciated.
There is a sample android project to do streaming live video and allows you take photos and record videos from remote phone via bluetooth.
BluetoothCameraAndroid
Android allows you to get frames as byte array using camera, you can use that api to get frames and send it across. But the problem is throttling the sending rate. That also has been handled in that project.
In marshmallow and above devices, you have to give permissions
manually in settings. This project does not include runtime
permissions
Xuggler is a Java opensource library that works with streaming and modifying media on the fly. you can start from it at:
http://www.xuggle.com/xuggler/

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.

Video - sound - sensor capture in Java

I would like to develop an application which would be able to capture video from a webcam, capture sound from a mic and capture movement if a proximity sensor is available.
Initially I want it to run on windows but if able I might want to make it work on android later on.
I'm looking for something pretty straight forward and easy to understand.
My research has led me to Java Media Framework but it is too old and abandoned.
FMJ seems also old.
JavaCV appears to have poor documentation available.
My goal is to make a home detection app which uses the camera imagery, mic sound and sensors to detect and analyze home invasion.
I might take a leap and do it in .NET or other object oriented programming languages if
easier solutions present themselves.
How should I approach this, what are your suggestions?
One Solution is use JavaCV. So you can develop your desktop application using java and later can be ported in to android with fewer changes. As you said JavaCV haven't rich documentation. But JavaCV is just a wrapper to a OpenCV. So you can read OpenCV documentaion and find the relevant method(function) names. The methods in JavaCV has almost same names as OpenCV. So you can try those methods in JavaCV.
Next solution is use .NET to develop the system. There you can use
AForge.NET a rich library for .NET or Emgu CV .NET wrapper
for OpenCV. But you will be facing a problem when creating the
android app. Because you have to build it from scratch.

Video Camera Controls API

I'm writing an Eclipse RCP that takes photographs with a movie camera. I'm getting the video feed using the Java Media Framework (JMF).
The camera I'm using is the Microsoft Lifecam Cinema camera. Edited to add: I'm developing on a Windows XP workstation.
The camera has pan, zoom, and tilt controls.
My question is, do these camera controls have an Application Programming Interface (API)?
I couldn't find anything with an Internet search. JMF doesn't have any methods for controlling a video camera that I could find.
While I'm using Java, I can wrap an API in another language using the Java Native Interface (JNI) if I must.
Before going the raw JNI way, i would instead suggest you take the jUSB route or the javax.usb one. From what I understand, your camera is a pure USB one, so it should be possible to drive it from such an API, no ?
Unfortunatly, as I'm unable to find any kind of reverse protocol infos, it seems like you'll have to guess how to drive it by yourself.

Categories

Resources