[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102663792B - A kind of method and system of carrying out deleting for redundant area in sectional drawing - Google Patents

A kind of method and system of carrying out deleting for redundant area in sectional drawing Download PDF

Info

Publication number
CN102663792B
CN102663792B CN201210085286.9A CN201210085286A CN102663792B CN 102663792 B CN102663792 B CN 102663792B CN 201210085286 A CN201210085286 A CN 201210085286A CN 102663792 B CN102663792 B CN 102663792B
Authority
CN
China
Prior art keywords
redundant area
sectional drawing
drawing data
aforementioned
information
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.)
Active
Application number
CN201210085286.9A
Other languages
Chinese (zh)
Other versions
CN102663792A (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.)
Shanghai Liangming Technology Development Co Ltd
Original Assignee
Shanghai Liangming Technology Development 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 Shanghai Liangming Technology Development Co Ltd filed Critical Shanghai Liangming Technology Development Co Ltd
Priority to CN201210085286.9A priority Critical patent/CN102663792B/en
Publication of CN102663792A publication Critical patent/CN102663792A/en
Application granted granted Critical
Publication of CN102663792B publication Critical patent/CN102663792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a kind of method and system of carrying out deleting for redundant area in sectional drawing, belong to computing machine, software technology field.The method comprises: the decision rule of redundant area in setting sectional drawing data message; Gather sectional drawing data message, judge whether include redundant area in sectional drawing data message according to aforesaid decision rule, if then proceed to next step, then terminate if not; According to the trigger action of user, carry out deleting and exporting for the redundant area in sectional drawing data message.Utilize the present invention, by setting the decision rule of redundant area in sectional drawing instrument, when there is the redundant area meeting decision rule in sectional drawing data message, directly exporting the sectional drawing data message after deleting redundant area according to the trigger action of user, meeting the multi-level demand of user.

Description

