自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 资源 (1)
  • 收藏
  • 关注

原创 ubuntu上卸载qt4,安装qt5

前言本人系统为ubuntu16.04,在进行qt开发时,需要解析json文件,此时出现#include < QJsonParseError>等头文件找不到的问题.查找资料后发现qt4不支持,qt5才支持,于是需要卸载qt4,安装qt5卸载qt4sudo apt-get autoremove --purge libqt4-[a-z]*安装qt5sudo apt-get install qt5-default...

2021-08-30 15:43:16 467

原创 Android studio Native C++工程不能断点调试C++代码的问题

Android studio Native C++工程不能断点调试C++代码的问题使用Android studio创建Native C++模板的工程,在C++代码中打断点是可以直接调试的,但是今天碰到始终不能进入C++断点的问题,百思不解,最后发现是因为打开了多个Android studio工程,另一个工程也正在debug中,导致当前Native C++工程不能断点调试C++代码…...

2021-08-18 17:30:26 1663

原创 ubuntu上开机自启动服务

在/etc/rc.local文件中添加:nohup ./start.sh & 默认输出到nohup.out文件或者nohup ./start.sh >output 2>&1 & 指定输出到output文件nohup即非阻塞方式启动服务.

2021-06-15 10:06:38 204

原创 Ubuntu下使用SSH挂载远程服务器目录

sudo apt-get install sshfssshfs user@host:/remote_directory /local_directory参考:Ubuntu下使用SSH挂载远程服务器目录

2021-05-31 20:27:06 187

原创 conda环境下pip安装tar.gz格式的离线资源包

###需求:在conda虚拟环境下安装opencvpip install opencv-contrib-python安装失败,原因:下载安装包失败pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple安装失败,原因:下载安装包失败###解决办法:离线安装下载安装包:复制网址https://pypi.tuna.tsinghua.edu.cn/packages/42/02/7b2fb0b81266aa3

2021-03-26 15:17:51 4394

原创 Ubuntu上UltraEdit过期处理办法

