Xubuntu中如何用Android手机摄像头作为系统的摄像头?

各种窗口管理器和美化相关
回复
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Xubuntu中如何用Android手机摄像头作为系统的摄像头?

#1

帖子 kashu » 2016-04-23 10:20

笔记本电脑自带的摄像头所抓取的画质不是非常好,如果能把手机的摄像头给笔记本所用,就非常好了。

Xubuntu中如何用Android手机摄像头作为笔记本的摄像头?
有什么好用的软件或方法?


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: Xubuntu中如何用Android手机摄像头作为系统的摄像头?

#2

帖子 vickycq » 2016-04-23 10:22

Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: Xubuntu中如何用Android手机摄像头作为系统的摄像头?

#3

帖子 kashu » 2016-04-23 10:54

谢谢,安装好了,可以用。
不要使用这个PPA源(ppa:paolorotolo/droidcam)来安装,用不了。

用droidcam官方网站提供的方法安装(http://www.dev47apps.com/droidcam/linuxx/):

代码: 全选

For DroidCam & DroidCamX version 6 and above (newest):
cd /tmp/
sudo apt-get install linux-headers-`uname -r`
bits=`getconf LONG_BIT`
wget https://www.dev47apps.com/files/600/droidcam-${bits}bit.tar.bz2
[[ ${bits} -eq 32 ]] && checksum=59a125f2b312bcb2a6421a1f69beefd1
[[ ${bits} -eq 64 ]] && checksum=dddc9f6321620662a60036a1383e5780
echo "${checksum}  droidcam-${bits}bit.tar.bz2" | md5sum -c --
# OK?
tar xjf droidcam-${bits}bit.tar.bz2
cd droidcam-${bits}bit/
sudo ./install
但有个严重的问题,在电脑上看到的画面是640x480的(只有这一个画质选项),画质相当差…… 不知道哪里有问题?
图片
[/size]


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: Xubuntu中如何用Android手机摄像头作为系统的摄像头?

#4

帖子 kashu » 2016-04-23 11:08

:em06 找到解决方法了…… 改成了1920x1080的,明显清晰多了。
You may change the webcam output resolution as follows:
1. Close any programs using the droidcam webcam. Unload the device driver:
sudo rmmod v4l2loopback_dc

2. Re-load it as follows (WIDTH and HEIGHT are numbers). :
sudo insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=WIDTH height=HEIGHT
Recommended resolutions: 320×240, 480×360, 640×480, 960×720 or 1280×720.

3. Restart the droidcam client to reload the settings, and test it out. You can keep changing the resolution.

4. Edit the text file /etc/modprobe.d/droidcam.conf with the new options to make the change stick.



OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
lauyee
帖子: 1
注册时间: 2016-04-27 9:09
系统: Windows 10

Re: Xubuntu中如何用Android手机摄像头作为系统的摄像头?

#5

帖子 lauyee » 2016-04-27 9:14

感谢,装好了,试用了一下,发现两个问题:
1.VLC中图像是横过来的。
2.Google Chrome浏览器中使用好像不行,找不到摄像头。
头像
omaidb
帖子: 104
注册时间: 2010-06-13 4:04

Re: Xubuntu中如何用Android手机摄像头作为系统的摄像头?

#6

帖子 omaidb » 2016-11-05 9:39

吊炸天啊,我也偶尔有过这样的想法,原来真的有人这样做啊
无涯书僧,Google一下
回复