A kind of method and system of carrying out deleting for redundant area in sectional drawing
Technical field
The invention belongs to computing machine, software technology field.
Background technology
At present, utilize sectional drawing instrument to intercept the content in current screen with the form of picture, become a kind of important way of user's quick obtaining information content.Such as, the screenshot capture function that JICQ provides, user arbitrarily can intercept for content interested in current screen, and carries out preserving or send to contact person to share with the form of picture.
In prior art, scaling can be carried out for sectional drawing data, add the editing operation such as word, frame line, but when including useless redundant area in sectional drawing data, if user wishes to remove this redundant area, then cannot be realized by existing sectional drawing instrument.
User is when using sectional drawing instrument to carry out image interception; often can run into this situation; the content information be associated is distributed in two page numbers; when user needs this part content sectional drawing; page number cut zone is there will be between the content be associated; to make between content association and discontinuous; in order to address this problem; user often needs first in page up code, to intercept upper part content; and then lower part content is intercepted in next page number; finally splice two parts content at one piece, this operating process is very numerous and diverse as seen again.
If redundant area can be arranged in sectional drawing instrument automatically identify and delete function, according to the trigger action of user, directly can export the sectional drawing data message after deleting redundant area, then effectively can solve the above-mentioned problem run into, improve the experience of user.
Summary of the invention
The object of the invention is to, a kind of method and system of carrying out deleting for redundant area in sectional drawing are provided.Utilize the present invention, by setting the decision rule of redundant area in sectional drawing instrument, when there is the redundant area meeting decision rule in sectional drawing data message, directly exporting the sectional drawing data message after deleting redundant area according to the trigger action of user, meeting the multi-level demand of user.
Technical scheme provided by the invention comprises:
Carry out a method of deleting for redundant area in sectional drawing, the method comprises the steps:
Step 1, the decision rule of redundant area in setting sectional drawing data message;
Step 2, gathers sectional drawing data message, judges whether include redundant area in sectional drawing data message, if then proceed to next step, then terminate if not according to aforesaid decision rule;
Step 3, according to the trigger action of user, carries out deleting and exporting for the redundant area in sectional drawing data message.
Preferably, in described step 1, the decision rule of redundant area is:
Gather the drawing information of the redundant area that user is arranged;
Sectional drawing data message and aforementioned redundant area drawing information are compared, image-region comparison passed through is defined as redundant area.
Preferably, in described step 1, the decision rule of redundant area is:
Obtain the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width;
Gather the actual interval width between adjacent rows Word message in sectional drawing data message;
The actual interval width of collection and normal space width are compared, if actual interval width is greater than normal space width, then the region between aforementioned adjacent rows Word message is defined as redundant area.
Preferably, in described step 1, the decision rule of redundant area is:
Obtain the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width;
Judge, in the sectional drawing data message gathered, whether have the horizontal stripe white space or vertical bar white space that extend to screenshot area edge;
Judge whether the width of described horizontal stripe white space or vertical bar white space is greater than normal space width, if so, then this horizontal stripe white space or vertical bar white space are judged to be redundant area.
Preferably, in described step 1, the decision rule of redundant area is:
Judge, in the sectional drawing data message gathered, whether have the white space extending to screenshot area edge that two adjacent;
Whether to judge between aforementioned two adjacent white spaces as the region of the coherent pixel composition of bar shaped further, be then if so, redundant area by the regional determination of this coherent pixel composition.
Preferably, in described step 1, the decision rule of redundant area is:
To judge in sectional drawing data message whether as lteral data information;
If so, then judge whether include page identifier in sectional drawing data message further;
If so, then according to aforementioned page identifier acquisition of information page interval region, the page interval region of acquisition is judged to be redundant area.
Preferably, described page identifier includes the information of the page number, header, footer wherein at least one.
Preferably, in described step 1, the decision rule of redundant area is:
Be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area;
If so, then judge that aforementioned illustration and adjacent white space are as redundant area.
Preferably, in described step 1, the decision rule of redundant area is:
Be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area;
If so, the word content that separated by aforementioned illustration and adjacent white space is judged further whether as coherent lteral data information;
If so, then judge that aforementioned illustration and adjacent white space are as redundant area.
Preferably, judge the word content that separated by aforementioned illustration and adjacent white space whether as coherent lteral data information process as:
Gather the word content information and punctuation mark information that are separated by aforementioned illustration and adjacent white space;
According to punctuation mark information, judging the word content information that separated by earlier figures picture or white space whether as complete statement information, is if so, then coherent lteral data information.
Preferably, described illustration refers to the non-blank-white region with pixel and this Pixel Information is not lteral data information.
Preferably, also comprise after described step 2, generate and carry out for redundant area the function items deleted.
Preferably, described generation is carried out the process of the function items deleted and is for redundant area:
Redundant area is carried out differentiation display;
Redundant area for differentiation display arranges deletion control, generates and carries out for redundant area the function items deleted.
Preferably, also comprise after described step 2, generate the sectional drawing data preview information after deleting redundant area.
Preferably, the process generating the sectional drawing data preview information after deleting redundant area is:
Gather the first image-region and second image-region of the adjacent both sides of redundant area;
The lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped;
Sectional drawing data preview information is generated according to spliced image-region.
The present invention also provides a kind of system of carrying out deleting for redundant area in sectional drawing, and this system comprises:
Redundant area setup unit, for setting the decision rule of redundant area in sectional drawing data message;
Redundant area identifying unit, is connected with aforementioned redundant area setup unit, for gathering sectional drawing data message, judges whether include redundant area in sectional drawing data message according to aforesaid decision rule;
Redundant area processing unit, is connected with aforementioned redundant area identifying unit, for the trigger action according to user, carries out deleting and exporting for the redundant area in sectional drawing data message.
Preferably, described redundant area setup unit comprises:
Drawing information setting module, for gathering the decision rule of drawing information as redundant area of the redundant area that user is arranged.
Preferably, described redundant area identifying unit comprises:
Shot image information comparing module, for comparing the redundant area drawing information of sectional drawing data message and setting;
Pattern redundant area determination module, is connected with aforementioned shot image information comparing module, is defined as redundant area for image-region comparison passed through.
Preferably, described redundant area identifying unit comprises:
Normal width acquisition module, for obtaining the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width;
Developed width acquisition module, is connected with aforesaid standards width acquisition module, for gathering the actual interval width in sectional drawing data message between adjacent rows Word message;
Interval redundant area determination module, is connected with aforementioned developed width acquisition module, for the actual interval width of collection and normal space width being compared, if actual interval width is greater than normal space width, is then defined as redundant area.
Preferably, described redundant area identifying unit comprises:
Normal width acquisition module, for obtaining the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width;
White space determination module, is connected with aforesaid standards width acquisition module, for judging in gathered sectional drawing data message, whether has the horizontal stripe white space or vertical bar white space that extend to screenshot area edge;
Blank redundant area determination module, be connected with aforementioned white space determination module, for judging whether the width of described horizontal stripe white space or vertical bar white space is greater than normal space width, if so, then judge that this horizontal stripe white space or vertical bar white space are as redundant area.
Preferably, described redundant area identifying unit comprises:
Adjacent space regions determination module, for judging, in gathered sectional drawing data message, whether have the white space extending to screenshot area edge that two adjacent;
Pixel redundant area determination module, be connected with aforementioned adjacent space regions determination module, for judging between aforementioned two adjacent white spaces whether as the region of the coherent pixel composition of bar shaped, be then if so, redundant area by the regional determination of this coherent pixel composition.
Preferably, described redundant area identifying unit comprises:
Whether Word message determination module, for judging in sectional drawing data message as lteral data information;
Page info determination module, is connected with aforementioned Word message determination module, whether includes page identifier and page interval region for judging in sectional drawing data message;
Page redundant area determination module, is connected with aforementioned page info determination module, for aforementioned page identifier region and page interval region are judged to be redundant area.
Preferably, described redundant area identifying unit comprises:
Illustration regional determination module, is separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area;
Illustration redundant area determination module, is connected with aforementioned illustration regional determination module, for determining that aforementioned illustration and adjacent white space are redundant area according to the result of aforementioned illustration regional determination module.
Preferably, described redundant area processing unit comprises:
Differentiation display module, for carrying out differentiation display by redundant area;
Delete function arranges module, is connected with aforementioned differences display module, and the redundant area for showing for differentiation arranges deletion control, generates and carries out for redundant area the function items deleted;
Sectional drawing data outputting module, arranges module with aforementioned delete function and is connected, and for according to the trigger action of user for delete function item, exports the sectional drawing data after deleting redundant area.
Preferably, described redundant area processing unit comprises:
Image-region acquisition module, for gathering the first image-region and second image-region of the adjacent both sides of redundant area;
Image-region concatenation module, is connected with aforementioned image-region acquisition module, for the lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped;
Preview image generating module, is connected with aforementioned image-region concatenation module, for spliced image-region is generated sectional drawing data preview information;
Sectional drawing data outputting module, is connected with aforementioned preview image generating module, for according to the trigger action of user for aforementioned preview picture, exports the sectional drawing data that preview picture is corresponding.
Compared with prior art, the invention has the beneficial effects as follows: the decision rule setting redundant area in sectional drawing instrument; When having the region meeting redundant area decision rule in the sectional drawing data message judging user, determine that this region is redundant area; And generate and carry out for this redundant area the function items deleted, or generate the sectional drawing data preview information after deleting redundant area; Further according to the trigger action of user, directly export the sectional drawing data message after deleting redundant area.Technical scheme of the present invention provides the function automatically identifying redundant area in sectional drawing data message, and only need the clicking trigger of user, the sectional drawing data message namely after exportable deletion redundant area, makes the operating process of user simpler and more direct.
Accompanying drawing explanation
Fig. 1 carries out for redundant area in sectional drawing the method flow diagram deleted in the embodiment of the present invention;
Fig. 1-1, illustrates the schematic diagram according to the line spacing information determination redundant area of lteral data in sectional drawing data message in the embodiment of the present invention;
Fig. 1-2 illustrates in the embodiment of the present invention and determines in sectional drawing data message that between white space, coherent pixel region is the schematic diagram of redundant area;
Fig. 1-3 illustrates in the embodiment of the present invention and determines in sectional drawing data message that illustration between lteral data information and adjacent space regions are the schematic diagram of redundant area;
Fig. 2 carries out for redundant area in sectional drawing the method flow diagram deleted in the embodiment of the present invention one;
Fig. 2-1, illustrates the schematic diagram carrying out differentiation display in the embodiment of the present invention for redundant area;
Fig. 2-2, illustrates in the embodiment of the present invention for the schematic diagram deleted the screenshot area after redundant area and carry out exporting;
Fig. 3 carries out for redundant area in sectional drawing the method flow diagram deleted in the embodiment of the present invention two;
Fig. 3-1, illustrates the schematic diagram of the sectional drawing data preview information after deleting redundant area that generates;
Fig. 4 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention;
Fig. 5 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention one;
Fig. 6 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention two;
Fig. 7 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention three;
Fig. 8 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention four;
Fig. 9 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention five;
Figure 10 carries out the system schematic of deleting for redundant area in sectional drawing in the embodiment of the present invention six.
Embodiment
Below in conjunction with the drawings and specific embodiments, embodiment of the present invention are described in further detail.
See Fig. 1, for carrying out the method flow diagram deleted in the embodiment of the present invention for redundant area in sectional drawing, concrete steps are as described below.
S11, the decision rule of redundant area in setting sectional drawing data message;
Decision rule for redundant area includes various ways, is specifically introduced below for various mode.
Mode 1, the decision rule of redundant area is: the drawing information gathering the redundant area that user is arranged; Sectional drawing data message and aforementioned redundant area drawing information are compared, image-region comparison passed through is defined as redundant area.
In sectional drawing instrument, be provided with redundant area drawing information add function items, when user triggers this function items, can intercept for screen image information, and the pattern of truncated picture information as redundant area is added in pattern data storehouse.
The process judged the redundant area in sectional drawing data by above-mentioned decision rule is as the color shape facility information that gathers each region in sectional drawing data message; Color shape facility in this characteristic information and redundant area drawing information is compared; When similarity meets threshold condition, then comparison is passed through, and is redundant area by regional determination corresponding in sectional drawing data message.
Mode 2, the decision rule of redundant area is: the line spacing information obtaining lteral data in sectional drawing data message, using this line-spacing as normal space width; Gather the actual interval width between adjacent rows Word message in sectional drawing data message; The actual interval width of collection and normal space width are compared, if actual interval width is greater than normal space width, then the region between aforementioned adjacent rows Word message is defined as redundant area.
For the recognition methods of lteral data in sectional drawing data message, the method by feature decision processes.Feature decision is the common trait rule by lteral data (such as English or Chinese), and such as pixel characteristic, provincial characteristics, surrounding feature etc. carry out discriminant classification.After determining lteral data information, gather the width of white space between adjacent rows Word message, using the line spacing information of white space width fixing between each row Word message as lteral data, and using this width value as normal space width.See Fig. 1-1, illustrate the schematic diagram of the line spacing information determination redundant area according to lteral data in sectional drawing data message.As shown in the figure, lteral data 101 is included in sectional drawing data message 100, all there is the white space of fixed width between each style of writing digital data information, the width of this white space is as line spacing information, line-spacing 102 as illustrated in the drawing between the first row Word message and the second row Word message, this line-spacing 102 is normal space width.Actual interval width 103 as illustrated in the drawing between the third line Word message and fourth line Word message, then be greater than the fixing leading value in this sectional drawing data message, therefore can determine that the region between the third line Word message and fourth line Word message is redundant area.
Mode 3, the decision rule of redundant area is: the line spacing information obtaining lteral data in sectional drawing data message, using this line-spacing as normal space width; Judge, in the sectional drawing data message gathered, whether have the horizontal stripe white space or vertical bar white space that extend to screenshot area edge; Judge whether the width of described horizontal stripe white space or vertical bar white space is greater than normal space width, if so, then this horizontal stripe white space or vertical bar white space are judged to be redundant area.In the decision rule of the manner, after determining the lteral data in sectional drawing data message, gather the white space width between adjacent rows lteral data, this white space is the clear area at the edge extending to screenshot area, when this white space width is greater than normal space width, illustrate that this white space is not line-spacing region, be therefore defined as redundant area.
Mode 4, the decision rule of redundant area for: judge, in the sectional drawing data message gathered, whether have the white space extending to screenshot area edge that two are adjacent; Whether to judge between aforementioned two adjacent white spaces as the region of the coherent pixel composition of bar shaped further, be then if so, redundant area by the regional determination of this coherent pixel composition.See Fig. 1-2, illustrate in sectional drawing data message and determine that between white space, coherent pixel region is the schematic diagram of redundant area.As shown in the figure, two adjacent the first white space 121 and the second white spaces 122 extending to screenshot area edge are included in sectional drawing data message 120, between these two white spaces, have the bar-shaped zone 123 of a coherent pixel composition, this bar-shaped zone 123 is redundant area.
Mode 5, whether the decision rule of redundant area is: to judge in sectional drawing data message as lteral data information; If so, then judge whether include page identifier in sectional drawing data message further; If so, then according to aforementioned page identifier acquisition of information page interval region, the page interval region of acquisition is judged to be redundant area.See Fig. 1-1, lteral data information in sectional drawing data message 100 is the content of two pages, numerical information " 1 " is included in the central bottom position of first page, this numerical information is the page number of this page, when collect include page number information in sectional drawing data message time, obtain the two style of writing digital data up and down of closing on this page number according to the page number information determined further, the region between upper and lower two style of writing digital data information is defined as redundant area.In addition, page identifier, except being page number information, can also be header or footer information.
Mode 6, the decision rule of redundant area is: be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area; If so, then judge that aforementioned illustration and adjacent white space are as redundant area.See Fig. 1-3, illustrate in sectional drawing data message and determine that illustration between lteral data information and adjacent space regions are the schematic diagram of redundant area.As shown in the figure, lteral data information and illustration 131 is included in sectional drawing data message 130, described illustration refers to the non-blank-white region of pixel and this Pixel Information is not lteral data information, and the illustration 131 region white space sum adjacent with it is through the both sides of the edge of screenshot area, namely determines that this illustration and adjacent space regions are redundant area in this case.
Mode 7, the decision rule of redundant area is: be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area; If so, the word content that separated by aforementioned illustration and adjacent white space is judged further whether as coherent lteral data information; If so, then judge that aforementioned illustration and adjacent white space are as redundant area.
Described illustration refers to the non-blank-white region of pixel and this Pixel Information is not lteral data information.When the lteral data information separated by illustration and adjacent space regions in the manner is coherent content, namely belongs to a complete sentence content, just determine that illustration and adjacent space regions are redundant area.Here, judge the word content that separated by aforementioned illustration and adjacent white space whether as coherent lteral data information process as: gather the word content information and punctuation mark information that are separated by aforementioned illustration and adjacent white space; According to punctuation mark information, judging the word content information that separated by earlier figures picture or white space whether as complete statement information, is if so, then coherent lteral data information.Such as, the lteral data information end place before illustration does not have punctuation mark or punctuation mark to be comma, then illustrate that the lteral data before illustration is not complete statement information, with illustration after word content combine and be only complete statement information.
S12, gathers sectional drawing data message, judges whether include redundant area in sectional drawing data message, if then proceed to next step, then terminate if not according to aforesaid decision rule;
The aforementioned decision rule for redundant area includes various ways, can adopt wherein a kind of decision rule in the embodiment of the present invention, also can adopt multiple decision rule simultaneously.When adopting multiple decision rule, need to judge respectively according to each decision rule for sectional drawing data message, as long as the redundant area condition in meeting wherein a kind of decision rule in sectional drawing data message, namely judges that this sectional drawing data message includes redundant area.
S13, according to the trigger action of user, carries out deleting and exporting for the redundant area in sectional drawing data message.
When collecting user and carrying out the trigger action of delete processing for redundant area, export the sectional drawing data after deleting redundant area.
See Fig. 2, for carrying out the method flow diagram deleted in the embodiment of the present invention one for redundant area in sectional drawing, concrete steps are as described below.
S21, the decision rule of redundant area in setting sectional drawing data message;
S22, gathers sectional drawing data message, judges whether include redundant area in sectional drawing data message, if then proceed to next step, then terminate if not according to aforesaid decision rule;
S23, generates and carries out for aforementioned redundant area the function items deleted in sectional drawing data area;
The process that generation carries out for redundant area the function items deleted is: redundant area is carried out differentiation display; Redundant area for differentiation display arranges deletion control, generates and carries out for redundant area the function items deleted.See Fig. 2-1, illustrate the schematic diagram carrying out differentiation display for redundant area.As shown in the figure, be described for the sectional drawing data message 100 shown in Fig. 1-1, according to the decision rule of redundant area, can determine that the dashed rectangle region 105 in Fig. 2-1 is redundant area, for this part redundant area can by dashed box or lighter color carry out differentiation display, and deletion control is arranged to the redundant area of differentiation display, the region that the delete function of described deletion control covers is the region that whole differentiation shows, as long as namely the region of namely triggering differentiation display starts delete function.
S24, according to the trigger action of user for aforementioned delete function item, deletes aforementioned redundant area;
The mouse utilizing the Hook Function of system to obtain user clicks message, whether mouse click location is the redundant area that differentiation shows to utilize relevant api function to judge, if so, then start the deletion control arranged in this redundant area, delete for this partial redundance region.That is, as long as user clicks differentiation viewing area by mouse, this redundant area can be deleted.In addition, user also eliminates the differentiation display of redundant area by mouse action, can cancel the delete function for redundant area in this case, still export according to former sectional drawing data message.
S25, exports after again splicing for the screenshot area after deletion redundant area again.
Gather the first image-region and second image-region of the adjacent both sides of redundant area; The lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped; Spliced image-region is exported as the screenshot area after deletion redundant area.See Fig. 2-2, illustrate the schematic diagram that the screenshot area after for deletion redundant area carries out exporting.As shown in the figure, former sectional drawing data message is split into two separate regions after deleting redundant area, be respectively the first image-region 151 and the second image-region 152; The upper rim of the lower limb part of the first image-region 151 and the second image-region 152 is carried out splicing but not overlapping, namely gets the screenshot area 150 after deleting redundant area.
In method described in the present embodiment one, sectional drawing instrument is according to the decision rule preset, sectional drawing data message for user judges, when judging to include redundant area in sectional drawing data message, redundant area part is carried out differentiation display and arranges deletion control, user can delete for this subregion by triggering redundant area part.
See Fig. 3, for carrying out the method flow diagram deleted in the embodiment of the present invention two for redundant area in sectional drawing, concrete steps are as described below.
S31, the decision rule of redundant area in setting sectional drawing data message;
S32, gathers sectional drawing data message, judges whether include redundant area in sectional drawing data message, if then proceed to next step, then terminate if not according to aforesaid decision rule;
S33, generates the sectional drawing data preview information after deleting redundant area in sectional drawing data area;
Gather the first image-region and second image-region of the adjacent both sides of redundant area in sectional drawing data area; The lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped; Sectional drawing data preview information is generated according to spliced image-region.
Described sectional drawing data preview information is the thumbnail form obtained through overcompression or other simplified process method by spliced image-region, is mainly used in showing, for user's preview and selection at former sectional drawing data area avris.See Fig. 3-1, illustrate the schematic diagram of the sectional drawing data preview information after deleting redundant area that generates.Be described for the sectional drawing data message 100 shown in Fig. 1-1, the avris of sectional drawing data message 100 is provided with sectional drawing preview region 160, in this preview region, include sectional drawing data preview picture 161.For sectional drawing data message 100, after redundant area decision rule determination redundant area, other image-region after deleting redundant area is spliced, and spliced sectional drawing data preview picture 161 is exported in sectional drawing preview region 160, if spliced sectional drawing data preview picture is two or more, then export in sectional drawing preview region in the lump.Set up mapping relations between described sectional drawing data preview picture and the sectional drawing data of correspondence, be stored in local terminal or in capture server.When user by triggering sectional drawing data preview picture in sectional drawing preview region, corresponding sectional drawing data can be recalled according to this preview picture and exporting.
S34, according to the trigger action of user for aforementioned sectional drawing data preview information, exports sectional drawing data message.
The mouse utilizing the Hook Function of system to obtain user clicks message, relevant api function is utilized to judge whether mouse click location is sectional drawing data preview information, if, then according to the mapping relations between preview picture and corresponding sectional drawing data, from the store path of the sectional drawing data of correspondence, transfer these sectional drawing data export.That is, when user clicks the preview picture in sectional drawing data preview district by mouse, the sectional drawing data that this preview picture is corresponding are namely exported.If user does not trigger sectional drawing data preview picture, then export according to former sectional drawing data message.
In method described in the present embodiment two, sectional drawing instrument is according to the decision rule preset, sectional drawing data message for user judges, when judging to include redundant area in sectional drawing data message, avris in former sectional drawing data area exports the sectional drawing data preview picture after deleting redundant area, and namely user exports corresponding sectional drawing data further by triggering sectional drawing data preview picture.
In conjunction with previously described embodiment of the method for carrying out deleting for redundant area in sectional drawing, present invention also offers supporting system.
See Fig. 4, for carrying out the system schematic of deleting in the embodiment of the present invention for redundant area in sectional drawing, this system comprises:
Redundant area setup unit 210, for setting the decision rule of redundant area in sectional drawing data message;
Redundant area identifying unit 220, is connected with aforementioned redundant area setup unit 210, for gathering sectional drawing data message, judges whether include redundant area in sectional drawing data message according to aforesaid decision rule;
Redundant area processing unit 230, is connected with aforementioned redundant area identifying unit 220, for the trigger action according to user, carries out deleting and exporting for the redundant area in sectional drawing data message.
In system described in the present embodiment, the decision rule of redundant area is set by redundant area setup unit 210, redundant area identifying unit 220 judges whether include redundant area in sectional drawing data message according to the decision rule of setting, and redundant area processing unit 230 exports the sectional drawing data after deleting redundant area according to the trigger action of user.
According to the difference of redundant area decision rule and the difference for redundant area delete processing mode, native system comprises following several embodiment.
See Fig. 5, for carrying out the system schematic of deleting in the embodiment of the present invention one for redundant area in sectional drawing, this system comprises: redundant area setup unit 310, redundant area identifying unit 320, redundant area processing unit 330.
Wherein, redundant area setup unit 310 comprises:
Drawing information setting module 311, for gathering the decision rule of drawing information as redundant area of the redundant area that user is arranged.
Redundant area identifying unit 320 comprises following construction module:
Shot image information comparing module 321, for comparing the redundant area drawing information of sectional drawing data message and setting;
Pattern redundant area determination module 322, is connected with aforementioned shot image information comparing module 321, is defined as redundant area for image-region comparison passed through.
Redundant area processing unit 330 comprises following construction module:
Differentiation display module 331, for carrying out differentiation display by redundant area;
Delete function arranges module 332, is connected with aforementioned differences display module 331, and the redundant area for showing for differentiation arranges deletion control, generates and carries out for redundant area the function items deleted;
Sectional drawing data outputting module 333, arranges module 332 with aforementioned delete function and is connected, and for according to the trigger action of user for delete function item, exports the sectional drawing data after deleting redundant area.
See Fig. 6, for carrying out the system schematic of deleting in the embodiment of the present invention two for redundant area in sectional drawing, this system comprises: redundant area setup unit 410, redundant area identifying unit 420, redundant area processing unit 430.
Wherein, redundant area identifying unit 420 comprises following construction module:
Normal width acquisition module 421, for obtaining the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width;
Developed width acquisition module 422, is connected with aforesaid standards width acquisition module 421, for gathering the actual interval width in sectional drawing data message between adjacent rows Word message;
Interval redundant area determination module 423, is connected with aforementioned developed width acquisition module 422, for the actual interval width of collection and normal space width being compared, if actual interval width is greater than normal space width, is then defined as redundant area.
Redundant area processing unit 430 comprises following construction module:
Image-region acquisition module 431, for gathering the first image-region and second image-region of the adjacent both sides of redundant area;
Image-region concatenation module 432, is connected with aforementioned image-region acquisition module 431, for the lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped;
Preview image generating module 433, is connected with aforementioned image-region concatenation module 432, for spliced image-region is generated sectional drawing data preview information;
Sectional drawing data outputting module 434, is connected with aforementioned preview image generating module 433, for according to the trigger action of user for aforementioned preview picture, exports the sectional drawing data that preview picture is corresponding.
See Fig. 7, for carrying out the system schematic of deleting in the embodiment of the present invention three for redundant area in sectional drawing, this system comprises: redundant area setup unit 510, redundant area identifying unit 520, redundant area processing unit 530.
Wherein, redundant area identifying unit 520 comprises following construction module:
Normal width acquisition module 521, for obtaining the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width;
White space determination module 522, is connected with aforesaid standards width acquisition module 521, for judging in gathered sectional drawing data message, whether has the horizontal stripe white space or vertical bar white space that extend to screenshot area edge;
Blank redundant area determination module 523, be connected with aforementioned white space determination module 522, for judging whether the width of described horizontal stripe white space or vertical bar white space is greater than normal space width, if so, then judge that this horizontal stripe white space or vertical bar white space are as redundant area.
See Fig. 8, for carrying out the system schematic of deleting in the embodiment of the present invention four for redundant area in sectional drawing, this system comprises: redundant area setup unit 610, redundant area identifying unit 620, redundant area processing unit 630.
Wherein, redundant area identifying unit 620 comprises following construction module:
Adjacent space regions determination module 621, for judging, in gathered sectional drawing data message, whether have the white space extending to screenshot area edge that two adjacent;
Pixel redundant area determination module 622, be connected with aforementioned adjacent space regions determination module 621, for judging between aforementioned two adjacent white spaces whether as the region of the coherent pixel composition of bar shaped, be then if so, redundant area by the regional determination of this coherent pixel composition.
See Fig. 9, for carrying out the system schematic of deleting in the embodiment of the present invention five for redundant area in sectional drawing, this system comprises: redundant area setup unit 710, redundant area identifying unit 720, redundant area processing unit 730.
Wherein, redundant area identifying unit 720 comprises following construction module:
Whether Word message determination module 721, for judging in sectional drawing data message as lteral data information;
Page info determination module 722, is connected with aforementioned Word message determination module 721, whether includes page identifier and page interval region for judging in sectional drawing data message;
Page redundant area determination module 723, is connected with aforementioned page info determination module 722, for aforementioned page identifier region and page interval region are judged to be redundant area.
See Figure 10, for carrying out the system schematic of deleting in the embodiment of the present invention six for redundant area in sectional drawing, this system comprises: redundant area setup unit 810, redundant area identifying unit 820, redundant area processing unit 830.
Wherein, redundant area identifying unit 820 comprises following construction module:
Illustration regional determination module 821, is separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area;
Illustration redundant area determination module 822, is connected with aforementioned illustration regional determination module 821, for determining that aforementioned illustration and adjacent white space are redundant area according to the result of aforementioned illustration regional determination module.
Be more than the description of this invention and non-limiting, based on other embodiment of inventive concept, all among protection scope of the present invention.

