I have to connect three usb webcams in my system. I wrote code that is able to find only one camera. Others are not being showed. Please anyone help me. How can I detect all usb webcam?
Unfortunately you did not show us your code, so I have no idea how are you trying to connect to the camera.
But my short investigation shows the following. Class CaptureDeviceManager has method getDeviceList(Format format) that should return you all devices that support specified format. It seems that you should use this method, then iterate over resulted vector and user the cameras. I hope this will work for you if you specify correct format.
Related
I am using gwt-elemental 2.8.
I followed this example to take a photo using the active web-cam:
https://github.com/henrikerola/FaceLogin
It works fine, but now I need to use the rear camera when the page is visited by a mobile device.
I have done some research about it and found that the methods capable of giving me back the available devices are: MediaStreamTrack.getSources(gotSources); or MediaDevices.enumerateDevices() but any of them is present in the gwt-elemental library.
A MediaStreamTrack interface exists but it has no way to obtain Sources (or I cant find it).
Can anyone help me? I'd really appreciate it.
Thanks a lot
I would like to write a program in Java which takes pictures from an IP camera and sends (over ftp) it to a website, replacing an old image.
Does anyone know any libraries I can use for that task?
I think the main problem will be grabbing an image from IP camera and saving it as a JPEG.
Basically I have never worked with cameras before. So I will be really grateful if someone can give me some tips.
First you would have to figure out how to get the data from IP Camera you will be using. Good starting point can be found here: http://dragosc.itmcd.ro/uncategorized/java-media-framework-vs-ip-camera-jpegmjpeg-complete-overview-sources/
Second, you should choose the library for ftp communication, this topic was discussed here:
What Java FTP client library should I use?
Once you'll write smth which actually does something you can get back to SO and ask more specific questions.
I want to develop an application based on Voice Biometric Recognition.
Specifically, I want to develop an application which will record a voice from the telephone, and identify the speaker. If the same person calls again it will recognize the voice. Like other Biometric applications do here my need is to do a voice biometric. Are there any URLs or examples which will help me. I searched but not able to find a solution.
FreeSpeech is a text-independent speaker verification system that verifies a caller's identity
I want to achieve the above one FreeSpeech Recognition in my application.
Is it possible to do the below things by using any Open Source.
The individual records a voice print, then
The system keeps track of the voice prints and can distinguish recordings from live speech
If yes, can you please provide me a URL or example which will help me.
Well, I got the light from This Url to achieve the above task but not able to get the expected out put.
After wasting 20 to 25 Hrs, Finally I got the solution by using MARF Framework.
I got the sample app from the http://sourceforge.net/projects/marf/files/Applications/%5Bf%5D%20SpeakerIdentApp/0.3.0-devel-20060226/
And for now, it's working fine for me. This links is very useful for me to make the sample app executable. http://marf.sourceforge.net/
You can take a look at this previous SO post in which various Java Speech Recognition Engines are described such as Sphinx.
I am not an expert on this domain so please take my answer as is , it's not an authorative one... I think you have different ways to achieve your goals :
- finding a Java library is one , the most natural one
- recording the voice in Java then applying one of the several algorithms available for such job , you may find many research papers dealing with that subject
- depending from the architecture choices, you may find different libraries implemented in C dealing with voice signal, using JNI or JNA is one way to deal with C/C++ libraries, Web Services or CORBA are other ways to achieve this....
HTH
Jerome
To check if a 'switch' is open or closed and detecting that in Java, I have the following plan: I won't use the data pins, just the USB 5V current, and if the switch is closed there is a current, which I should detect in Java, and so it will be processed by my program.
Would there be a simple solution for this or do I need to find and try out a whole Java usb library for it, of which I would use just a tiny little bit?
Thanks in advance
This will not work in the way you describe it. Have you ever connected a gadget like USB lamp or USB fan? Then you would know that the Software/OS does not even know about them.
The USB spec says you can draw up to 100mA from a port without telling anyone about it, and 500mA when declared in the USB protocol. Most USB HDDs draw quite some more than the allowed 500mA maximum USB2 current.
To make your application work, you absolutely need a device which can talk over USB. This could be an USB=>RS232 adapter (which your application can talk to using RXTX) or a HID device like a USB Joystick. Joysticks can have buttons and switches.
You could try RXTX. This is a library written for serial communication with Java. http://users.frii.com/jarvi/rxtx/. You will have to use native libraries, and I don't know if it would be able to detect if there is a current or not on the USB.
Is there a way to get the sound from the default audio output for the computer? I don't want to manipulate it, I just want to make a visual representation of the frequencies; much like an equalizer.
This question is duplicate of:
Real Time Audio Visualization Java
The java sound API lets you interact with the current audio output. You can find the reference here:
http://www.java-tips.org/java-se-tips/javax.sound/capturing-audio-with-java-sound-api.html
Mac computers do not feed audio output back into the computer for programs to access, and since everything in java has to work on both mac and windows computers, they cannot provide specific access to this feature to windows users either. Windows computers might provide an input device which you can access representing system output, I'm not sure about it, but you could find out with
AudioSystem.getMixerInfo()
It returns a list of objects containing strings for the name, description, version, and vendor of every available audio device. Printing these on a loop lets you look at all the audio devices. If none of them look like they could be the widows system output feedback then you are out of luck, unless you want to use native classes. I'm not going into that here but there is a good page about them here.