09 2018 档案
摘要:截取任意四边形区域的图像。 mask就是结果。 需要定义四边形区域,分别是 tl, tr, bl, br
阅读全文
摘要:#include #include #include #include #include // Never include win32 heads before window.h bool printAllProcess(std::map &_mapProcess, bool is_print = true) { PROCESSENTRY32 pe32; pe32.dwSiz...
阅读全文
摘要:不加plt的显示,不会有窗口。
阅读全文
摘要:strip() 是为了去除字符串头尾的空格
阅读全文
摘要:import tensorflow as tf import os categories = ['folder1', 'folder2'] for folderName in categories: #os.makedirs('./%s' % folderName, exist_ok=False); # 当文件已存在,无法创建该文件 os.makedirs('./%s' % ...
阅读全文
摘要:Transform得到的是重MatFrom到MatTo的变换矩阵。inlier给一个空矩阵就可以。 MatFrom和MatTo都是点的矩阵,每一行就是一个点。 这个函数使用的是点对来估计变换矩阵。是三维的,所以需要XYZ坐标。优化方法是RANSAC。
阅读全文
摘要:代码 注意 xml中保存的节点超过4个就会打开失败,opencv的问题。
阅读全文
摘要:效果: 或者灰度,cell大小可调 代码: 使用说明: 见help()
阅读全文
摘要:代码 结果 代码 结果 代码 结果
阅读全文
摘要:Concatenates tensors along one dimension.
阅读全文
摘要:# 'value' is a tensor with shape [5, 30] # Split 'value' into 3 tensors with sizes [4, 15, 11] along dimension 1 split0, split1, split2 = tf.split(value, [4, 15, 11], 1) tf.shape(split0) # [5, 4] tf...
阅读全文
摘要:b_idx = np.random.randint(0, 9, 90) >>> b_idx array([0, 1, 5, 4, 7, 2, 7, 0, 0, 4, 2, 2, 3, 5, 6, 4, 7, 0, 3, 2, 7, 3, 8, 5, 4, 3, 1, 8, 6, 6, 5, 5, 3, 2, 2, 2, 0, 4, 8, 1, 5, 3, 2, 6, ...
阅读全文
摘要:假如一个电脑上有多个Python的环境,想要设置不同的python解释器用于调试。 VSCode 的设置,是通过.json的文本来配置的。打开文本的方式: 打开后的文件如下所示: 可以试试“new settings editor”,是一个类似界面的输入方式; 找到python的路径,如图所示。 修改
阅读全文
摘要:今天测试发现一个问题,cv::FileStorage读取中,xml文件的第一层节点不能超过4个。 在加一个test4的话,就会在 中挂掉。
阅读全文