会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
好心情美文
博客园
首页
新随笔
联系
订阅
管理
2024年12月26日
pyinstaller 打包后无法显示图片问题解决
摘要: 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)
2024年10月31日
pip install open3d 失败
摘要: 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)
2024年10月23日
稀疏八叉树算法(SVO)示例
摘要: 稀疏八叉树算法示例: 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)
2024年9月24日
QT C++调用python之错误:XXX\python\include\object.h:227: error: C2059: 语法错误:“;”
摘要: 问题: 解决: 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)
2024年8月29日
NRRD文件的读取及保存
摘要: 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)
使用open3d合并ply模型
摘要: 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)
2024年8月28日
绘制ply模型顶点的法线(通过两点)
摘要: 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)
使用trimesh计算ply模型的法线及显示
摘要: 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)
使用open3d计算ply模型的法线及显示
摘要: 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)
2024年7月13日
QCustomplot报错: error: LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall QPrinter::QPrinter(enum QPrinter::PrinterMode)"
摘要: 添加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)
下一页
公告