Claims (12)

1. carry out a method of deleting for redundant area in sectional drawing, it is characterized in that the method comprises the steps:
Step 1, the decision rule of redundant area in setting sectional drawing data message;
Step 2, gathers sectional drawing data message, judges whether include redundant area in sectional drawing data message, if then proceed to next step, then terminate if not according to aforesaid decision rule;
Step 3, according to the trigger action of user, carries out deleting and exporting for the redundant area in sectional drawing data message,
Wherein, the decision rule of aforesaid redundant area be as Types Below one of them,
A, this decision rule is,
Gather the drawing information of the redundant area that user is arranged,
Sectional drawing data message and aforementioned redundant area drawing information are compared, image-region comparison passed through is defined as redundant area;
B, this decision rule is,
Obtain the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width,
Gather the actual interval width between adjacent rows Word message in sectional drawing data message,
The actual interval width of collection and normal space width are compared, if actual interval width is greater than normal space width, then the region between aforementioned adjacent rows Word message is defined as redundant area;
C, this decision rule is,
Obtain the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width,
Judge, in the sectional drawing data message gathered, whether have the horizontal stripe white space or vertical bar white space that extend to screenshot area edge,
Judge whether the width of described horizontal stripe white space or vertical bar white space is greater than normal space width, if so, then this horizontal stripe white space or vertical bar white space are judged to be redundant area;
D, this decision rule is,
Judge, in the sectional drawing data message gathered, whether have the white space extending to screenshot area edge that two are adjacent,
Whether to judge between aforementioned two adjacent white spaces as the region of the coherent pixel composition of bar shaped further, be then if so, redundant area by the regional determination of this coherent pixel composition;
E, this decision rule is,
To judge in sectional drawing data message whether as lteral data information,
If so, then judge whether include page identifier in sectional drawing data message further,
If so, then according to aforementioned page identifier acquisition of information page interval region, the page interval region of acquisition is judged to be redundant area;
F, this decision rule is,
Be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area,
If so, then judge that aforementioned illustration and adjacent white space are as redundant area;
G, this decision rule is,
Be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area,
If so, the word content that separated by aforementioned illustration and adjacent white space is judged further whether as coherent lteral data information,
If so, then judge that aforementioned illustration and adjacent white space are as redundant area.
2. a kind of method of carrying out deleting for redundant area in sectional drawing according to claim 1, is characterized in that: described page identifier includes the information of the page number, header, footer wherein at least one.
3. a kind of method of carrying out deleting for redundant area in sectional drawing according to claim 1, is characterized in that: judge the word content that separated by aforementioned illustration and adjacent white space whether as coherent lteral data information process as,
Gather the word content information and punctuation mark information that are separated by aforementioned illustration and adjacent white space;
According to punctuation mark information, judging the word content information that separated by aforementioned illustration or white space whether as complete statement information, is if so, then coherent lteral data information.
4. a kind of method of carrying out deleting for redundant area in sectional drawing according to any one of claim 1 or 3, is characterized in that: described illustration refers to the non-blank-white region with pixel and this Pixel Information is not lteral data information.
5. a kind of method of carrying out deleting for redundant area in sectional drawing according to claim 1, is characterized in that: also comprise after described step 2, generates and carries out for redundant area the function items deleted.
6. a kind of method of carrying out deleting for redundant area in sectional drawing according to claim 5, is characterized in that: the function items deleted is carried out in described generation process for redundant area is,
Redundant area is carried out differentiation display;
Redundant area for differentiation display arranges deletion control, generates and carries out for redundant area the function items deleted.
7. a kind of method of carrying out deleting for redundant area in sectional drawing according to claim 1, is characterized in that: also comprise after described step 2, generates the sectional drawing data preview information after deleting redundant area.
8. a kind of method of carrying out deleting for redundant area in sectional drawing according to claim 7, is characterized in that: the process generating the sectional drawing data preview information after deleting redundant area is,
Gather the first image-region and second image-region of the adjacent both sides of redundant area;
The lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped;
Sectional drawing data preview information is generated according to spliced image-region.
9. carry out a system of deleting for redundant area in sectional drawing, it is characterized in that this system comprises:
Redundant area setup unit, for setting the decision rule of redundant area in sectional drawing data message;
Redundant area identifying unit, is connected with aforementioned redundant area setup unit, for gathering sectional drawing data message, judges whether include redundant area in sectional drawing data message according to aforesaid decision rule;
Redundant area processing unit, is connected with aforementioned redundant area identifying unit, for the trigger action according to user, carries out deleting and exporting for the redundant area in sectional drawing data message,
Wherein, the decision rule of aforesaid redundant area correspond to following structure one of them,
Decision structure A, comprises
Shot image information comparing module, for the redundant area drawing information of sectional drawing data message and setting is compared,
Pattern redundant area determination module, is connected with aforementioned shot image information comparing module, is defined as redundant area for image-region comparison passed through;
Decision structure B, comprises
Normal width acquisition module, for obtaining the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width,
Developed width acquisition module, is connected with aforesaid standards width acquisition module, for gathering the actual interval width in sectional drawing data message between adjacent rows Word message,
Interval redundant area determination module, is connected with aforementioned developed width acquisition module, for the actual interval width of collection and normal space width being compared, if actual interval width is greater than normal space width, is then defined as redundant area;
Decision structure C, comprises
Normal width acquisition module, for obtaining the line spacing information of lteral data in sectional drawing data message, using this line-spacing as normal space width,
White space determination module, is connected with aforesaid standards width acquisition module, for judging in gathered sectional drawing data message, whether has the horizontal stripe white space or vertical bar white space that extend to screenshot area edge,
Blank redundant area determination module, be connected with aforementioned white space determination module, for judging whether the width of described horizontal stripe white space or vertical bar white space is greater than normal space width, if so, then judge that this horizontal stripe white space or vertical bar white space are as redundant area;
Decision structure D, comprises
Adjacent space regions determination module, for judging, in gathered sectional drawing data message, whether have the white space extending to screenshot area edge that two are adjacent,
Pixel redundant area determination module, be connected with aforementioned adjacent space regions determination module, for judging between aforementioned two adjacent white spaces whether as the region of the coherent pixel composition of bar shaped, be then if so, redundant area by the regional determination of this coherent pixel composition;
Decision structure E, comprises
Word message determination module, for judging in sectional drawing data message whether as lteral data information,
Page info determination module, is connected with aforementioned Word message determination module, whether includes page identifier and page interval region for judging in sectional drawing data message,
Page redundant area determination module, is connected with aforementioned page info determination module, for aforementioned page identifier region and page interval region are judged to be redundant area;
Decision structure F, comprises
Illustration regional determination module, is separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area,
Illustration redundant area determination module, is connected with aforementioned illustration regional determination module, for determining that aforementioned illustration and adjacent white space are redundant area according to the result of aforementioned illustration regional determination module;
Decision structure G, for
Be separated with illustration and adjacent white space between whether judging between the lteral data information in sectional drawing data message, and illustration region and adjacent white space sum are through the both sides of the edge of screenshot area,
If so, the word content that separated by aforementioned illustration and adjacent white space is judged further whether as coherent lteral data information,
If so, then judge that aforementioned illustration and adjacent white space are as redundant area.
10. a kind of system of carrying out deleting for redundant area in sectional drawing according to claim 9, is characterized in that described redundant area setup unit comprises:
Drawing information setting module, for gathering the decision rule of drawing information as redundant area of the redundant area that user is arranged.
11. a kind of systems of carrying out deleting for redundant area in sectional drawing according to claim 9, is characterized in that described redundant area processing unit comprises:
Differentiation display module, for carrying out differentiation display by redundant area;
Delete function arranges module, is connected with aforementioned differences display module, and the redundant area for showing for differentiation arranges deletion control, generates and carries out for redundant area the function items deleted;
Sectional drawing data outputting module, arranges module with aforementioned delete function and is connected, and for according to the trigger action of user for delete function item, exports the sectional drawing data after deleting redundant area.
12. a kind of systems of carrying out deleting for redundant area in sectional drawing according to claim 9, is characterized in that described redundant area processing unit comprises:
Image-region acquisition module, for gathering the first image-region and second image-region of the adjacent both sides of redundant area;
Image-region concatenation module, is connected with aforementioned image-region acquisition module, for the lower edges part of aforementioned first image-region and the second image-region is mutually spliced but do not overlapped;
Preview image generating module, is connected with aforementioned image-region concatenation module, for spliced image-region is generated sectional drawing data preview information;
Sectional drawing data outputting module, is connected with aforementioned preview image generating module, for according to the trigger action of user for aforementioned preview picture, exports the sectional drawing data that preview picture is corresponding.
CN201210085286.9A 2012-03-28 2012-03-28 A kind of method and system of carrying out deleting for redundant area in sectional drawing Active CN102663792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210085286.9A CN102663792B (en) 2012-03-28 2012-03-28 A kind of method and system of carrying out deleting for redundant area in sectional drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210085286.9A CN102663792B (en) 2012-03-28 2012-03-28 A kind of method and system of carrying out deleting for redundant area in sectional drawing