rm -rfd ~/.idm/uexrm -rf ~/.idm/*.splrm -rf /tmp/*.spl

2020-11-18 14:41:57 3153

原创 Linux screen使用方法

screen -S aaaaa(会话id) xxxxx(指令)screen -lsscreen -r aaaaa(会话id)Ctrl + a + d,回到宿主机screen -S aaaaa(会话id) -X quit

2020-08-04 08:37:30 125

原创 专利检索的几种方法

国家知识产权局-专利审查信息查询:http://cpquery.sipo.gov.cn/,需要精确检索,可用于查询已申请正在申请的专利信息.查询条件中的发明名称、申请号、申请人三者必须填一个。国家只是产权局→专利→专利检索...

2020-06-22 11:53:07 913

原创 win7建立wifi热点

参考:https://jingyan.baidu.com/article/a3761b2b6019161576f9aa38.html

2020-06-13 18:34:02 178

转载 RK3399 Android8.1静默安装APK

转载自:RK3399 Android8.1静默安装APK,部分修改.在RK3399 Android8.1上面,实现APK静默安装功能,下面是我们的测试验试过程:在RK3399 Android8.1源码目录下生成系统签名KEY:进入build/target/product/security目录:cd build/target/product/security创建build_system_jks2.sh文件,内容如下: #!/bin/bash echo "生成系统签名文件中..."

2020-06-12 15:37:17 1903

转载 adb获取android手机系统版本,已对应的api版本和硬件相关信息

原文链接:https://blog.csdn.net/l_vaule/article/details/79866396获取系统版本:adb shell getprop ro.build.version.release获取系统api版本:adb shell getprop ro.build.version.sdk获取手机相关制造商信息:adb shell getprop | grep "model\|version.sdk\|manufacturer\|hardware\|platform\|

2020-06-11 16:48:37 919

原创 C++中char转换short(或者int)要注意的现象

char temp = 0x80;cout << "unsigned short of 0x80=" << dec << (unsigned short)temp <<endl; //输出:unsigned short of 0x80=65408cout << "short of 0x80=" << dec << (short)temp <<endl; //输出:short of 0x80=-128un

2020-05-24 20:40:08 2307

原创 nanopc-t4交叉编译工具使用

在ubuntu上使用g++编译应用程序,再adb push到nanopc-t4之后执行报错:/system/bin/sh: ./tcp-client: not executable: 64-bit ELF file原因是需要使用交叉编译工具进行编译:下载gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz,下载地址再次执行,报错:/system/bin/sh: ./tcp-client-gcc: No such file or

2020-05-20 16:01:44 431

原创 百度AI开放接口使用方法

百度AI通用文字识别获取token# encoding:utf-8import requests# client_id 为官网获取的AK, client_secret 为官网获取的SKhost = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&' \ 'clien...

2020-04-23 14:19:15 1939

原创 python opencv从视频中保存特定帧的图像

# -*- coding=utf-8 -*-import cv2import argparseimport os# cam = 'rtsp://username:passwd@192.168.2.170:554/11'# cam = 'test.mp4'def basic_options(): parser = argparse.ArgumentParser() p...

2020-04-22 19:59:43 2794

原创 在docker容器中安装opencv2.4.11

参考:使用docker交叉编译opencv2.4.9如果是更新的版本的opencv,可以先到dockerhub上找找是否有可用的镜像docker pull ubuntu:16.04docker imagesdocker run -t -i ubuntu:16.04 /bin/bash (创建、启动、进入容器中)mv /etc/apt/sources.list /etc...

2020-04-09 11:32:05 2073

原创 opencv的使用

查看linux下的opencv安装库:pkg-config opencv --libs查看linux下的opencv安装版本:pkg-config opencv --modversion查看linux下的opencv安装路径:sudo find / -iname "*opencv*"sudo find / -iname "*opencv*" > /home/ubuntu/De...

2020-04-02 20:54:34 103

原创 pycharm找不到libcudart.so.10.0

问题pycharm远程连接开发服务器上的conda环境,在pycharm上run使用mxnet的代码时提示:OSError: libcudart.so.10.0: cannot open shared object file: No such file or directory但是,直接在服务器上对应conda环境中运行代码可以通过解决在服务器的终端上执行:sudo ldco...

2020-03-31 14:59:09 364

原创 conda正确安装mxnet

错误安装:pip install mxnet报错terminate called after throwing an instance of 'dmlc::Error' what(): [13:18:13] src/storage/storage.cc:119: Compile with USE_CUDA=1 to enable GPU usageStack trace: [b...

2020-03-31 14:08:42 2673

原创 缺少libboost_python3-py36.so库

问题python3.6中调用c++库:错误提示:ImportError: libboost_python3-py36.so.1.65.1: cannot open shared object file: No such file or directory解决wget -O boost_1_55_0.tar.gz http://sourceforge.net/projects/boo...

2020-03-30 15:56:58 2179

原创 配置支持GPU的docker环境、在docker容器中搭建python环境

安装docker和nvidia-dockerdocker安装https://www.runoob.com/docker/ubuntu-docker-install.html验证:docker run hello-worldnvidia-docker安装https://github.com/NVIDIA/nvidia-docker验证:docker run --gpus all nvidia...

2020-03-07 17:01:13 478

原创 Anaconda常用指令

创建环境:conda create -n rcnn python=3.6删除环境:conda remove -n rcnn --all重命名环境:conda create -n tf --clone rcnn && conda remove -n rcnn --all查看环境:conda info -e或者conda env list...

2020-03-06 11:44:01 88

原创 ubuntu上传代码到github

参考:Ubuntu系统下如何提交代码到GitHubsudo apt-get install gitssh-keygen -t rsa -C "your_email_name@126.com" -f ~/.ssh/githubcat ~/.ssh/github.pubssh -T git@github.comcd /home/yinwenbin/workspace/videoAnaly...

2020-03-02 21:06:15 138

转载 conda启动、退出、切换环境时自动执行脚本(转载)

在使用conda管理多种p...

2020-02-26 17:33:22 4984

原创 深度学习性能分析

python性能分析:python性能分析–cProfile# 性能分析装饰器定义def do_cprofile(filename): """ Decorator for function profiling. """ def wrapper(func): def profiled_func(*args, **kwargs): ...

2020-01-20 20:26:23 310

原创 python比较两个list

方法1:自己写的,耗时很长。当两个list是100000级别的数据时,需要好几分钟list1 = filelist(options.inputpath, filefeat='.jpg')list2 = filelist(options.outputpath, filefeat='.jpg')list3 = []for jpg in list1: if jpg not in lis...

2020-01-16 13:36:26 626

原创 python检索文件并保存

import osdef filelist(dir, subdir=None, filefeat=None): ''' 检索指定文件夹下的文件列表 :param dir: 检索起始根路径 :param subdir: 检索的根路径下的二级路径,默认为None :type subdir: list :param filefeat: 检索的文件的特...

2020-01-15 19:41:24 344

转载 Facial alignment with imutils

在取得了facial landmarks之後,我們便可以利用這些偵測點將臉部align。目前業界針對Face alignment的方法可分為2D與3D alignment,2D分法簡單直覺且為目前的主流,至於3D還在發展中且屬於各家機密,尚沒有一套固定的法則。Imutils的alignment還記得前一陣子AI界有個大新聞嗎?就是透過Kickstarter為自己的Deep learning新書...

2020-01-15 11:34:32 277

原创 git error:‘The requested URL returned error: 500‘

拉取/提交代码的时候遇到500错误码$ git pushfatal: unable to access 'http://192.168.2.193:65016/xxxxx/xxxxx/': The requested URL returned error: 500原因:设置了代理解决:在终端运行unset http_proxyunset https_proxygit push...

2020-01-14 11:46:50 21401 3

原创 ubuntu环境变量

ubuntu环境变量查看环境变量envenv命令是environment的缩写,用于列出所有的环境变量export单独使用export命令也可以像env列出所有的环境变量,不过export命令还有其他额外的功能使用echo命令查看单个环境变量。例如echo $PATHecho $PATH用于列出变量PATH的值,里面包含了已添加的目录使用set查看所有本地定义的环境变量。unse...

2020-01-14 10:34:06 210

原创 C++ std::string用法

string查找:参考C++ string中的find()函数string截取:str.substr(startpos, endpos)string比较:==,!=替换函数:std::string string_replace(const std::string &str, const std::string &before, const std::string &am...

2020-01-14 09:26:06 612

原创 ubuntu上smartgit过期处理办法

找到smartgit对应的settings.xml文件sudo find / -name “settings.xml”找到两个文件:/home/xxxxx/.smartgit/18.1/.backup/settings.xml/home/xxxxx/.smartgit/18.1/settings.xml删除这两个文件重启smartgit...

2020-01-12 17:25:25 981

原创 ubuntu上VSCode构建cmake工程

1.下载Visual Studio Code 编译器可以去Ubuntu自带的应用商店下载,或者使用你命令行下载2.设置中文显示直接下载的是英文版本,需要设置成中文显示先去VS Code自带的商店下载的插件,快捷键:Ctrl+Shift+x,搜索Chinese (Simplified) Language Pack for Visual Studio Code,点击下载;然后配置语言,快捷键...

2020-01-12 15:13:01 1619

原创 python写文件是否覆盖原来内容

python写文件是否覆盖原来内容python写文件覆盖原来内容不覆盖原来内容python写文件python写文件的两种方式:覆盖、不覆盖原来内容覆盖原来内容txt = ‘landmark.txt’wrf = open(txt, ‘w’)wrf.write(‘test01’ + ‘\n’)wrf.close()txt = ‘landmark.txt’wrf = open(txt,...

2020-01-12 13:39:26 7221

intel-mkl-developer-reference--2019.tar.gz

详细描述mkl的数据类型和接口使用方法,包含各种数值计算,向量运算,矩阵运算,支持大规模并行实现

2019-09-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除