在Java中显示网络摄像头 [英] Display Webcam In Java

查看:321
本文介绍了在Java中显示网络摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上周刚刚开始使用Java,所以我现在只是因为我需要学习很多东西而得到了基础知识(顺便说一句,如果有帮助我在Ubuntu 11.04上使用Eclipse)。但是我做了很多截屏,我在很多视频中显示我的网络摄像头。所以稍后我想创建一个只显示网络摄像头的简单应用程序。没有别的。

I just started Java last week so I'm just getting the fundamentals down at the moment as I have a lot to learn (btw I'm using Eclipse on Ubuntu 11.04 if that helps). However I do a lot of screencasting, and I display my webcam in a lot of the videos that I do. So later on I would like to make a simple app that just displays the webcam. Not anything else.

所以我现在问这个问题,这样我不仅会记住我的目标,而且当我觉得我已经准备好了,我有信心去做这件事。我会知道去哪里。

So I'm asking this question now so not only will I remember what my goal is, but also so when I feel I'm ready, and confident to work on this I will know where to go.

我不想要任何代码,但需要参考去哪里。我想只使用Java。虽然我的一位同事告诉我要调查FMJ和JMF。但是不知道这些是什么我认为它们是Java的附加组件,但是如果可能的话,我只想坚持使用Java。

I don't want any code, but a reference on where to go. I'd like to just use Java. Although one of my co workers told me to look into FMJ, and JMF. However not knowing what these are I assume their like add-ons for Java, but I'd like to just stick with Java alone if it's possible.

另外就像我说的那样我还是Java的新手,我正在学习YouTube上的新闻教程(目前在 http:// www.youtube.com/watch?v=XqTg2buXS5o )如果你知道任何其他资源来帮助像我这样的新Java程序员以及其他人,我们将不胜感激。

Additionally like I said I'm still new to Java, and am learning from thenewboston's tutorials on YouTube (Currently at http://www.youtube.com/watch?v=XqTg2buXS5o) so if you know of any other resources to help new Java programmers like myself, and others it'd be greatly appreciated.

推荐答案

我使用过 lti-civil ,这对于视频捕获似乎非常有效。

I have used lti-civil, which seems to work quite well for video capture.

我在Windows和Linux上使用过它,我没有在Mac上测试它,但它说它也在那里工作。

I have used it on Windows and linux, I have not tested it on Mac but it says it works there too.

它不需要预先安装,因为它是jar和dll / so,可以使用Java应用程序下载,也可以通过支持本机库的JNLP webstart运行。

It does not need to be preinstalled, as it is a jar and a dll/so which can be downloaded with the Java application, or run via a JNLP webstart which supports native libraries.

没有100%纯Java库可以捕获视频,因此所有选项(包括JMF)都需要本机组件(.dll或.so)。

There are no 100% pure Java libraries that can capture video, so all the options (including JMF) require a native component (.dll or .so).

这篇关于在Java中显示网络摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