CN102609967A - Generating and typesetting method of image-text report - Google Patents

Generating and typesetting method of image-text report Download PDF

Info

Publication number
CN102609967A
CN102609967A CN2012100361195A CN201210036119A CN102609967A CN 102609967 A CN102609967 A CN 102609967A CN 2012100361195 A CN2012100361195 A CN 2012100361195A CN 201210036119 A CN201210036119 A CN 201210036119A CN 102609967 A CN102609967 A CN 102609967A
Authority
CN
China
Prior art keywords
template
image
text
report
data
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
CN2012100361195A
Other languages
Chinese (zh)
Other versions
CN102609967B (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.)
Zhongfu Information Co Ltd
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201210036119.5A priority Critical patent/CN102609967B/en
Publication of CN102609967A publication Critical patent/CN102609967A/en
Application granted granted Critical
Publication of CN102609967B publication Critical patent/CN102609967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a generating and typesetting method of an image-text report. The traditional typesetting mode frequently-used by a planar carrier is matched according to a preset template and is finished by adjusting a program code to cause that the WYSIWYG (what you see is what you get) requirement of the image-text report is difficult to realize. According to the invention, the whole image-text report is composed of multiple image-text data templates, each image-text data template corresponds to an RTF (Rich Text Format) file, and thus a local left and right subfield and WYSIWYG form is realized. Due to adoption of an optimal design restraint computation method of automatic layout of the image-text report, automatic generation and typesetting of the image-text report is achieved.

Description

