当前位置:网站首页>Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]
Shape template matching based on Halcon learning [9] PM_ multiple_ dxf_ models. Hdev routine -- [read and write XLD from DXF file]
2022-07-05 07:55:00 【BoomBiuBiu】
* This sample program demonstrates how to read DXF File and how to use this object CAD Description generate shape model .
Others are similar to the previous blog , Mainly about the use of two operators .
dev_clear_window ()
* from DXF File read XLD outline
read_contour_xld_dxf (Contours, 'metal-part-' + J$'02', [], [], DxfStatus)
* from XLD Outline creates an image of a bright object with holes
gen_model_image_of_bright_object_with_holes (Contours, Image, 3.38, 646, 482)
dev_display (Image)
name :read_contour_xld_dxf- from dxf File read xld outline .
describe :read_contour_xld_dxf Read dxf file name (dxf edition AC1009,AutoCAD edition 12) The content of , And convert it to xld contours. If the absolute path is not given in the file name , Will be in HALCON Search the current directory of the process DXF file .
Output parameters DxfStatus Contains information about the number of contours read , If necessary, , Also contains DXF Unexplained warnings in the file section .
Parameters
outline ( Output object )xld\u cont(-array)→ object
read XLD outline .
file name ( Input control ) file name . read → ( character string )
DXF The name of the document .
File extension :.dxf
GenParamName( Input control ) attribute . name (-array)→ ( character string )
For DXF Enter the name of the general parameter to be adjusted .
The default value is :[]
List of values :“ Maximum approximation error ”、“ Minimum value point ”、“ read attribute ”
GenParamValue( Input _ Control ) attribute . value (- Array )→ ( The set of real Numbers / Integers / character string )
For DXF Enter the general parameter value for adjustment .
The default value is :[]
recommended value :“ really ”、“ false ”、0.1、0.25、0.5、1、2、5、10、20
DxfStatus( Output control ) character string (- Array )→ ( character string )
State information
name :gen_model_image_of_bright_object_with_holes- from XLD Outline creates an image of a bright object with holes
Parameters
outline ( Input object ) object → object
ModelImage( Output object ) object → object
The zoom ( Input control ) arbitrarily → ( Tuples )
Width ( Input control ) arbitrarily → ( Tuples )
Height ( Input control ) arbitrarily → ( Tuples )
边栏推荐
- Explain STM32 startup file in detail
- RF ride side door processing of prompt box
- Reasons for rapid wear of conductive slip rings
- UEFI development learning 3 - create UEFI program
- High end electronic chips help upgrade traditional oil particle monitoring
- Basic embedded concepts
- Baiwen 7-day smart home learning experience of Internet of things
- Network communication process
- Programming knowledge -- basis of C language
- MySql——存储引擎
猜你喜欢
Numpy——1. Creation of array
UEFI development learning 5 - simple use of protocol
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Application of ultra pure water particle counter in electronic semiconductors
如何进行导电滑环选型
Connection mode - bridge and net
Altium designer 19.1.18 - hide the fly line of a network
软件设计师:03-数据库系统
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
Process communication mode between different hosts -- socket
随机推荐
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
Interview catalogue
研究發現,跨境電商客服系統都有這五點功能!
Oracle triggers and packages
Cadence simulation encountered "input.scs": can not open input file change path problem
Distinction between heap and stack
Altium Designer 19.1.18 - 导入板框
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
Basic embedded concepts
About yolov3, conduct map test directly
Connection mode - bridge and net
Altium designer 19.1.18 - hide the fly line of a network
Embedded AI intelligent technology liquid particle counter
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
A complete set of indicators for the 10000 class clean room of electronic semiconductors
Record the opening ceremony of Beijing Winter Olympics with display equipment
Markdown tips
Significance and requirements of semiconductor particle control
Gradle复合构建