01 2025 档案

opencv-python 轮廓线的最小面积的外接旋转矩形 和 旋转
摘要:一、函数原型pythonrect = cv2.minAreaRect(points) 输入值: points:一个形状为 [-1, 1, 2] 的 NumPy 数组,表示轮廓上的点集。这通常是通过 cv2.findContours 函数从二值图像中检测到的轮廓。返回值 cv2.minAreaRect 阅读全文

posted @ 2025-01-31 22:23 辛河 阅读(36) 评论(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 辛河 阅读(25) 评论(0) 推荐(0) 编辑

主窗口+子窗口 实现复杂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 辛河 阅读(12) 评论(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 辛河 阅读(19) 评论(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 辛河 阅读(18) 评论(0) 推荐(0) 编辑

学习记录 -官网文档学习-相机标定和三维重建
摘要:1、 相机标定 https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_calib3d/py_calibration/py_calibration.html#calibration 图片:https://files.cnblogs.com/files 阅读全文

posted @ 2025-01-13 10:46 辛河 阅读(11) 评论(0) 推荐(0) 编辑

代码记录 -学习标定双目相机
摘要:0、使用国内镜像安装OpenCV 打开PyCharm的Terminal: 在PyCharm中,找到并点击底部的“Terminal”标签页,打开命令行终端。 使用pip命令安装OpenCV: 在Terminal中,输入以下pip命令来安装OpenCV 4.5.1或更高版本,并使用国内镜像源加速下载: 阅读全文

posted @ 2025-01-11 16:44 辛河 阅读(27) 评论(0) 推荐(0) 编辑

Anaconda安装指定版本的opencv 记录
摘要:卸载已安装的软件包 打开Anaconda Prompt,并输入以下命令: (PyTorch2) C:\Users\ADMIN>pip uninstall opencv-contrib-pythonFound existing installation: opencv-contrib-python 4 阅读全文

posted @ 2025-01-04 22:06 辛河 阅读(39) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示