CN102306221A - Method for determining marked line in picture in PLT format - Google Patents

Method for determining marked line in picture in PLT format Download PDF

Info

Publication number
CN102306221A
CN102306221A CN 201110250554 CN201110250554A CN102306221A CN 102306221 A CN102306221 A CN 102306221A CN 201110250554 CN201110250554 CN 201110250554 CN 201110250554 A CN201110250554 A CN 201110250554A CN 102306221 A CN102306221 A CN 102306221A
Authority
CN
China
Prior art keywords
lines
setting
plt
plt format
format picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201110250554
Other languages
Chinese (zh)
Other versions
CN102306221B (en
Inventor
罗辞勇
张帆
卢斌
肖发福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University
Original Assignee
Chongqing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing University filed Critical Chongqing University
Priority to CN2011102505543A priority Critical patent/CN102306221B/en
Publication of CN102306221A publication Critical patent/CN102306221A/en
Application granted granted Critical
Publication of CN102306221B publication Critical patent/CN102306221B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a method for determining a marked line in a picture in a PLT format. A hole pattern graphic element and the marked line are needed to be processed in numerical control shock wave punching software, and marked line information contained in the picture in the PLT format can be quickly acquired. The method comprises the following steps of: inputting the picture to be converted in the PLT format, and reading line data in the picture in the PLT format; if the line is not closed, calculating the length of the line, and when the length of the line is greater than a set value, determining that the line is the marked line; and if the line is closed and the perimeter or area of the line exceeds the set value, determining that the line is the marked line. By the method, the conversion efficiency of identifying the marked line in the picture in the PLT format in the numerical control shock wave punching software can be effectively improved.

Description

Definite method of setting-out lines in the PLT format picture
Technical field
The invention belongs to field of image recognition, definite method of particularly a kind of PLT format picture setting-out lines in the numerical control vector graphical element transfer process.
Background technology
The numerical control surging and punching machine adopts to drive and impacts on rapidoprints such as leather apace towards mouth, thereby on materials such as leather, forms hole.Be the vestige that on the processing platen, stays setting-out in practical application, the operator places rapidoprint according to the vestige of setting-out.
In numerical control software, often need use the picture of PLT form.Include the lines data in the PLT format picture, can directly be used by digital control systems such as digital-controlled carving machines.But be to need to discern the setting-out line information that is comprised in the PLT format picture in software application such as numerical control surging and punching software.When software can not be discerned automatically, be to adopt by hand to mark the setting-out lines in softwares such as numerical control surging and punching at the PLT picture, this method speed is slow, and the location is inaccurate.But the setting-out lines in the accurate recognition PLT picture of also having no idea in the existing numerical control surging and punching software systems.
Therefore be badly in need of the computing method of the setting-out lines in the quick identification PLT picture in a kind of numerical control surging and punching machine software.
Summary of the invention
In view of this, in order to address the above problem, the present invention proposes the computing method of the setting-out lines in the quick identification PLT picture in a kind of numerical control surging and punching machine software.
The objective of the invention is to propose the computing method of the setting-out lines in the quick identification PLT picture in a kind of numerical control surging and punching machine software.
The objective of the invention is to realize like this:
Definite method of setting-out lines in the PLT format picture provided by the invention may further comprise the steps:
1) process data of input processing labor and materials PLT format picture;
2) setting-out line information in identification and the definite PLT format picture;
3) driving the numerical control punching machine processes by the setting-out line information after discerning successively.
Further, said 3) setting-out line information in identification and the definite PLT format picture in may further comprise the steps:
21): read the lines data in the PLT format picture, form lines array T2, make that N is the number of lines among the lines array T2, empty setting-out lines array T1;
22): judge whether N is 0, if, output setting-out lines array T1, end loop; If not, get into step 23);
23): read the N bar lines data of lines array T2, make N=N-1, judge whether these lines data are closed curve, if be non-closed curve, then get into next step) if closed curve then gets into step 26;
24): the lines length of calculating the lines data;
25): whether judge lines length greater than setting value th1, if, then be judged to be the setting-out lines, join setting-out lines array T1, if not, then return step 22);
26): lines perimeter L or the area A that lines enclose of calculating lines;
27): judge whether the lines perimeter L surpasses setting value th2 or whether area A that lines enclose surpasses setting value th3, if any condition is set up, then is judged to be the setting-out lines, joins setting-out lines array T1, and returns step 22);
28):, then be hole pattern unit, and return step 22) if neither set up;
Further, said setting value th2 is maximum perimeter Lmax, and said setting value th3 is maximum area Amax;
Wherein, Lmax representes that maximum identification aperture Dmax confirms to satisfy the maximum lines girth of pass condition, and Amax representes that maximum identification aperture Dmax confirms the maximum identification area; Lmax calculates through following formula: Lmax=3.14 Dmax; Amax calculates Amax=0.785*Dmax*Dmax through following formula;
Further, the value of said setting value th1 comes to confirm as the case may be;
Further, the value of said maximum identification aperture Dmax comes to confirm as the case may be.
The invention has the advantages that: the invention provides a kind of in numerical control surging and punching machine software; Automatically discern the computing method of setting-out lines from the PLT format picture; Can obtain the setting-out line information that is comprised in the PLT format picture fast, effectively improve the conversion efficiency of PLT format picture identification setting-out lines in the numerical control surging and punching software.
Other advantage of the present invention, target and characteristic will be set forth in instructions subsequently to a certain extent; And to a certain extent; Based on being conspicuous to those skilled in the art, perhaps can from practice of the present invention, obtain instruction to investigating hereinafter.Target of the present invention and other advantage can be passed through following instructions, claims, and the structure that is particularly pointed out in the accompanying drawing realizes and obtains.
Description of drawings
In order to make the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that the present invention is described in further detail below, wherein:
Fig. 1 is definite method flow diagram of setting-out lines;
Fig. 2 is the PLT design drawing;
Fig. 3 is the setting-out lines that identify;
Fig. 4 is the setting-out lines that remove behind the PLT base map.
Embodiment
Below will combine accompanying drawing, the preferred embodiments of the present invention will be carried out detailed description; Should be appreciated that preferred embodiment only for the present invention is described, rather than in order to limit protection scope of the present invention.
Fig. 1 is definite method flow diagram of setting-out lines, and as shown in the figure: definite method of setting-out lines in the PLT format picture provided by the invention may further comprise the steps:
1) process data of input processing labor and materials PLT format picture;
2) setting-out line information in identification and the definite PLT format picture;
Said 2) setting-out line information in identification and the definite PLT format picture in specifically may further comprise the steps:
21): read the lines data in the PLT format picture, form lines array T2, make that N is the number of lines among the lines array T2, empty setting-out lines array T1;
22): judge whether N is 0, if, output setting-out lines array T1, end loop; If not, get into step 23);
23): the N bar lines data that read lines array T2; Make N=N-1; Judge whether these lines data are closed curve; If be non-closed curve, then inevitable is not hole pattern unit, then gets into next step; If closed curve; Being first point and the tail point coordinate of the lines curve for sealing when overlapping, then possibly be the hole, then gets into step 26);
24): the lines length of calculating the lines data;
25): whether judge lines length greater than setting value th1, wherein the size of setting value th1 can be set by hand as the case may be, if, then be judged to be the setting-out lines, join setting-out lines array T1, if not, then return step 22);
26): lines perimeter L or the area A that lines enclose of calculating lines;
27): judge whether the lines perimeter L surpasses setting value th2 or whether area A that lines enclose surpasses setting value th3, if any condition is set up, then is judged to be the setting-out lines, joins setting-out lines array T1, and returns step 22); Said setting value th2 is maximum perimeter Lmax, and said setting value th3 is maximum area Amax; Wherein, Lmax representes that maximum identification aperture Dmax confirms to satisfy the maximum lines girth of pass condition, and Amax representes that maximum identification aperture Dmax confirms the maximum identification area; Lmax calculates through following formula: Lmax=3.14 Dmax; Amax calculates Amax=0.785*Dmax*Dmax through following formula; Said Dmax also can confirm through concrete condition.
28):, then be hole pattern unit, and return step 22) if neither set up.
4) driving the numerical control punching machine processes by the setting-out line information after discerning successively.
Cycle repeats 21)-28), after having discerned all setting-out lines data, drive the setting-out lines of numerical control punching machine after and process the labor and materials that add on the worktable successively by identification, complete process one group of processing material unit after, again next group is added labor and materials and processes.
Fig. 2 is the PLT design drawing, the hole pattern unit of hole for processing among the figure, and all the other are setting-out lines pel; Fig. 3 is the setting-out lines that identify after the setting-out lines in will scheming are operated through many broken lines; Fig. 4 is the design sketch that removes the setting-out lines behind the PLT base map, effectively improves the conversion efficiency of PLT format picture identification setting-out lines in the numerical control surging and punching software.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (5)

