相关资源百度网盘下载
cuda_10.0.130_410.48_linux.run
cudnn-10.0-linux-x64-v7.3.1.20.tgz
senseshield-2.2.0-38284-x86_64.deb
aison-2.1.0-amd64.deb [请联系客服人员提供相关下载地址]
准备,在准备阶段首先安装linux-header库,并禁止内核中的nouveau模块,然后重启,具体操作步骤如下:
sudo apt-get install linux-headers-$(uname -r) sudo touch /etc/modprobe.d/blacklist-nouveau.conf ##使用您熟悉的编辑器(VIM, GEDIT, NANO等),向blacklist-nouveau.conf文件中添加两行,保存并退出 blacklist nouveau options nouveau modeset=0 ##更新内核镜像文件,重启 sudo update-initramfs -u && reboot
安装CUDA和CUDNN ,重启后,同时按ctrl+alt+f1三个键进入终端模式,输入用户名和密码,登录终端。
## 先停止lightdm图形服务 sudo /etc/init.d/lightdm stop ## 安装CUDA sudo ./cuda_10.0.130_410.48_linux.run --silent --driver --toolkit --run-nvidia-xconfig --verbose ##建立cuda软件连接 sudo ln -sf /usr/local/cuda-10.0 /usr/local/cuda ## 解压CUDNN库 sudo tar -xvf cudnn-10.0-linux-x64-v7.3.1.20.tgz -C /usr/local ##运行cuda自带的deviceQuery程序,测试安装是否正常 /usr/local/cuda/extras/demo_suite/deviceQuery ##启动图形界面 sudo /etc/init.d/lightdm start
安装昕桓SDK和识别demo
#逐行执行下面的三个命令,安装加密包和识别开发包和OpenCV依赖库 dpkg -i senseshield-2.2.0.38284-x86_64.deb dpkg -i OpenCV-3.3.1-amd64-libs.deb, OpenCV-3.3.1-amd64-dev.deb dpkg -i aison-2.1.0-amd64.deb ##如果出现找依赖包没有安装的提示信息,类似下面这些,是正常现象,通过命令 sudo apt install -f 继续安装 (Reading database ... 212704 files and directories currently installed.) Preparing to unpack .../aison-2.1.0-Linux.deb ... Unpacking aison (2.1.0) ... dpkg: dependency problems prevent configuration of aison: aison depends on qtcreator; however: Package qtcreator is not installed. aison depends on qt5-default; however: Package qt5-default is not installed. aison depends on libprotobuf-dev; however: Package libprotobuf-dev is not installed. aison depends on libleveldb-dev; however: Package libleveldb-dev is not installed. aison depends on libsnappy-dev; however: Package libsnappy-dev is not installed. aison depends on libhdf5-serial-dev; however: Package libhdf5-serial-dev is not installed. aison depends on protobuf-compiler; however: Package protobuf-compiler is not installed. aison depends on libboost-all-dev; however: Package libboost-all-dev is not installed. aison depends on libopenblas-dev; however: Package libopenblas-dev is not installed. aison depends on libssl-dev; however: Package libssl-dev is not installed. aison depends on libgflags-dev; however: Package libgflags-dev is not installed. aison depends on libgoogle-glo dpkg: error processing package aison (--install): dependency problems - leaving unconfigured Errors were encountered while processing: aison ##安装完成后会提示如下信息 (Reading database ... 235361 files and directories currently installed.) Preparing to unpack .../aison-2.1.0-amd64.deb ... Unpacking aison (2.1.0) over (2.1.0) ... Setting up aison (2.1.0) ... create symbolic .... succeed installed all files! run those commands to launch recog-demo sudo chown -R $USER /usr/local/aison /usr/local/aison-2.1.0 export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/lib:$LD_LIBRARY_PATH /usr/local/aison/examples/recog-demo
启动识别demo ,如果程序运行后提示没有 **** 登陆用户和密码***程序退出,请联系我的客服人员,给安装的机器授权。
### 添加安装的库到LD_LIBRARY_PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/lib:$LD_LIBRARY_PATH ### 运行识别demo /usr/local/aison/examples/recog-demo
运行后,界面的截图如下: