摘要: 1.5.3文件包含命令和包含警卫 文件包含命令,就是指宏指令#include,这个指令的作用就是包含当前文件所需类型的定义。通常后面有两种形式的包含:第一种是尖括号包含的文件,表示要到系统目录下去寻找;第二种是引号包含的文件,表示在当前工程目录中去寻找。当工程中文件重多时,很有可能出现一个头文件被多 阅读全文
posted @ 2019-10-15 11:15 tangjunjun 阅读(314) 评论(0) 推荐(0)
摘要: // 有关学生信息的头文件student.h代码如下 #include #include using namespace std; struct Student // 表示学生信息的结构体 { string id; // 学号 string name; // 姓名 int grade; // 年级 阅读全文
posted @ 2019-10-15 11:14 tangjunjun 阅读(113) 评论(0) 推荐(0)
摘要: 数组 enum eRelation // 表示计算策略的枚举体 { eLess, // 小于 eEqual, // 等于 eGreater // 大于 }; template< typename T, typename ITER_TYPE> ITER_TYPE find_if_number( ITE 阅读全文
posted @ 2019-10-15 11:13 tangjunjun 阅读(139) 评论(0) 推荐(0)
摘要: import tensorflow as tfimport osos.environ["CUDA_VISIBLE_DEVICES"] = '0' #指定第一块GPU可用config = tf.ConfigProto()config.gpu_options.per_process_gpu_memory 阅读全文
posted @ 2019-10-14 23:45 tangjunjun 阅读(2825) 评论(0) 推荐(0)
摘要: 线性soft-nms: 高斯nms: 阅读全文
posted @ 2019-09-30 16:32 tangjunjun 阅读(925) 评论(0) 推荐(1)
摘要: """nms输入的数据为box的左上角x1,y1与右下角x2,y2+confidence,rows=batch_size,line=[x1,y1,x2,y2,confidence];首先将batch_size按照已给的confidence从大到小排序,将最大confidence的box保存,而后与其它batch_size-1个boxes进行iou,得到新的batch_size-1个iou(conf... 阅读全文
posted @ 2019-09-28 21:18 tangjunjun 阅读(869) 评论(0) 推荐(0)
摘要: import numpy as nppath_txt_data = 'C:/Users/51102/Desktop/my_yolo/data/box/train.txt'def input_data(path_txt_data): # 读取文件,其中文件格式为2.bmp 69,172,270,330,2 150,141,229,284,2 285,201,327,331,3 258,198,29... 阅读全文
posted @ 2019-09-25 22:42 tangjunjun 阅读(1848) 评论(0) 推荐(0)
摘要: 添加一个数与添加多维数组的结果,如下: 1.增加多维度 阅读全文
posted @ 2019-09-24 19:58 tangjunjun 阅读(3199) 评论(0) 推荐(0)
摘要: 正确的做法: 阅读全文
posted @ 2019-09-21 09:44 tangjunjun 阅读(4208) 评论(0) 推荐(1)
摘要: 有可能你保存了图片的数据,但是没法用cv.imshow将其图片打印出来,其原因可参考博客 阅读全文
posted @ 2019-09-20 16:54 tangjunjun 阅读(5024) 评论(0) 推荐(0)
https://rpc.cnblogs.com/metaweblog/tangjunjun