CN107622245A - Papery Wave shape extracting method and device - Google Patents

Papery Wave shape extracting method and device Download PDF

Info

Publication number
CN107622245A
CN107622245A CN201710879627.2A CN201710879627A CN107622245A CN 107622245 A CN107622245 A CN 107622245A CN 201710879627 A CN201710879627 A CN 201710879627A CN 107622245 A CN107622245 A CN 107622245A
Authority
CN
China
Prior art keywords
connected region
lead
waveform
region
subregion
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
CN201710879627.2A
Other languages
Chinese (zh)
Other versions
CN107622245B (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.)
WUHAN ZONCARE BIO-MEDICAL ELECTRONICS Co Ltd
Original Assignee
WUHAN ZONCARE BIO-MEDICAL ELECTRONICS Co Ltd
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 WUHAN ZONCARE BIO-MEDICAL ELECTRONICS Co Ltd filed Critical WUHAN ZONCARE BIO-MEDICAL ELECTRONICS Co Ltd
Priority to CN201710879627.2A priority Critical patent/CN107622245B/en
Publication of CN107622245A publication Critical patent/CN107622245A/en
Application granted granted Critical
Publication of CN107622245B publication Critical patent/CN107622245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of papery Wave shape extracting method and device, this method is first isolated the waveform in electrocardio report figure and character area by threshold method, pass through projected outline's method again, obtain complete lead wave regions, again by lead waveform partition into more sub-regions, in the case that the lead waveform pixel of subregion is not lost, pass through the most characteristic of the number of pixels of lead waveform connected region, significantly it can distinguish with lead symbol, lead separator, lead waveform can be disposably extracted, and without project the positioning of threshold value;When the wave regions of subregion do not connect, by the determination methods of distance, row distance is entered to the connected region in subregion and compared, filter out closest, the connected region for belonging to wave regions carries out head and the tail merging, the wave regions of a connection is generated, so as to extract lead waveform.Can solve the problems, such as traditional threshold-project method can not accurately extract and part special waveform be present.

Description

