[Hardware] thinkpad x1 carbon 6th gen人脸识别默认开启红外摄像头无法捕捉图像
Tofloor
poster avatar
Oaklight
deepin
2022-06-08 23:40
Author

更新

官方产品组表示会在v23实现该部分内容

问题描述

笔记本是第六代的x1 carbon,用了deepin有两个多月了,体验还是挺好的。只是人脸识别这个功能没有办法正常使用,每次添加人脸的时候都是红外相机开启,一直捕捉不到可用的图像。不知道是否有办法解决这个问题?

似乎红外摄像头是默认的第一个摄像头,RGB摄像头为默认第二序号。日常使用的时候我通过添加如下自动运行的脚本解决了网络视频的默认摄像头问题:

$ cat /usr/bin/best-webcam.sh

#!/bin/bash
# Make default camera /dev/video0 point to the "best" camera present.

if [ -h /dev/video0 ]; then 
   sudo rm /dev/video0   # not first run: remove our old symlink
elif [ -e /dev/video0 ]; then
   sudo mv /dev/video0 /dev/video0.original   # first run: rename original video0
fi 
if [ -e /dev/video1 ]; then
   sudo ln -s /dev/video1 /dev/video0   # symlink to video1 since it exists
   echo "Set default camera /dev/video0 --> external camera /dev/video1"
elif [ -e /dev/video0.original ]; then  # symlink to video0.original otherwise
   sudo ln -s /dev/video0.original /dev/video0
   echo "Set default camera /dev/video0 --> integrated camera /dev/video0.original"
else
   echo "Sorry, does this machine have no camera devices?"
   ls -l /dev/video*
Reply Favorite View the author
All Replies
zccrs
deepin
2022-06-09 19:18
#1

对于这种有多个摄像头的环境,恐怕得加个设置人脸识别所使用的设备的功能 @Merlin

Reply View the author
Oaklight
deepin
2022-06-09 20:13
#2
zccrs

对于这种有多个摄像头的环境,恐怕得加个设置人脸识别所使用的设备的功能 @Merlin

这个提议我觉得挺好的,如果有不仅限于人脸识别的全局优先级设置就更好了。

Reply View the author
zccrs
deepin
2022-06-09 21:18
#3
Oaklight

这个提议我觉得挺好的,如果有不仅限于人脸识别的全局优先级设置就更好了。

这一般是相关应用自己提供选择,比如相机应用应该提供对摄像头的切换功能

Reply View the author
Oaklight
deepin
2022-06-12 22:29
#4
zccrs

这一般是相关应用自己提供选择,比如相机应用应该提供对摄像头的切换功能

想到这个事情主要是因为现在微信每次视频打开之后就是红外摄像头然后不断地闪烁,还是挺阴间的

Reply View the author
Oaklight
deepin
2022-06-29 18:02
#5
zccrs

对于这种有多个摄像头的环境,恐怕得加个设置人脸识别所使用的设备的功能 @Merlin

这个有提上日程吗?

Reply View the author
Merlin
deepin
2022-06-29 19:12
#6
It has been deleted!
Merlin
deepin
2022-06-29 19:25
#7
It has been deleted!
Merlin
deepin
2022-06-29 19:25
#8
It has been deleted!
Merlin
deepin
2022-06-29 19:25
#9
It has been deleted!
Merlin
deepin
2022-06-29 19:26
#10

我们会在V23去实现这个功能。

Reply View the author