gpt4 book ai didi

java - 用于将网络摄像头与 java 集成的库

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:27:34 25 4
gpt4 key购买 nike

我有一个项目,用于制作将网络摄像头与 Java 语言集成的应用程序。我应该使用哪个库来做到这一点?

我使用的是 Linux Ubuntu 11.04。


我试过使用 JMF,但是当我运行 JMFINIT 时出现错误,这个错误

JavaSound Capture Supported = true
JavaSoundAuto: Committed ok
Name = v4l:ð?*ð?*ia_protocol_v4l_V4LCapture_nOp:0
Trying 4 320 240
Trying 3 160 120
Trying 3 320 240
Trying 3 640 480
Trying 3 176 144
Trying 3 352 288
Trying 3 768 576
Trying 4 160 120
Trying 4 320 240
Trying 4 640 480
Trying 4 176 144
Trying 4 352 288
Trying 4 768 576
Trying 5 160 120
Trying 5 320 240
Trying 5 640 480
Trying 5 176 144
Trying 5 352 288
Trying 5 768 576
Trying 6 160 120
Trying 6 320 240
Trying 6 640 480
Trying 6 176 144
Trying 6 352 288
Trying 6 768 576
Trying 7 160 120
Trying 7 320 240
Trying 7 640 480
Trying 7 176 144
Trying 7 352 288
Trying 7 768 576
Trying 8 160 120
Trying 8 320 240
Trying 8 640 480
Trying 8 176 144
Trying 8 352 288
Trying 8 768 576
Trying 9 160 120
Trying 9 320 240
Trying 9 640 480
Trying 9 176 144
Trying 9 352 288
Trying 9 768 576
Trying 10 160 120
Trying 10 320 240
Trying 10 640 480
Trying 10 176 144
Trying 10 352 288
Trying 10 768 576
Trying 11 160 120
Trying 11 320 240
Trying 11 640 480
Trying 11 176 144
Trying 11 352 288
Trying 11 768 576
Trying 12 160 120
Trying 12 320 240
Trying 12 640 480
Trying 12 176 144
Trying 12 352 288
Trying 12 768 576
Trying 13 160 120
Trying 13 320 240
Trying 13 640 480
Trying 13 176 144
Trying 13 352 288
Trying 13 768 576
Trying 14 160 120
Trying 14 320 240
Trying 14 640 480
Trying 14 176 144
Trying 14 352 288
Trying 14 768 576
Trying 15 160 120
Trying 15 320 240
Trying 15 640 480
Trying 15 176 144
Trying 15 352 288
Trying 15 768 576
java.lang.Error: Can't open video card 1
java.lang.Error: Can't open video card 2
java.lang.Error: Can't open video card 3
java.lang.Error: Can't open video card 4
java.lang.Error: Can't open video card 5
java.lang.Error: Can't open video card 6
java.lang.Error: Can't open video card 7
java.lang.Error: Can't open video card 8
java.lang.Error: Can't open video card 9

最佳答案

我认为您正在寻找 Java 媒体框架。在 Linux 上,我希望网络摄像头出现在 dev 目录中的某个位置,并且您可以将其作为文件打开并从 JMF 读取数据。不过我自己没做过

虽然为您找到了此链接.. http://ubuntuforums.org/showthread.php?t=716250

关于java - 用于将网络摄像头与 java 集成的库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9211801/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com