摘要: 参考来源: https://github.com/CadQuery/cadquery/issues/407import math import cadquery as cq def profile(base, pitch, h, extra=True): """pitch 螺距 Creates a 阅读全文
posted @ 2023-10-22 16:05 Arxu 阅读(122) 评论(0) 推荐(0)
摘要: 1. 卷积层的作用卷积层的作用是提取输入图片中的信息,这些信息被称为图像特征,这些特征是由图像中的每个像素通过组合或者独立的方式所体现,比如图片的纹理特征,颜色特征。 比如下面这张图片,蓝色框框住的地方就是脸部特征,这些特征其实是由一个个像素所组成的。 再者这是一张彩色图片,它包含R、G、B三个通道 阅读全文
posted @ 2023-10-19 10:05 Arxu 阅读(824) 评论(0) 推荐(0)
摘要: 检索方法: 对于词组加双引号,可以固定搜索. "quotation marks". 使用通配符,可以在单词中间、前缀、后缀使用。 * 表示0或者很多个字母 ?表示一个字母 $ 表示0或者1个字母 对于某个单复数\后缀等形式,可以加*号来扩大搜索范围 布尔操作和近似搜索 Boolean and pro 阅读全文
posted @ 2023-10-16 21:46 Arxu 阅读(46) 评论(0) 推荐(0)
摘要: # This program stores people's favorite numbers, and displays them. favorite_numbers = {'eric': [3, 11, 19, 23, 42], 'ever': [2, 4, 5], 'willie': [5, 阅读全文
posted @ 2023-10-16 13:27 Arxu 阅读(11) 评论(0) 推荐(0)
摘要: 1. sys模块 sys是python自带模块. sys模块常见函数 1 $ python 2 Python 2.7.6 (default, Oct 26 2016, 20:30:19) 3 [GCC 4.8.4] on linux2 4 Type "help", "copyright", "cre 阅读全文
posted @ 2023-10-15 12:09 Arxu 阅读(14) 评论(0) 推荐(0)
摘要: Assembly demo 1 (解释待完善) 1 import cadquery as cq 2 3 # Parameters 4 H = 400 5 W = 200 6 D = 350 7 8 PROFILE = cq.importers.importDXF("vslot-2020_1.dxf").wires() 9 10 SLOT_D = 阅读全文
posted @ 2023-10-13 00:07 Arxu 阅读(43) 评论(0) 推荐(0)
摘要: 代码 绘制出的图形 DXF图形截图 用到的函数 .sketch() 在当前界面创建一个草图 importers.importDXF() 导入2D图用于建模 .finalize() 一般用于.sketch(), 结束草图. 返回元素用于拉伸. 阅读全文
posted @ 2023-10-12 23:40 Arxu 阅读(122) 评论(0) 推荐(0)
摘要: .toPending() 将选中的边转变为可用于建模的边线 Adds wires/edges to pendingWires/pendingEdges 阅读全文
posted @ 2023-10-10 18:15 Arxu 阅读(41) 评论(1) 推荐(0)
摘要: Workplane.offset2D() 转换二维线。 它们可以向内或向外偏移,并使用不同的技术来改变边角情况。 阅读全文
posted @ 2023-10-10 18:09 Arxu 阅读(49) 评论(1) 推荐(0)
摘要: .cboreHole(0.125, 0.25, 0.125, depth=0.4) 阅读全文
posted @ 2023-10-10 17:51 Arxu 阅读(42) 评论(0) 推荐(0)