摘要: def camera_intrinsic_transform(vfov=45,hfov=60,pixel_width=320,pixel_height=240): camera_intrinsics = np.zeros((3,4)) camera_intrinsics[2,2] = 1 camer 阅读全文
posted @ 2022-06-06 16:13 开锁球 阅读(198) 评论(0) 推荐(0)
摘要: import cv2 import numpy as np # 相机坐标系到像素坐标系的转换矩阵 fx = 831.514230246688 fy = 831.972596866759 cx = 327.324903206150 cy = 262.347092547845 K = np.array( 阅读全文
posted @ 2022-06-06 15:50 开锁球 阅读(207) 评论(0) 推荐(0)
摘要: import os filePath = '/home/lockingball/graduate/project/ehang/不同特征/superpoint/SuperPoint-SLAM-master-chanwoo/ehang_20220322/rgb' path2 = r'/home/lock 阅读全文
posted @ 2022-05-31 16:17 开锁球 阅读(302) 评论(0) 推荐(0)
摘要: import os import cv2 base_path = r"/home/lockingball/graduate/project/ehang/角度数据/测试数据/img/805/90" new_path = r"/home/lockingball/graduate/project/ehan 阅读全文
posted @ 2022-05-28 09:32 开锁球 阅读(61) 评论(0) 推荐(0)
摘要: express只能访问public下的文件 阅读全文
posted @ 2022-04-08 10:23 开锁球 阅读(63) 评论(0) 推荐(0)
摘要: 利用的ssh2以及ssh2-sftp-client 两个库完成,因为没有两个库的函数都是并行的,要添加async限制成同步 //下载数据 function send_zip(linux_file_path, zip_name, resolve, reject) { console.log("**** 阅读全文
posted @ 2022-04-08 10:22 开锁球 阅读(89) 评论(0) 推荐(0)
摘要: function addDiv() {//添加弹出窗体 $('<div id="divCell" style="position:absolute;background-color:#fbfbfb;z-index:1;top:50%;width:300px;height:120px;left:50% 阅读全文
posted @ 2022-04-08 10:17 开锁球 阅读(162) 评论(0) 推荐(0)
摘要: 简介:set容器,插入的时候会自动排序 本质:底层是二叉树实现 set和multiset区别,set不允许有重复的数字 使用: #include<set> set<T> st; set& operator = (const set &st) 遍历的时候 for(set<int>::iterator 阅读全文
posted @ 2022-03-19 16:25 开锁球 阅读(41) 评论(0) 推荐(0)
摘要: 多态分两类 静态多态:函数重载,运算符重载属于静态多态 动态多态:派生类和虚函数 虚函数 父类的应用可以直接指向子类,不需要强制类型转换,但是地址早绑定 virtual 可以实现地址晚绑定 动态多态满足条件 1.有继承关系 2.子类重写父类的虚函数 总的来说动态多态就是父类指针或引用指向子类的对象 阅读全文
posted @ 2022-03-19 16:14 开锁球 阅读(24) 评论(0) 推荐(0)
摘要: 友元,就是规定一个函数可以访问类的私有属性 1.全局函数做友元 class Person{ friend void goodgay(Person *building)//函数里面可以访问perso的私有成员,goodgay是全局函数 } 阅读全文
posted @ 2022-03-19 11:53 开锁球 阅读(40) 评论(0) 推荐(0)