上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 在C/C中有可以直接测试程序运行时间的函数,在<time.h>/头文件中,非常方便和实用。 clock()是C/C中的计时函数,而与其相关的数据类型是clock_t。 该函数计时是以毫秒(ms)为单位的,需要除以一个常量1000才是以秒为计时单位,可以使用头文件中声明好的常量CLOCKS_PRE_S 阅读全文
posted @ 2020-11-12 10:57 callcall 阅读(1699) 评论(0) 推荐(0) 编辑
摘要: 其中.lib为文件名后缀,0.txt为写入文件 ```bash dir /b *.lib >0.txt ``` 附0.txt分离代码,可将奇数行和偶数行分离,仅供参考 ```c++ #include #include #include #include using namespace std; in 阅读全文
posted @ 2020-11-11 15:06 callcall 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 增加头文件: #include<iostream> 阅读全文
posted @ 2020-11-06 16:03 callcall 阅读(2409) 评论(0) 推荐(0) 编辑
摘要: #include "opencv2/imgproc/types_c.h" 添加以上头文件 阅读全文
posted @ 2020-11-06 16:02 callcall 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 以绿色为例,使用cvtColor就可以转换出绿色的hsv值 import numpy as np green=np.uint8([[[0,255,0]]]) hsv_green=cv2.cvtColor(green,cv2.COLOR_BGR2HSV) print(hsv_green) #结果[[[ 阅读全文
posted @ 2020-11-04 11:49 callcall 阅读(891) 评论(0) 推荐(0) 编辑
摘要: git fetch --all git reset --hard origin/master git pull 阅读全文
posted @ 2020-11-03 19:58 callcall 阅读(1854) 评论(0) 推荐(0) 编辑
摘要: sudo /etc/init.d/ssh restart 暂时没有看到其他更好的解决方案,如果有希望能交流一下 阅读全文
posted @ 2020-11-03 19:57 callcall 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 在树莓派上运行自己的程序的时候报了错误 Can't open /dev/mem: Permission denied RuntimeError: ws2811_init failed with code -5 (mmap() failed) ,看了网上好像没有什么解决办法,分享一个自己的 在命令行下 阅读全文
posted @ 2020-11-03 19:53 callcall 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 解决办法:删掉Python的site-packages文件夹下,tensorboard--x.x.xdist-info文件夹 原因是安装多个tensorflow时会安装tensorboard,但卸载tensorflow的时候好像不会一起卸载 阅读全文
posted @ 2020-11-03 19:47 callcall 阅读(2242) 评论(0) 推荐(0) 编辑
摘要: tensorboard --logdir XXX --host=127.0.0.1 阅读全文
posted @ 2020-11-03 19:45 callcall 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页