Publications (2)

Publication Number Publication Date
CN102663792A CN102663792A (en) 2012-09-12
CN102663792B true CN102663792B (en) 2016-01-20

Family

ID=46773270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210085286.9A Active CN102663792B (en) 2012-03-28 2012-03-28 A kind of method and system of carrying out deleting for redundant area in sectional drawing

Country Status (1)

Country Link
CN (1) CN102663792B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014117384A1 (en) * 2013-02-01 2014-08-07 Intel Corporation Techniques for image-based search using touch controls
CN104766271B (en) * 2015-04-13 2019-05-28 Oppo广东移动通信有限公司 The method, apparatus and electronic equipment of screenshot capture
JP6757927B2 (en) * 2015-06-30 2020-09-23 ケーアンドエムエンタープライズ株式会社 Image processing method and program in the display screen
CN105513008B (en) * 2015-12-15 2019-01-11 天津津芯微电子科技有限公司 A kind of image processing method and device
CN105761211A (en) * 2016-03-30 2016-07-13 努比亚技术有限公司 Method and device for splicing frames of mobile terminal
CN106406690A (en) * 2016-08-25 2017-02-15 深圳市金立通信设备有限公司 Method and terminal for adjusting display through screenshot
CN107748644A (en) * 2017-11-20 2018-03-02 珠海市魅族科技有限公司 A kind of sectional drawing display methods and equipment, terminal and readable storage medium storing program for executing
CN110221888A (en) * 2019-04-28 2019-09-10 中至数据集团股份有限公司 Screenshot processing method, device, readable storage medium storing program for executing and smart machine
CN110147751A (en) * 2019-05-16 2019-08-20 Oppo广东移动通信有限公司 A kind of method and device of fingerprint detection
CN110399074B (en) * 2019-07-18 2021-11-16 上海幻电信息科技有限公司 Picture splicing method and device, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764103A (en) * 2004-10-20 2006-04-26 国际商业机器公司 Privacy protection method and apparatus for remote control
CN201522781U (en) * 2009-06-26 2010-07-07 上海电信工程有限公司 Monitoring system for speeding vehicles
CN102226918A (en) * 2011-05-18 2011-10-26 山东大学 Embedded image synthesizing method
CN102332131A (en) * 2010-06-16 2012-01-25 微软公司 Automated certification of video game advertising using ocr

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764103A (en) * 2004-10-20 2006-04-26 国际商业机器公司 Privacy protection method and apparatus for remote control
CN201522781U (en) * 2009-06-26 2010-07-07 上海电信工程有限公司 Monitoring system for speeding vehicles
CN102332131A (en) * 2010-06-16 2012-01-25 微软公司 Automated certification of video game advertising using ocr
CN102226918A (en) * 2011-05-18 2011-10-26 山东大学 Embedded image synthesizing method

