02 2025 档案

合宙 ESP32C3 首个ardunio程序
摘要:https://blog.csdn.net/dpjcn1990/article/details/136085443 #define LED_BUILTIN1 12 #define LED_BUILTIN2 13 //usb转ttl即可,无需485转ttl #define RS485_RX_PIN 1 阅读全文

posted @ 2025-02-24 07:48 辛河 阅读(469) 评论(0) 推荐(0)

python 实现 多进程 multiprocessing和双向通信multiprocessing.pip 和multiprocessing.Queue 传递字典
摘要:Windows中可以使用Python的multiprocessing库 举一个例子 进程间可以传递参数 在Windows中,Python的multiprocessing库支持通过进程间通信(IPC)机制来传递数据,包括使用**kwargs(关键字参数)的形式。不过,需要注意的是,当你通过multip 阅读全文

posted @ 2025-02-21 22:04 辛河 阅读(93) 评论(0) 推荐(0)

在tkinter中获得字体的高和宽
摘要:# 获取字体的实际高度(行高) font_height = self.axis_font.metrics("linespace") print(f"Font height (linespace): {font_height} pixels") # 创建一个隐藏的Label来测量文本宽度 # hidd 阅读全文

posted @ 2025-02-20 23:21 辛河 阅读(84) 评论(0) 推荐(0)

OPENCV+PYTHON 棋盘格及其使用 探索学习
摘要:安装 命令: pip install numpy==1.19.4 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install opencv-contrib-python==4.4.0.46 -i https://pypi.tuna.tsinghua 阅读全文

posted @ 2025-02-03 16:45 辛河 阅读(539) 评论(0) 推荐(0)

opencv+python 如何使用橡素坐标和numpy实现图像平移、旋转
摘要:平移 建议 图片长宽不一样 import cv2 import numpy as np # # 通过cv2.warpAffine()实现移动 # img=cv2.imread('D:\Python_OpenCV\chapter3_Pics\weiqi1.jpg') # 构造移动矩阵M,设在x轴方向移 阅读全文

posted @ 2025-02-01 12:48 辛河 阅读(76) 评论(0) 推荐(0)