摘要: 1 编写编译脚本 vim build.sh #!/bin/bash # 检查是否退出 set -e # 下载编译代码 libevent_version=libevent-2.1.12-stable wget -O ${libevent_version}.tar.gz https://github.c 阅读全文
posted @ 2024-06-26 20:08 盛夏夜 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 安装ZLMediaKit # 更新安装源 sudo apt-get update # 安装编译器 sudo apt-get install build-essential # 安装cmake sudo apt-get install cmake # 安装依赖库(必选) sudo apt-get 阅读全文
posted @ 2024-06-16 11:15 盛夏夜 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1. 拿到rv1126开发版后,首先连接电源、串口和网线,通过串口登录到系统 Windows串口使用Putty工具,在设备管理器里面找到对应的串口号设置波特率为1500000 , 8, 1, 0, 0设置完成后打开串口终端 Linux串口使用minicom工具,在/dev/ttyUSB里面找到对应的 阅读全文
posted @ 2023-04-05 16:05 盛夏夜 阅读(367) 评论(0) 推荐(0) 编辑
摘要: import cv2, struct import numpy as np import matplotlib.pyplot as plt class TempMatrix(): def __init__(self): pass def read_temp_matrix_img(self, file 阅读全文
posted @ 2023-03-01 13:38 盛夏夜 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1.OpenCV对NV12进行通道分离后缩放再保存为NV12格式 #include <stdio.h> #include <opencv2/opencv.hpp> /** * @brief * 把输入的NV12图像分离为YUV三个分量图像 * @param image_yuv 输入YUV图像 * @ 阅读全文
posted @ 2023-02-17 11:18 盛夏夜 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1.opencv代码jpg转换yuv420sp(nv12) #include <stdio.h> #include <opencv2/opencv.hpp> int main(int argc, char **argv) { // 检查输入参数 if(argc != 2){ std::cout << 阅读全文
posted @ 2023-02-10 10:55 盛夏夜 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 1.参考labelme的github代码进行安装 https://github.com/wkentaro/labelme conda create --name=labelme python=3.9 source activate labelme conda install pyqt conda i 阅读全文
posted @ 2022-11-29 09:22 盛夏夜 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1. 运行一个ubuntu 18.04的docker容器 docker run -itd --name hi3516 -v host_path:/root/work --privileged=true --shm-size 4G ubuntu:18.04 /bin/bash docker exec 阅读全文
posted @ 2022-11-10 14:37 盛夏夜 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1. 首先安装换服务器上的Ubuntu系统,NVIDIA驱动和Docker环境 a56爆大奖在线娱乐环境为: 服务器Ubuntu版本为16.04 NVIDIA驱动版本为10.2 Docker版本为20.10.7 参考网址: https://blog.csdn.net/qq_39638989/article/deta 阅读全文
posted @ 2022-11-09 12:15 盛夏夜 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 1. conda换源 conda config --set show_channel_urls yes vim .condarc channels: - defaults show_channel_urls: true default_channels: - http://mirrors.aliyu 阅读全文
posted @ 2022-11-09 12:13 盛夏夜 阅读(135) 评论(0) 推荐(0) 编辑