Papery Wave shape extracting method and device
Technical field
The present invention relates to data processing field, in particular to a kind of papery Wave shape extracting method and device.
Background technology
Electrocardiogram is the important detection methods of Diagnosing Cardiac disease, and most electrocardio report is recorded by thermal printing paper, Due to the chemical characteristic of thermal printing paper and storage condition, printing graph color can be thin out, and picture quality is deteriorated, even Paper sheet break so that typical clinical electrocardiosignal can not preserve for a long time.If by the electrocardio paper shelves report of reservation by swashing Optical printer or digital camera are converted to picture, then by image processing techniques, the Wave data in picture are extracted, by picture Wavy curve digitlization, then achieved with certain form, not only contribute to management of the hospital to patient information, clinician Teaching and scientific research, doctor can also utilize obtain mass data heart disease is done more become more meticulous quantitative statisticses analysis and Diagnosis, more, more accurate clinical criteria is excavated out, is improved to patient's condition-inference accuracy.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of papery Wave shape extracting method and device, can Papery Wave data is digitized.
In a first aspect, the embodiments of the invention provide a kind of papery Wave shape extracting method, methods described includes:Obtain electrocardio Report figure data, the background grid region included by the electrocardio report figure is isolated based on threshold method, obtain waveform and Character area;Based on projected outline's method, the upper and lower, left and right border of acquisition lead waveform in the waveform and character area Position, extract the complete lead waveform;According to the upper and lower, left and right boundary position and electrocardio report figure institute Including printing imposition layout, by the lead waveform partition into more sub-regions;Connected region is carried out to each subregion Field mark, obtain the first connected region of the sign waveform in each subregion and characterize lead separator and lead symbol Number the second connected region;Each the distance between second connected region and first connected region are calculated, deletes institute Second connected region that distance is more than preset value is stated, obtains the second target connected region;Judge the second target connection Whether region is lead separator;If it is not, first connected region is merged with second connected region, first is obtained Target connected region;The first object connected region in each subregion of extraction, obtains Wave data.
Second aspect, the embodiments of the invention provide a kind of papery waveform extracting device, described device includes:First obtains Module, for obtaining the data of electrocardio report figure, the background grid included by the electrocardio report figure is isolated based on threshold method Region, obtain waveform and character area;Projection module, for based on projected outline's method, in the waveform and character area The middle upper and lower, left and right boundary position for obtaining lead waveform, extract the complete lead waveform;Split module, for root According to the included printing imposition layout of the upper and lower, left and right boundary position and electrocardio report figure, by the lead ripple Shape is divided into more sub-regions;Second acquisition module, for carrying out connected component labeling to each subregion, obtain each First connected region of the sign waveform in the subregion and the second connected region for characterizing lead separator and lead symbol Domain;Removing module, for calculating the distance between each second connected region and first connected region, described in deletion Distance is more than second connected region of preset value, obtains the second target connected region;Judge module, for judging described Whether two target connected regions are lead separator;Judge execution module, for the judge module judge be not when, by institute State the first connected region with second connected region to merge, obtain first object connected region;Extraction module, it is every for extracting The first object connected region in the individual subregion, obtains Wave data.
Compared with prior art, the papery Wave shape extracting method and the beneficial effect of device that various embodiments of the present invention propose It is:First the waveform in electrocardio report figure and character area are isolated by threshold method, then by projected outline's method, obtained Whole lead wave regions, further according to electrocardiosignal arrange an order according to class and grade printing layout by lead waveform partition into more sub-regions, according to even Logical zone marker principle, in the case that the lead waveform pixel of subregion is not lost, pass through lead waveform connected region The most characteristic of number of pixels, it can significantly distinguish with lead symbol, lead separator, can disposably extract lead ripple Shape, and without project the positioning of threshold value;It is right by the determination methods of distance when the wave regions of subregion do not connect Connected region in subregion is entered row distance and compared, filter out it is closest, belong to wave regions connected region carry out head and the tail Merge, the wave regions of a connection are generated, so as to extract lead waveform.Can solve traditional threshold-project method can not be accurate The problem of part special waveform (such as pixel is lost, waveform fracture) be present in true extraction.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the structured flowchart of user terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart for papery Wave shape extracting method that first embodiment of the invention provides;
Fig. 3 is the flow chart for another papery Wave shape extracting method that first embodiment of the invention provides;
Fig. 4 is a kind of structured flowchart for papery waveform extracting device that second embodiment of the invention provides.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, it is the block diagram of user terminal 100.The user terminal 100 can be PC (personal computer, PC), tablet personal computer, personal digital assistant (personal digital assistant, PDA) Deng.
The user terminal 100 includes:Papery waveform extracting device, memory 110, storage control 120, processor 130th, Peripheral Interface 140, input-output unit 150, audio unit 160, display unit 170.
The memory 110, storage control 120, processor 130, Peripheral Interface 140, input-output unit 150, sound Frequency unit 160 and 170 each element of display unit are directly or indirectly electrically connected between each other, with realize the transmission of data or Interaction.It is electrically connected with for example, these elements can be realized by one or more communication bus or signal wire between each other.The paper Matter waveform extracting device can be stored in the memory 110 including at least one in the form of software or firmware (firmware) Or it is solidificated in the software function module in the operating system (operating system, OS) of client device.The processor 130 are used to perform the executable module stored in memory 110, such as the software function that the papery waveform extracting device includes Module or computer program.
Wherein, memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 110 is used for storage program, and the processor 130 performs described program after execute instruction is received, foregoing The method for the flow definition that any embodiment of the embodiment of the present invention discloses can apply in processor 130, or by processor 130 realize.
Processor 130 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned processor 130 can To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), application specific integrated circuit (ASIC), Ready-made programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hard Part component.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor Can be microprocessor or the processor can also be any conventional processor etc..
Various input/output devices are coupled to processor 130 and memory 110 by the Peripheral Interface 140.At some In embodiment, Peripheral Interface 140, processor 130 and storage control 120 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
Input-output unit 150 is used to be supplied to user input data to realize interacting for user and user terminal 100.It is described Input-output unit 150 may be, but not limited to, mouse and keyboard etc..
Audio unit 160 provides a user COBBAIF, and it may include one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display unit 170 provides an interactive interface (such as user interface) between user terminal 100 and user Or referred to for display image data to user.In the present embodiment, the display unit 170 can be liquid crystal display or touch Control display.If touch control display, it can be that the capacitance type touch control screen or resistance-type for supporting single-point and multi-point touch operation touch Control screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense on the touch control display one or more Individual opening position is with caused touch control operation, and the touch control operation that this is sensed transfers to processor 130 to be calculated and handled.
First embodiment
It refer to Fig. 2, Fig. 2 is a kind of flow chart for papery Wave shape extracting method that first embodiment of the invention provides, institute State method and be applied to client.The flow shown in Fig. 2 will be described in detail below, methods described includes:
Step S110:The data of electrocardio report figure are obtained, are isolated based on threshold method included by the electrocardio report figure Background grid region, obtain waveform and character area.
Because the thermal printing paper of electrocardio report figure is all pink background grid, the curve and word of printing are black Color, the picture of printed report is cromogram, according to RGB combined color image principles, the song of pink background grid and black Line has obvious difference in the threshold value of R, G, B layer picture, isolates grid and curve word according to threshold value offset, generates one The only black and white picture of curve and word, curve and word are white, and gray scale 255, background process is black, gray scale 0.By In the resolution ratio of image and the resolution differences of laser printer, the picture of only curve and word there may be scattered noise Signal, in order to obtain clean complete curve, median filter process is carried out to picture, noise jamming is removed, waveform can be obtained And character area.
Step S120:Based on projected outline's method, obtained in the waveform and character area lead waveform it is upper and lower, Left and right boundary position, extract the complete lead waveform.
Wherein, the lead waveform is generally 12 lead waveforms.
Due to interstitial spaces between word and waveform be present in electrocardio report figure, and it is distributed rectangular, therefore, can be with Rectangular coordinate system is established in waveform and character area, then using projected outline's method, Y-axis extremely is projected, calculates projecting direction Pixel it is cumulative and, pixel and be 0 after current line projection, next line projected pixel and more than 0 illustrates that the line position is set to lay edges Battery limit (BL) domain, the upper and lower border of waveform signal whole region in waveform and character area is found by the characteristic.Similarly, can be with Projection X-axis extremely, calculate projecting direction pixel it is cumulative and, pixel and be 0 after current line projection, next column projected pixel and big In 0, it is blank borderline region to illustrate the column position, and the whole area of waveform signal in waveform and character area is found by the characteristic Left margin (left_start_postion), the right margin (right_end_postion) in domain.Left margin characterizes pixel in X-axis On origin coordinates, right margin characterizes terminal point coordinate of the pixel in X-axis.
Client can extract the complete lead waveform based on the border up and down of waveform signal.
Step S130:Arranged according to the printing that the upper and lower, left and right boundary position and electrocardio report figure are included Version layout, by the lead waveform partition into more sub-regions.
The manufacturer of each electrocardiograph is to use matrix form piecemeal print processing, electrocardio when printing electrocardio report The printing model of figure machine is common to be had:3 × 4,6 × 2,12 × 1 these three, according to matrix typesetting rule, in printed report most The centre position in left side or leftmost or often row lead signals rightmost side printing calibration symbol that often row lead signals start, phase Adjacent lead waveform is separated by separator, usually dotted line or solid line.The printing typesetting cloth of electrocardio report figure acquired in client Office can characterize the printing model of electrocardiograph.
If 3 × 4 situation, pass through matrix square-shaped printing layout characteristic and left margin and the right of lead waveform Boundary is reference, and often row lead regional extent is substantially:(right_end_postion-left_start_postion)/4, often go The scope of lead waveform is divided into 4 sub-regions.Similarly, the situation if 6 × 2, often the scope in row lead region be: (right_end_postion-left_start_postion)/2, often row lead waveform is divided into 2 sub-regions.
3 kinds of elements are included in each subregion:Lead waveform, lead symbol and lead separator, these three elements Be spatially separate completely, independent connected region.
Step S140:Connected component labeling is carried out to each subregion, obtains the sign in each subregion First connected region of waveform and the second connected region for characterizing lead separator and lead symbol.
In one set, the element to communicate with each other forms a region, and disconnected point forms different regions. Communicated with each other the set a little formed, referred to as a connected region by all points, and connected component labeling is exactly by a set In belong to the elements of different connected regions and distinguish.
Connected component labeling can be carried out to each subregion, obtain multiple connected regions, such as obtain lead ripple Shape connected region, lead symbol connected region and lead separator connected region, the area is saved in each connected region subset Horizontal stroke, the ordinate value of domain pixel.
Because lead symbol is made up of letter, such as I, aVR, aVL, V1, V3 etc., 1 connected region may be labeled as Domain (such as I), as the lead symbol (such as between aVR, aVL, V1, V3 these adjacent letters pixel not connected) of tiled configuration 2 different connected region set can be marked as.It is unremitting in waveform pixel but lead waveform has continuous particularity In the case of, only it can be labeled as 1 connected region.According to this characteristic, the pixel value that can obtain each connected region is total; Using a maximum connected region of pixel value sum as the first connected region for characterizing waveform, using remaining connected region as table Levy the second connected region of lead separator and lead symbol.
, therefore, can when isolating net region because background grid region may overlap with the lead waveform of a part A part of lead waveform can be caused to be removed, cause the partial pixel of the first connected region to lose, curve becomes fracture, endless It is whole.And the lead waveform that the curve for being broken but not being removed is formed can be erroneously interpreted as characterizing lead separator or lead Join the second connected region of symbol.Therefore, it is necessary to by the first connected region, the pixel of loss and the pixel of fracture reduce.
Step S150:Each the distance between second connected region and first connected region are calculated, deletes institute Second connected region that distance is more than preset value is stated, obtains the second target connected region.
It is possible to further extract the pixel of the beginning and end of the second connected region and each first connected region Position, calculate each the distance between second connected region and first connected region.Due to two adjacent connections In region, the pixel and the pixel distance of the latter connected region starting position of previous connected region end position are nearest, because This, it is to characterize lead symbol that can regard as the second connected region for being more than pre-determined distance value with the distance of the first connected region The second connected region.The second connected region in second connected region, characterizing lead symbol is deleted, obtains the second target company Logical region.Now, the second target connected region, it may be possible to characterize lead separator or lead symbol, it is also possible to characterize disconnected The lead waveform split.
Step S160:Judge whether the second target connected region is lead separator.
Because lead separator is in the left and right ends of subregion, lead symbol is in the upper left side position of subregion, therefore, The abscissa scope of each second target connected region can be obtained, the abscissa scope and default first preset range are entered Row compares, and judges whether the second target connected region is lead separator or lead symbol, the first preset range table The left border and right side boundary of each subregion of sign.If the abscissa scope in first preset range, It is lead separator or lead symbol to judge the second target connected region.Otherwise, the second target connected region is not led then Join separator or lead symbol.
Step S170:If it is not, first connected region is merged with the second target connected region, first is obtained Target connected region.
If there is no lead separator or lead symbol in the second target connected region, then by first connected region with Second connected region merges according to distance is most short, obtains first object connected region.It is possible to further by described in The head and the tail pixel of first connected region and the second target connected region is arranged to 255, and the region of fracture is linked up, obtained First object connected region.
Step S180:The first object connected region in each subregion of extraction, obtains Wave data.
In addition, as a kind of embodiment, Fig. 3 is refer to, step S170 can also include:
Step S171:If so, the second target connected region for characterizing the lead separator or lead symbol is deleted Remove, first connected region is merged with the remaining second target connected region, obtains first object connected region.
The beneficial effect of a kind of papery Wave shape extracting method that first embodiment of the invention provides is:First will by threshold method Waveform and character area in electrocardio report figure are isolated, then by projected outline's method, obtain complete lead wave regions, Further according to electrocardiosignal arrange an order according to class and grade printing layout by lead waveform partition into more sub-regions, according to connected component labeling principle, when In the case that the lead waveform pixel of subregion is not lost, pass through the most spy of the number of pixels of lead waveform connected region Property, it can significantly distinguish with lead symbol, lead separator, can disposably extract lead waveform, and without being thrown The positioning of shadow threshold value;When the wave regions of subregion do not connect, by the determination methods of distance, to the connected region in subregion Domain is entered row distance and compared, filter out it is closest, belong to wave regions connected region carry out head and the tail merging, generate one connection Wave regions, so as to extract lead waveform.Can solve traditional threshold-project method and can not accurately extract part be present The problem of special waveform (such as pixel is lost, waveform fracture).
Second embodiment
Fig. 4 is refer to, Fig. 4 is a kind of structural frames for papery waveform extracting device 400 that second embodiment of the invention provides Figure.The structured flowchart shown in Fig. 4 will be illustrated below, shown device includes:
First acquisition module 410, for obtaining the data of electrocardio report figure, the electrocardio report is isolated based on threshold method The included background grid region of figure, obtains waveform and character area;
Projection module 420, for based on projected outline's method, lead waveform to be obtained in the waveform and character area Upper and lower, left and right boundary position, extract the complete lead waveform;
Split module 430, for included according to the upper and lower, left and right boundary position and electrocardio report figure Imposition layout is printed, by the lead waveform partition into more sub-regions;
Second acquisition module 440, for carrying out connected component labeling to each subregion, obtain each sub-district First connected region of the sign waveform in domain and the second connected region for characterizing lead separator or lead symbol;
Removing module 450, for calculating the distance between each second connected region and first connected region, Second connected region that the distance is more than preset value is deleted, obtains the second target connected region;
Judge module 460, for judging whether the second target connected region is lead separator;
Judge execution module 470, for when the judge module 460 judges not to be, by first connected region with Second connected region merges, and obtains first object connected region;
Extraction module 480, for extracting the first object connected region in each subregion, obtain waveform number According to.
Further, the judgement execution module 470, can be also used for when the judge module 460 judges to be, by table The the second target connected region for levying the lead separator is deleted, by first connected region and remaining described second Target connected region merges, and obtains first object connected region.
The present embodiment refers to the process of the respective function of each Implement of Function Module of papery waveform extracting device 400 Fig. 1 is stated to the content described in embodiment illustrated in fig. 3, here is omitted.
In summary, the papery Wave shape extracting method and device that the embodiment of the present invention proposes, by threshold method first by the heart Waveform and character area in telegram announcement figure are isolated, then by projected outline's method, obtain complete lead wave regions, then According to electrocardiosignal arrange an order according to class and grade printing layout by lead waveform partition into more sub-regions, according to connected component labeling principle, group In the case that the lead waveform pixel in region is not lost, by the most characteristic of the number of pixels of lead waveform connected region, It can significantly distinguish with lead symbol, lead separator, can disposably extract lead waveform, and without carrying out projection threshold The positioning of value;When the wave regions of subregion do not connect, by the determination methods of distance, the connected region in subregion is entered Row distance compares, filter out it is closest, belong to wave regions connected region carry out head and the tail merging, generate one connection ripple Shape region, so as to extract lead waveform.Can solve traditional threshold-project method can not accurately extract that part to be present special The problem of waveform (such as pixel is lost, waveform fracture).
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of papery Wave shape extracting method, it is characterised in that methods described includes:
The data of electrocardio report figure are obtained, the background grid region included by the electrocardio report figure is isolated based on threshold method, Obtain waveform and character area;
Based on projected outline's method, the upper and lower, left and right boundary position of acquisition lead waveform in the waveform and character area, Extract the complete lead waveform;
According to the included printing imposition layout of the upper and lower, left and right boundary position and electrocardio report figure, by described in Lead waveform partition is into more sub-regions;
Connected component labeling is carried out to each subregion, obtains the first connection of the sign waveform in each subregion Region and the second connected region for characterizing lead separator and lead symbol;
Each the distance between second connected region and first connected region are calculated, deletes the distance more than default Second connected region of value, obtains the second target connected region;
Judge whether the second target connected region is lead separator;If it is not, by first connected region with it is described Second target connected region merges, and obtains first object connected region;
The first object connected region in each subregion of extraction, obtains EGC waveform data.
2. according to the method for claim 1, it is characterised in that described to judge whether the second target connected region is to lead Join separator, including:
Obtain the abscissa scope of the second target connected region;
The abscissa scope is compared with default first preset range, judge the second target connected region whether be Lead separator, first preset range characterize the left border and right side boundary of each subregion.
3. according to the method for claim 1, it is characterised in that described to judge whether the second target connected region is to lead Join separator, methods described also includes:
If so, will characterize the lead separator the second target connected region delete, will first connected region and The remaining second target connected region merges, and obtains first object connected region.
4. according to the method for claim 1, it is characterised in that by first connected region and second connected region Merge, obtain first object connected region, including:
The head and the tail pixel of first connected region and the second target connected region is arranged to 255, obtains first object Connected region.
5. according to the method for claim 1, it is characterised in that described that connected region mark is carried out to each subregion Remember, the first connected region for characterizing waveform and sign lead separator and lead symbol in each subregion of acquisition Second connected region, including:
Connected component labeling is carried out to each subregion, obtains multiple connected regions;
Obtain the pixel value sum of each connected region;
Pixel value sum is more than to first connected region of the connected region as sign waveform of the first preset value, by pixel Value sum is less than the connected region of the second preset value as the second connected region for characterizing lead separator or lead symbol Domain.
6. a kind of papery waveform extracting device, it is characterised in that described device includes:
First acquisition module, for obtaining the data of electrocardio report figure, the electrocardio report figure is isolated based on threshold method and wrapped The background grid region included, obtains waveform and character area;
Projection module, for based on projected outline's method, obtained in the waveform and character area lead waveform it is upper and lower, Left and right boundary position, extract the complete lead waveform;
Split module, for being arranged according to the included printing of the upper and lower, left and right boundary position and electrocardio report figure Version layout, by the lead waveform partition into more sub-regions;
Second acquisition module, for carrying out connected component labeling to each subregion, obtain in each subregion Characterize the first connected region of waveform and characterize the second connected region of lead separator and lead symbol;
Removing module, for calculating the distance between each second connected region and first connected region, delete institute Second connected region that distance is more than preset value is stated, obtains the second target connected region;
Judge module, for judging whether the second target connected region is lead separator;
Execution module is judged, for when the judge module judges not to be, first connected region and described second to be connected Logical region merging technique, obtains first object connected region;
Extraction module, for extracting the first object connected region in each subregion, obtain EGC waveform data.
7. device according to claim 6, it is characterised in that the judge module, including:
Acquisition submodule, for obtaining the abscissa scope of the second target connected region;
Judging submodule, for the abscissa scope to be compared with default first preset range, judge second mesh Mark whether connected region is lead separator, first preset range characterizes left border and the right side of each subregion Lateral boundaries.
8. device according to claim 6, it is characterised in that the judgement execution module, be additionally operable in the judgement mould When block judges to be, the second target connected region for characterizing the lead separator is deleted, by first connected region Merge with the remaining second target connected region, obtain first object connected region.
9. device according to claim 6, it is characterised in that the judgement execution module, for described first to be connected Region and the head and the tail pixel of the second target connected region are arranged to 255, obtain first object connected region.
10. device according to claim 6, it is characterised in that second acquisition module includes:
Submodule is marked, for carrying out connected component labeling to each subregion, obtains multiple connected regions;
Acquisition submodule, for obtaining the pixel value sum of each connected region;
Comparison sub-module, for pixel value sum to be more than to the connected region of the first preset value as the first of sign waveform Connected region, pixel value sum is less than the connected region of the second preset value as sign lead separator and lead symbol The second connected region.
CN201710879627.2A 2017-09-26 2017-09-26 Paper waveform extraction method and device Active CN107622245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710879627.2A CN107622245B (en) 2017-09-26 2017-09-26 Paper waveform extraction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710879627.2A CN107622245B (en) 2017-09-26 2017-09-26 Paper waveform extraction method and device

