Effective webcam

I need an extremely efficient webcam (I will explain later) that works on all platforms.

Basically there will be two webcams, and I need to alternate them at a very high speed (at least 50 frames per second, this should be a liquid video)

Does anyone have experience in this area and have some suggestions?

+3
source share
3 answers

When developing the Webcam Capture project, I tested several frameworks and decided to use part of OpenIMAJ . In fact, I had to extract part of my core-video-capture subproject and validate the code to remove all the dependencies it needed. When I included the refinement code in my project, I managed to pass 250 FPS(EDIT: due to a bug in Windows impl) 50 FPS as objects BufferedImage(in Windows XP without drawing just select the image from the webcam). I can honestly recommend it, as it is compatible with most operating systems - Windows (x86 and x64), Linux (x86, x64 and ARM), Mac OS. If you're interested, you can find the refined code here .

JMF is also very fast, but its pretty dated and not supported anymore. It is not portable - if you want to use it, you need to install JMF.

I do not recommend JavaCV, it requires a huge OpenCV installation package (~ 100 MB), does not have Java documentation and is not portable.

LTI-CIVIL / FMJ are also deprecated, but are no longer supported.

VLCj Linux ( V4L4j), VLC ( ).

+4
+1

Some time ago, I used the Java Media Framework to process and save a stream from a webcam (it had no performance issues). Perhaps this may help you in your task.

0
source

Source: https://habr.com/ru/post/1790899/


All Articles