1. definite method of setting-out lines in the PLT format picture is characterized in that: may further comprise the steps:
1) process data of input processing labor and materials PLT format picture;
2) setting-out line information in identification and the definite PLT format picture;
3) driving the numerical control punching machine processes by the setting-out line information after discerning successively.
2. definite method of setting-out lines in the PLT format picture according to claim 1 is characterized in that: setting-out line information in identification and the definite PLT format picture said step 2) may further comprise the steps:
21): read the lines data in the PLT format picture, form lines array T2, make that N is the number of lines among the lines array T2, empty setting-out lines array T1;
22): judge whether N is 0, if, output setting-out lines array T1, end loop; If not, get into step 23);
23): read the N bar lines data of lines array T2, make N=N-1, judge whether these lines data are closed curve, if be non-closed curve, then get into next step) if closed curve then gets into step 26;
24): the lines length of calculating the lines data;
25): whether judge lines length greater than setting value th1, if, then be judged to be the setting-out lines, join setting-out lines array T1, if not, then return step 22);
26): lines perimeter L or the area A that lines enclose of calculating lines;
27): judge whether the lines perimeter L surpasses setting value th2 or whether area A that lines enclose surpasses setting value th3, if any condition is set up, then is judged to be the setting-out lines, joins setting-out lines array T1, and returns step 22);
28):, then be hole pattern unit, and return step 22) if neither set up.
3. definite method of setting-out lines in the PLT format picture according to claim 2 is characterized in that: said setting value th2 is maximum perimeter Lmax, and said setting value th3 is maximum area Amax;
Wherein, Lmax representes that maximum identification aperture Dmax confirms to satisfy the maximum lines girth of pass condition, and Amax representes that maximum identification aperture Dmax confirms the maximum identification area; Lmax calculates through following formula: Lmax=3.14 Dmax; Amax calculates Amax=0.785*Dmax*Dmax through following formula.
4. definite method of setting-out lines in the PLT format picture according to claim 2 is characterized in that: the value of said setting value th1 comes to confirm as the case may be.
5. definite method of setting-out lines in the PLT format picture according to claim 3 is characterized in that: the value of said maximum identification aperture Dmax comes to confirm as the case may be.
CN2011102505543A 2011-08-29 2011-08-29 Method for determining marked line in picture in PLT format Expired - Fee Related CN102306221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102505543A CN102306221B (en) 2011-08-29 2011-08-29 Method for determining marked line in picture in PLT format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102505543A CN102306221B (en) 2011-08-29 2011-08-29 Method for determining marked line in picture in PLT format

