摘要: liunx中每行的头部插入特定字符: sed -i 's/^/HEAD&/g' testname.txt 其中 ^ 表示行首, $ 表示行尾 字符 g 代表一行出现多处,全部替换,没有加 g 表示只替换第一个 -i 表示在原文件修改 替换字符: sed -i 's#search_string#rep 阅读全文
posted @ 2020-09-02 19:38 wulc++ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 参考: https://blog.csdn.net/Mr_YanYan/article/details/80049306 参考: https://www.open-open.com/lib/view/open1476069597550.html (很好的一篇博文) 1、从一个分支中创建一个新的分支 阅读全文
posted @ 2020-08-20 20:18 wulc++ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 本文是对cnstream代码的学习笔记 git代码 :https://github.com/Cambricon/CNStream 寒武纪开发者论坛: http://forum.cambricon.com/list-47-1.html 1 简介osd模块 这个模块主要是将检测和追踪结果叠加在原图上的。 阅读全文
posted @ 2020-08-18 19:30 wulc++ 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 本文是对cnstream/samples/example/example.cpp代码的学习笔记 git代码 :https://github.com/Cambricon/CNStream 寒武纪开发者论坛: http://forum.cambricon.com/list-47-1.html 1 实例化 阅读全文
posted @ 2020-08-18 15:36 wulc++ 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 参考:http://c.biancheng.net/view/422.html https://www.cnblogs.com/MrYuan/p/4800257.html 程序运行时的异常情况可以通过try...catch来“跳过”异常情况导致的程序奔溃。 #include <iostream> # 阅读全文
posted @ 2020-08-17 15:38 wulc++ 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 本文是对cnstream/samples/example/example.cpp代码的学习笔记 git代码 :https://github.com/Cambricon/CNStream 寒武纪开发者论坛: http://forum.cambricon.com/list-47-1.html 1、创建p 阅读全文
posted @ 2020-08-12 15:35 wulc++ 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 1、 std::function 类模板 std::function 是一个通用的多态函数包装器。当做函数指针。 2、function类模板 1 template< class R, class... Args > 2 class function< R (Args...)> 说明:R是被调用函数的 阅读全文
posted @ 2020-08-11 10:39 wulc++ 阅读(928) 评论(0) 推荐(0) 编辑