Publications (2)

Publication Number Publication Date
CN107622245A true CN107622245A (en) 2018-01-23
CN107622245B CN107622245B (en) 2020-02-07

Family

ID=61090867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710879627.2A Active CN107622245B (en) 2017-09-26 2017-09-26 Paper waveform extraction method and device

Country Status (1)

Country Link
CN (1) CN107622245B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111466905A (en) * 2020-04-10 2020-07-31 西安交通大学 Electrocardiographic waveform extraction method based on bidirectional communication
CN113077472A (en) * 2021-04-07 2021-07-06 华南理工大学 Paper electrocardiogram curve image segmentation method, system, device and medium
CN115517686A (en) * 2022-11-24 2022-12-27 合肥心之声健康科技有限公司 Family environment electrocardiogram image analysis method, device, equipment, medium and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102038498A (en) * 2011-01-20 2011-05-04 天津理工大学 Method for digitalizing paper electrocardiogram
CN104318233A (en) * 2014-10-19 2015-01-28 温州大学 Method for horizontal tilt correction of number plate image
CN104424629A (en) * 2013-08-19 2015-03-18 深圳先进技术研究院 X-ray chest radiography lung segmentation method and device
CN105678299A (en) * 2016-02-29 2016-06-15 江文得 License plate positioning method
CN107085726A (en) * 2017-01-04 2017-08-22 安阳师范学院 Oracle bone rubbing individual character localization method based on multi-method denoising and connected component analysis
CN107174232A (en) * 2017-04-26 2017-09-19 天津大学 A kind of electrocardiographic wave extracting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102038498A (en) * 2011-01-20 2011-05-04 天津理工大学 Method for digitalizing paper electrocardiogram
CN104424629A (en) * 2013-08-19 2015-03-18 深圳先进技术研究院 X-ray chest radiography lung segmentation method and device
CN104318233A (en) * 2014-10-19 2015-01-28 温州大学 Method for horizontal tilt correction of number plate image
CN105678299A (en) * 2016-02-29 2016-06-15 江文得 License plate positioning method
CN107085726A (en) * 2017-01-04 2017-08-22 安阳师范学院 Oracle bone rubbing individual character localization method based on multi-method denoising and connected component analysis
CN107174232A (en) * 2017-04-26 2017-09-19 天津大学 A kind of electrocardiographic wave extracting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫磊等: "基于k-means的纸质心电图数字化信息提取研究", 《河北工业科技》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111466905A (en) * 2020-04-10 2020-07-31 西安交通大学 Electrocardiographic waveform extraction method based on bidirectional communication
CN111466905B (en) * 2020-04-10 2021-01-22 西安交通大学 Electrocardiographic waveform extraction method based on bidirectional communication
CN113077472A (en) * 2021-04-07 2021-07-06 华南理工大学 Paper electrocardiogram curve image segmentation method, system, device and medium
CN113077472B (en) * 2021-04-07 2023-02-10 华南理工大学 Paper electrocardiogram curve image segmentation method, system, device and medium
CN115517686A (en) * 2022-11-24 2022-12-27 合肥心之声健康科技有限公司 Family environment electrocardiogram image analysis method, device, equipment, medium and system

