摘要: ``` // 【头文件包含部分】 // 描述:包含程序所依赖的头文件 // include"opencv2/highgui/highgui.hpp" include"opencv2/imgproc/imgproc.hpp" include // 【命名空间声明部分】 // 描述:包含程序所使用的命名 阅读全文
posted @ 2019-12-25 17:26 无左无右 阅读(2232) 评论(0) 推荐(0) 编辑
摘要: 重映射,就是把一幅图像中某位置的像素放置到另一个图片指定位置的过程。 为了完成映射过程, 我们需要获得一些插值为非整数像素的坐标,因为源图像与目标图像的像素坐标不是一一对应的。 一般情况下,我们通过重映射来表达每个像素的位置 (x,y), 像这样 : g(x,y) = f ( h(x,y) ) 在这 阅读全文
posted @ 2019-12-23 20:30 无左无右 阅读(3830) 评论(0) 推荐(0) 编辑
摘要: 1. ('scaled=', array([[0.01791432, 0.00399722, 0.97808844], [0.04980332, 0.04506391, 0.90513283]], dtype=float32)) ('scaled2=', array([[0.21747023, 0. 阅读全文
posted @ 2019-12-19 19:35 无左无右 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ##1. 点旋转 vector<Point> rot_pt(vector<Point> &v_pt,const cv::Mat &map_matrix) { //std::cout<<"map_matrix="<<map_matrix<<std::endl; float *map = (float 阅读全文
posted @ 2019-12-19 13:36 无左无右 阅读(1651) 评论(0) 推荐(2) 编辑
摘要: Params 'pad_out_{}_' are deprecated. Please declare upsample height and width useing the upsample_h, upsample_w parameters. 查了一下,segnet的长宽需要设成32的倍数,要不 阅读全文
posted @ 2019-12-14 13:41 无左无右 阅读(433) 评论(0) 推荐(0) 编辑
摘要: example 1: 阅读全文
posted @ 2019-12-10 13:43 无左无右 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 一张图对应txt 45.0,1400.0,320.0,1317.0,3387.0,1447.0,3575.0,1537.0,3537.0,1592.0,3367.0,1640.0,287.0,1502.0 drawContours这个函数接受的contours格式搞死我了,一定要这样arr = np 阅读全文
posted @ 2019-11-29 10:44 无左无右 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 参考链接如下: 原理:https://max.book118.com/html/2019/0313/8102130101002012.shtm 代码:https://wenku.baidu.com/view/b3f91c3467ec102de2bd89a3.html 例如原理链接里面的一题: 跑代码 阅读全文
posted @ 2019-11-25 21:03 无左无右 阅读(4327) 评论(0) 推荐(0) 编辑
摘要: 应用场景: 文件夹img,txt, img存放的是原图,txt存放的是img中图片名字一样的.txt。 其中一个txt样例如下: 一个框一行 阅读全文
posted @ 2019-11-19 11:00 无左无右 阅读(692) 评论(0) 推荐(0) 编辑
摘要: .pro function.h function.cpp main.cpp 阅读全文
posted @ 2019-11-14 11:03 无左无右 阅读(388) 评论(0) 推荐(0) 编辑