CN101114341A - Preprocess method for engineering drawing vectorization recognition system - Google Patents
Preprocess method for engineering drawing vectorization recognition system Download PDFInfo
- Publication number
- CN101114341A CN101114341A CNA2007100365231A CN200710036523A CN101114341A CN 101114341 A CN101114341 A CN 101114341A CN A2007100365231 A CNA2007100365231 A CN A2007100365231A CN 200710036523 A CN200710036523 A CN 200710036523A CN 101114341 A CN101114341 A CN 101114341A
- Authority
- CN
- China
- Prior art keywords
- image
- vectorization
- vector quantization
- engineering drawing
- recognition system
- 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
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention relates to an engineering drawing vectorization recognition method, in particular to a pretreatment method of engineering drawing vectorization recognition system which can be widely used in the fields of engineering drawing recognition, image and graph symbol detection and recognition, and industrial automatic detection. The procedures include the following steps: A. adopting a method based on adaptive threshold at the client end to carry on the binarization processing to the gathered image; B. adopting a method of morphological filter to process the binary sketch on the client end platform; C. adopting a preliminary vectorization process based on oblique frame covering domain to carry on the preliminary vectorization to the binary sketch, and sending the result to the server. The invention can improve the result of the preliminary vectorization and raise the arithmetic speed of the vectorization.
Description
Technical field:
The present invention relates to the engineering drawing vectorization recognition methods, a kind of preprocess method of engineering drawing vectorization recognition system particularly, this method can be widely used in fields such as field such as engineering drawing identification, image graphics symbol detection and identification and industrial automation detection.
Background technology:
In current information society,, still have a large amount of drawing informations to preserve, manage and be suitable for the form of papery, picture although cad technique has obtained in the industrial design field using widely.These engineering drawings often make a system or industry long-standing, complete preservation invaluable experience in the past, later design is had good use for reference of planning.Wherein the design that quite a few also can be afterwards and make in be modified and reuse.For multiplexing these drawings, the information of these drawing images is managed with computing machine, and set up corresponding database, the human resources that expend with the renewal that significantly reduces drawing and maintenance, be convenient to storage more, revise, inquire about, exchange, the development trend that is inevitable has important social reality meaning.The engineering drawing vector quantization is the sweep bitmap of engineering drawing to be expressed be converted into the pattern description entity vector that CAD system is used, and as straight line, circle, circular arc, curve and character etc., can improve the multiplexing capacity of drawing greatly.
Complete vector quantization process includes: the preliminary vector quantization of the pre-service of image, image binaryzation and binary map and test pattern/operations such as identification.Wherein, the preliminary vector quantization of the pre-service of image, image binaryzation and binary map is the processing procedure in early stage of test pattern/identification, can consider separately, and its output result is a kind of compact description scheme of the graphical information to image.Therefore, in whole vector quantization process, has important status.
Both at home and abroad the researchist has proposed some traditional algorithms at the image vector preprocessing process, as based on the method for refinement, the method and quadrature zig-zag type (the abbreviating OZZ as) method of following the tracks of based on the method for outline line, based on the method for graphic structure, discrete pixel.Research at vector quantization all is to carry out under the framework of these methods basically at present, but has noise for image, the method that only has discrete picture to follow the tracks of can obtain reasonable effect, but the method that discrete picture is followed the tracks of has adopted the location index algorithm for fear of the process of full figure search in preliminary vector quantization process, the covering domain that this algorithm obtains can not be mated with former figure fully, can cause results of some mistake vector quantizations.
Summary of the invention:
The object of the present invention is to provide a kind of preprocess method of engineering drawing vectorization recognition system, mainly solve the technical matters problem that exists in the pre-service of conventional images vector quantization, it can improve the result of preliminary vector quantization, improves the arithmetic speed of vector quantization.
For solving the problems of the technologies described above, the present invention is achieved in that
A kind of preprocess method of engineering drawing vectorization recognition system is characterized in that it comprises the steps:
A carries out binary conversion treatment based on the method for adaptive threshold to the image that collects in customer end adopted;
B adopts the method for morphologic filtering that binary map is carried out pre-service on client platform;
C carries out preliminary vector quantization based on the preliminary vector quantization process of oblique frame covering domain to binary map in customer end adopted, and the result is sent to server.
The preprocess method of described engineering drawing vectorization recognition system is characterized in that this steps A further comprises:
The collection of A1 image and input: it is to obtain and send into client or providing image file by memory device obtains and deliver to client by image collecting device scanning; Wherein: image scanning is that the optoelectronic scanning device by image collecting device becomes simulating signal with drawing scanning, through A/D converter analog signal conversion is become data image signal, and this picture signal is sent to client by usb bus;
This client platform of A2 extracts its histogram to some positions of image, the histogram of gray level image provides the distribution situation of gray scale in piece image, this intensity profile information of utilizing histogram to provide is determined threshold value, pixel gray-scale value and this threshold ratio with certain position in the image comes to determine its two-value, 0 or 1 again.
The preprocess method of described engineering drawing vectorization recognition system is characterized in that the morphologic filtering among this step B has adopted opening operation that bianry image is handled; It further comprises:
B1 carries out morphologic corrosion operation earlier;
B2 carries out expansive working then, thereby forms the opening operation of morphologic filtering.
The preprocess method of described engineering drawing vectorization recognition system is characterized in that the preliminary vector quantization process based on oblique frame covering domain among this step C further comprises:
The initial trace point of C1 is judged starting point and the directional information to obtain following the tracks of;
C2 tracing process, this tracing process are to adopt the method be similar to zig-zag type to determine the axial point of a certain line segment, comprising three conditions: unique the occupying property of the vector quantization of a axial point; B tracking direction consistance; C width retentivity;
C3 then exports the axial point chain if satisfy three conditions; Otherwise, continue to carry out C2 behind the shortening tracing step.
The preprocess method of described engineering drawing vectorization recognition system, unique the occupying property of vector quantization that it is characterized in that this axial point is to utilize the method for oblique frame covering domain to obtain.
By technique scheme, the present invention has following useful technique effect:
Advantages such as that a kind of progressively iteration vector quantization preprocess method based on the two-value zone of the present invention has is applied widely, vector quantization precision height, fast operation are for significant and practical values of work such as the subsequent treatment of engineering drawing vectorization system and three-dimensional reconstructions.
Description of drawings:
Fig. 1 is the hardware topology structure of client/server that the inventive method adopts.
Fig. 2 is the schematic flow sheet of the inventive method.
Fig. 3 is based on the preliminary vector quantization schematic flow sheet of oblique frame covering domain in the inventive method.
Fig. 4 is the actual engineering drawing picture that obtains after the scanning in the embodiment of the invention;
Fig. 5 is through the image after the dynamic threshold binary conversion treatment in the embodiment of the invention;
Fig. 6 is to be that process is based on getting image after the preliminary vectorized process process of oblique frame covering domain in the embodiment of the invention;
Fig. 7 is the image that obtains through after the inventive method pre-service.
Embodiment:
Below in conjunction with drawings and Examples technical scheme of the present invention is further described.
In the embodiments of the invention, the hardware topology structure of employing client/server as shown in Figure 1.Client can connect image scanner (as: scanner) or hardware storage device, and therefore, the source of image can be to obtain and send into client or providing image file by memory device obtains and deliver to client by image collecting device scanning; Wherein: image scanning is that the optoelectronic scanning device by image collecting device becomes simulating signal with drawing scanning, through A/D converter analog signal conversion is become data image signal, and this picture signal is sent to client by usb bus;
Wherein, the scan function by vectored system starts scanning sequence drawing is scanned, and the image after the scanning as shown in Figure 4.Through the vector quantization preprocessing process of client PC, draw image as shown in Figure 7 after the scanning, this image is the very high method for expressing of a kind of compressibility, is convenient to transmit in network, and the data that server end receives behind the vector quantization are carried out subsequent treatment.
Image collecting device in the present embodiment adopts the scanner of the KV-S3065CWCN of Panasonic model, and its performance is as follows:
Scanning element: CIS;
Kind of design: file scanner;
Sweep limit: 227 * 2540mm;
Optical resolution: 600 * 600;
Color figure place: black and white (two-value, shadow tone pattern), gray scale (8bit), colored (24bit);
Sweep velocity: 60ppm/110ipm;
Transmission interface: Ultra SCSI (SCSI-III) transfer rate: 20M-byte/sec, interface unit: 50 fine needles, USB2.0;
Scanned medium: file;
Light source performance: two-tube white fluorescent lamp.
Client platform performance in the present embodiment is as follows:
CPU frequency: Celon 2.66G;
Memory size: 516M;
The operation system is Windows XP;
A parallel print.er port is configured to USB port.
Server in the present embodiment adopts the ProLiant DL380 G4 (378735-AA1) of HP, and its performance is as follows:
Cpu type: Xeon DP;
Cpu frequency (MHz): 3000;
Processor is described: standard processor quantity 1;
Support the CPU number: 2;
CPU L2 cache: 2MB;
The operation system is Windows 2003 Server.
Customer end adopted based on the progressively iteration vector quantization pretreatment process in two-value zone as shown in Figure 2, the detail of each step is described below:
1, employing is carried out the binary conversion treatment process based on the method for adaptive threshold to image:
Before employing is carried out binary conversion treatment based on the method for adaptive threshold to image, at first to scan to obtain digitized image file drawing file, this digitized image file also can read from memory device.The image scanning process at first scans drawing and obtains simulating signal through the optoelectronic scanning chip, then simulating signal is converted to the digitized image file through the A/D conversion chip, is sent to client platform through the USB output interface at last.
Binary conversion treatment process based on the method for adaptive threshold is carried out at client platform, by CPU and internal memory co-ordination to finish binaryzation work to image.At first its histogram is extracted at some positions of image, the information of utilizing histogram to provide is determined threshold value; Secondly pixel gray-scale value and this threshold ratio with certain position in the image comes to determine its two-value, 0 or 1; By being carried out above-mentioned processing, each part of image can obtain binary image at last, as shown in Figure 5.
In the present embodiment image vertically is divided into 5 five equilibriums, from 1 to 100,101 to 200,201 to 300,301 to 400,401 to the picture traverse boundary respectively.And adopted based on the method for grey level histogram and extracted threshold value, therefore in each zone, formed dynamic threshold.When the gray-scale value of certain pixel of image during, the relevant position of output image is disposed 0, otherwise put 1 greater than this threshold value.
Because there is certain deviation in the threshold value that adopts grey level histogram to calculate, in implementation process, the present invention has reduced 20 gray shade scales accordingly with this threshold value.Binary conversion treatment process by based on the method for adaptive threshold with respect to traditional binary processing method, can obtain comparatively ideal binary image, thereby lays the foundation for follow-up morphologic filtering with based on the preliminary vector quantization process of oblique frame covering domain.
2, adopt the morphologic filtering device to bianry image filtering flow process:
Image is carried out morphologic filtering to carry out on client platform.In order to enlarge the scope of application of follow-up preliminary vector quantization, be applicable to the lines of the single pixel of vector, adopt the method for morphologic filtering that binary map is carried out pre-service.Adopt the opening operation of morphologic filtering that binary map is carried out pre-service, carried out morphologic expansive working earlier, corrode operation then, thereby form the closed operation of morphologic filtering.
Method based on morphologic filtering has a lot of templates, as: soccer star, rhombus, line style, quadratic form.Adopted quadratic form to obtain filter template in the present embodiment, adopted this template that bianry image is carried out the operation of first expansion post-etching then, be i.e. closed operation operation.
Template has adopted 3 * 3 matrix, as formula (1)
Employing makes this vector quantization preprocess method can access the scope of application more widely based on morphologic filtering method.
3, adopt and binary map to be carried out preliminary vector quantization based on the preliminary vector quantization process of oblique frame covering domain, flow process as shown in Figure 3:
Employing is carried out on client platform based on the preliminary vector quantization process of oblique frame covering domain, and it is to the improvement based on discrete pixel tracking vector method.As shown in the figure: this vector quantization process has comprised operations such as initial trace point judgement, tracing process and intersection point recovery.Initial trace point is judged starting point and the directional information to obtain following the tracks of; Tracing process is to adopt the method that is similar to zig-zag type to determine the axial point of a certain line segment, comprising three conditions, wherein unique the occupying property of the vector quantization of axial point is to utilize the method for oblique frame covering domain to obtain, and two other condition is respectively tracking direction consistance and width retentivity; The intersection point recovery is to realize by the process with tracing process associating iteration.This process is the core of whole vector quantization preprocessing process, and it is obtaining under the higher precision prerequisite, and arithmetic speed is considerably beyond based on discrete pixel tracking vector method.
The judgement of initialization axial point is to carry out on to the basis of image scanning, when a sweep trace ' bumps ' first pixel positive transition (from 0 to 1), the pixel counter begins counting, when running into the negative saltus step (from 1 to 0) of pixel once more, stop counting, the interim axial point that pixel location in the middle of calculating is differentiated as first initialization, adopt the downward scanning and counting that makes progress that uses the same method from this pixel then, calculate the axial point of the center of up-and-down boundary as second initialization differentiation, then about scanning, differ less than two pixels up to double pixel location by that analogy, it is made as stable extendible initialization axial point, if interim longitudinally axial point, then tracking direction is made as vertically, otherwise be made as laterally, direction and initialization axial point differentiated the output of process as axial point.The initialization axial point is differentiated end.
Carry out tracing process: tracing process begins to follow the tracks of with the initialization axial point, and its process is similar substantially with initialization axial point differentiation process, but it follows the tracks of on direction initialization, is made as the axial point width perpendicular to the tracking results of tracking direction.Carry out tracing process with predefined tracing step, because pixel width is very little, the tracing step here is made as 4 pixels, and actual tracing step is called dynamic step length.Carry out tracing process and need satisfy three conditions:
(1) direction consistance, the ratio of its width of the axial point that collects and dynamic tracking step-length are stabilized in greater than 1 or less than on 1.Otherwise carrying out intersection point restores.
(2) width consistance is meant that the axial point wide variety rate of being gathered remains in 50%.
(3) unique the occupying property of the vector quantization of axial point: an axial point can not be in these vector quantization lines simultaneously, is in again in the another one vector quantization lines, promptly can not be simultaneously as the axial point of two or more vector quantization lines.This especially should be noted that in the process process of carrying out.Adopted the method for location index based on the vectorization method of discrete pixel tracking, be that value with some vector quantization lines covers on the tool lined line at regular intervals, this lined line finally constitutes node one by one, the left and right sides boundary representation of node the covering domain of certain vector quantization lines.Carry out the axial point that tracing process finds afterwards and can not drop within this covering domain, restore otherwise carry out intersection point.Utilize contiguous two axial point and their dynamic width to determine an oblique frame among the present invention, utilize oblique frame to determine this covering domain, this can obtain more accurate covering domain, has avoided the leakage vector quantization phenomenon and the too small mistake vector quantization phenomenon that causes of covering domain that cause owing to covering domain is excessive.
Intersection point restores: it is a kind of operation that tracing step is shortened of carrying out under the ungratified situation of tracking condition that intersection point restores, and then carries out tracing process.This can obtain reasonable vector quantization effect in the place of line segment and line segment intersection, as shown in Figure 6.
The whole preliminary vector quantization process of the inventive method is exactly the positional information of these axial point of record and their dynamic width information, and the actual width that also can utilize dynamic width information calculations root line segment is as output.Preliminary vector quantization result to Fig. 4 image can obtain final processing back image shown in Figure 7.
Being preferred embodiment of the present invention only in sum, is not to be used for limiting practical range of the present invention.Be that all equivalences of doing according to the content of the present patent application claim change and modification, all should be technology category of the present invention.
Claims (5)
1. the preprocess method of an engineering drawing vectorization recognition system is characterized in that it comprises the steps:
A carries out binary conversion treatment based on the method for adaptive threshold to the image that collects in customer end adopted;
B adopts the method for morphologic filtering that binary map is carried out pre-service on client platform;
C carries out preliminary vector quantization based on the preliminary vector quantization process of oblique frame covering domain to binary map in customer end adopted, and the result is sent to server.
2. the preprocess method of engineering drawing vectorization recognition system according to claim 1 is characterized in that this steps A further comprises:
The collection of A1 image and input: it is to obtain and send into client or providing image file by memory device obtains and deliver to client by image collecting device scanning; Wherein: image scanning is that the optoelectronic scanning device by image collecting device becomes simulating signal with drawing scanning, through A/D converter analog signal conversion is become data image signal, and this picture signal is sent to client by usb bus;
This client platform of A2 extracts its histogram to some positions of image, the histogram of gray level image provides the distribution situation of gray scale in piece image, this intensity profile information of utilizing histogram to provide is determined threshold value, pixel gray-scale value and this threshold ratio with certain position in the image comes to determine its two-value, 0 or 1 again.
3. the preprocess method of engineering drawing vectorization recognition system according to claim 1 is characterized in that the morphologic filtering among this step B has adopted opening operation that bianry image is handled; It further comprises:
B1 carries out morphologic corrosion operation earlier;
B2 carries out expansive working then, thereby forms the opening operation of morphologic filtering.
4. according to the preprocess method of claim 1 or 2 or 3 described engineering drawing vectorization recognition systems, it is characterized in that the preliminary vector quantization process based on oblique frame covering domain among this step C further comprises:
The initial trace point of C1 is judged starting point and the directional information to obtain following the tracks of;
C2 tracing process, this tracing process are to adopt the method be similar to zig-zag type to determine the axial point of a certain line segment, comprising three conditions: unique the occupying property of the vector quantization of a axial point; B tracking direction consistance; C width retentivity;
C3 then exports the axial point chain if satisfy three conditions; Otherwise, continue to carry out C2 behind the shortening tracing step.
5. the preprocess method of engineering drawing vectorization recognition system according to claim 4, unique the occupying property of vector quantization that it is characterized in that this axial point is to utilize the method for oblique frame covering domain to obtain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100365231A CN100555310C (en) | 2007-01-17 | 2007-01-17 | A kind of preprocess method of engineering drawing vectorization recognition system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100365231A CN100555310C (en) | 2007-01-17 | 2007-01-17 | A kind of preprocess method of engineering drawing vectorization recognition system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101114341A true CN101114341A (en) | 2008-01-30 |
CN100555310C CN100555310C (en) | 2009-10-28 |
Family
ID=39022674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007100365231A Active CN100555310C (en) | 2007-01-17 | 2007-01-17 | A kind of preprocess method of engineering drawing vectorization recognition system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100555310C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101673347B (en) * | 2008-09-12 | 2011-07-20 | 纬衡浩建科技(深圳)有限公司 | Spitting method of electronic drawing file |
CN102222223A (en) * | 2011-06-16 | 2011-10-19 | 河南省电力公司济源供电公司 | Method for vectorizing electricity drawing |
CN101763510B (en) * | 2010-01-21 | 2012-10-17 | 上海电力学院 | Staggered line vectorization extraction and graph recognition method |
CN105057899A (en) * | 2015-08-18 | 2015-11-18 | 河海大学常州校区 | Scanned image recognition method applied to intelligent laser cutting |
CN106529543A (en) * | 2016-11-02 | 2017-03-22 | 徐庆 | Method and system for dynamically calculating multi-color-grade binary adaptive threshold |
CN109800470A (en) * | 2018-12-25 | 2019-05-24 | 山东爱普电气设备有限公司 | A kind of fixed low-voltage complete switch equipment unified bus calculation method and system |
-
2007
- 2007-01-17 CN CNB2007100365231A patent/CN100555310C/en active Active
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101673347B (en) * | 2008-09-12 | 2011-07-20 | 纬衡浩建科技(深圳)有限公司 | Spitting method of electronic drawing file |
CN101763510B (en) * | 2010-01-21 | 2012-10-17 | 上海电力学院 | Staggered line vectorization extraction and graph recognition method |
CN102222223A (en) * | 2011-06-16 | 2011-10-19 | 河南省电力公司济源供电公司 | Method for vectorizing electricity drawing |
CN105057899A (en) * | 2015-08-18 | 2015-11-18 | 河海大学常州校区 | Scanned image recognition method applied to intelligent laser cutting |
CN106529543A (en) * | 2016-11-02 | 2017-03-22 | 徐庆 | Method and system for dynamically calculating multi-color-grade binary adaptive threshold |
CN109800470A (en) * | 2018-12-25 | 2019-05-24 | 山东爱普电气设备有限公司 | A kind of fixed low-voltage complete switch equipment unified bus calculation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN100555310C (en) | 2009-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100464347C (en) | Vector graphics identifying method for engineering CAD drawing | |
Yang et al. | Automatic pixel‐level crack detection and measurement using fully convolutional network | |
CN100555310C (en) | A kind of preprocess method of engineering drawing vectorization recognition system | |
CN109002841A (en) | A kind of building element extracting method based on Faster-RCNN model | |
CN112837290B (en) | Crack image automatic identification method based on seed filling algorithm | |
CN101763510B (en) | Staggered line vectorization extraction and graph recognition method | |
CN109840483B (en) | Landslide crack detection and identification method and device | |
CN110263794B (en) | Training method of target recognition model based on data enhancement | |
CN104408449A (en) | Intelligent mobile terminal scene character processing method | |
CN111523540A (en) | Metal surface defect detection method based on deep learning | |
CN110969620A (en) | Method and device for detecting magnetic shoe ripple defects | |
CN113240623A (en) | Pavement disease detection method and device | |
CN117036346B (en) | Silica gel sewage treatment intelligent monitoring method based on computer vision | |
CN104637066A (en) | Method for extracting binary image quick skeleton based on sequential refining | |
CN112926694A (en) | Method for automatically identifying pigs in image based on improved neural network | |
CN113763404B (en) | Foam image segmentation method based on optimization mark and edge constraint watershed algorithm | |
CN111860361B (en) | Automatic identifier and identification method for green channel cargo scanning image entrainment | |
CN103136518A (en) | Preprocessing algorithm of fingerprint image automatic identification system | |
CN111444903B (en) | Method, device and equipment for positioning characters in cartoon bubbles and readable storage medium | |
CN111179289B (en) | Image segmentation method suitable for webpage length graph and width graph | |
CN116189194B (en) | Drawing enhancement segmentation method for engineering modeling | |
CN100483448C (en) | Multiple linewidth self-adapting preliminary vectorization method in vectorization process of engineering drawing | |
CN116452826A (en) | Coal gangue contour estimation method based on machine vision under shielding condition | |
CN116030122A (en) | Circular mark point center positioning method, device and storage medium combined with deep convolutional neural network | |
Batra et al. | Review on the techniques used for detection of fabric defects using AI |
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 |