会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
excellentHellen
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
2025年2月24日
合宙 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 辛河
阅读(399)
评论(0)
推荐(0)
2025年2月21日
python 实现 多进程 multiprocessing和双向通信multiprocessing.pip 和multiprocessing.Queue 传递字典
摘要: Windows中可以使用Python的multiprocessing库 举一个例子 进程间可以传递参数 在Windows中,Python的multiprocessing库支持通过进程间通信(IPC)机制来传递数据,包括使用**kwargs(关键字参数)的形式。不过,需要注意的是,当你通过multip
阅读全文
posted @ 2025-02-21 22:04 辛河
阅读(62)
评论(0)
推荐(0)
2025年2月20日
在tkinter中获得字体的高和宽
摘要: # 获取字体的实际高度(行高) font_height = self.axis_font.metrics("linespace") print(f"Font height (linespace): {font_height} pixels") # 创建一个隐藏的Label来测量文本宽度 # hidd
阅读全文
posted @ 2025-02-20 23:21 辛河
阅读(65)
评论(0)
推荐(0)
2025年2月3日
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 辛河
阅读(370)
评论(0)
推荐(0)
2025年2月1日
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 辛河
阅读(45)
评论(0)
推荐(0)
2025年1月31日
opencv-python 轮廓线的最小面积的外接旋转矩形 和 旋转
摘要: 一、函数原型pythonrect = cv2.minAreaRect(points) 输入值: points:一个形状为 [-1, 1, 2] 的 NumPy 数组,表示轮廓上的点集。这通常是通过 cv2.findContours 函数从二值图像中检测到的轮廓。返回值 cv2.minAreaRect
阅读全文
posted @ 2025-01-31 22:23 辛河
阅读(321)
评论(0)
推荐(0)
张大头 电机驱动模块 modbus-rtu 通信 pymodbus 3.8.3
摘要: # pymodbus 3.8.3 # Y轴 30齿 有减速机 变速比 19:1 距离变角位移:360/30/2*Sy_mm*19 地址 2 # X轴 丝杠1204 每周移动4mm 距离变角位移:360/4*Sx_mm 地址 3 # Z轴 20齿 无减速机 距离变角位移:360/20/2*Sz_mm
阅读全文
posted @ 2025-01-31 10:23 辛河
阅读(245)
评论(0)
推荐(0)
2025年1月30日
主窗口+子窗口 实现复杂GUI模式
摘要: # -*- coding: utf-8 -*- import tkinter as tk from tkinter import filedialog, messagebox, simpledialog from PIL import Image, ImageTk import math from
阅读全文
posted @ 2025-01-30 21:02 辛河
阅读(54)
评论(0)
推荐(0)
搭建基于tkinter的一个View框架,实现多个页面切换(续)
摘要: 同样使用面向对象设计方法,定义一个tk.Frame派生类,class PlotCurve(tk.Frame)。此类在窗口中作为一个控件显示。 # -*- coding: utf-8 -*- """ 使用matplotlib绘制图形,并在窗口中显示 """ import tkinter as tk f
阅读全文
posted @ 2025-01-30 11:42 辛河
阅读(130)
评论(0)
推荐(0)
搭建基于tkinter的一个View框架,实现多个页面切换
摘要: # 引用模块 import tkinter as tk from tkinter import ttk #引用文件 import log import animation_page as act_plot # 应用主窗口类 class MainWindow(tk.Tk): def __init__(
阅读全文
posted @ 2025-01-30 11:17 辛河
阅读(162)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
公告