- 博客(133)
- 收藏
- 关注
原创 halcon_图像处理
*关闭窗口,防止干涉视线dev_close_window ()*读图read_image (Image3, './3.jpg')*获取图像长宽(单位:像素)get_image_size (Image3, Width, Height)*缩放图像Width:=Width/4Height:=Height/4*打开窗口dev_open_window (0, 0, Width, Height, 'black', WindowHandle)*显示图像在窗口上dev_display (Image3
2022-04-26 17:04:20
1471
原创 【无标题】
* This example program shows how to find scaled and rotated shape models.dev_update_pc ('off')dev_update_window ('off')dev_update_var ('off')read_image (Image, './moban/green-dot.png')get_image_size (Image, Width, Height) //获取了图像大小dev_close_windo...
2022-04-26 16:59:39
325
原创 halcon_line_color
This example program shows how to use lines_color and the differencesbetween the output of lines_color and lines_gauss using an image in whichsome lines can only be extracted from a color image.dev_update_off ()dev_close_window ()dev_open_window (0,..
2022-04-26 16:27:05
689
原创 halcon_measure_metal_part.hdev
measure_metal_part.hdev: inspects metal part by fitting lines and circlesdev_close_window ()dev_update_window (‘off’)step: acquire imageread_image (Image, ‘metal-parts/metal-parts-01’)get_image_size (Image, Width, Height)dev_open_window_fit_i..
2022-04-26 16:26:42
298
原创 halcon_measure_pump.hdev
Th![在这里插入图片描述](https://img-blog.csdnimg.cn/226ef09375b740a3885291e58f455704.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA6aOO6Zuo6aOY5pGH5Lit55qE55-z5aS0,size_13,color_FFFFFF,t_70,g_se,x_16)is program gets the deviation.
2022-04-26 16:25:52
122
原创 halcon_轮毂_孔检测rim.hdev
Inspection of rim & tireThe circular holes are extracted as well as the region containingthe imprinted characters.Set the display parameters and read the imagedev_update_off ()dev_close_window ()dev_open_window (0, 0, 768, 576, ‘black’, Window..
2022-04-26 16:24:38
396
原创 halcon_皮革
This program demonstrates the use of the photometric stereo techniquefor the inspection of leather samples.Input are 4 images taken from a leather sample with light coming fromdifferent orientations.Initializationdev_update_off ()dev_close_window ..
2022-04-26 16:18:00
177
原创 haclcon_钢坯表面检测
This program demonstrates the use of the photometric stereo techniquefor the inspection of the flooring panels.Input are 4 images taken from flooring panelswith light coming from different orientations.Initializationdev_close_window ()dev_update_o..
2022-04-25 20:50:45
270
原创 halcon_cheliang
xing.hdev: Traffic monitoring (by Kalman filtering)dev_update_off ()dev_close_window ()read_image (Image, ‘xing/init’)get_image_size (Image, Width, Height)dev_open_window (0, 0, Width, Height, ‘black’, WindowID)set_display_font (WindowID, 14, ‘mon.
2022-04-25 20:43:28
122
1
原创 C#与 Halcon 联合编程
显示图像C#与 Halcon 联合编程:1、调用 Halcon 图像处理数据库,是否调用成功,是利用 Halcon图像显示控件—能否正确显示图像进行判断。如何利用 C#与 Halcon 联合编程 调用 Halcon 图像显示控件来显示图像。1.创建 C#项目,创建 Windows 窗体应用程序。2.项目中引用 Halcon 的 DLL 文件。鼠标右键单击“引用”–“添加引用2.1弹出 引用管理器 点击下方 “浏览”按钮。选择 Halcon 安装目录下 halcondotnet.dll
2022-04-21 14:19:18
15097
2
原创 Solving environment: failed
Solving environment: failedPS D:\Git Demo\pythonProject> pyinstaller -F main.pyThe 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please `conda remove typing` then try again.PS D:\Git De
2022-03-23 16:18:19
742
1
原创 pyautocad_hatch
#!/usr/bin/env python# -*- coding: utf-8 -*-import pythoncomimport win32com.clientwincad = win32com.client.Dispatch("AutoCAD.Application.23")doc = wincad.ActiveDocumentdoc.Utility.Prompt("Hello! AutoCAD from pywin32.")msp = doc.ModelSpaceprint(doc.
2022-03-17 16:27:11
1052
原创 python批量导出excel区域图片
import win32com.client as win32 # 打开excel文件#pip install pypiwin32##########import openpyxl #另一种操作excel的包import timeimport pythoncom,osfrom PIL import ImageGrab #用于获取复制的图片file='312(带图片).xlsx'file_name = os.path.abspath(file) # 把相对路径转成绝对路径#pyth
2022-03-15 08:24:34
1902
原创 pyautocad错误-----COMError: (-2147352567, ‘发生意外。‘, (‘加载应用程序时出现问题‘, ‘AutoCAD‘, ‘
circle = acad.model.AddCircle(APoint(75, 50), 25) color = acad.doc.Application.GetInterfaceObject("AutoCAD.AcCmColor.22") # CAD2015:AcCmColor=20 CAD2016/17:AcCmColor=21 # CAD2018:AcCmColor=22 CAD2019:AcCmColor=23 color.SetRGB(255, 0, 0) # circ..
2022-03-12 14:42:13
1043
3
原创 pyAutocad
from pyautocad import Autocad, APointimport mathimport numpy as np# 创建连接 autoCAD CAD运行,则连接,并始终与活跃的CAD窗口产生连接,没有则启动新CAD程序acad = Autocad(create_if_not_exists=True)acad.prompt("Hello, Autocad from Python\n")print(acad.doc.Name) # 获取CAD文件名"""-------.
2022-03-09 08:45:55
1790
原创 pythonc_pyautuocad
# 导入模块from pyautocad import Autocad, APoint#创建cad实例acad = Autocad(create_if_not_exists=True)# 点p1 = APoint(10, 500)p2 = APoint(10, 200)acad.model.AddLine(p1, p2)# 画出点p1 = APoint(10, 500)p2 = APoint(300, 200)acad.model.AddLine(p1, p2)# 画出点acad.p.
2022-03-07 15:32:56
380
原创 Threes_位置变动
var geometry = new THREE.BoxGeometry(100, 100, 100); //创建一个立方体几何对象Geometry// 线条渲染模式var material=new THREE.LineBasicMaterial({ color:0xff0000 //线条颜色});//材质对象// 创建线模型对象 构造函数:Line、LineLoop、LineSegmentsvar mesh=new THREE.Line(geometry,material);//线条模型对
2022-02-18 08:10:09
133
原创 opencv_图像修复
图片修复代码实现opencv实现图片的修复,主要使用cv2.inpaint()函数output = cv2.inpaint(image, mask,inpaintRadius, flags=flags)image:输入8位1通道或3通道图像mask:修复掩码,8位1通道图像output:输出与image具有相同大小和类型的图像inpaintRadius:算法考虑的每个点的圆形邻域的半径flags:INPAINT_NS基于Navier-Stokes的方法Alexandru Telea的INP
2022-02-18 08:09:18
1107
原创 Markdown编辑器
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar
2022-02-18 08:08:14
171
原创 Threejs_弧度
<!DOCTYPE html><html lang="en"><head> <title>three.js webgl - geometry - shapes</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scal.
2022-02-08 16:58:30
921
原创 Threejs_纹理_earth
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>贴图</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } </style> <!--引入three.
2022-02-07 16:01:43
170
原创 Threejs_纹理_视频
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>贴图</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } </style> <!--引入three.
2022-02-07 14:59:52
446
1
原创 Threejs_纹理文字
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>贴图</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } </style> <!--引入three.
2022-02-07 14:43:16
267
原创 Threejs_贴图
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>贴图</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } </style> <!--引入thre..
2022-02-07 14:00:52
1007
原创 Threejs_idflood.github.io_拖拉
http://idflood.github.io/ThreeNodes.js/index_optimized.html#example/rotating_cube1.json
2022-01-28 15:25:08
178
原创 ThreeJs_horse
<!DOCTYPE html><html lang="en"> <head> <title>three.js webgl - shadow map</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.
2022-01-28 13:38:46
692
原创 Threejs_旋转
mesh.position.z =-200;//啮合网状组织位置(-5, - 20 -200)<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Threejs运动</title> <style> body { margin: 0; overflow: hidden; /*...
2022-01-26 13:23:10
2051
原创 Threejs_拉伸扫描_ExtrudeGeometry
<script> /** * 创建场景对象Scene */ var scene = new THREE.Scene(); /** * 创建网格模型 *//** * 创建拉伸网格模型 */ var shape = new THREE.Shape(); /**四条直线绘制一个矩形轮廓*/ shape.moveTo(0,0);//起点 shape.lineTo(0,100);//第2点 shape.lineTo(10...
2022-01-25 10:15:27
574
原创 Threejs_材料_Shape对象_轮廓填充ShapeGeometry
var material = new THREE.MeshPhongMaterial({ color: 0x0000ff, side: THREE.DoubleSide //两面可见 }); //材质对象var material=new THREE.MeshPhongMaterial({ color:0x0000ff,//三角面颜色 side:THREE.DoubleSide//两面可见 });//材质对象 material.wireframe = true;//线条模式渲.
2022-01-25 09:33:53
1252
原创 ThreeJs_旋转
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Threejs对象、曲线、三维</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } </style> &l.
2022-01-24 13:43:22
464
原创 ThreeJs_CurvePath_多段路径_管道
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Threejs对象、曲线、三维</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } </style> &l.
2022-01-24 13:37:20
1596
1
原创 Threejs_line
经过一系列点创建平滑的样条曲线<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Threejs对象、曲线、三维</title> <style> body { margin: 0; overflow: hidden; /* 隐藏body窗口区域滚动条 */ } <
2022-01-24 13:30:35
459
原创 Threejs_几何体_曲线
类Geometry1 常见:长方体BoxGeometry圆柱体CylinderGeometry球体SphereGeometry圆锥、棱锥ConeGeometry2 正多面体正四面体TetrahedronGeometry正八面体OctahedronGeometry正十二面体DodecahedronGeometry正二十面体IcosahedronGeometry3 平面:环平面RingGeometry矩形平面PlaneGeometry圆平面CircleGeometry4 .
2022-01-24 13:16:40
716
4
原创 Threejs_世界坐标_getWorldPosition
Threejs_世界坐标_getWorldPosition<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Threejs_世界坐标_getWorldPosition</title> <style> body { margin: 0; overflow: hidden; /* .
2022-01-24 11:33:22
1301
原创 Threejs_cascad层_树结构
根节点scene=(Group类:Mesh/Line/Points)+(Group:Mesh/Line/Points)+(Group:Light)<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>第一个three.js文件_WebGL三维场景</title> <style> body { mar..
2022-01-24 11:20:29
858
原创 ThreeJs_投影
父类Object3D–父类Light–子类–AmbientLight环境光-DirectionalLight平行光-PointLight点光源SpotLight聚光灯光<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>three.js文件_WebGL投影</title> <style> body { ..
2022-01-24 09:57:30
632
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人