pythonocc
风雨飘摇中的石头
这个作者很懒,什么都没留下…
展开
-
python_安卓安装 BeeWare
https://mp.weixin.qq.com/s/cgYoB3q5JtIMf20VS9Z6mg转载 2021-11-22 15:41:41 · 1197 阅读 · 0 评论 -
python_钢管识别
函数:cv2.bilateralFilter(src, d, sigmaColor, sigmaSpace)src:输入图像d:过滤时周围每个像素领域的直径sigmaColor:Sigma_color大,则邻域中的像素值相差较大像素点也参与平均。sigmaSpace:Sigma_space大,则虽然离得较远,只要值相近,就互相影响。当sigmaSpace--设置大+sigma_color设置小,可获得较好的效果(椒盐噪声)。高斯双边滤波-cv2.bilateralFilter双边滤波:非线.原创 2021-11-13 16:39:07 · 3929 阅读 · 0 评论 -
python_分水岭算法
def img_huizhi_lunkuo_tongji(): """ 识别小物体数量 :return: """ def watershed_algorithm(image): src = image.copy() blur = cv2.pyrMeanShiftFiltering(image, sp=21, sr=55) # 边缘保留滤波 去噪 cv2.imshow("灰度", blur) gray原创 2021-11-13 11:31:49 · 5246 阅读 · 0 评论 -
python_cv_轮廓
import cv2 import numpy as np #1、 读入图像 # img = cv2.imread(r"D:\1.jpg", cv2.IMREAD_UNCHANGED) # img = cv2.imread(r"9.bmp", cv2.IMREAD_UNCHANGED) img = cv2.imread(r"12.jpg", cv2.IMREAD_UNCHANGED) # cv2.imshow("contours", img) # .原创 2021-11-13 10:09:54 · 3221 阅读 · 0 评论 -
pythococc_锥度弯曲管
from OCC.Core.BRepOffsetAPI import BRepOffsetAPI_MakePipeShellfrom OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeWirefrom OCC.Core.Geom import Geom_BezierCurvefrom OCC.Core.Law import Law_Linearfrom OCC.Core.TColgp import .翻译 2021-11-08 16:23:47 · 463 阅读 · 0 评论 -
pythonocc_曲面生成
下载自案例from __future__ import print_functionimport osimport sysimport timefrom OCC.Core.BRep import BRep_Toolfrom OCC.Core.BRepAdaptor import BRepAdaptor_HCurvefrom OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakePolygonfrom OCC.Core.BRepFill i..翻译 2021-11-08 16:14:38 · 723 阅读 · 0 评论 -
pythonocc_文件_数组_界面_体积
# -*- coding:utf-8 -*-# Explanations for this script can be found at# http://pythonocc.wordpress.com/2013/04/01/using-external-airfoil-data-to-create-a-solid-wing/#import sslimport urllib.request as urllib2from OCC.Core.BRepBuilderAPI import BRepB.翻译 2021-11-08 15:56:50 · 254 阅读 · 0 评论 -
pythonocc_点云_元宇宙
import osimport randomimport structfrom OCC.Core.Graphic3d import Graphic3d_ArrayOfPointsfrom OCC.Core.AIS import AIS_PointCloudfrom OCC.Core.Quantity import Quantity_Color, Quantity_TOC_RGBfrom OCC.Core.gp import gp_Pntimport mathfrom OCC.Displa.原创 2021-11-08 15:10:52 · 398 阅读 · 0 评论 -
pythonocc_特征显示
import sysfrom OCC.Core.gp import gp_Pntfrom OCC.Core.Geom import Geom_CartesianPointfrom OCC.Core.Quantity import Quantity_Color, Quantity_TOC_RGBfrom OCC.Core.Aspect import (Aspect_TOM_POINT,Aspect_TOM_PLUS,Aspect_TOM_STAR,Aspect_TOM_X,Aspect_TOM_O,.翻译 2021-11-08 11:42:43 · 306 阅读 · 0 评论 -
pythonocc_曲面投影
gp_Pnt_0 = gp_Pnt(2,2, 5) gp_Pnt_0 = gp_Pnt(2,-2, 3) display.DisplayShape(gp_Pnt_0, update=True) qumian=qumian() # point_1 = ais_ProjectPointOnPlane(gp_Pnt_0, qumian) point_1= GeomAPI_ProjectPointOnSurf(gp_Pnt_0, qumian)#曲面 # Neares...原创 2021-11-02 15:07:30 · 479 阅读 · 1 评论 -
pythonocc_‘new_AIS_Shape‘, argument 1 of type ‘TopoDS_Shape const &
TopoDS 转换成Geoms= BRep_Tool.Surface(s)s = BRep_Tool.Curve(gs)s = AIS_ColoredShape(s)原创 2021-11-02 11:27:04 · 326 阅读 · 0 评论