Method for generating and typesetting image-text report
Technical Field
The invention belongs to the technical field of computer application, and particularly relates to a method for generating and typesetting a graphic report.
Background
The image-text report has incomparable advantages in the aspects of information transmission mode, data redundancy, information quantity and the like, and is widely applied to the fields of modern production management, medical management, office automation management and the like. Therefore, how to quickly and automatically generate the image-text report layout meeting the personalized requirements of the user is a key technical problem which needs to be solved. From the current situation, most of the graphic and text report typesetting styles are preset manually, the styles are single, local left and right columns can only be realized by manually inserting the graphic and text frame, automatic generation cannot be realized, expansibility is poor, and the preset style template file needs to be frequently adjusted when the graphic and text report styles are adjusted, and related program codes need to be adjusted. When the report style requirement fluctuates by a large amount, a large amount of development cost is increased.
At present, the research on the automatic generation and typesetting algorithm based on the image-text report is relatively less, and in the aspect of the automatic typesetting algorithm, the typesetting mode commonly used by the traditional plane carrier is matched according to a preset template and is completed by adjusting program codes, so that the requirement that the image-text report is obtained when the layout is seen is difficult to realize. A method for collage and typesetting of pictures in a cascading style is also proposed, which is used for automatically generating a video poster, wherein collage is performed based on a constraint that the collage is randomly placed and can be partially overlapped, and the method is not suitable for regular picture and text reports with fixed format requirements. The above methods do not solve the problems of automatic generation and typesetting of the graphic report.
Disclosure of Invention
The invention aims to provide an automatic generation and typesetting method of a text-to-see-once image report which is locally left-right column-divided.
The method comprises the following specific steps:
initializing a graphic report in step (1), which comprises the following specific steps:
a. storing the teletext report data. In order to store the data and format of the image-text report and edit and modify the image-text report in a WYSIWYG mode, the content and format of the text and image data of the image-text report are stored by adopting an RTF document structure. The whole image-text report is composed of a plurality of image-text data templates, and one image-text data template corresponds to one RTF file. All parts of information to be displayed in the image-text report are named as different data sub-items respectively, marked in a specific character mode, and stored in different RTF template files in a classified mode.
b. And setting a template attribute configuration file. Setting attribute information for storing the whole image-text data template in the image-text report, and setting default values of the attributes. The method mainly comprises the name and editability of the image-text data template, the position of the template in the whole template combination sequence, the vertex position of a template area, the type of the image-text data template (picture, character and image-text mixture), the importance of the template, the position importance of the template, a related template set of the template and other parameter information required by automatic typesetting.
c. And reading the template attribute configuration file. Reading the attribute information of each image-text data template in the template attribute configuration file, acquiring a corresponding image-text data template RTF document according to the name of the image-text data template, and generating an image-text data template RTF document information linked list structure.
d. And matching the image-text report data. And storing actual data displayed by the image-text report in a database, reading the data from the database, positioning in a mode of searching for specific character marks, and matching and replacing corresponding data sub-items in the RTF template file with the actual data.
And (2) automatically typesetting and constraining the design of the image-text report. The method comprises the following specific steps:
e. in order to solve the problem of automatic typesetting of the graphic and text report, the problem of automatic typesetting of the graphic and text report is defined as follows: a given teletext report consists of N teletext data templates, denoted
Figure 2012100361195100002DEST_PATH_IMAGE001
The relative importance of each graphic data template is recorded as
Figure 229754DEST_PATH_IMAGE002
And placing the graphic data template on the panel C, wherein the input marks conform to the formula:
Figure 2012100361195100002DEST_PATH_IMAGE003
each image-text data template
Figure 307301DEST_PATH_IMAGE004
By sets of variables
Figure 2012100361195100002DEST_PATH_IMAGE005
Is uniquely determined wherein
Figure 228989DEST_PATH_IMAGE006
As a template for graphic data
Figure 962459DEST_PATH_IMAGE004
At the location of the four vertices in the panel C,
Figure 2012100361195100002DEST_PATH_IMAGE007
for associating with a graphic data template
Figure 260585DEST_PATH_IMAGE008
And the template set has relative position relation.
Due to the diversity of report styles, the typesetting quality of the reports does not have a uniform evaluation standard, but for a certain type of reports, the report typesetting still follows a common rule, namely: a well-composed graphic report needs to satisfy the optimal design constraints of minimum blank area, mutual matching of the position and importance of the graphic data template, coincidence of the relative positions of the associated graphic data templates, uniform distribution of the graphic data templates, and the like.
f. White space area minimum constraints. Maximizing the utilization of the panel area, should require that the panel C has minimal white space. Blank utilization of panel
Figure 2012100361195100002DEST_PATH_IMAGE009
Is defined as:
Figure 464076DEST_PATH_IMAGE010
wherein,
Figure 2012100361195100002DEST_PATH_IMAGE011
is the sum of the areas of the blank on the panel,is the total area of the panel. According to the size type of the report printing paper and the vertex positions of the N template areas, the blank utilization rate of the panel can be calculated
Figure 777432DEST_PATH_IMAGE009
The value of (c).
g. Location importance constraints. In the plane design, the central position of the plane is generally considered to be most important, therefore, the importance of the position of the template should be matched with the importance of the template to the greatest extent, the whole panel is divided into a plurality of areas, each area is set with different importance, and the conformity degree of the importance of the position of the template and the importance of the template is
Figure 2012100361195100002DEST_PATH_IMAGE013
The definition is as follows:
Figure 675987DEST_PATH_IMAGE014
wherein,
Figure 2012100361195100002DEST_PATH_IMAGE015
as a template for graphic data
Figure 728125DEST_PATH_IMAGE004
The importance of the center location in the panel area,the importance of the image-text data template, the division of the panel and the importance of the panel area can be set by a user.
h. And (5) restricting the relative position of the image-text data template. In the teletext report, some teletext data templates have correlation, and the relative position of typesetting of the teletext data templates has special requirements. For example, the textual descriptions presented in certain text templates are descriptive of certain pictures in a particular picture template. Coincidence of relative positions of graphic data templates
Figure 2012100361195100002DEST_PATH_IMAGE017
The definition is as follows:
Figure 637361DEST_PATH_IMAGE018
wherein,
Figure 949394DEST_PATH_IMAGE007
for associating with a graphic data template
Figure 76879DEST_PATH_IMAGE008
The total number of relevant and typeset-required graphic data templates,
Figure 2012100361195100002DEST_PATH_IMAGE019
is a template associated with image-text data
Figure 511272DEST_PATH_IMAGE008
The total number of relevant and actually typeset graphic data templates.
i. And uniformly distributing and constraining the image-text data template. There are many types of teletext data templates in a teletext report, and it should be avoided as much as possible that the same type of teletext data templates are grouped together. Therefore, the whole panel area is divided into T areas, and the variance of each image-text data template of each kind in the T areas is calculated to restrict the distribution situation of the image-text data templates. The definition is as follows:
Figure 644313DEST_PATH_IMAGE020
Figure 2012100361195100002DEST_PATH_IMAGE021
wherein,
Figure 822353DEST_PATH_IMAGE022
indicates the total number of types of the teletext data template,
Figure 2012100361195100002DEST_PATH_IMAGE023
is shown falling on
Figure 786767DEST_PATH_IMAGE024
The total number of templates of the i-th type of the area,
Figure 2012100361195100002DEST_PATH_IMAGE025
represents the average number of the ith template in the T divided regions
Figure 454378DEST_PATH_IMAGE026
Figure 2012100361195100002DEST_PATH_IMAGE027
Indicating the number of the ith template in the whole teletext report.
Figure 871452DEST_PATH_IMAGE028
Is the variance of the worst theoretical distribution of the uniform distribution of the image-text data template,
Figure 2012100361195100002DEST_PATH_IMAGE029
indicating that the ith template is distributed entirely within the first region, i.e.
Figure 853184DEST_PATH_IMAGE030
Is the total number of the ith template, j =2Is 0. Further will be
Figure 2012100361195100002DEST_PATH_IMAGE031
By using
Figure 391842DEST_PATH_IMAGE028
Normalized to [0,1]Range derived uniform distribution constraint for graphic data templates
Figure 499475DEST_PATH_IMAGE032
Figure 2012100361195100002DEST_PATH_IMAGE033
And (3) performing automatic typesetting optimization calculation on the image-text report. And establishing an optimal solution model and solving according to the parameter information input by the automatic typesetting of the image-text report and the constraint design conditions to obtain a stably distributed sample space optimal solution.
And (4) generating a preview of the master plate by the image-text report. Stably distributed optimal sample space calculated according to automatic typesetting constraint conditionsModifying the template attribute configuration file information and the corresponding linked list structure, and according to the related parametersAnd generating image-text data templates in the corresponding areas, finally combining the image-text data templates into an integral image-text report master template, and previewing and displaying the integral image-text report master template. Based on the function of the RTF document format, in each image-text data template with editable attributes, the text and the picture can be edited by the user according to the needs. After the editing operation is finished, the relevant parameters of the template are saved again, and the new image-text report layout is generated by recalculation according to the automatic typesetting constraint conditions.
The whole image-text report is composed of a plurality of image-text data templates, each image-text data template is corresponding to one RTF file, and the image-text report form which can be locally, leftwards, rightwards, fenced and obtained in what you see is realized. And the automatic generation and typesetting of the image-text report are realized by adopting an optimal design constraint calculation method for the automatic typesetting of the image-text report.
Drawings
Fig. 1 is a pictorial report master format description diagram of the present invention.
Detailed Description
The following describes a specific implementation method of the present invention with reference to the accompanying drawings by taking a method for generating and composing a medical ultrasound image-text report as an example.
Referring to fig. 1, the entire teletext report may be formed from N teletext data templates, one teletext data template corresponding to one RTF file. Setting a template attribute configuration file, reading the template attribute configuration file to perform image-text report data matching, calculating a stable distribution optimal sample space according to an automatic typesetting constraint condition, and generating a whole image-text report, thereby realizing the image-text report which can be locally, leftwards, rightwards, separated and obtained in what-you-see manner. In the figure, C is a panel, I1To InIs an image-text data template.
The method comprises the following specific steps:
step (1): initializing a graphic report, which comprises the following specific steps:
a. storing the teletext report data. In order to store the data and format of the image-text report and edit and modify the image-text report in a WYSIWYG mode, the content and format of the text and image data of the image-text report are stored by adopting an RTF document structure. The whole image-text report is composed of a plurality of image-text data templates, and one image-text data template corresponds to one RTF file. All parts of information to be displayed in the image-text report are named as different data sub-items respectively, marked in a specific character mode, and stored in different RTF template files in a classified mode. For example, a medical ultrasound image-text report generally includes image-text data templates such as a report header, a picture, an ultrasound view, an ultrasound prompt, a suggestion, a report trailer and the like. For example, information of hospital names is presented in the report header template, and corresponding data sub-items are labeled in the form of [ HName ]; and displaying a screenshot sequence of the ultrasound examination medical image in an ultrasound image picture template, and marking corresponding data subitems in an ImageList form.
b. And setting a template attribute configuration file. Setting attribute information for storing the whole image-text data template in the image-text report, and setting default values of the attributes. The method mainly comprises the name and editability of the image-text data template, the position of the template in the whole template combination sequence, the vertex position of a template area, the type of the image-text data template (picture, character and image-text mixture), the importance of the template, the position importance of the template, a related template set of the template and other parameter information required by automatic typesetting. The template attribute configuration file may be defined in an XML file format. Taking a medical ultrasound image-text report as an example, a report head template is generally unchangeable, so the attribute of the report head template is set as being uneditable; the template information of the ultrasonic image picture is relatively high in importance, so that the position importance attribute of the template information is set to be the maximum level.
c. And reading the template attribute configuration file. Reading the attribute information of each image-text data template in the template attribute configuration file, acquiring a corresponding image-text data template RTF document according to the name of the image-text data template, and generating an image-text data template RTF document information linked list structure. Taking a medical ultrasonic image-text report as an example, reading a template attribute configuration file, and acquiring a file name attribute value header. And acquiring the attribute value ImageList. And acquiring the contents of the corresponding report header template RTF file and the ultrasonic image picture template RTF file according to a preset path.
d. And matching the image-text report data. And storing actual data displayed by the image-text report in a database, reading the data from the database, positioning in a mode of searching for specific character marks, and matching and replacing corresponding data sub-items in the RTF template file with the actual data. Taking a medical ultrasonic image-text report as an example, reading an actual hospital name from a database, searching for a [ HName ] character mark, positioning to a hospital name data item, and replacing the [ HName ] with the actual hospital name; reading a medical image screenshot sequence saved in the ultrasonic examination process from a database, searching for an [ ImageList ] character identifier, positioning to a picture data item, and replacing the [ ImageList ] with the medical image screenshot sequence.
Step (2): the automatic typesetting constraint design of the image-text report comprises the following specific steps:
e. white space area minimum constraints. Maximizing the utilization of the panel area, minimizing the blank area of the panel C according to the requirement, and utilizing the blank area of the panel
Figure 630428DEST_PATH_IMAGE009
To show that:wherein,
Figure 843103DEST_PATH_IMAGE011
is the sum of the areas of the blank on the panel,
Figure 172453DEST_PATH_IMAGE012
is the total area of the panel. For example, in the case of medical ultrasound image-text reports, the size of the panel area is generally standardized to a paper size of a4 and B5, depending on the type of paper size used for the report. According to the positions of the top points of the N template areas, the utilization rate of the blank of the panel can be obtained
Figure 433671DEST_PATH_IMAGE009
The value of (c).
f. Location importance constraints. In the plane design, the central position of the plane is generally considered to be most important, therefore, the importance of the position of the template should be matched with the importance of the template to the greatest extent, the whole panel is divided into a plurality of areas, each area is set with different importance, and the conformity degree of the importance of the position of the template and the importance of the template is
Figure 899287DEST_PATH_IMAGE013
The definition is as follows:
Figure 220547DEST_PATH_IMAGE014
wherein,
Figure 37193DEST_PATH_IMAGE015
as a template for graphic data
Figure 836522DEST_PATH_IMAGE004
The importance of the center location in the panel area,
Figure 422224DEST_PATH_IMAGE016
the importance of the image-text data template, the division of the panel and the importance of the panel area can be set by a user. Taking the medical ultrasound image-text report as an example, the whole panel area can be divided into nine-square grids, namely, nine square areas with 3 rows x 3 columns which are divided averagely, the importance of the middle area of the nine-square grids is the highest level, and the importance of the surrounding areas is lower. According to the positions of the top points of the template areas, the importance level corresponding to the fact that the center position of each template falls into the Sudoku area can be obtained.
g. And (5) restricting the relative position of the image-text data template. In the teletext report, some teletext data templates have correlation, and the relative position of typesetting of the teletext data templates has special requirements. For example, some text templates show text description of specific figuresDescription of certain pictures in the slice template. Coincidence of relative positions of graphic data templates
Figure 908526DEST_PATH_IMAGE017
The definition is as follows:
Figure 946889DEST_PATH_IMAGE018
wherein,
Figure 612226DEST_PATH_IMAGE007
for associating with a graphic data template
Figure 318013DEST_PATH_IMAGE008
The total number of relevant and typeset-required graphic data templates,
Figure 715497DEST_PATH_IMAGE019
is a template associated with image-text data
Figure 506735DEST_PATH_IMAGE008
The total number of relevant and actually typeset graphic data templates. Taking a medical ultrasound image-text report as an example, the content displayed by the ultrasound visible text template is description of a B-mode ultrasound image displayed by the ultrasound image template, and the ultrasound image sequence can be loaded into a plurality of ultrasound image templates and displayed by a plurality of lines of images, and the positions of the two types of templates must be adjacent in a special form such as up-down, left-right or surrounding, so in the template attribute configuration file, the name of the ultrasound image template and the adjacent condition must be added in the definition of the associated template set of the ultrasound visible template.
h. And uniformly distributing and constraining the image-text data template. There are many types of teletext data templates in a teletext report, and it should be avoided as much as possible that the same type of teletext data templates are grouped together. Therefore, the whole panel area is divided into T areas, and the variance of each image-text data template of each kind in the T areas is calculated to restrict the distribution situation of the image-text data templates. The definition is as follows:
Figure 647866DEST_PATH_IMAGE036
Figure 208161DEST_PATH_IMAGE021
wherein,
Figure 776545DEST_PATH_IMAGE022
representing the total number of categories of the teletext data template,
Figure 2012100361195100002DEST_PATH_IMAGE037
is shown falling onThe total number of templates of the i-th type of the area,
Figure 62219DEST_PATH_IMAGE025
represents the average number of the ith template in the T divided regions
Figure 477020DEST_PATH_IMAGE026
Figure 481885DEST_PATH_IMAGE027
Indicating the number of the ith template in the whole teletext report.
Figure 50313DEST_PATH_IMAGE028
Is the variance of the worst theoretical distribution of the uniform distribution of the image-text data template,
Figure 533247DEST_PATH_IMAGE029
indicating that the ith template is distributed entirely within the first region, i.e.
Figure 68133DEST_PATH_IMAGE030
Is the total number of the ith template, j =2
Figure 978320DEST_PATH_IMAGE029
Is 0. Further will be
Figure 965868DEST_PATH_IMAGE031
By using
Figure 252493DEST_PATH_IMAGE028
Normalized to [0,1]Range derived uniform distribution constraint for graphic data templates
Figure 641886DEST_PATH_IMAGE032
Taking the medical ultrasonic image-text report as an example, the types of the templates comprise three types, namely a text template, an image template and an image-text mixed template, and the panel region division also adopts a nine-square grid form. Obtaining the region of each template according to the vertex position of each template region, thus obtaining the total number of each type of template in each region, and obtaining the uniform distribution constraint of the image-text data template according to the parameter calculation
Figure 463397DEST_PATH_IMAGE032
The value of (c).
And (3): and performing automatic typesetting optimization calculation on the image-text report. And establishing a Bayesian solution model according to the parameter information input by the automatic typesetting of the image-text report and the constraint design conditions, and solving by adopting a Markov chain Monte Carlo method to perform the automatic typesetting optimization calculation of the image-text report. The method comprises the following specific steps:
i. comprehensively considering the graphic and text report typesetting formalized constraints, constructing a Bayesian solving model of the automatic typesetting problem, and inputting the model under certain conditions
Figure 288134DEST_PATH_IMAGE038
Fitness function of
Figure 2012100361195100002DEST_PATH_IMAGE039
Figure 594350DEST_PATH_IMAGE040
Wherein
Figure 2012100361195100002DEST_PATH_IMAGE041
In order to be a priori distributed,
Figure 174236DEST_PATH_IMAGE042
is a likelihood model of the degree of conformity of the solution. Which are respectively defined as follows:,
Figure 198693DEST_PATH_IMAGE044
. Wherein
Figure 2012100361195100002DEST_PATH_IMAGE045
To represent
Figure 907015DEST_PATH_IMAGE032
Relative to
Figure 5421DEST_PATH_IMAGE009
The specific gravity coefficient of importance of (a). Using medical ultrasound image-text report as an example, the utilization rate of the blank panel
Figure 693892DEST_PATH_IMAGE009
The constraint is more important than the uniform distribution constraint of the image-text data template,
Figure 143328DEST_PATH_IMAGE045
may be set to 0.3.
j. The Markov chain Monte Carlo method has high efficiency in processing complex problems and is relatively easy to realize on a computer. Thus, Markov's solution is adoptedThe chain Monte Carlo method is used for solving the Bayes solving model of the automatic typesetting problem established above. The Markov chain Monte Carlo method searches the state space through a Markov mechanism, and finally achieves a stable distribution optimal sample space
Figure 372184DEST_PATH_IMAGE046
Namely the optimal typesetting position of each image-text data template.
And (4): and generating preview of the image-text report master plate. And automatically typesetting and optimizing the calculation result according to the image-text report to generate the image-text report master preview. Stably distributed optimal sample space calculated according to automatic typesetting constraint conditions
Figure 590675DEST_PATH_IMAGE034
Modifying template attribute configuration file information and corresponding linked list structure, generating image-text data template in corresponding area according to related parameters, finally combining into an integral image-text report mother set, and previewing and displaying. Based on the function of the RTF document format, in each image-text data template with editable attributes, the text and the picture can be edited by the user according to the needs. After the editing operation is finished, the relevant parameters of the template are saved again, and the new image-text report layout is generated by recalculation according to the automatic typesetting constraint conditions.
Taking the medical ultrasonic image-text report as an example, automatically typesetting and optimizing the calculation result according to the image-text report to generate an image-text report master plate, and previewing and displaying the image-text report. The doctor can edit and process the report content to be printed finally in the corresponding area of the RTF template, and after the editing and the modification are finished, the optimal sample space with stable distribution is obtained by recalculating according to the automatic typesetting constraint conditions
Figure DEST_PATH_IMAGE047
And acquiring the position information of each template, updating and storing the position of each template in the whole template combination sequence, the position attribute of the vertex of the template area and other parameter information in the template attribute configuration file, and adjusting the corresponding linked list structure. Constraint condition weight according to automatic typesettingAnd newly calculating and generating a new image-text report layout, and simultaneously saving and updating the adjusted parameters into the template attribute configuration file and the corresponding RTF file.

