12 2023 档案

摘要:osg添加光源 #include <osg/Light>#include <osg/LightSource>#include <osg/Node>#include <osg/Geode>#include <osgDB/ReadFile>#include <osgViewer/Viewer>int m 阅读全文
posted @ 2023-12-31 18:59 西北逍遥 阅读(101) 评论(0) 推荐(0) 编辑
摘要:#include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> using namespace cv; us 阅读全文
posted @ 2023-12-30 21:11 西北逍遥 阅读(219) 评论(0) 推荐(0) 编辑
摘要:要使用Python和OpenCV将摄像头视频保存为.mp4格式,您需要使用cv2.VideoWriter的fourcc参数指定视频编码器。在大多数情况下,使用cv2.VideoWriter_fourcc(*'mp4v')将视频保存为.mp4格式是一个好选择。以下是一个示例代码: python 复制 阅读全文
posted @ 2023-12-29 16:46 西北逍遥 阅读(445) 评论(0) 推荐(0) 编辑
摘要:qt 15有新的库产生随机数了,再也不用担心在for循环中会获取重复的随机数了。 #include <QRandomGenerator> // ... for (int i = 0; i < 10; ++i) { QRandomGenerator generator; generator.seed( 阅读全文
posted @ 2023-12-29 16:43 西北逍遥 阅读(173) 评论(0) 推荐(0) 编辑
摘要:import inspect def get_module_path(module_name): module = __import__(module_name) file_path = inspect.getfile(module) return file_path # 示例用法 module_p 阅读全文
posted @ 2023-12-28 22:13 西北逍遥 阅读(42) 评论(0) 推荐(0) 编辑
摘要:QImage originalImage("path/to/your/image.jpg"); QImage scaledImage = originalImage.scaled(800, 600, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); 阅读全文
posted @ 2023-12-27 19:38 西北逍遥 阅读(67) 评论(0) 推荐(0) 编辑
摘要:import cv2 # 0代表的是电脑上的默认摄像头 cap = cv2.VideoCapture(0) # 创建VideoWriter对象,第二个参数是帧率,第三个参数是视频的宽度和高度,第四个参数是输出视频的格式 out = cv2.VideoWriter('output.mp4', cv2. 阅读全文
posted @ 2023-12-26 19:11 西北逍遥 阅读(715) 评论(0) 推荐(0) 编辑
摘要:import numpy as np import matplotlib.pyplot as plt from numpy import polynomial as P def get_arc_curve(pts): ''' 获取弧度值 :param pts: :return: ''' # 计算弦长 阅读全文
posted @ 2023-12-25 23:30 西北逍遥 阅读(183) 评论(0) 推荐(0) 编辑
摘要:import torch import torch.nn as nn import torch.optim as optim # 定义三层神经网络 class ThreeLayerNN(nn.Module): def __init__(self, input_size, hidden_size1, 阅读全文
posted @ 2023-12-24 21:37 西北逍遥 阅读(192) 评论(0) 推荐(0) 编辑
摘要:osg Node节点透明度 osg::ref_ptr<osg::StateSet> stateState = north_wall_geode->getOrCreateStateSet(); stateState->setMode(GL_BLEND, osg::StateAttribute::ON) 阅读全文
posted @ 2023-12-23 00:58 西北逍遥 阅读(60) 评论(0) 推荐(0) 编辑
摘要:win10通过.bat文件启动anaconda环境、切换路径 并运行脚本 CALL E:\Anaconda3\install\Scripts\activate.bat E:\Anaconda3\install CALL conda activate byd_2 H: cd H:\PytorchPro 阅读全文
posted @ 2023-12-22 09:14 西北逍遥 阅读(1057) 评论(0) 推荐(0) 编辑
摘要:IfcMemberTypeEnum 类型定义 此枚举定义IfcMember或IfcMemberType对象可以实现的不同类型的线性元素。 IFC2x2中的新枚举类型。 IFC2x2添加了附加标识符CHORD、PLATE、STUD。 IFC2x3添加了额外的标识符MULLION。 Enumeratio 阅读全文
posted @ 2023-12-21 22:08 西北逍遥 阅读(7) 评论(0) 推荐(0) 编辑
摘要:IfcPlateTypeEnum 类型定义 此枚举定义IfcPlate或IfcPlateType对象可以实现的不同类型的平面元素。 IFC2x2中的新枚举。 IFC2x3添加了额外的标识符CURTAIN_PANEL、SHEET。 Enumeration definition ConstantDesc 阅读全文
posted @ 2023-12-20 23:02 西北逍遥 阅读(10) 评论(0) 推荐(0) 编辑
摘要:osg绘制3D字体 osg::ref_ptr<osgText::Text3D> xText3D = new osgText::Text3D(); xText3D->setFont("font/arial.ttf"); xText3D->setCharacterSize(30); xText3D->s 阅读全文
posted @ 2023-12-19 21:36 西北逍遥 阅读(17) 评论(0) 推荐(0) 编辑
摘要:QWidget::raise() 将此qwidget提升到父小部件堆栈的顶部。 在这个调用之后,qwidget将在视觉上位于任何重叠的同级widget之前。 注意:使用activateWindow()时,可以调用此函数以确保窗口堆叠在顶部。 另请参见lower()和stackUnder()。 ### 阅读全文
posted @ 2023-12-18 21:13 西北逍遥 阅读(496) 评论(0) 推荐(0) 编辑
摘要:Slab openings 本示例说明了基于材质图层集使用定义的具有拉伸实体几何图形的标准案例板。它包括一个圆形开口和一个矩形凹槽。图465显示了生成的形状。 注:开口和凹陷是IfcOpeningStandardcase的实例。 图——带开口和凹槽的标准箱板。 注:文件中没有颜色信息,显示的颜色已由 阅读全文
posted @ 2023-12-17 22:34 西北逍遥 阅读(7) 评论(0) 推荐(0) 编辑
摘要:#17140= IFCRECTANGLEPROFILEDEF(.AREA.,'JG-600x600-1',#17139,599.999999999999,600.);#17141= IFCCARTESIANPOINT((-25.,25.,7200.)); #17143= IFCAXIS2PLACEM 阅读全文
posted @ 2023-12-16 19:01 西北逍遥 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Wall standard case 本示例说明了基于材质图层集使用定义的具有拉伸实体几何图形的标准案例墙。图443显示了生成的形状。 注:拉伸轮廓由IfcRectangleProfileDef定义 图——带材料层的标准案例墙。 注:文件中没有颜色信息,显示的颜色已由目标应用程序设置为默认颜色。 # 阅读全文
posted @ 2023-12-15 15:49 西北逍遥 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Pset_TransportElementElevator 传输元素升降机:预定义类型为“Elevator”的IfcTransportElement的所有出现的定义所共有的属性 NameTypeDescription FireFightingLift P_SINGLEVALUE / IfcBoole 阅读全文
posted @ 2023-12-14 18:55 西北逍遥 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Geometry Text Style ######################## 阅读全文
posted @ 2023-12-13 17:24 西北逍遥 阅读(4) 评论(0) 推荐(0) 编辑
摘要:FaceBased Surface Model ################################ 阅读全文
posted @ 2023-12-12 21:31 西北逍遥 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Resource Cost 资源可以具有相关成本,指示根据指定的基本数量产生的财务成本和环境影响。 每个成本值可以使用固定的金额来定义,也可以根据指定的公式来计算。 ########################### 阅读全文
posted @ 2023-12-11 15:58 西北逍遥 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Bounded Value #################### 阅读全文
posted @ 2023-12-10 05:08 西北逍遥 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Single Value ################## 阅读全文
posted @ 2023-12-09 22:53 西北逍遥 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Profile Properties 配置文件属性可以捕获标准或用户定义的参数。 ########################## 阅读全文
posted @ 2023-12-08 21:09 西北逍遥 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Geometry Fill Area Style ########################### 阅读全文
posted @ 2023-12-07 15:58 西北逍遥 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Surface Color Style ##################################### 阅读全文
posted @ 2023-12-06 22:46 西北逍遥 阅读(1) 评论(0) 推荐(0) 编辑
摘要:ShellBased Surface Model ########################### 阅读全文
posted @ 2023-12-05 18:59 西北逍遥 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Surface Texture Style ################### 阅读全文
posted @ 2023-12-04 20:24 西北逍遥 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Triangulated Geometry ############################ 阅读全文
posted @ 2023-12-03 19:45 西北逍遥 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Image Texture 图像纹理基于常见图像格式(如PNG或JPEG)的外部文件。这样的文件可以根据绝对URL位于服务器上,根据相对URL位于与IFC文件相同的服务器上,在根据相对文件路径的相同本地目录内,在根据相关文件路径的IFC-ZIP文件内,或者在根据绝对文件路径的任意目录内。 对于在被视 阅读全文
posted @ 2023-12-02 20:32 西北逍遥 阅读(18) 评论(0) 推荐(0) 编辑
摘要:[S[1:5], L[1:?]L[3:3], S[1:2], [0:1], L[1:?]L[2:2], L[2:2], [1:1], ~L[3:?], A[1:2], L[3:3], L[2:3], L[1:3], S[0:?], ~L[1:?], S[2:?], L[2:?]L[2:?], S[1 阅读全文
posted @ 2023-12-01 09:17 西北逍遥 阅读(12) 评论(0) 推荐(0) 编辑

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