Publications (2)

Publication Number Publication Date
CN102306221A true CN102306221A (en) 2012-01-04
CN102306221B CN102306221B (en) 2012-11-28

Family

ID=45380082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102505543A Expired - Fee Related CN102306221B (en) 2011-08-29 2011-08-29 Method for determining marked line in picture in PLT format

Country Status (1)

Country Link
CN (1) CN102306221B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104480231A (en) * 2014-11-28 2015-04-01 东莞市爱玛数控科技有限公司 Scanning processing method and system for machining workpiece in numerical control cutting machine
CN106933188A (en) * 2017-03-17 2017-07-07 大族激光科技产业集团股份有限公司 Numerical control punching control method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882318A (en) * 2010-06-22 2010-11-10 重庆大学 Format conversion method from PLT-format picture into numerical control punching vector graphic element

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882318A (en) * 2010-06-22 2010-11-10 重庆大学 Format conversion method from PLT-format picture into numerical control punching vector graphic element

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104480231A (en) * 2014-11-28 2015-04-01 东莞市爱玛数控科技有限公司 Scanning processing method and system for machining workpiece in numerical control cutting machine
CN106933188A (en) * 2017-03-17 2017-07-07 大族激光科技产业集团股份有限公司 Numerical control punching control method and system
CN106933188B (en) * 2017-03-17 2019-05-10 大族激光科技产业集团股份有限公司 Numerical control punching control method and system

Also Published As

Publication number Publication date
CN102306221B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN109543489B (en) Positioning method and device based on two-dimensional code and storage medium
CN105204459B (en) Flexible manufacturing system (FMS) and method based on RFID
CN110706267B (en) Mining process-based ore three-dimensional coordinate acquisition method and device
EP1944721A3 (en) Image processing apparatus, method and program product thereof
EP1267257A3 (en) Conditional execution per data path slice
EP1647924A3 (en) Method and apparatus for increasing processing speed using quantum coprocessor
CN110599544A (en) Workpiece positioning method and device based on machine vision
CN102306221B (en) Method for determining marked line in picture in PLT format
CN111260626A (en) Workpiece wear detection method and system based on deep learning
CN111325092A (en) Bullet train ticket identification method and device, computer device and computer readable storage medium
US10261515B2 (en) System and method for controlling navigation of a vehicle
CN112561859B (en) Monocular vision-based steel belt drilling and anchor net identification method and device for anchoring and protecting
CN101882318B (en) Format conversion method from PLT-format picture into numerical control punching vector graphic element
US10860826B2 (en) Information processing apparatus, control method, and program
CN115082523A (en) Vision-based robot intelligent guiding system and method
EP2247090A3 (en) Image processing apparatus and image processing method
EP2339472A3 (en) Arithmetic processing unit, information processing device, and cache memory control method
CN111160374B (en) Color recognition method, system and device based on machine learning
CN111476840A (en) Target positioning method, device, equipment and computer readable storage medium
CN108284075B (en) Method and device for sorting articles by robot and robot
CN202600730U (en) Image processing device for container terminal bridge crane efficiency analysis
CN115690085A (en) Mobile terminal-based scrap steel identification method and system
CN114872449A (en) Label printing method and device and electronic equipment
US9020775B2 (en) Apparatus for measuring the shape and area of a ship block
CN104408720A (en) Image processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121128

Termination date: 20130829