自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 pyinstaller 打包程序,缩小exe大小,给exe加上图表

参考:https://www.yht7.com/news/136175一、使用pipenv为项目单独创建一个虚拟环境:1、安装pipenv:pip install pipenv2、指定python版本:pipenv install --python 3.63、激活虚拟环境pipenv shell4、安装第三方库:pip install pyinstaller二、在pipenv下打包exe1、pyinstaller参数介绍:--distpath <path>: 打

2021-11-27 10:34:18 915

原创 ubuntu分别设置动态IP和静态IP

sudo vim /etc/network/interfaces1,动态IP:更改为:auto toiface lo inet loopbackauto eno2iface eno2 inet dhcp```2,静态(固定)IP:假设设成192.168.1.9更改为:```powershellauto lo iface lo inet loopbackauto eno2iface eno2 inet staticaddress 192.168.1.9netmask 25

2021-10-29 19:03:47 688

原创 服务器没有无线网口,无法通过无线上网,在不使用无线网口的方式给服务器上网

需要一台可以联网的机器,称为主机,用这台可以上网的主机,给不能上网的服务器提供网络服务1、给主机的无线联网,注意:有线上网的IP和无线上网的IP是不同的,不要将两者混淆,此时,无线的IPv4不需要做任何设置,联网后,右键属性–>共享给以太网(有线)2、设置主机的有线IP和待联网机器的有线IP2.1、设置主机的有限IP,可以随意设置,此时设置为:192.168.1.15255.255.255.0192.168.1.12.2、设置待联网子机的有线IP(注意,如果是测试,先将待联网机器的wi

2021-10-27 20:11:34 75

原创 ubuntu16.04 安装openvino报错:/usr/local/bin/python3: No module named pip Error on or near line 88; exiti

在安装完openvino之后,需要配置模型优化器:cd /opt/intel/openvino/deployment_tools/model_optimizer/install_prerequisites#单独配置onnx框架sudo ./install_prerequisites_onnx.sh报错:/usr/local/bin/python3: No module named pipError on or near line 88; exiting with status 1此时:(m

2021-06-23 09:57:27 494

原创 object detection api 之 maskrcnn 训练自己的数据集

使用labelme标注软件标注数据,每张图片生成一个json文件,划分训练集和测试集,再划分jpg和json文件1,运行create_tf_record.py#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Sun Aug 26 10:57:09 2018@author: shirhe-lyh""""""Convert raw dataset to TFRecord for object_detection.Ple

2021-03-19 11:02:33 15

原创 python 打印log到文档中

import cv2,osimport logging#创建一个loglogger_name="example"logger=logging.getLogger(logger_name)logger.setLevel(logging.DEBUG)#创建一个handerlog_path="./log.log"fh=logging.FileHandler(log_path,"w")fh.setLevel(logging.WARN)#创建formatterfmt="%(asctime.

2020-12-11 15:15:05 274

原创 场景文字数据增强

https://github.com/RubanSeven/Text-Image-Augmentation-python

2020-09-29 17:22:48 384

转载 opencv Vec3b类型

定义Vec3b可以看作是vector<uchar, 3>。简单而言就是一个uchar类型的,长度为3的vector向量。 使用由于在OpenCV中,使用imread读取到的Mat图像数据,都是用uchar类型的数据存储,对于RGB三通道的图像,每个点的数据都是一个Vec3b类型的数据。使用at定位方法如下:img.at<Vec3b>(row, col)[0] = 255;  // 这是指修改B通道数据img.at<Vec3b>(row, col)[.

2020-09-17 14:15:22 1702

原创 ffmpeg简单命令

ffmpeg -i ./test1.avi -r 5 -ss 00:00:02 -t 4 image-%3d.jpg-r 代表每秒截取的帧数-ss截图起始时间-t 截图持续时间

2020-09-14 13:46:49 150

原创 yolov5根据检测得到的txt文件和image文件,截取框中的图片并保存

import osimport cv2path="/home/terryn/deep_learning/yolov5-master/output"path3="/home/terryn/deep_learning/yolov5-master"w=1920h=1080img_total=[]txt_total=[]file=os.listdir(path)for filename in file: first,last=os.path.splitext(filename) .

2020-07-16 11:05:42 9881 24

原创 文本检测:advanceeast训练自己的数据集

一:advanceeast训练时,将标记后的xml文件转成模型使用的txt文件。(xml_txt.py)#将标记后的xml文件转为advanceeast训练的格式import osimport xml.etree.ElementTree as ETimport shutilimport globimport timepath="/home/terryn/deep_learning/ocr/AdvancedEAST/icpr/ship_xml"# patht="D://python笔记"

2020-07-13 14:45:20 2144 49

原创 ubuntu下各种软件下载

使用deep-in-wine环境的移植版:参考1.git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git./install.sh2,以百度网盘为例:下载:网盘sudo dpkg -i deepin.com.baidu.pan_5.7.3deepin0_i386.deb

2020-06-07 10:03:11 2300

原创 ailed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try look

添加代码from tensorflow.compat.v1 import ConfigProtofrom tensorflow.compat.v1 import InteractiveSessionconfig = ConfigProto()config.gpu_options.allow_growth = Truesession = InteractiveSession(config=config)

2020-06-04 16:09:18 391 1

原创 双系统装显卡驱动,anaconda开两个虚拟环境分别装tf-gpu,torch-gpu,不同cuda版本下两个虚拟环境切换安装不同版本框架

电脑显卡:gtx2060系统:ubuntu16.04显卡驱动:440.59(装最新的驱动的原因是支持最新的cuda10.2,可支持多种cuda)显卡驱动:cuda10.2tf:tensorflow-gpu:1.14 ,cuda:10.1,cudnn:7.6.5torch:pytorch:1,5,torch:0.6,cuda:10.2,cudnn:7.6.5

2020-06-04 10:44:08 892

转载 nvcc -V版本号与/usr/local下cuda版本号不一致

https://blog.csdn.net/weixin_38705903/article/details/101850116

2020-06-02 09:49:55 752

原创 python 调用萤石摄像头视频流

萤石虽然是海康旗下公司,但是在用python调用视频流时的方式却不同,因为萤石摄像头并不支持浏览器访问,所以海康摄像头rtsp协议中的密码换为萤石自带的验证码,一般贴于萤石摄像头中间位置。...

2020-02-09 22:08:56 3917

原创 近期深度学习遇到的问题记录

问题1:之前的faster-rcnn在服务器上训练的时候一直报错,只有在batch_size为1的时候才会训练成功,目前还不知道原因...问题2:之前做facerank的时候,github为:https://github.com/fendouai/FaceRank装face_recognition库的时候 借鉴的是这篇文章:https://www.jianshu.com/p/8296f2a...

2019-03-16 23:24:30 272

原创 TensorFlow:将自己训练好的模型迁移到电脑摄像头和外置海康摄像头上,并在视频中实时检测

有了训练好的模型之后,可以将模型迁移到电脑或者手机上电脑:# -*- coding: utf-8 -*-"""@author: Terry n"""# Importsimport numpy as npimport osimport sysimport tensorflow as tfimport cv2# if tf.__version__ &lt; '1....

2018-10-08 19:30:05 2860 3

原创 TensorFlow:基于TensorFlow_object_detection_api实现图片识别

在配置完TensorFlow-object-detection-api的环境变量后,可以运行官方的demo。接下来就是通过自己训练的模型识别自己所需要的图片。先说明在此过程中遇到的两大巨坑:1,在anaconda prompt下文件名中不能用空格,即空格可用_替代,这样可以为以后省下不少麻烦2,在下载TensorFlow时,使用TensorFlow-gpu,因为cpu下实在太慢,下载gpu...

2018-09-24 15:39:10 1612 6

原创 win10下在virtual box下安装Ubuntu系统

1,下载并安装virtual box (建议官网下载)https://www.virtualbox.org/wiki/Downloads因为在win10下,下载如下版本安装步骤:①双击安装包②选择安装路径,尽量不要装在c盘③一路next就行④安装完成后用户界面2,安装迅雷,因为从Ubuntu官网下载的系统是种子文件,从virtual box导...

2018-09-23 00:46:44 361

原创 voc2012中xml文档代码简单说明

原图标识后图片:代码演示及说明:&lt;annotation&gt; &lt;folder&gt;VOC2012&lt;/folder&gt; //文件名 &lt;filename&gt;2007_000346.jpg&lt;/filename&gt; &lt;source&gt; ...

2018-07-11 14:48:23 1569

原创 halcon旋转车牌识别

read_image (Image, 'C:/Users/asus/Desktop/2345_image_file_copy_1 (1).jpg')dev_close_window ()dev_open_window (0, 0, 640, 480, 'black', WindowHandle)decompose3 (Image, Red, Green, Blue) trans_f...

2018-07-07 10:35:50 880

原创 读取图像并连接电脑摄像头

//读取图像/*#include &lt;opencv2/opencv.hpp&gt;#include &lt;iostream&gt;using namespace cv;using namespace std;int main(int argc, char** argv) {//VideoCapture capture;//capture.open("D:/vcproject...

2018-05-17 21:23:53 1295

原创 opencv图像操作之图像融合

学习利用加减乘除融合图像,例如加主要学习addweight函数#include&lt;opencv2/opencv.hpp&gt;#include&lt;iostream&gt; #include&lt;math.h&gt;using namespace std;using namespace cv;int main(int agrc, char **argv){ Mat src1,...

2018-05-12 22:09:31 2663

原创 opencv图像操作,对单通道,三通道图像像素的读取

#include&lt;opencv2/opencv.hpp&gt;#include&lt;iostream&gt;#include&lt;math.h&gt;using namespace std;using namespace cv;int main(int argc, char**argv){ Mat src,dst,gray_src; src = imread("D:/te...

2018-05-12 19:53:31 17341 1

转载 OpenCV Mat数据类型指针ptr的使用

cv::Mat image = cv::Mat(400, 600, CV_8UC1); //宽400,长600 uchar * data00 = image.ptr&lt;uchar&gt;(0); uchar * data10 = image.ptr&lt;uchar&gt;(1); uchar * data01 = image.ptr&lt;uchar&gt;(...

2018-05-11 20:34:23 762

空空如也

空空如也

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

TA关注的人

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