Claims (1)

1. A method for generating and typesetting a graphic report is characterized by comprising the following steps:
step (1), initializing a graphic report, which comprises the following specific steps:
a. storing the image-text report data; in order to store the data and format of the image-text report and edit and modify the image-text report in a WYSIWYG mode, the content and format of the text and image data of the image-text report are stored by adopting an RTF document structure; the whole image-text report consists of a plurality of image-text data templates, and one image-text data template corresponds to one RTF file; all parts of information to be displayed in the image-text report are named as different data sub-items respectively, marked in a specific character mode and stored in different RTF template files in a classified mode;
b. setting a template attribute configuration file; setting attribute information for storing all image-text data templates in the image-text report, and setting default values of the attributes; the method mainly comprises the parameter information required by automatic typesetting, such as the name and editability of an image-text data template, the position of the template in an integral template combination sequence, the vertex position of a template area, the type of the image-text data template, the importance of the template, the position importance of the template, a related template set of the template and the like;
c. reading a template attribute configuration file; reading the attribute information of each image-text data template in the template attribute configuration file, acquiring a corresponding image-text data template RTF document according to the name of the image-text data template, and generating an image-text data template RTF document information linked list structure;
d. matching image-text report data; actual data displayed by the image-text report are stored in a database, the data are read from the database, positioning is carried out by searching a specific character mark, and corresponding data sub-items in the RTF template file are matched and replaced by the actual data;
step (2), automatically typesetting and constraining the design of the image-text report; the method comprises the following specific steps:
e. in order to solve the problem of automatic typesetting of the graphic and text report, the problem of automatic typesetting of the graphic and text report is defined as follows: a given teletext report consists of N teletext data templates, denoted
Figure 2012100361195100001DEST_PATH_IMAGE002
The relative importance of each graphic data template is recorded as
Figure 2012100361195100001DEST_PATH_IMAGE004
And placing the graphic data template on the panel C, wherein the input marks conform to the formula:
Figure 2012100361195100001DEST_PATH_IMAGE006
each image-text data template
Figure 2012100361195100001DEST_PATH_IMAGE008
By sets of variables
Figure 2012100361195100001DEST_PATH_IMAGE010
Is uniquely determined whereinAs a template for graphic data
Figure 244542DEST_PATH_IMAGE008
At the location of the four vertices in the panel C,
Figure 2012100361195100001DEST_PATH_IMAGE014
for associating with a graphic data template
Figure 2012100361195100001DEST_PATH_IMAGE016
A template set with relative position relation;
f. a blank region minimum constraint; the panel area is utilized to the maximum extent, and the blank area of the panel C is required to be minimum; blank utilization of panel
Figure 2012100361195100001DEST_PATH_IMAGE018
Is defined as:
Figure 2012100361195100001DEST_PATH_IMAGE020
wherein,
Figure 2012100361195100001DEST_PATH_IMAGE022
is the sum of the areas of the blank on the panel,
Figure 2012100361195100001DEST_PATH_IMAGE024
is the total area of the panel; according to the size type of the report printing paper and the vertex positions of the N template areas, the blank utilization rate of the panel can be calculated
Figure 289596DEST_PATH_IMAGE018
A value of (d);
g. a location importance constraint; in the plane design, the central position of the plane is generally considered to be most important, therefore, the importance of the position of the template should be matched with the importance of the template to the greatest extent, the whole panel is divided into a plurality of areas, each area is set with different importance, and the conformity degree of the importance of the position of the template and the importance of the template is
Figure 2012100361195100001DEST_PATH_IMAGE026
The definition is as follows:
Figure DEST_PATH_IMAGE028
wherein,as a template for graphic data
Figure 729934DEST_PATH_IMAGE008
The importance of the center location in the panel area,
Figure DEST_PATH_IMAGE032
the importance of the image-text data template, the division of the panel and the importance of the panel area can be set by a user;
h. the relative position of the image-text data template is restricted; in the graphic report, some graphic data templates have correlation, and the relative position of the typesetting has special requirements(ii) a For example, the textual descriptions presented by certain textual templates are descriptions of certain pictures in a particular picture template; coincidence of relative positions of graphic data templatesThe definition is as follows:
Figure DEST_PATH_IMAGE036
wherein,
Figure 989883DEST_PATH_IMAGE014
for associating with a graphic data template
Figure 20156DEST_PATH_IMAGE016
The total number of relevant and typeset-required graphic data templates,
Figure DEST_PATH_IMAGE038
is a template associated with image-text dataThe total number of relevant and actually typeset graphic data templates;
i. uniformly distributing and constraining the image-text data template; the image-text data templates of various types exist in the image-text report, and the image-text data templates of the same type are prevented from being gathered together as much as possible; therefore, the whole panel area is divided into T areas, and the variance of each image-text data template of each kind in the T areas is obtained to constrain the distribution condition of the image-text data templates; the definition is as follows:
Figure DEST_PATH_IMAGE040
Figure DEST_PATH_IMAGE042
wherein,
Figure DEST_PATH_IMAGE044
Indicates the total number of types of the teletext data template,
Figure DEST_PATH_IMAGE046
is shown falling on
Figure DEST_PATH_IMAGE048
The total number of templates of the i-th type of the area,
Figure DEST_PATH_IMAGE050
represents the average number of the ith template in the T divided regions
Figure DEST_PATH_IMAGE052
Figure 2012100361195100001DEST_PATH_IMAGE054
The number of the ith template in the whole image-text report is shown;
Figure DEST_PATH_IMAGE056
is the variance of the worst theoretical distribution of the uniform distribution of the image-text data template,indicating that the ith template is distributed entirely within the first region, i.e.
Figure DEST_PATH_IMAGE060
Is the total number of the ith template, j =2
Figure 502925DEST_PATH_IMAGE058
Is 0; further will be
Figure DEST_PATH_IMAGE062
By using
Figure 758326DEST_PATH_IMAGE056
Normalized to [0,1]Range derived uniform distribution constraint for graphic data templates
Figure DEST_PATH_IMAGE064
Figure DEST_PATH_IMAGE066
Step (3), performing automatic typesetting optimization calculation on the image-text report; according to the parameter information input by the automatic typesetting of the image-text report and the constraint design conditions, establishing an optimal solution model and solving to obtain a stably distributed sample space optimal solution;
step (4), generating preview of the image-text report master plate; stably distributed optimal sample space calculated according to automatic typesetting constraint conditions
Figure DEST_PATH_IMAGE068
Modifying template attribute configuration file information and a corresponding linked list structure, generating image-text data templates in corresponding areas according to related parameters, finally combining an integral image-text report mother set, and previewing and displaying; based on the function of the RTF document format, in each image-text data template with editable attributes, the characters and pictures can be edited by a user according to the requirement; after the editing operation is finished, the relevant parameters of the template are saved again, and the new image-text report layout is generated by recalculation according to the automatic typesetting constraint conditions.
CN201210036119.5A 2012-02-17 2012-02-17 Generating and typesetting method of image-text report Active CN102609967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210036119.5A CN102609967B (en) 2012-02-17 2012-02-17 Generating and typesetting method of image-text report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210036119.5A CN102609967B (en) 2012-02-17 2012-02-17 Generating and typesetting method of image-text report

