I want to take an image from webcam. How can I do this?
If is there any sample codes for your advice library, it's better than other for me.
I examined these:
Jmyron
Java Media Framework
JavaCV
lt-civil
These are not useful. These do not work or do not have sample code.
Have you got any advice?
Try this project:
http://github.com/rladstaetter/isight-java/
and the corresponding blog post
http://ladstatt.blogspot.co.at/2013/04/using-isight-camera-with-javafx.html
Keep in mind that you'll have to have the correct opencv dll for your architecture (x64)
I stripped down OpenIMAJ Core Video Capture Library to get images from webcam. It works well on my macbook, linux deskdop and windows 7 env.
You don't need to install anything, two jars are all you need. You can find the example from my site:
http://www.sleepingdumpling.com/blog/download/jvideoinput/
Here is a link to a Demonstration JavaFX Camera capture application using LTI-CIVIL
You are correct that the LTI-CIVIL library is 32 bit only, so perhaps not useful In your case if 64 bit is an imperative.
Related
I have an Application based heavily based on SLD2, and I would like to port it on Android(Its currently available for Windows, Linux, MacOS and iOS).
After doing a lot of research the cleanest way I have found was to use the Android Native activity and start my C++ code from there. That worked great, my next step was to build SDL2 as a dynamic library and included in the project which also worked fine. Although when I tried to Initialise SDL video, sound etc. I found out that SDL2 can only be Initialised inside the SDL_Activity provided by the SDL source code.
Is that true?
Is there a way to do what I am trying to do?
My code base is quiet big and replacing the main class that takes care of the SDL rendering, with a java class will affect a lot of my base code.
Is there an other alternative or a guide to get inspiration?
I'm trying to use JMF (Java Media Framework) to play a video. I've tried sample code from four different websites now. I'm using a Mac running Lion.
Everytime I load an mpg file I have, I get:
Unable to handle format: MPEG, 352x240, FrameRate=29.9, Length=126720
What does this mean? Are there problems with JMF? I'm using the cross platform version.
The cross-platform version will probably not support too many formats. There are performance packs which might help. But there isn't a performance pack for MAC and probably never will be.
You can try Jffmpeg, which provides MPEG codecs (among many other formats) for JMF. However, bear in mind that the last release is 2006.
Another alternative if FMJ.
I want to build java app, which will record some application. Could you provide me any links or solutions, which codecs should I use for windows , mac and linux, should I use three diffirent codecs for each OS or there is standard codecs for every OS. I want to create video in divx codecs or avi, but preffered is flv. I'll be thankfull if you help me.thanks. (and: it has to be java app)
Take a look here for a java codec pack for JMF
Well...you can refer Java Complete Reference book where there is a chapter dedicated to multimedia...maybe you'll get some info from that...I'm not sure about any other resource...
Greetings,
I need to port this Windows utility: http://solinker.com to Mac.
The app was written in C#, .NET 2.0.
The main requirement is:
The app should be able to talk with AppleScript to interact with Photoshop. The program is small and UI is simple so I could consider to fully rewritte the app.
Possible candidates are:
MonoMac
Unity 3D (seems it doesn't required to install the Mono)
XULRunner (Flickr Uploader written by XULR)
QT
Java (convert all the app to Java + 2 different connector to photoshop:
for Mac and for Win)
I would be appreciate for any advice!
I'm not experienced with others but can definitely suggest MonoMac. It looks and feels like any other Mac app while running on Mac. On the other hand, if the application was written with Visual Studio on Windows, it never properly works on MonoMac. So prefer MonoDevelop, if you go this route.
If you check the documentation for MonoMac, you will see they have a packager which bundles all dependencies with the final app. So, no need for a seperate Mono install:
http://www.mono-project.com/MonoMacPackager
As for AppleScript, MonoDevelop does some wrapping of AppleScript. You should take a look at their source:
https://github.com/mono/monodevelop/blob/master/main/src/addins/MacPlatform/MacInterop/AppleScript.cs
I would say MonoMac is your best approach.
I need an extremely efficient webcam library (I'll explain later) that works on all platforms.
Basically there will be two webcams and I need to alternate between them at a very fast rate (a least 50fps, it has to be a fluid video still)
Anybody have experience in this field and have some suggestions?
While developing my Webcam Capture project I've tested several frameworks and decided to use part of OpenIMAJ framework. I actually had to extract part of its core-video-capture subproject and refince code to remove all necessary dependencies it has. When I included refine code in my project I was able to stream 250 FPS (EDIT: due to bug in Windows impl) 50 FPS as BufferedImage objects (on Windows XP, without painting, just fetch image from webcam). I can honestly recommend it since it is compatible with most operating systems - Windows (x86 and x64), Linux (x86, x64 and ARM), Mac OS. If you are interested, you can find refined code here.
JMF is also very fast, but its pretty outdated and not maintained any more. It's not portable - when you want to use it, you have to install JMF.
I don't recommend JavaCV, it require huge OpenCV installation package (~100MB), have no Java documentation and it's not portable.
LTI-CIVIL / FMJ are also outdated, not being maintained any more.
VLCj work correctly only on Linux (since it is using V4L4j) and you have to have VLC installed on your PC (not portable).
I have used OpenCV for Java ( http://ubaa.net/shared/processing/opencv/ )
It is very "user-friendly", but I do not know the exact parameters about its efficiency.
A while ago I used Java Media Framework to process and save stream from webcam (Didn't had any performance issues with it). Maybe it could help you in your task.