java 摄像头访问,在Java中访问网络摄像头的最佳方式

I need to access web camera using Java. This is what I want to do

Access web cam

Now the user can see web cam working because his face is visible on screen

(have heard some libs are there which doesn't show the video output of webcam)

when user click save button, take a snapshot and save it

I have tried number of ways to do this, from a long time.

JMF - Now it is dead

FMJ - Now it is dead too

VLCJ - too much because I am not creating a music/video player and it expect VLC to be installed

Xuggler - too much and hard work

JMyron - didn't work

JavaFX - I thought it could do it, but seems like it can't

I am even satisfied if the library is just ONLY doing the above mentioned, because that's enough for me. But I expect it to be simple too. Really great if it is not using DLLs, because it is not platform independent if it does. Really appreciate if it can DETECT the camera, without manually passing the camera name and other info as have do in VLCJ (because there might be thousands of camera brands, so I can't create a list of thousand elements in it). And, I am creating a desktop application, not web app.

If you know a library like this, please be kind enough to let me know. Other libraries (which might not suit to all of my requirements, but suits to the basic requirement) also welcome. Please help

解决方案

This has been discussed on SO multiple times. Here are a few links to get you started:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值