Publications (2)

Publication Number Publication Date
CN102609967A true CN102609967A (en) 2012-07-25
CN102609967B CN102609967B (en) 2014-03-05

Family

ID=46527310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210036119.5A Active CN102609967B (en) 2012-02-17 2012-02-17 Generating and typesetting method of image-text report

Country Status (1)

Country Link
CN (1) CN102609967B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390033A (en) * 2013-07-09 2013-11-13 天津南大通用数据技术股份有限公司 Commercial intelligent data template as well as generating, mixing and offline using method thereof
CN103559415A (en) * 2013-11-18 2014-02-05 深圳市开立科技有限公司 Patient report generating method and device as well as ultrasonic equipment
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
CN103970726A (en) * 2014-05-21 2014-08-06 杨俊贤 Image-text typesetting implementation method and device
CN104899194A (en) * 2014-01-09 2015-09-09 武汉联影医疗科技有限公司 Creating method of medical report on the basis of HTML (Hypertext Markup Language) 5
CN105700865A (en) * 2014-12-10 2016-06-22 梦想创意有限公司 Personalized image-text creating method and system
CN106325783A (en) * 2016-08-03 2017-01-11 杭州图钉网络科技有限公司 Image-text express printing business transaction system
CN108804631A (en) * 2018-05-31 2018-11-13 北京字节跳动网络技术有限公司 Emoticon storage method, device, computer readable storage medium and terminal
CN109192261A (en) * 2018-08-21 2019-01-11 上海商汤智能科技有限公司 Information processing method and device, electronic equipment and storage medium
CN109727298A (en) * 2018-02-12 2019-05-07 平安好房(上海)电子商务有限公司 Poster generation method, device, equipment and computer storage medium
CN109783793A (en) * 2018-12-13 2019-05-21 方正璞华软件(武汉)股份有限公司 Page editing composition method and device
CN109949391A (en) * 2019-03-18 2019-06-28 武汉斗鱼鱼乐网络科技有限公司 Graphic rendering method, apparatus, electronic equipment and storage medium
CN110162653A (en) * 2019-05-13 2019-08-23 北京百度网讯科技有限公司 A kind of picture and text sort recommendations method and terminal device
CN110390079A (en) * 2018-04-19 2019-10-29 广东电网有限责任公司 A kind of processing document method
CN111341405A (en) * 2020-05-15 2020-06-26 四川大学华西医院 Medical data processing system and method
CN112035313A (en) * 2020-07-27 2020-12-04 珠海格力电器股份有限公司 Report generation method and device, template customization method and device, and monitoring system
CN112102442A (en) * 2020-09-04 2020-12-18 卡莱特(深圳)云科技有限公司 Image-text walking setting method and device for LED display screen
CN114300100A (en) * 2021-12-31 2022-04-08 有方(合肥)医疗科技有限公司 CT image report generation method and device based on virtual screenshot technology
CN114792353A (en) * 2022-06-23 2022-07-26 山东天成书业有限公司 Method and system for editing image and text
CN114970487A (en) * 2022-07-27 2022-08-30 中建电子商务有限责任公司 Method for generating OFD electronic contract based on rich text

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819794A (en) * 2003-06-19 2006-08-16 计算医学公司 Method and system for analyzing bone conditions using dicom compliant bone radiographic image
CN101002207A (en) * 2004-06-04 2007-07-18 爱克发公司 Generalized approach to structured medical reporting
US20080109250A1 (en) * 2006-11-03 2008-05-08 Craig Allan Walker System and method for creating and rendering DICOM structured clinical reporting via the internet
CN101751516A (en) * 2009-12-31 2010-06-23 深圳市蓝韵实业有限公司 Medical diagram text report generation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819794A (en) * 2003-06-19 2006-08-16 计算医学公司 Method and system for analyzing bone conditions using dicom compliant bone radiographic image
CN101002207A (en) * 2004-06-04 2007-07-18 爱克发公司 Generalized approach to structured medical reporting
US20080109250A1 (en) * 2006-11-03 2008-05-08 Craig Allan Walker System and method for creating and rendering DICOM structured clinical reporting via the internet
CN101751516A (en) * 2009-12-31 2010-06-23 深圳市蓝韵实业有限公司 Medical diagram text report generation method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HENNING MULLER ET AL.: "A review of content-based image retrieval systems in medical applications-clinical benefits and future directions", 《INTERNATIONAL JOURNAL OF MEDICAL INFORMATICS》 *
ZHENG ZHOU ET AL.: "CAD-PACS integration tool kit based on DICOM secondary capture,structured report and IHE workflow profiles", 《COMPUTERIZED MEDICAL IMAGING AND GRAPHICS》 *
吴国华等: "一种快速生成病理报告的链表算法研究", 《生物医学工程学杂志》 *

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678268B (en) * 2012-09-19 2016-08-31 北京大学 Official document automatic composing method and device
CN103678268A (en) * 2012-09-19 2014-03-26 北京大学 Automatic typesetting method and device for official documents
CN103390033A (en) * 2013-07-09 2013-11-13 天津南大通用数据技术股份有限公司 Commercial intelligent data template as well as generating, mixing and offline using method thereof
CN103559415A (en) * 2013-11-18 2014-02-05 深圳市开立科技有限公司 Patient report generating method and device as well as ultrasonic equipment
CN104899194A (en) * 2014-01-09 2015-09-09 武汉联影医疗科技有限公司 Creating method of medical report on the basis of HTML (Hypertext Markup Language) 5
CN103970726A (en) * 2014-05-21 2014-08-06 杨俊贤 Image-text typesetting implementation method and device
CN105700865A (en) * 2014-12-10 2016-06-22 梦想创意有限公司 Personalized image-text creating method and system
CN105700865B (en) * 2014-12-10 2020-01-21 梦想创意有限公司 Personalized image-text creating method and system
CN106325783A (en) * 2016-08-03 2017-01-11 杭州图钉网络科技有限公司 Image-text express printing business transaction system
CN109727298A (en) * 2018-02-12 2019-05-07 平安好房(上海)电子商务有限公司 Poster generation method, device, equipment and computer storage medium
CN110390079A (en) * 2018-04-19 2019-10-29 广东电网有限责任公司 A kind of processing document method
CN108804631A (en) * 2018-05-31 2018-11-13 北京字节跳动网络技术有限公司 Emoticon storage method, device, computer readable storage medium and terminal
CN109192261A (en) * 2018-08-21 2019-01-11 上海商汤智能科技有限公司 Information processing method and device, electronic equipment and storage medium
CN109192261B (en) * 2018-08-21 2023-03-24 上海商汤智能科技有限公司 Information processing method and device, electronic device and storage medium
CN109783793A (en) * 2018-12-13 2019-05-21 方正璞华软件(武汉)股份有限公司 Page editing composition method and device
CN109949391A (en) * 2019-03-18 2019-06-28 武汉斗鱼鱼乐网络科技有限公司 Graphic rendering method, apparatus, electronic equipment and storage medium
CN109949391B (en) * 2019-03-18 2023-09-26 武汉斗鱼鱼乐网络科技有限公司 Image-text drawing method, image-text drawing device, electronic equipment and storage medium
CN110162653B (en) * 2019-05-13 2021-07-30 北京百度网讯科技有限公司 Image-text sequencing recommendation method and terminal equipment
CN110162653A (en) * 2019-05-13 2019-08-23 北京百度网讯科技有限公司 A kind of picture and text sort recommendations method and terminal device
CN111341405A (en) * 2020-05-15 2020-06-26 四川大学华西医院 Medical data processing system and method
CN112035313A (en) * 2020-07-27 2020-12-04 珠海格力电器股份有限公司 Report generation method and device, template customization method and device, and monitoring system
CN112035313B (en) * 2020-07-27 2022-03-04 珠海格力电器股份有限公司 Report generation method and device, template customization method and device, and monitoring system
CN112102442A (en) * 2020-09-04 2020-12-18 卡莱特(深圳)云科技有限公司 Image-text walking setting method and device for LED display screen
CN114300100A (en) * 2021-12-31 2022-04-08 有方(合肥)医疗科技有限公司 CT image report generation method and device based on virtual screenshot technology
CN114792353A (en) * 2022-06-23 2022-07-26 山东天成书业有限公司 Method and system for editing image and text
CN114792353B (en) * 2022-06-23 2022-08-26 山东天成书业有限公司 Method and system for editing image and text
CN114970487A (en) * 2022-07-27 2022-08-30 中建电子商务有限责任公司 Method for generating OFD electronic contract based on rich text