Also Published As

Publication number Publication date
CN102663792A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102663792B (en) A kind of method and system of carrying out deleting for redundant area in sectional drawing
CN111126301B (en) Image processing method and device, computer equipment and storage medium
CN103186600B (en) The specific analysis method and apparatus of internet public feelings
US20200279107A1 (en) Digital image-based document digitization using a graph model
CN102830958B (en) A kind of method and system for obtaining interface control information
CN107688664B (en) Chart generation method and device, computer equipment and storage medium
CN104461477A (en) Method, system and corresponding device for adding network comment information
CN105511792A (en) In-position hand input method and system for form
JP6514244B2 (en) Difference detection device and program
CN104715497A (en) Data replacement method and system
US20150254219A1 (en) Method and system for injecting content into existing computerized data
CN107689070A (en) Chart data structuring extracting method, electronic equipment and computer-readable recording medium
CN112329548A (en) Document chapter segmentation method and device and storage medium
CN105740103A (en) NTFS ((New Technology File System) deletion file recovery method and device based on log
CN105354138A (en) Method for determining specific control attribute of mobile phone page
JP2009110501A (en) Document management system, document management method, and document management program
CN107688476A (en) The methods of exhibiting and device of info web
CN111400575A (en) User identification generation method, user identification method and device
CN105814561B (en) Image information processing system
CN104808891A (en) Page information processing method and device
CN104715233A (en) Character conversion method and system
CN103036741A (en) Determination method and determination device of flow monitoring base line
CN111176901B (en) HDFS deleted file recovery method, terminal device and storage medium
CN106250401A (en) Device and method for replaying original communication data
CN102378005B (en) Motion picture processing device and motion image processing method

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