[置顶] c# wpf list linq where 中 max求最大值 导致linq效率很差 ( where 条件中 不要放函数 不然每次求值都会运算导致效率差!!!!!!!!!!!)

摘要: 如图 为 where中 加max筛选 执行时间大约29504ms速度极慢 如图是 把max筛选提前计算后 时间只需要27ms!!!!!! 是前一种的1092倍!! 不知道 是不是什么bug 记录一下。。。。。 是自己 写的问题,where里最好不要放函数等 计算时求值 的函数 , where 每次求 阅读全文

posted @ 2021-05-12 10:00 逆风的泰迪man 阅读(370) 评论(0) 推荐(0)

2022年3月16日

win dbus 编译与使用

摘要: windows 上DBus编译 1.下载源码 dbus branches 2. cmake 编译项目 依赖expat 还是自己cmake编译生成64bit dll libexpat 3.cmake 上配置好expat lib路径 4.生成sln vs编译 把这个session.conf 拷贝到dbu 阅读全文

posted @ 2022-03-16 12:57 逆风的泰迪man 阅读(698) 评论(0) 推荐(0)

2022年1月10日

Qt QSerialPort waitReadyRead 坑

摘要: WaitReadyRead 是信号readyread 触发 信号槽形式 waitreadyread 在其它线程时 信号槽通信:?可能不通 ?阻塞 ?优先级 阅读全文

posted @ 2022-01-10 14:10 逆风的泰迪man 阅读(325) 评论(0) 推荐(0)

2021年11月26日

qml 去除按下space 空格 触发button、switch 等

摘要: 改变 属性 focusploicy:Qt.NoFocus 阅读全文

posted @ 2021-11-26 10:53 逆风的泰迪man 阅读(217) 评论(0) 推荐(0)

2021年9月1日

libtorch 数组索引和张量操作 与pytorch比较

摘要: 数组索引 libtorch torchTensor idx=torchzeros({270,360}); torchTensor t=torchzeros({255}); //idx里的值作为t的索引 torch::Tensor out=t.index({idx}) python out=t[idx 阅读全文

posted @ 2021-09-01 09:39 逆风的泰迪man 阅读(299) 评论(0) 推荐(0)

2021年8月28日

qml 串口通信 数据格式转换记录

摘要: 发送数据 16进制HEX转QByteArray QString CMD="55AA88FFFFFFFF"; QByteArray str2 = QByteArray::fromHex (CMD.toLatin1().data()); 需要循环发送 则需要在write 后加 serial->write 阅读全文

posted @ 2021-08-28 09:54 逆风的泰迪man 阅读(471) 评论(0) 推荐(0)

2021年8月26日

Qimage 与cv::Mat互转

摘要: QImage Common::cvMat2QImage(const cv::Mat & mat) { // 8-bits unsigned, NO. OF CHANNELS = 1 if (mat.type() == CV_8UC1) { QImage image(mat.cols, mat.row 阅读全文

posted @ 2021-08-26 13:29 逆风的泰迪man 阅读(246) 评论(0) 推荐(0)

2021年7月26日

单目标跟踪 siamnet 网络 siamfcpp siamfc++ c++ 实现

摘要: 1. 目前在做目标跟踪方面 滤波:kcf dsst 速度最快 参数多 不同场景调参费事 siam : 精度高 目前 siamfcpp 速度 在GTX1660 super、i7-10代上测试 能达到96FPS 。cpu上能达到13FPS。 目前正在看siamfcpp源码 计划试试转成c++ 需要时间。 阅读全文

posted @ 2021-07-26 10:04 逆风的泰迪man 阅读(1107) 评论(1) 推荐(0)

2021年5月30日

qml connections 用法及 属性大小写法的坑

摘要: Connections{ target: iniwr; function onFreChanged(t){ } }信号 FreChanged F必须大写!! Q_PROPERTY(int fre READ fre WRITE setfre NOTIFY FreChanged)其它的要小写 不然 qm 阅读全文

posted @ 2021-05-30 12:07 逆风的泰迪man 阅读(633) 评论(0) 推荐(0)

2021年5月14日

qml 缺少 qsqlmysql

摘要: QT\5.14.2\Src\qtbase\src\plugins\sqldrivers\mysql 阅读全文

posted @ 2021-05-14 22:24 逆风的泰迪man 阅读(77) 评论(0) 推荐(0)

qml 打包

摘要: # windeployqt --release [你的程序.exe] --qmldir [找到对应的安装路径]windeployqt --release nlgMotor1.exe --qmldir D:\Qt\Qt5.12.5\5.12.5\mingw73_32\qml # 如果你在qml中使用了 阅读全文

posted @ 2021-05-14 14:38 逆风的泰迪man 阅读(311) 评论(0) 推荐(0)

导航