摘要: pyinstaller 打包后无法显示图片 解决: 路径转换 import sys import os def get_mei_pass(file_path): real_path = None if hasattr(sys, '_MEIPASS') and os.path.isfile(os.pa 阅读全文
posted @ 2024-12-26 17:21 hxqmw 阅读(309) 评论(0) 推荐(0)
摘要: pip安装open3d失败 # pip install open3d Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple ERROR: Could not find a version that satisfies the req 阅读全文
posted @ 2024-10-31 18:56 hxqmw 阅读(1417) 评论(0) 推荐(0)
摘要: 稀疏八叉树算法示例: from matplotlib import pyplot as plt import numpy as np class OctreeNode: def __init__(self, bounds, depth=0): self.bounds = bounds # 体素的空间 阅读全文
posted @ 2024-10-23 14:29 hxqmw 阅读(189) 评论(0) 推荐(0)
摘要: 问题: 解决: 1、重命名C++中的slots: class MyClass { public: PyType_Slot *slotTable; }; 2、在includ <Python.h>前使用#undef取消定义 #ifdef slots #undef slots #endif #includ 阅读全文
posted @ 2024-09-24 15:49 hxqmw 阅读(237) 评论(0) 推荐(0)
摘要: import nrrd import numpy as np # 读取 .nrrd 文件 def read_and_save_nrrd(filename, save_path): # 读取文件 data, header = nrrd.read(filename) # 打印数据和选项信息 print( 阅读全文
posted @ 2024-08-29 10:40 hxqmw 阅读(530) 评论(0) 推荐(0)
摘要: import open3d as o3d from scipy.ndimage import binary_fill_holes def merge_ply(ply1, ply2, output_path): # 加载两个多边形模型 mesh1 = o3d.io.read_triangle_mesh 阅读全文
posted @ 2024-08-29 10:09 hxqmw 阅读(293) 评论(0) 推荐(0)
摘要: import trimesh import matplotlib.pyplot as plt # 读取点云文件 mesh = trimesh.load_mesh('test.ply') # 计算法线 mesh.vertex_normals # 创建一个新的图形窗口 fig = plt.figure( 阅读全文
posted @ 2024-08-28 13:56 hxqmw 阅读(48) 评论(0) 推荐(0)
摘要: import trimesh import matplotlib.pyplot as plt # 读取点云文件 mesh = trimesh.load_mesh('test.ply') # 计算法线 mesh.vertex_normals # 创建一个新的图形窗口 fig = plt.figure( 阅读全文
posted @ 2024-08-28 10:04 hxqmw 阅读(273) 评论(0) 推荐(0)
摘要: import open3d as o3d import numpy as np # 加载点云数据 pcd = o3d.io.read_point_cloud("test.ply") # 设置法线估计的搜索参数 search_param = o3d.geometry.KDTreeSearchParam 阅读全文
posted @ 2024-08-28 09:29 hxqmw 阅读(730) 评论(0) 推荐(0)
摘要: 添加QCustomplot报错: QPrinter@@QAE@W4PrinterMode@0@@Z),函数 "public: bool __thiscall QCustomPlot::savePdf(class QString const &,int,int,enum QCP::ExportPen, 阅读全文
posted @ 2024-07-13 16:21 hxqmw 阅读(445) 评论(0) 推荐(0)