`
sudo /zxedu/bin/libexec/install-x11.py sudo cp /zxedu/bin/libexec/data/xapp.ini /zxedu/data/config/x11/
vim /etc/xorg.cong Section "Monitor" Identifier "HDMI-1" Option "PreferredMode" "1600x900" EndSection Section "Screen" Identifier "HDMI-1" Monitor "Monitor" DefaultDepth 24 Option "TwinView Orientation" "RightOf" SubSection "Display" Depth 24 EndSubSection EndSection
aplay -l 得到设备信息(0是声卡编号,7是设备编号);aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav 测试是否正常运行(耳机音响也可以)
alsamixer
注意:MM代表关闭 00是代表开启 M切换状态 上下键更改声音大小
alsactl store && cp /var/lib/alsa/asound.state /zxedu/data/config/x11/backup/ #保存配置
vim /zxedu/data/config/x11/xapp.ini enable = true env = "ALSAPCM=plughw:0,7" ##1.2中aplay -l得到的设备编号 xinit = "/usr/bin/chromium" "--no-sandbox" "--user-data-dir=/zxedu/data/chromium" "--start-fullscreen" "--window-size=1920,1080" "--app=http://127.0.0.1/webui/#/gate-tunnel"
vim /zxedu/data/config/x11/xapp.ini # 1. 修改参数--camera,指定相机 # 2. 默认在本地进行人脸识别,需要额外安装依赖 # /zxedu/bin/libexec/install-facefeature.sh # 3. 可以使用Remote GPU模块 # 在--zxface_url参数中增加'|feature=http://remote.gpu' # 4. 海康相机RTSP地址:rtsp://admin:ggmm2016@192.168.0.5/Streaming/Channels/1 # 5. 必须配置campusng支持zxface,如果本机未安装显卡的话需要配置campusng使用Remote GPU # 如果不能为campusng配置zxface,可以配置远程人脸比对: # --zxface_url='|match=http://remote.cdn' --cdn_url='http://remote.cdn' # 或者: # --zxface_url='|match=http://remote.cdn|feature=http://remote.gpu' --cdn_url='http://remote.cdn' #6. 无显卡cdn需启用云端gpu人脸识别 vim /zxedu/data/config/campusng/zxface_remote_url,没有文件新建;添加云端gpu # 地址http://192.168.1.246(本地) http://cd.nashira.cn:60088(公网),有显卡需要安装large镜像 env = "LD_LIBRARY_PATH=/usr/local/campusng/lib/lib:/usr/local/cuda/lib64:/usr/local/openvino" "PYTHONPATH=/usr/local/openvino/python3.7:/usr/local/campusng/lib/face:/usr/local/campusng/lib" xinit = "/usr/bin/env" "python3" "face_recognition_demo.py" "--full_screen" "--face_function=match" "--zxface_url=|match=http://127.0.0.1" "--camera=webcam://0"##调用本身相机或者USB相机 #xinit = "/usr/bin/env" "python3" "face_recognition_demo.py" "--full_screen" "--face_function=match" "--zxface_url=|match=http://127.0.0.1" "--camera=rtsp://admin:ggmm2016@192.168.1.172/Streaming/Channels/1"##调用第三方ip相机
vim /zxedu/data/config/x11/xapp.ini env = "ALSAPCM=plughw:0,7" ##1.2中aplay -l得到的设备编号 xinit = "/usr/bin/chromium" "--no-sandbox" "--user-data-dir=/zxedu/data/chromium" "--ignore-gpu-blacklist" "--use-gl=desktop" "--start-fullscreen" "--window-size=1920,1080" "--app=http://127.0.0.1/webui/tools/fullscreen_cameras.html#camera_cmdb_id_0,camera_cmdb_id_1"
```sh sudo /zxedu/bin/libexec/install-x11.py sudo /zxedu/bin/libexec/install-facefeature.sh (启用本地人脸识别安装,未启用不用安装)
``