Also Published As

Publication number Publication date
CN102609967B (en) 2014-03-05

Similar Documents

Publication Publication Date Title
CN102609967B (en) Generating and typesetting method of image-text report
US7573486B2 (en) Method and system for automatic generation of image distributions
US8296648B2 (en) Method and system for displaying variable shaped products on a computer display
US20050057566A1 (en) Rich graphic visualization generation from abstract data representation
JP2012009005A (en) Business form processing system, ocr device, ocr processing program, business form creation device, business form creation program, and business form processing method
US8429517B1 (en) Generating and rendering a template for a pre-defined layout
US20140173397A1 (en) Automated Document Composition Using Clusters
JP4373470B2 (en) Document conversion utilization system
CN117688921A (en) Method for unifying format and personalized data setting of automatically generated ppt
CN108027840A (en) Method and computer system for the virtual display image on carton
CN110119503B (en) Excel-based planning project multi-class data report and format editing method
CN113485704B (en) Information processing method and system for commodity activity page of e-commerce platform
JP4415378B2 (en) Image composition system, image composition program, and image composition method
JP2007102552A (en) Plant form forming system
JP2001222536A (en) System and method for preparing patent map and recording medium
JP4525843B2 (en) Image composition system, image composition program, and image composition method
JP4737659B2 (en) Table set database system and table set data creation device
JP4239644B2 (en) Layout system, layout support system, layout program, and layout method
JP2005190099A (en) Page space layout device and page space layout program
US20050010371A1 (en) Workflow-based research system with genetic pedigree display and organism tracking
Heath New SAS/GRAPH® Procedures for Creating Statistical Graphics in Data Analysis
CN114840202A (en) Method for creating report model and template in enterprise management software
CN115146115A (en) Family tree display method and device based on coordinate information and electronic equipment
JPH05274134A (en) Production system for screen operation manual
JPH09123381A (en) Composition style deciding and supporting 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190730

Address after: Room 505-507, Building 57, Science Park Road, Baiyang Street, Hangzhou Economic and Technological Development Zone, Zhejiang 310000

Patentee after: Hangzhou Dexie Electronic Technology Co., Ltd.

Address before: 310018 No. 2 Street, Xiasha Higher Education Park, Huzhou City, Zhejiang Province

Patentee before: Hangzhou Electronic Science and Technology Univ

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200114

Address after: Xinluo Avenue high tech Zone of Ji'nan City, Shandong province 250101 No. 1166 orsus No. 2 building, 16 floor

Patentee after: Zhongfu Information Co., Ltd.

Address before: Room 505-507, Building 57, Science Park Road, Baiyang Street, Hangzhou Economic and Technological Development Zone, Zhejiang 310000

Patentee before: Hangzhou Dexie Electronic Technology Co., Ltd.