摘要: 增加指定target,如果你的系统里安装了opencl(比如pocl),有ocl机制,那么Hailide会自动调用OpenCL Halide::Target target = Halide::get_host_target(); target.set_feature(Halide::Target:: 阅读全文
posted @ 2023-03-03 22:59 园友1683564 阅读(85) 评论(0) 推荐(0)
摘要: 这是一个包含环境搭建的完整测试教程,目标读者是从未接触过这些的新手。没有模型训练过程,只是使用的别人训练好的模型。 1. 代码准备:https://github.com/fchollet/deep-learning-models 国内镜像: https://gitee.com/xunaijie/de 阅读全文
posted @ 2023-02-12 21:00 园友1683564 阅读(682) 评论(0) 推荐(0)
摘要: 一个最简单的demo,读取加速度传感器和磁场传感器,直接打印。适合业余玩玩。 用的技术点都是最简单粗暴的,不要用来开发产品。 在安卓2.3.3和5.1的真机上都测试通过。 安卓源码:使用的android studio开发,SDK是API10,姜饼。 为了在一个10年前的手机上玩,三星5830,竟然还 阅读全文
posted @ 2022-09-27 23:34 园友1683564 阅读(158) 评论(0) 推荐(0)
摘要: 一个最简单的demo,手机和电脑连上同一个路由器,向电脑的某个socket端口发送消息。适合业余玩玩。 用的技术点都是最简单粗暴的,不要用来开发产品。 在安卓2.3.3和5.1的真机上都测试通过。 使用方法: sscom5.13.1.exe在电脑上开server不行,估计是被win10防火墙给挡了, 阅读全文
posted @ 2022-09-27 23:27 园友1683564 阅读(186) 评论(0) 推荐(0)
摘要: #include <stdint.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { printf("%s running\n", argv[0]); if(argc != 3) { printf( 阅读全文
posted @ 2022-05-10 21:33 园友1683564 阅读(41) 评论(0) 推荐(0)
摘要: #include <fstream> #include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main(int argc, char **argv) { const 阅读全文
posted @ 2022-04-22 23:43 园友1683564 阅读(216) 评论(0) 推荐(0)
摘要: #include <fstream> #include <iostream> #include <opencv2/imgcodecs.hpp> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int mai 阅读全文
posted @ 2022-04-22 23:25 园友1683564 阅读(605) 评论(0) 推荐(0)
摘要: https://docs.opencv.org/4.5.5/db/df5/tutorial_linux_gcc_cmake.html 写的已经不错,我补充点,让教程更便捷。 opencv源码编译 cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_P 阅读全文
posted @ 2022-02-11 15:28 园友1683564 阅读(77) 评论(0) 推荐(0)
摘要: static int m_log_open(struct inode *inode, struct file *filp) { struct m_log_device *m_log_dev; m_log_dev = container_of(filp->private_data, struct m_ 阅读全文
posted @ 2021-12-21 15:17 园友1683564 阅读(190) 评论(0) 推荐(0)
摘要: 你可能看过这篇文章: https://blog.csdn.net/qq_40500036/article/details/106405779 这个方法我这里无用。我用了一个更简便的方法: vscode: 版本: 1.51.0提交: fcac248b077b55bae4ba5bab613fd6e915 阅读全文
posted @ 2021-11-30 17:32 园友1683564 阅读(525) 评论(0) 推荐(0)