Also Published As

Publication number Publication date
CN107622245B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US5629857A (en) Method and system for indicating a status of a circuit design
CA2120061C (en) System and method for dynamically labeled touch sensitive buttons in a digitizing display
US10175805B2 (en) Bottom-up watershed dataflow method and region-specific segmentation based on historic data to identify patches on a touch sensor panel
CN107622245A (en) Papery Wave shape extracting method and device
CN107885713B (en) File format conversion method, device, equipment and storage medium
CN108280051A (en) Detection method, device and the equipment of error character in a kind of text data
CN106530311B (en) Sectioning image processing method and processing device
WO2024078399A1 (en) Transfer method and apparatus
CN102521567A (en) Human-computer interaction fingertip detection method, device and television
CN107625519B (en) Electrocardiogram processing method and device
CN115171143A (en) Method and system for extracting full-face information of electronic invoice
CN104885095B (en) Hand-written document processing device and method
CN108198613A (en) Information registering method and device
CN105427331B (en) The measuring method and measuring device of a kind of digital pathological section
JP6525523B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL METHOD, AND PROGRAM
CN112528903A (en) Face image acquisition method and device, electronic equipment and medium
CN108280425A (en) A kind of quick survey light implementation method based on screen following formula optical fingerprint sensor
JP2014021700A (en) Credit slip check support device, method and program
CN112084103A (en) Interface test method, device, equipment and medium
CN106886777A (en) A kind of character boundary determines method and device
CN113971803A (en) Segmentation method of conglutinated characters in image and related equipment
JP2022185872A (en) Image processing device, image processing method and imaging apparatus
CN107329654A (en) Draw method, device and the computer-readable recording medium of element floating layer
JP2009277190A (en) Line segment extracting device
CN111127414A (en) Perfusion image judgment system and method based on OPENCV and intelligent terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant