摘要:
``` // 【头文件包含部分】 // 描述:包含程序所依赖的头文件 // include"opencv2/highgui/highgui.hpp" include"opencv2/imgproc/imgproc.hpp" include // 【命名空间声明部分】 // 描述:包含程序所使用的命名 阅读全文
摘要:
重映射,就是把一幅图像中某位置的像素放置到另一个图片指定位置的过程。 为了完成映射过程, 我们需要获得一些插值为非整数像素的坐标,因为源图像与目标图像的像素坐标不是一一对应的。 一般情况下,我们通过重映射来表达每个像素的位置 (x,y), 像这样 : g(x,y) = f ( h(x,y) ) 在这 阅读全文
摘要:
1. ('scaled=', array([[0.01791432, 0.00399722, 0.97808844], [0.04980332, 0.04506391, 0.90513283]], dtype=float32)) ('scaled2=', array([[0.21747023, 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 阅读全文
摘要:
Params 'pad_out_{}_' are deprecated. Please declare upsample height and width useing the upsample_h, upsample_w parameters. 查了一下,segnet的长宽需要设成32的倍数,要不 阅读全文
摘要:
一张图对应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 阅读全文
摘要:
参考链接如下: 原理:https://max.book118.com/html/2019/0313/8102130101002012.shtm 代码:https://wenku.baidu.com/view/b3f91c3467ec102de2bd89a3.html 例如原理链接里面的一题: 跑代码 阅读全文
摘要:
应用场景: 文件夹img,txt, img存放的是原图,txt存放的是img中图片名字一样的.txt。 其中一个txt样例如下: 一个框一行 阅读全文
摘要:
.pro function.h function.cpp main.cpp 阅读全文