Report generation method and device, electronic equipment, storage medium and program product

By using preset template units and layout strategies in the initial report template in report generation, the layout parameters of each target unit are adaptively determined, which solves the problems of poor flexibility and low efficiency in report generation in the prior art, achieving more efficient and flexible report generation, and improving the professionalism of reports.

CN119849463APending Publication Date: 2025-04-18HANGZHOU MICROIMAGE SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411887259.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The prior art has poor flexibility and low efficiency when generating data reports, making it difficult to adapt to the presentation needs of different data, and the generated reports may not comply with professional specifications.

Method used

By obtaining an initial report template for the thermal imaging report, the template includes a target unit selected by the user from a plurality of preset template units, each target unit having a preset layout strategy. According to the layout strategy of the target unit and the data scale to be filled, the layout parameters of each target unit are determined and a thermal imaging report is generated.

Benefits of technology

It improves the flexibility and universality of report generation, taking into account the efficiency and flexibility of report generation, so that the generated reports can adapt to the presentation needs of different data and are more in line with professional specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119849463A_ABST
    Figure CN119849463A_ABST
Patent Text Reader

Abstract

The invention provides a report generation method and device, electronic equipment, a storage medium and a program product, relates to the technical field of data processing, and is used for giving consideration to report generation efficiency and flexibility. The method comprises the steps that an initial report template is obtained, the initial report template comprises at least one target unit selected by a user from a plurality of preset template units, and each preset template unit has a preset layout strategy; according to a preset layout strategy of each target unit and an obtained data scale of data to be filled of each target unit, layout parameters of each target unit are determined, the data to be filled comprises thermal imaging image data and / or thermal imaging text data, and at least one target unit comprises an image unit used for filling the thermal imaging image data; and / or a text unit for filling the thermal imaging text data; and generating a thermal imaging report according to the layout parameters of each target unit and the to-be-filled data of each target unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a report generation method, device, electronic device, storage medium and program product. Background Art

[0002] With the advent of the big data era, organizations or individuals often need to process massive amounts of complex data. In order to present the collected data and analysis results concisely and effectively, data reports are usually generated so that users can quickly understand the data or make decisions based on the data.

[0003] The methods of generating data reports in related technologies generally include the following:

[0004] The first method is to import the report data into a fixed report template to generate a report consistent with the layout of the fixed report template. However, in this case, if the user needs to fine-tune the report, a new report template needs to be designed, resulting in poor flexibility in report generation.

[0005] The second method is to compile the report data based on the user's operation in a rich text editor (such as word software, etc.) to generate a report. However, in this case, the user needs to set the custom details of each unit in the report one by one, resulting in low efficiency in creating the report. Summary of the invention

[0006] The present application provides a report generation method, device, electronic device, storage medium and program product, which are used to balance the efficiency and flexibility of report generation.

[0007] In order to achieve the above technical objectives, this application adopts the following technical solutions:

[0008] In a first aspect, the present application provides a report generation method, the method comprising: obtaining an initial report template for a thermal imaging report, the initial report template comprising at least one target unit selected by a user from a plurality of preset template units, each preset template unit having a preset layout strategy; determining the layout parameters of each target unit according to the preset layout strategy of each target unit and the data size of the acquired data to be filled in each target unit, the data to be filled comprising thermal imaging image data and / or thermal imaging text data, at least one target unit comprising an image unit for filling in thermal imaging image data, and / or a text unit for filling in thermal text data; generating a thermal imaging report according to the layout parameters of each target unit and the data to be filled in each target unit.

[0009] The report generation method provided by the present application can, on the one hand, adaptively determine the layout of each target unit in the report template based on the preset layout strategy of each target unit in the initial report template of the thermal imaging report and the data to be filled in each target unit, so that the generated thermal imaging report can adapt to different data, thereby improving the flexibility and universality of thermal imaging report generation; on the other hand, only a single report template needs to be generated to adaptively determine the layout parameters for the report data, without the need for the user to layout one by one, thereby improving the efficiency of report generation; on the other hand, since the initial report template is a template including the target unit selected by the user from multiple preset template units, the template generation is more flexible than the template with a fixed format, thereby improving the flexibility of thermal imaging report generation. Based on this, the efficiency and flexibility of thermal imaging report generation are taken into account, and the universality of thermal imaging report generation is improved.

[0010] In some embodiments, the layout parameters include at least a unit position and a unit size; the above-mentioned determination of the layout parameters of each target unit according to the layout strategy preset for each target unit in the initial report template and the data scale of the data to be filled in each target unit includes at least one of the following: determining the unit size of each target unit according to the data scale of the data to be filled in each target unit and the layout strategy preset for each target unit; determining the unit position of each target unit according to the unit size of each target unit and the layout strategy preset for each target unit; determining the unit position of each target unit according to the layout strategy preset for each target unit; determining the unit size of each target unit according to the unit position of each target unit and the data scale of the data to be filled in each target unit; determining the initial position of each target unit in the initial report template as the unit position of each target unit; determining the unit size of each target unit according to the unit position of each target unit, the data scale of the data to be filled in each target unit and the layout strategy preset for each target unit.

[0011] The report generation method provided in the present application provides a variety of ways to determine layout parameters; in the case of determining the unit size first and then determining the unit position, it is possible to prioritize ensuring that the unit size complies with the specifications (for example, complying with the professional specifications required for thermal imaging reports), and then rearrange the unit positions of each target unit based on the unit size; in the case of determining the unit position first and then determining the unit size, it is possible to prioritize ensuring that the unit position complies with the specifications, and then adjust the unit size at an appropriate position for rearrangement; in the case of directly using the initial position of each target unit in the initial report template as the unit position, on the one hand, the unit position can be directly determined based on the initial position of each target unit set by the user in the initial report template to flexibly meet the different needs of the user, and on the other hand, the step of determining the unit position is eliminated, thereby improving the report generation efficiency.

[0012] In some embodiments, at least one target unit includes an image unit and a text unit located in the same row of the initial report template, and the image unit is associated with the text unit; the above-mentioned determining the cell size of each target unit according to the data scale of the data to be filled in each target unit and the preset layout strategy of each target unit includes: when the layout strategy includes that the cell width of the image unit and the cell width of the text unit associated with the image unit satisfy a preset cell width ratio, determining the cell size of the text unit and the cell size of the image unit according to the preset cell width ratio, the data scale of the text data to be filled in the text unit and the number of images to be filled in the image unit; the above-mentioned determining the cell position of each target unit according to the cell size of each target unit and the preset layout strategy of each target unit includes: when the preset layout strategy of the target unit also includes that the row position of the target unit in the initial report template remains unchanged, rearranging the image unit and the text unit in the same row according to the size of the image unit and the size of the text unit to obtain the cell position of the image unit and the cell position of the text unit.

[0013] The report generation method provided by the present application can adaptively adjust the cell size and cell position of the image unit and the text unit based on the number of images to be filled in the image unit and the data scale of the text data to be filled in the text unit when the image unit and the text unit associated with the image unit are located in the same row, so that the layout of the image unit takes into account the layout of the text unit, thereby making the layout of each unit conform to the specifications, more beautiful, and improving the user experience.

[0014] In some embodiments, the preset layout strategy of the target unit includes at least one of the following: a first type of layout strategy, the first type of layout strategy is used to indicate the constraint relationship satisfied by the target unit itself after the data to be filled in the target unit is imported into the target unit; a second type of layout strategy, the second type of layout strategy is used to indicate the constraint relationship between the target unit and other units included in the initial report template after the data to be filled in the target unit is imported into the target unit; a third type of layout strategy, the third type of layout strategy is used to indicate the constraint relationship between the target unit and the initial report template after the data to be filled in the target unit is imported into the target unit.

[0015] The report generation method provided in the present application can, after importing the data to be filled in each target unit into each target unit respectively, perform adaptive layout according to at least one of the constraint relationships satisfied by the target unit itself, the constraint relationships between the target unit and other units included in the initial report template, and the constraint relationships between the target unit and the initial report template; thereby, the generated report can be adapted to different data, thereby improving the flexibility and universality of report generation; in addition, there is no need for users to typeset the layout one by one, thereby improving the efficiency of report generation.

[0016] In some embodiments, the first type of layout strategy includes at least one of the following: after the data to be filled in the target unit is imported into the target unit, the position of the data to be filled in the target unit does not exceed the target unit; after the data to be filled in the target unit is imported into the target unit, the formal parameters of the data to be filled in the target unit are consistent with the preset formal parameters of the target unit; after the data to be filled in the target unit is imported into the target unit, the area ratio of the data to be filled in the target unit is within a preset proportion range.

[0017] The report generation method provided in the present application sets the constraint relationship satisfied by the target unit itself in the layout strategy, so that the display of data in at least a single target unit is in compliance with the specification, thereby improving the standardization and aesthetics of the layout and enhancing the user experience.

[0018] In some embodiments, the second type of layout strategy includes at least one of the following: when the target cell is a template cell inserted in a table cell, the layout parameters of the target cell are determined based on the layout parameters of the table cell; when the target cell is a template cell inserted in a table cell, and there is a second cell in the table cell that is of the same type as the target cell and is located in an adjacent row of the same column of the table cell or an adjacent column of the same row as the target cell, the target cell and the second cell have the same cell size; when the target cell is an image cell, and there is a text cell associated with the image cell in at least one target cell, the cell width of the image cell and the cell width of the text cell satisfy a preset cell width ratio, and / or the cell height of the image cell and the cell height of the text cell meet a preset cell width ratio. The cell height of the cell satisfies a preset cell height ratio; when the target cell is an image cell and there is a text cell associated with the image cell in at least one target cell, the text cell is located in the next row of the image cell; when the target cell is an image cell inserted in a table cell and there is a text cell associated with the image cell in an adjacent column of the table cell, the cell size of the image cell is determined based on the cell size of the text cell; when the target cell is an image cell and there is a matrix cell associated with the image cell in at least one target cell, the matrix cell is located in adjacent rows and / or adjacent columns of the image cell; the cell distance between the target cell and other cells in at least one target cell is not less than a preset distance threshold.

[0019] The report generation method provided in this application sets the layout relationship between the target unit and other units (such as the table unit inserted into the target unit, or the text unit associated with the target unit, etc.) in the layout strategy. Thus, the layout of each target unit can take into account the layout of other units in the initial report template, thereby improving the standardization and aesthetics of the layout and enhancing the user experience.

[0020] In some embodiments, the third type of layout strategy also includes at least one of the following: the row position and / or column position of the target unit in the initial report template remains unchanged; when there are multiple target units in a row of the initial report template, the arrangement order of each target unit in the row remains unchanged; when there is only one target unit in a row of the initial report template, the cell width of the target unit is determined based on the width of the initial report template; when there are multiple target units of the same type in a row of the initial report template, the cell widths of the multiple target units of the same type are the same and are determined based on the width of the initial report template; there are at most N image units in each row of the initial report template, and N is a positive integer.

[0021] The report generation method provided in the present application also sets the layout relationship between the target unit and the report template in the layout strategy, so that the layout of each target unit in the initial report template is more in line with the specification, thereby improving the user experience.

[0022] In some embodiments, the types of template units include at least one of the following: image unit, text unit, table unit, formula unit, matrix unit and page unit; wherein, other units except page units are allowed to be inserted into table units and page units.

[0023] The report generation method provided by the present application provides multiple types of template units. Further, by allowing other units to be inserted into table units and page units, more options can be provided for the generation of initial report templates, thereby increasing the styles of reports that can be generated and improving user experience.

[0024] In some embodiments, the above method also includes: template units of the same type have the same formal parameters, and the formal parameters include: style parameters and / or format parameters; the above method also includes: receiving a formal parameter modification instruction, the formal parameter modification instruction is used to instruct to modify the formal parameters of a first unit in at least one target unit from a first formal parameter to a second formal parameter; in response to the formal parameter modification instruction, the formal parameters of each target unit of the same type as the first unit in at least one target unit are modified from the first formal parameter to the second formal parameter.

[0025] The report generation method provided by the present application can ensure that template units of the same type have the same formal parameters, and the formal parameter modification of all units of the same type can be achieved by modifying the formal parameters of a single target unit. Based on this, it is conducive to quickly modifying the format of units of the same type, and it is conducive to maintaining the consistency of the style of the units in the full text of the report, thereby improving the efficiency and standardization of the report.

[0026] In some embodiments, the above method also includes: re-determining the layout parameters of each target unit based on the preset layout strategy of each target unit and the data scale of the data to be filled in each target unit when any of the following conditions are met: it is detected that the layout parameters and / or formal parameters of any target unit are modified; it is detected that the data imported by any target unit is modified.

[0027] It should be understood that, considering that the data imported by the target unit is modified (for example, data is added), the formal parameters of the target unit are modified (for example, the font size or paragraph spacing is changed), or the layout parameters of the target unit are modified, the overall layout of the initial report template may be affected, so the layout parameters of each target unit can be determined again to re-adaptively layout. Based on this, it can be ensured that the overall standardization of the report is not affected when the data imported by the target unit is modified, the formal parameters of the target unit are modified, or the layout parameters of the target unit are modified; and the layout parameters of each target unit can be re-determined automatically without the user having to adjust them one by one, thereby improving the efficiency of report generation.

[0028] In some embodiments, the above method also includes: displaying a template unit pool, wherein the template unit pool includes the plurality of operable preset template units; the above initial report template for obtaining the thermal imaging report includes: based on user operation instructions, selecting at least one target unit from the plurality of preset template units and inserting it into a template generation area; generating the initial report template based on the at least one target unit inserted in the template generation area.

[0029] The report generation method provided in the present application can generate an initial report template based on at least one target unit inserted by the user in the template generation area, rather than selecting a fixed template, thereby improving the flexibility of template generation and further improving the flexibility of report generation.

[0030] In a second aspect, the present application provides a report generation device, comprising a template acquisition module, a template modification module, and a report generation module; wherein the template acquisition module is used to obtain an initial report template for a thermal imaging report; the initial report template includes at least one target unit selected by a user from a plurality of preset template units, and each preset template unit has a preset layout strategy; the template modification module is used to determine the layout parameters of each target unit according to the preset layout strategy of each target unit and the data scale of the acquired data to be filled in each target unit, the data to be filled includes thermal imaging image data and / or thermal imaging text data, and at least one target unit includes an image unit for filling in thermal imaging image data, and / or a text unit for filling in thermal imaging text data; the report generation module is used to generate a thermal imaging report according to the layout parameters of each target unit and the data to be filled in each target unit.

[0031] In a third aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed on a computer, the computer implements any report generation method provided in the embodiments of the present application.

[0032] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory for storing instructions executable by the processor; the processor is configured to execute the instructions so that the electronic device implements any report generation method provided in the embodiments of the present application.

[0033] In a fifth aspect, the present application provides a computer program product, which includes computer program instructions. When the computer instructions are executed on a computer, the computer implements any report generation method provided in the embodiments of the present application.

[0034] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the controller, or may be packaged separately from the processor of the controller, which is not limited in this application.

[0035] For the specific description of the second to fifth aspects and their various implementations in the present application, reference may be made to the detailed description in the first aspect and its various implementations; and for the beneficial effects of the second to fifth aspects and their various implementations, reference may be made to the beneficial effects analysis in the first aspect and its various implementations, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A structural diagram of a report generation system provided in an embodiment of the present application;

[0037] Figure 2 A flowchart of a report generation method provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of an application scenario of a report generation method provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the structure of a report generating device provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0042] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "multiple" means two or more.

[0043] As described in the background technology, with the advent of the big data era, organizations or individuals usually need to process massive amounts of complex data. In order to concisely and effectively present the collected data and analysis results, data reports are usually generated so that users can quickly understand the data or make decisions based on the data.

[0044] The methods of generating data reports in related technologies generally include the following:

[0045] The first method is to import the report data into a fixed report template to generate a report consistent with the layout of the fixed report template. However, in this case, if the user needs to fine-tune the report, a new report template needs to be designed, resulting in poor flexibility in report generation.

[0046] The second method is to compile the report data based on the user's operation in a rich text editor (such as word software, etc.) to generate a report. However, in this case, the user needs to set the custom details of each unit in the report one by one, resulting in low efficiency in creating the report.

[0047] In particular, when it is necessary to generate a data report that meets professional standards (such as a thermal imaging report or a laboratory report), a report generated by custom editing or using a fixed report template may result in content that does not meet professional standards, resulting in the report having no professional validity.

[0048] For example, in some report generation scenarios that mainly display real data, there will be different regulatory requirements for archiving, experiments, and regulatory standards. However, the report generation methods in the above-mentioned related technologies have poor flexibility and low efficiency, which may cause the generated report content to fail to meet professional standards, resulting in the report having no professional effectiveness.

[0049] In this regard, an embodiment of the present application provides a report generation method, which can adaptively determine the layout parameters of each target unit in the report template based on the preset layout strategy of each target unit in the initial report template and the data to be filled in each target unit, so that the generated thermal imaging report can adapt to different data, improving the flexibility and universality of thermal imaging report generation; in addition, only a single report template needs to be generated to adaptively determine the layout parameters for the report data, without the need for the user to layout one by one, thereby improving the efficiency of report generation; in addition, since the initial report template is a template that includes the target unit selected by the user from multiple preset template units, the template generation is more flexible than a template with a fixed format, thereby improving the flexibility of thermal imaging report generation. Based on this, the efficiency and flexibility of thermal imaging report generation are taken into account, and the universality of thermal imaging report generation is improved.

[0050] The report generation method provided in the present application can be applied to any data report generation scenario, for example, including but not limited to: generation of data reports mainly displaying real data, generation of infrared detection reports, generation of audio and video detection reports, generation of thermal imaging reports, generation of laboratory reports, generation of medical reports, generation of environmental detection reports, generation of product quality detection reports, and generation of house energy consumption reports (such as electricity usage reports, water usage reports, heating usage reports, or gas usage reports), etc. The present application does not make specific limitations on this.

[0051] In addition, the report generation method provided by the present application is also applicable to any scenario that requires the generation of data reports that meet professional standards; for example, the generation scenario of structural engineering reports, and the generation scenario of thermal imaging reports, etc., so as to achieve the corresponding purpose through the professional effectiveness of the report. Taking thermal imaging reports as an example, after using thermal imaging technology to conduct patrol inspections or precise inspections of electrical equipment, buildings and other targets, it is necessary to output thermal imaging reports (also known as thermal imaging diagnostic reports) for many targets; further, when the thermal imaging report meets professional standards (for example, the report structure is clear, the report content is well organized, and the layout and format of the inspection content and results of a single target are consistent), it can be used as a basis for claiming power system failures from insurance companies.

[0052] In order to more clearly illustrate the solution provided by the present application, the present application embodiment also provides a structural schematic diagram of a report generation system. Figure 1The report generation system at least includes a processing device 110. In some embodiments, the report generation system further includes at least one of a storage device 120, a display device 130, and a control device (not shown in the figure).

[0053] The processing device 110 is used to execute any report generation method provided in the present application. The processing device 110 can be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof; or, the processing device 110 can also be other devices with processing functions, such as circuits, devices, or software modules, and the present application does not make any limitation on this.

[0054] The storage device 120 is in communication with the processing device 110. In some embodiments, the storage device 120 is used to store report data, for example, data for generating a thermal imaging report, or experimental data for generating an experimental report. In some embodiments, the storage device 120 is also used to store the generated report. In some embodiments, the storage device 120 is also used to store a plurality of preset template units and / or preset layout strategies for each template unit, wherein the relevant contents of the preset template units and the relevant contents of the layout strategies can refer to the description in the method embodiment below.

[0055] The display device 130 is connected to the processing device 110 and / or the storage device 120 in communication, and may be a liquid crystal display, an organic light-emitting diode (OLED) display, a 3D display, etc. The present application does not limit the specific type, size, and resolution of the display device 130. In some embodiments, the display device 130 is used to display a plurality of preset template units for user selection. In some embodiments, the display device 130 may also display a template generation area so as to generate an initial report template according to at least one target unit inserted by the user in the template generation area. In some embodiments, the display device 130 may also display a generated report. It should be understood that the display device 130 may also make some changes in performance and configuration as needed. Exemplarily, the function of the control device may be integrated on the display device 130; for example, the display device 130 is integrated with the control device as a control panel to display a plurality of preset template units, and determine at least one target unit selected by the user from a plurality of preset template units according to the user operation instruction acting on the control panel. Alternatively, the control device may be independent of the display device 130. The control device is used to receive user operation instructions, and complete corresponding instruction tasks based on the user operation instructions or transmit the user operation instructions to other devices (such as the processing device 110 or the display device 130).

[0056] It should be pointed out that Figure 1 The structure shown in the report generation system does not constitute a limitation, except Figure 1 In addition to the components shown, the computing device may include more or fewer components than shown, or combine certain components, or arrange the components differently. Figure 1 Not shown, the report generation system may also include a power supply device (such as a battery and a power management circuit) for supplying power to each device. The battery device may be logically connected to each device through the power management circuit, thereby achieving power consumption management control of each device in the report generation system.

[0057] It should be understood that the execution subject of the report generation method provided in the present application may be the above-mentioned processing device 110, or a collection of the above-mentioned processing device 110 and the above-mentioned other devices (such as storage device 120 and / or display device 130, etc.), or the above-mentioned report generation system. The execution subject may also be referred to as a report editor. In a specific example, the execution subject may also be a terminal integrating the above-mentioned processing device 110, such as a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, as well as a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) device, etc., which is not specifically limited in the present application.

[0058] The implementation of the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.

[0059] like Figure 2 As shown, the embodiment of the present application provides a report generation method, and the execution subject can refer to the above description. The method includes the following steps S101 to S103:

[0060] S101. Acquire an initial report template of a thermal imaging report, where the initial report template includes at least one target unit selected by a user from a plurality of preset template units, and each template unit has a preset layout strategy.

[0061] The template unit is an operable unit used to generate an initial report template.

[0062] In some embodiments, each template unit can be repeatedly selected. For example, the user can repeatedly select the same template unit as needed to set it in the initial report template as a target unit.

[0063] In some embodiments, the type of the template unit includes at least one of the following: an image unit, a text unit, a table unit, a formula unit, a matrix unit, and a page unit.

[0064] In some examples, the image types that can be imported into the image unit include, but are not limited to: visible light images, thermal imaging images, depth images, data analysis images, etc.

[0065] In some examples, a text unit includes at least: normal text and / or a placeholder.

[0066] In some examples, the text unit supports multi-level lists. For example, you can use multi-level lists to set different levels in the data imported by the text unit, and each level of the list items has a unique indentation and numbering style to distinguish the importance or relationship of each piece of data in the data imported by the text unit through the level hierarchy. In a specific example, you can use multi-level lists to display a list of items or an outline in the text.

[0067] In some examples, the text unit may also be set to allow or not allow image units to be inserted into the text unit.

[0068] In some examples, other units except page units are allowed to be inserted into table units, such as the above-mentioned text units, image units, or table units.

[0069] In some examples, the page specification, page size, and page background used in the report can be set in the page unit. For example, the page size can be set to A4 paper, A3 paper, A5 paper, or a custom ratio, and the page background can be set to a custom background. Similarly, other units except the page unit can be inserted into the page unit.

[0070] It should be understood that the above classification of template unit types is only an example and this application does not make any specific limitation on this.

[0071] In some embodiments, template units of the same type have the same formal parameters. The formal parameters include: style parameters and / or format parameters. The style parameters are used to indicate the visual appearance of the template unit. For example, the style parameters of a text unit include, but are not limited to, at least one of the following: font type, font size, font color, weight, italics, underline, etc. The format parameters are used to indicate the structural features of the template unit. For example, the format parameters of a text unit include, but are not limited to, at least one of the following: text arrangement, text alignment, text line spacing and paragraph spacing, bulleted lists and numbered lists, indentation, etc.

[0072] In a specific example, each text unit in the initial report template uses a uniform line spacing, font style, font size, font color, bold, italic, underline, strikethrough, background color, paragraph spacing, page orientation, or page margins.

[0073] In another specific example, when image units are allowed to be inserted into text units, each text unit in the initial report template uses a unified text wrapping form.

[0074] In yet another specific example, each table cell in the initial report template uses a unified list style, such as a unified border thickness, border style, table background color, and the like.

[0075] Therefore, template units of the same type have the same formal parameters, so that the generated report has a consistent style, complies with the specifications and is easy to read.

[0076] Furthermore, in the case where the formal parameters of any target unit are modified from the first formal parameters to the second formal parameters, the formal parameters corresponding to the target units of the same type included in the initial report template can also be uniformly modified from the first formal parameters to the second formal parameters to ensure that even if there are modifications to the formal parameters, the formal modifications can be made to the target units of the same type in the entire report, so that the generated report always has a consistent style throughout.

[0077] Exemplarily, the method further includes: receiving a formal parameter modification instruction, the formal parameter modification instruction is used to instruct to modify the formal parameter of the first unit in at least one target unit from the first formal parameter to the second formal parameter; in response to the formal parameter modification instruction, modifying the formal parameters of each target unit of the same type as the first unit in at least one target unit from the first formal parameter to the second formal parameter. Here, the names of "first" and "second" are only used to distinguish concepts, and "first" and "second" do not imply priority or importance. The first unit and the second unit described below can be the same unit or different units.

[0078] Based on this, it can be ensured that template units of the same type have the same formal parameters, and the formal parameter modification of all units of the same type can be achieved by modifying the formal parameters of a single target unit. Therefore, it is conducive to quickly modifying the format of units of the same type, and to maintaining the consistency of the style of the units in the entire report, thereby improving the efficiency and standardization of the report.

[0079] In some embodiments, each template unit is further divided into different types of units.

[0080] As an example, the types of text units can be further divided into body units, title units, placeholder units, etc. Different units correspond to different formal parameters, such as at least one of different fonts, different paragraph spacing, different line spacing, and different indentation methods.

[0081] As another example, the types of image units may be further divided into: visible light image units, thermal imaging image units, and depth image units, etc. It should be noted that for different types of images, the supported import data formats may also be different.

[0082] Taking a visible light image as an example, the image unit may only support importing the image itself.

[0083] Taking the thermal imaging image unit as an example, since the thermal imaging image itself contains rich information, for example, in addition to the single-channel grayscale image corresponding to the thermal imaging image itself for recording temperature, the information contained in the thermal imaging image can also include at least one of the following: a thermal radiation matrix corresponding to the thermal imaging image, a temperature matrix corresponding to the thermal imaging image, thermal imaging image parameters corresponding to the thermal imaging image, and temperature measurement parameters corresponding to the thermal imaging image. At this time, the image unit not only supports the import of images, but also supports the import of other parameter information carried by the image itself. In this case, the present application provides at least two ways to import thermal imaging images:

[0084] Method 1: The default thermal imaging image unit includes one or more of a text unit, a table unit, a formula unit, and a matrix unit, so as to support importing all information contained in the thermal imaging image into the thermal imaging image unit in the initial report template.

[0085] Method 2: By default, the thermal imaging image unit is associated with one or more of the text unit, the table unit, the formula unit, and the matrix unit, so as to support importing all the information contained in the thermal imaging image into the initial report template.

[0086] In some embodiments, each of the above-mentioned multiple preset template units is independent of each other; further, multiple target units selected by the user are associated based on user operation instructions. For example, when an image unit and a text unit are selected as target units, the selected text unit can be associated with the image unit based on the user operation instruction. Based on this, on the one hand, it is conducive to the subsequent layout based on the association relationship of each unit, and on the other hand, the target unit can be manually associated based on the user operation instruction, thereby improving the flexibility of unit association.

[0087] In other embodiments, the above-mentioned multiple preset template units include both independent template units and associated template units. For example, there are both independent image units and independent text units, as well as associated image units and text units. In this case, the combination of associated image units and text units can be used as a type of template unit. Based on this, multiple associated template unit combinations can be preset to reduce the workload of manual association for users. It should be understood that in order to improve the flexibility of unit association, in the case where there are already associated template units among multiple preset template units, it is still possible to support the association of multiple target units selected by the user based on user operation instructions.

[0088] The preset layout strategy is used to constrain the layout of each template unit in the report template. It should be understood that the target unit itself is a template unit, and the layout strategy preset for the target unit is the same concept as the layout strategy preset for the template unit. The layout strategy can also be called a layout relationship, layout constraint, layout rule, or constraint relationship, etc., and this application does not make specific limitations on this.

[0089] In order to more clearly explain the relevant content of the layout strategy, the concept of "data to be filled in the target unit" is briefly introduced below. The data to be filled in the target unit is determined based on the data required to generate the thermal imaging report, and the data required to generate the thermal imaging report can also be called report data. In some embodiments, the data to be filled in each target unit is determined by the user based on the report data; in other embodiments, the data to be filled in each target unit is determined by the execution subject of the method by identifying the report data.

[0090] In some embodiments, the preset layout strategy of the target unit includes at least one of the following: a first type of layout strategy, which is used to indicate the constraint relationship satisfied by the target unit itself after the data to be filled in the target unit is imported into the target unit; a second type of layout strategy, which is used to indicate the constraint relationship between the target unit and other units included in the initial report template after the data to be filled in the target unit is imported into the target unit; a third type of layout strategy, which is used to indicate the constraint relationship between the target unit and the initial report template after the data to be filled in the target unit is imported into the target unit.

[0091] The report generation method provided by the present application can, after importing the data to be filled in each target unit into each target unit respectively, perform adaptive layout according to at least one of the constraint relationships satisfied by the target unit itself, the constraint relationships between the target unit and other units included in the initial report template, and the constraint relationships between the target unit and the initial report template; thereby, the generated report can be adapted to different data, thereby improving the flexibility and universality of thermal presentation report generation; in addition, there is no need for users to typeset the layout one by one, thereby improving the efficiency of thermal imaging report generation.

[0092] In some embodiments, the first type of layout strategy includes at least one of the following:

[0093] (1) After the data to be filled in the target cell is imported into the target cell, the position occupied by the data to be filled in the target cell does not exceed the target cell.

[0094] Based on this, the relationship between the data to be filled in each target unit and the preset layout strategy is provided, so that the data to be filled in the target unit does not exceed the target unit, thereby improving the aesthetics, standardization and readability of the thermal imaging report, thereby improving the user experience.

[0095] (2) After the data to be filled in the target unit is imported into the target unit, the formal parameters of the data to be filled in the target unit are consistent with the preset formal parameters of the target unit.

[0096] The formal parameters include: style parameters and / or format parameters.

[0097] For example, when the preset style parameters of a text unit are: blue font, regular script, and size 4 font, the data to be filled is filled based on the preset style parameters of the text unit, so that the formal parameters of the data to be filled in the target unit are consistent with the preset formal parameters of the target unit.

[0098] Furthermore, when the preset layout strategy of the target cell also includes the above (1), it can be ensured that after the target cell is filled with the data to be filled based on the formal parameters of the target cell, the position of the data to be filled in the target cell does not exceed the target cell.

[0099] (3) After the data to be filled in the target cell is imported into the target cell, the area ratio of the data to be filled in the target cell is within a preset ratio range.

[0100] Based on this, it can be avoided that the area of ​​the data to be filled in the target cell is too small to affect the reading or viewing experience, or the area is too large to cause typesetting congestion and affect the viewing experience.

[0101] It should be noted that the layout strategies corresponding to (1) to (3) above can be regarded as the layout strategies of the target unit itself; that is, the constraints satisfied by the target unit itself are set in the layout strategy. This ensures that the display of data in at least a single target unit is in compliance with the specification, thereby improving the standardization and aesthetics of the layout and enhancing the user experience. It should be understood that the above strategies are only examples, and other layout strategies can be set in actual report generation, and this application does not make specific limitations on this.

[0102] In some embodiments, the second type of layout strategy includes at least one of the following:

[0103] (4) In the case where the target cell is a template cell inserted in a table cell, the layout parameters of the target cell are determined based on the layout parameters of the table cell.

[0104] (5) When the target cell is a template cell inserted into a table cell, and there is a second cell in the table cell that is of the same type as the target cell and is located in an adjacent row of the same column as the target cell or in an adjacent column of the same row as the target cell, the cell size of the target cell and the second cell are the same.

[0105] For example, for two text cells inserted in adjacent columns of the same row of a table cell, the cell sizes of the two text cells can be set to the same size so that the space in the table cell is evenly distributed.

[0106] (6) When the target unit is an image unit and there is a text unit associated with the image unit in at least one target unit, the unit width of the image unit and the unit width of the text unit satisfy a preset unit width ratio, and / or the unit height of the image unit and the unit height of the text unit satisfy a preset unit height ratio.

[0107] (7) When the target unit is an image unit and there is a text unit associated with the image unit in at least one target unit, the text unit is located in the next line of the image unit.

[0108] For example, when the target cell is an image cell and there is a text cell associated with the image cell in at least one target cell, if neither the image cell nor the text cell belongs to a cell inserted in a table cell, the text cell is located in the next row of the image cell.

[0109] (8) When the target cell is an image cell inserted in a table cell, and there is a text cell associated with the image cell in an adjacent column of the table cell, the cell size of the image cell is determined based on the cell size of the text cell.

[0110] For example, for an image unit inserted in adjacent columns of the same row of a table cell and a text unit associated with the image unit, the cell size of the text unit is determined based on the data scale of the text data to be filled in the text unit, and the cell size of the image unit is re-determined based on the cell size of the text unit and the column width is reallocated to the image unit.

[0111] (9) When the target unit is an image unit and there is a matrix unit associated with the image unit in at least one target unit, the matrix unit is located in adjacent rows and / or adjacent columns of the image unit.

[0112] (10) The cell distance between the target cell and at least one other cell in the target cell is not less than a preset distance threshold.

[0113] It should be noted that the layout strategies corresponding to the above (4) to (10) can be regarded as the layout relationship between the target unit and other units (such as the table unit inserted into the target unit, etc.). Other layout strategies can also be set in actual report generation, and this application does not make specific restrictions on this. Based on this, the layout of each target unit can take into account the layout of other units in the initial report template, thereby improving the standardization and aesthetics of the layout and enhancing the user experience.

[0114] In some embodiments, the third type of layout strategy includes at least one of the following:

[0115] (11) The row position and / or column position of the target unit in the initial report template remains unchanged.

[0116] That is, changing the row position and / or column position of the target cell in the initial report template is not allowed / supported.

[0117] (12) When there are multiple target units in a row of the initial report template, the arrangement order of the multiple target units in the row remains unchanged.

[0118] That is, when there are multiple target units in a row of the initial report template, changing the arrangement order of the multiple target units in the row is not allowed / supported.

[0119] (13) When there is only one target cell in a row of the initial report template, the cell width of the target cell is determined based on the width of the initial report template.

[0120] In the case where the preset template unit includes a page unit, the width of the initial report template may also be understood as the width of the page unit.

[0121] For example, when the target unit is an image unit, the default width of the image unit is consistent with the width of the initial report template, or the quotient of the width of the image unit with the width of the initial report template is not less than 0.8, so that the image unit covers the entire row of the initial report template.

[0122] (14) When there are multiple target cells of the same type in a row of the initial report template, the cell widths of the multiple target cells of the same type are the same and are determined based on the width of the initial report template.

[0123] (15) There are at most N image units in each row of the initial report template, where N is a positive integer.

[0124] In a specific example, N is 1, that is, there is at most one image unit in each row of the initial report template. Further, when the preset layout strategy of the target unit includes both (15) and the above (13), if the target unit is an image unit, then the image unit satisfies: there is only one image unit in the row where the image unit is located in the initial report template, and the unit width of the image unit is determined based on the width of the initial report template.

[0125] In another specific example, N is 2, that is, there are at most 2 image units in each row of the initial report template.

[0126] In yet another specific example, N is determined based on the lowest resolution of an image or the lowest resolution of human eyes.

[0127] Based on this, it is ensured that too many image units are not displayed in a single row, and the problem of too many image units displaying resulting in a reduction in the display area of ​​a single image unit is avoided; thereby improving the user's browsing experience.

[0128] It should be noted that the layout strategies corresponding to (10) to (15) above can be regarded as the layout relationship between the target unit and the report template (e.g., the initial report template). Other layout strategies can also be set in actual report generation, and this application does not make specific restrictions on this. Based on this, the layout of each target unit in the initial report template is more in line with the specification, thereby improving the user experience.

[0129] S102. Determine the layout parameters of each target unit according to the preset layout strategy of each target unit and the data size of the data to be filled in each target unit. The data to be filled includes thermal imaging image data and / or thermal imaging text data. At least one target unit includes an image unit for filling the thermal imaging image data and / or a text unit for filling the thermal imaging text data.

[0130] The data to be filled may also include other types of data, such as text data manually input by the user, a visible light image corresponding to a thermal image, other images manually added by the user, text data used to describe the content in the image obtained after recognizing the thermal image and / or visible light image, etc.

[0131] The layout strategy preset for the target unit may refer to the description in the above step S101.

[0132] The layout parameters at least include: unit size and / or unit position. The unit size includes at least one of the following: unit area, unit width, and unit height. The unit position may refer to the center position coordinates of the template unit, or the upper left corner position coordinates of the template unit, or other position parameters for positioning the template unit, which are not specifically limited in this application.

[0133] In some embodiments, step S102 includes: determining the cell size of each target cell according to the data scale of the data to be filled in each target cell and the preset layout strategy of each target cell; determining the cell position of each target cell according to the cell size of each target cell and the preset layout strategy of each target cell.

[0134] Based on this, the cell size can be determined first, and then the cell position can be determined; thus, the cell size can be guaranteed to meet the specifications first, and then the cell position of each target cell can be rearranged according to the cell size.

[0135] Exemplarily, taking the case where at least one target unit includes an image unit and a text unit located in the same row of the initial report template, and the image unit is associated with the text unit, then: the above-mentioned determination of the cell size of each target unit according to the data scale of the data to be filled in each target unit and the preset layout strategy of each target unit includes: when the layout strategy includes that the cell width of the image unit and the cell width of the text unit associated with the image unit satisfy a preset cell width ratio, determining the cell size of the text unit and the cell size of the image unit according to the preset cell width ratio, the data scale of the text data to be filled in the text unit, and the number of images to be filled in the image unit; the above-mentioned determination of the cell position of each target unit according to the cell size of each target unit and the preset layout strategy of each target unit includes: when the preset layout strategy of the target unit also includes that the row position of the target unit in the initial report template remains unchanged, rearranging the image unit and the text unit in the same row according to the size of the image unit and the size of the text unit to obtain the cell position of the image unit and the cell position of the text unit.

[0136] Based on this, when the image unit and the text unit associated with the image unit are located in the same row, the unit size and unit position of the image unit and the text unit can be adaptively adjusted based on the number of images to be filled in the image unit and the data scale of the text data to be filled in the text unit, so that the layout of the image unit takes into account the layout of the text unit, thereby making the layout of each unit conform to the specifications, more beautiful, and improving the user experience.

[0137] In other embodiments, step S102 includes: determining the cell position of each target cell according to a preset layout strategy of each target cell; determining the cell size of each target cell according to the cell position of each target cell and the data scale of the data to be filled in each target cell.

[0138] Exemplarily, when the preset layout strategy of the target unit includes the layout strategy described in (15) above, if N is 2, and there are 4 image units in the same row of the initial report template, then based on the layout strategy described in (15) above, the above 4 image units will be arranged in two rows, and then the row position of each image unit will be determined; further, the unit size of each image unit is determined respectively according to the row position of each image unit and the data scale of the data to be filled in each image unit.

[0139] Based on this, the unit position can be determined first, and then the unit size can be determined; thus, the unit position can be guaranteed to meet the specifications first, and then the unit size can be adjusted at the appropriate position for re-layout.

[0140] In some embodiments, step S102 includes: determining the initial position of each target unit in the initial report template as the unit position of each target unit; determining the unit size of each target unit according to the unit position of each target unit, the data scale of the data to be filled in each target unit and the preset layout strategy of each target unit.

[0141] Based on this, the initial position of each target unit in the initial report template is directly used as the unit position; on the one hand, the unit position can be directly determined according to the initial position of each target unit set by the user in the initial report template to flexibly meet the different needs of users; on the other hand, the step of determining the unit position is eliminated, thereby improving the report generation efficiency.

[0142] S103 , generating a thermal imaging report according to the layout parameters of each target unit and the data to be filled in each target unit.

[0143] In some embodiments, step S103 includes: readjusting the layout of each target unit in the initial report template according to the layout parameters of each target unit; and importing the data to be filled in each target unit into the corresponding target unit after the adjustment to generate a report.

[0144] It should be understood that the above-mentioned readjustment of the layout of each target unit in the initial report template can be understood as making an adaptive layout adjustment based on the initial report template to obtain a new report template. For example, step S103 includes: based on the layout parameters of each target unit, resetting the layout of each target unit in the initial report template to obtain a revised report template; importing the data to be filled in each target unit into each target unit in the revised report template to generate a report. Therefore, based on the generation of a single initial report template, different types of data can be adaptively generated to generate different revised report templates and generate reports.

[0145] In some embodiments, the formats supported by the report generated by the present application include secondary editable document formats, for example, including but not limited to at least one of the following: PPT, PDF, HTML, ODT, DOC, DOCX, MARKDOWN.

[0146] It should be understood that since the report generation method provided by the present application has high constraints (such as the above-mentioned preset layout strategy), it is possible to export multiple types of editable documents from one report, thereby broadening the means of document editing and improving the storage value and sharing value of documents. In the case of sharing the generated report, only the document can be delivered without delivering the software used to generate the report or requiring the recipient to install the software.

[0147] The report generation method provided by the present application can, on the one hand, adaptively determine the layout of each target unit in the report template based on the preset layout strategy of each target unit in the initial report template and the data to be filled in each target unit, so that the generated thermal imaging report can adapt to different data, thereby improving the flexibility and universality of thermal imaging report generation; on the other hand, only a single report template needs to be generated to adaptively determine the layout parameters for the report data, without the need for the user to layout one by one, thereby improving the efficiency of thermal imaging report generation; on the other hand, since the initial report template is a template including the target unit selected by the user from multiple preset template units, the template generation is more flexible than the template with a fixed format, thereby improving the flexibility of report generation. Based on this, the efficiency and flexibility of report generation are taken into account, and the universality of thermal imaging report generation is improved.

[0148] In some embodiments, the method further includes: re-executing step S102, i.e. returning to step S102, when any of the following conditions is met: detecting that the layout parameters and / or formal parameters of any of the target units are modified; detecting that the data imported by any of the target units is modified.

[0149] It should be understood that, considering that the data imported by the target unit is modified (for example, data is added), the formal parameters of the target unit are modified (for example, the font size or paragraph spacing is changed), or the layout parameters of the target unit are modified, the overall layout of the initial report template may be affected, so the layout parameters of each target unit can be determined again to re-adaptively layout. Based on this, it can be ensured that the overall standardization of the report is not affected when the data imported by the target unit is modified, the formal parameters of the target unit are modified, or the layout parameters of the target unit are modified; and the layout parameters of each target unit can be re-determined automatically without the user having to adjust them one by one, thereby improving the efficiency of report generation.

[0150] Furthermore, to avoid unnecessary re-layout when the modification of formal parameters (such as modification of font color) does not affect the layout, the above method may include: upon detecting that the formal parameters of any target unit are modified and the modification of the formal parameters of the target unit affects the layout of the target unit, returning to the above step S102; or, upon detecting that the layout parameters of any target unit are modified and the modification of the layout parameters of the target unit affects the layout of the target unit, returning to the above step S102; or, upon detecting that the data imported by any target unit are modified and the data modification affects the layout of the target unit, returning to the above step S102.

[0151] In some embodiments, the above method also includes: displaying a template unit pool, the template unit pool includes multiple operable preset template units; the above obtaining the initial report template includes: based on user operation instructions (such as template unit addition instructions), selecting at least one target unit from multiple preset template units and inserting it into the template generation area; based on the at least one target unit inserted in the template generation area, generating the initial report template.

[0152] Furthermore, the above method also includes, based on a user operation instruction (such as a template unit deletion instruction), deleting the selected target unit in the initial report template to regenerate the initial report template.

[0153] Based on this, on the one hand, the initial report template is generated based on at least one target unit inserted by the user in the template generation area, rather than selecting a fixed template, thereby improving the flexibility of template generation, and further improving the flexibility of thermal imaging report generation. On the other hand, the generation of thermal imaging reports can be realized based on visual editing, and the generation of report templates and the adaptive layout of each template unit can be realized through the user's operation in the template generation area, thereby improving the efficiency of thermal imaging report generation.

[0154] In some embodiments, when it is necessary to generate multiple reports for multiple groups of report data, the above step S102 may include: determining the data to be filled in each target unit corresponding to each group of report data according to each group of report data in the multiple groups of report data; determining the layout parameters of each target unit corresponding to each group of report data according to the preset layout strategy of each target unit and the data to be filled in each target unit corresponding to each group of report data; the above step S103 may include: resetting the layout of each target unit corresponding to each group of report data in the initial report template according to the layout parameters of each target unit corresponding to each group of report data, and obtaining a revised report template corresponding to each group of report data; importing the data to be filled in each target unit corresponding to each group of report data into each target unit in the revised report template corresponding to each group of report data, and generating a report corresponding to each group of report data.

[0155] Based on this, when multiple groups of reports need to be generated, the present application only needs to generate an initial report template once, and can adaptively adjust the template according to different report data and generate reports, which is conducive to rapid batch generation of reports and improves the efficiency of report generation.

[0156] In order to more clearly illustrate the report generation method provided by the present application, a specific example is used below to illustrate. The report generation method provided by the present application comprises the following steps:

[0157] Step 1: Display a template unit pool, where the template unit pool includes a plurality of operable preset template units.

[0158] Each template unit has a preset layout strategy.

[0159] In some embodiments, the type of the template unit includes at least one of the following: an image unit, a text unit, a table unit, a formula unit, a matrix unit, and a page unit.

[0160] In some embodiments, template elements of the same type have the same formal parameters.

[0161] Furthermore, the formal parameters of all units of the same type can be modified by modifying the formal parameters of a single target unit, which is conducive to quickly modifying the format of units of the same type, and is conducive to maintaining the consistency of the style of the units in the entire report, thereby improving the efficiency and standardization of the report.

[0162] Step 2: Based on a user operation instruction (eg, a template unit adding instruction), at least one target unit is selected from a plurality of preset template units and inserted into the template generation area.

[0163] Step 3: Generate an initial report template based on at least one target unit inserted in the template generation area.

[0164] Step 4: Acquire an initial report template, where the initial report template includes at least one target unit selected by a user from a plurality of preset template units.

[0165] Step 5: Determine the layout parameters of each target unit according to the preset layout strategy of each target unit and the data size of the data to be filled in each target unit.

[0166] In some embodiments, when it is detected that the formal parameters of any target unit are modified, step five is repeated.

[0167] Step 6: Generate a report based on the layout parameters of each target unit and the data to be filled in each target unit.

[0168] Based on this, on the one hand, the layout of each target unit in the report template can be adaptively determined based on the preset layout strategy of each target unit in the initial report template and the data to be filled in each target unit, so that the generated thermal imaging report can adapt to different data, improving the flexibility and universality of thermal imaging report generation; on the other hand, only a single report template needs to be generated to adaptively determine the layout parameters for the report data, without the need for the user to layout one by one, thereby improving the efficiency of thermal imaging report generation; on the other hand, since the initial report template is a template that includes the target unit selected by the user from multiple preset template units, the template generation is more flexible than the template with a fixed format, thereby improving the flexibility of thermal imaging report generation. Based on this, the efficiency and flexibility of thermal imaging report generation are taken into account, and the universality of thermal imaging report generation is improved.

[0169] In summary, Figure 3 A schematic diagram of a scenario of generating a thermal imaging report by the method provided by the present application is shown. On the left side of the figure is a template unit pool, in which the corresponding identifiers of various template units are displayed. Figure 3 The corresponding template in the middle has been set up. Users can use Figure 3 The controls in the middle are used to view existing templates, modify existing templates, create new templates, etc. Users can modify the units included in the template by operating the identifiers corresponding to various template units in the template unit pool. Figure 3 If the user selects Template 1, Figure 3 The right side shows the thermal imaging report generated based on Template 1.

[0170] It can be seen that the above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the embodiment of the present application provides a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0171] like Figure 4 As shown, the embodiment of the present application provides a report generation device for executing the report generation method provided by the present application. The report generation device includes: a template acquisition module 310, a template modification module 320 and a report generation module 330. In some embodiments, the report generation device also includes a unit display module 340.

[0172] The template acquisition module is used to acquire an initial report template of a thermal imaging report; the initial report template includes at least one target unit selected by a user from a plurality of preset template units, and each preset template unit has a preset layout strategy.

[0173] The template modification module 320 is used to determine the layout parameters of each target unit according to the preset layout strategy of each target unit and the data size of the data to be filled in each target unit. The data to be filled includes thermal imaging image data and / or thermal imaging text data. At least one target unit includes an image unit for filling thermal imaging image data and / or a text unit for filling thermal imaging text data.

[0174] The report generation module 330 is used to generate a thermal imaging report according to the layout parameters of each target unit and the data to be filled in each target unit.

[0175] In some embodiments, the template modification module 320 is specifically used to perform at least one of the following: determine the cell size of each target cell according to the data scale of the data to be filled in each target cell and the preset layout strategy of each target cell; determine the cell position of each target cell according to the cell size of each target cell and the preset layout strategy of each target cell; determine the cell position of each target cell according to the preset layout strategy of each target cell; determine the cell size of each target cell according to the cell position of each target cell and the data scale of the data to be filled in each target cell; determine the initial position of each target cell in the initial report template as the cell position of each target cell; determine the cell size of each target cell according to the cell position of each target cell, the data scale of the data to be filled in each target cell and the preset layout strategy of each target cell.

[0176] In some embodiments, the at least one target unit includes an image unit and a text unit located in the same row of the initial report template, and the image unit is associated with the text unit; the template modification module 320 is specifically used to determine the cell size of the text unit and the cell size of the image unit according to the preset cell width ratio, the data scale of the text data to be filled in the text unit, and the number of images to be filled in the image unit when the layout strategy includes that the cell width of the image unit and the cell width of the text unit associated with the image unit satisfy the preset cell width ratio; when the preset layout strategy of the target unit also includes that the row position of the target unit in the initial report template remains unchanged, the image unit and the text unit are rearranged in the same row according to the size of the image unit and the size of the text unit to obtain the cell position of the image unit and the cell position of the text unit.

[0177] In some embodiments, the template modification module 320 is further used to receive a formal parameter modification instruction, where the formal parameter modification instruction is used to instruct to modify the formal parameter of a first unit in at least one target unit from a first formal parameter to a second formal parameter; in response to the formal parameter modification instruction, the formal parameters of each target unit of the same type as the first unit in at least one target unit are modified from the first formal parameter to the second formal parameter.

[0178] In some embodiments, the template modification module 320 is also used to re-determine the layout parameters of each target unit based on the preset layout strategy of each target unit and the data size of the data to be filled in each target unit when any of the following conditions are met: it is detected that the layout parameters and / or formal parameters of any target unit are modified; it is detected that the data imported by any target unit is modified.

[0179] In some embodiments, the unit display module 340 is used to display a template unit pool, which includes multiple operable preset template units; the template acquisition module 310 is specifically used to select at least one target unit from multiple preset template units and insert it into the template generation area based on user operation instructions; and generate an initial report template based on at least one target unit inserted in the template generation area.

[0180] It should be noted that Figure 4 The division of modules in the example is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or software function modules.

[0181] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application also provides a structural schematic diagram of an electronic device. Figure 5 As shown, the electronic device 400 includes: a processor 402 and a bus 404. Optionally, the electronic device may further include a memory 401; and optionally, the electronic device may further include a communication interface 403.

[0182] The processor 402 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the present application. The processor 402 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the present application. The processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0183] The communication interface 403 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0184] The memory 401 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0185] As a possible implementation, the memory 401 may exist independently of the processor 402, and the memory 401 may be connected to the processor 402 via a bus 404 for storing instructions or program codes. When the processor 402 calls and executes the instructions or program codes stored in the memory 401, the report generation method provided in the embodiment of the present application can be implemented.

[0186] In another possible implementation, the memory 401 may also be integrated with the processor 402 .

[0187] The bus 404 may be an extended industry standard architecture (EISA) bus, etc. The bus 404 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0188] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above.

[0189] The present application embodiment also provides a computer-readable storage medium. All or part of the processes in the above method embodiment can be completed by computer instructions to indicate the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. The computer-readable storage medium can be any of the above embodiments or memory. The above computer-readable storage medium can also be the above external storage device based on the electronic device, such as the plug-in hard disk equipped on the above electronic device, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. Further, the above computer-readable storage medium can also include both the internal storage unit and / or the external storage device of the above electronic device. In addition, the computer-readable storage medium can be used to store other programs and data required for the computer program product and the above electronic device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0190] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute any one of the report generation methods provided in the above embodiments. The computer program product may also be referred to as report editing software, report generation software, or report editor.

[0191] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. The term "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in mutually different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0192] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0193] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A report generation method, characterized in that: The method comprises: Acquire an initial report template of a thermal imaging report, wherein the initial report template includes at least one target unit selected by a user from a plurality of preset template units, each of the template units having a preset layout strategy; Determining the layout parameters of each target unit according to a preset layout strategy of each target unit and the data size of the data to be filled in each target unit, wherein the data to be filled includes thermal imaging image data and / or thermal imaging text data, and the at least one target unit includes an image unit for filling the thermal imaging image data and / or a text unit for filling the thermal imaging text data; The thermal imaging report is generated according to the layout parameters of each target unit and the data to be filled in each target unit.

2. The method according to claim 1, characterized in that Template units of the same type have the same formal parameters, which include: style parameters and / or format parameters; the method further includes: receiving a formal parameter modification instruction, wherein the formal parameter modification instruction is used to instruct to modify a formal parameter of a first unit in the at least one target unit from a first formal parameter to a second formal parameter; In response to the formal parameter modification instruction, the formal parameters of each target unit of the at least one target unit that is of the same type as the first unit are modified from the first formal parameter to the second formal parameter.

3. The method according to claim 1, characterized in that The layout parameters at least include a unit position and a unit size; the layout parameters of each target unit are determined according to the layout strategy preset for each target unit in the initial report template and the data size of the data to be filled in each target unit, including at least one of the following: Determine the unit size of each target unit according to the data size of the data to be filled in each target unit and the preset layout strategy of each target unit; determine the unit position of each target unit according to the unit size of each target unit and the preset layout strategy of each target unit; Determine the unit position of each target unit according to the preset layout strategy of each target unit; determine the unit size of each target unit according to the unit position of each target unit and the data scale of the data to be filled in each target unit; The initial position of each target unit in the initial report template is determined as the unit position of each target unit; the unit size of each target unit is determined according to the unit position of each target unit, the data scale of the data to be filled in each target unit and the preset layout strategy of each target unit.

4. The method according to claim 3, characterized in that The at least one target unit includes an image unit and a text unit located in the same row of the initial report template, and the image unit is associated with the text unit; and the unit size of each target unit is determined according to the data scale of the data to be filled in each target unit and the preset layout strategy of each target unit, including: In the case where the layout strategy includes that the unit width of the image unit and the unit width of the text unit associated with the image unit satisfy a preset unit width ratio, determining the unit size of the text unit and the unit size of the image unit according to the preset unit width ratio, the data size of the text data to be filled in the text unit and the number of images to be filled in the image unit; Determining the unit position of each target unit according to the unit size of each target unit and the preset layout strategy of each target unit includes: The preset layout strategy of the target unit also includes rearranging the image unit and the text unit in the same row according to the size of the image unit and the size of the text unit to obtain the unit position of the image unit and the unit position of the text unit, when the row position of the target unit in the initial report template remains unchanged.

5. The method according to claim 1, characterized in that The preset layout strategy of the target unit includes at least one of the following: A first type of layout strategy, wherein the first type of layout strategy is used to indicate a constraint relationship satisfied by the target cell itself after the data to be filled in the target cell is imported into the target cell; A second type of layout strategy, wherein the second type of layout strategy is used to indicate a constraint relationship between the target cell and other cells included in the initial report template after the data to be filled in the target cell is imported into the target cell; The third type of layout strategy is used to indicate the constraint relationship between the target unit and the initial report template after the data to be filled in the target unit is imported into the target unit.

6. The method according to claim 5, characterized in that The first type of layout strategy includes at least one of the following: After the data to be filled in the target unit is imported into the target unit, the position occupied by the data to be filled in the target unit does not exceed the target unit; After the data to be filled in the target unit is imported into the target unit, the formal parameters of the data to be filled in the target unit are consistent with the formal parameters preset in the target unit; After the data to be filled in the target unit is imported into the target unit, the area proportion of the data to be filled in the target unit is within a preset proportion range.

7. The method according to claim 5, characterized in that The second type of layout strategy includes at least one of the following: In the case where the target cell is a template cell inserted in a table cell, the layout parameters of the target cell are determined based on the layout parameters of the table cell; When the target cell is a template cell inserted in a table cell, and there is a second cell in the table cell that is of the same type as the target cell and is located in an adjacent row of the same column or an adjacent column of the same row as the target cell, the target cell and the second cell have the same cell size; When the target unit is an image unit, and there is a text unit associated with the image unit in the at least one target unit, a unit width of the image unit and a unit width of the text unit satisfy a preset unit width ratio, and / or a unit height of the image unit and a unit height of the text unit satisfy a preset unit height ratio; In the case where the target unit is an image unit, and there is a text unit associated with the image unit in the at least one target unit, the text unit is located in a next line of the image unit; In a case where the target cell is an image cell inserted in a table cell, and a text cell associated with the image cell exists in an adjacent column of the table cell, the cell size of the image cell is determined based on the cell size of the text cell; In the case where the target unit is an image unit, and a matrix unit associated with the image unit exists in the at least one target unit, the matrix unit is located in adjacent rows and / or adjacent columns of the image unit; A cell distance between the target cell and other cells in the at least one target cell is not less than a preset distance threshold.

8. The method according to claim 5, characterized in that The third type of layout strategy includes at least one of the following: The row position and / or column position of the target unit in the initial report template remains unchanged; In the case where there are multiple target units in a row of the initial report template, the arrangement order of the target units in the row remains unchanged; In the case where there is only one target cell in a row of the initial report template, the cell width of the target cell is determined based on the width of the initial report template; In the case where there are multiple target cells of the same type in a row of the initial report template, the cell widths of the multiple target cells of the same type are the same and are determined based on the width of the initial report template; There are at most N image units in each row of the initial report template, where N is a positive integer.

9. The method according to claim 1, characterized in that: The types of the template unit include at least one of the following: an image unit, a text unit, a table unit, a formula unit, a matrix unit and a page unit; wherein, other units except the page unit are allowed to be inserted into the table unit and the page unit.

10. The method according to claim 1, characterized in that The method further comprises: When any of the following conditions is met, the layout parameters of each target unit are determined again according to the preset layout strategy of each target unit and the data size of the data to be filled in each target unit: detecting that layout parameters and / or form parameters of any of the target cells are modified; It is detected that the data imported by any of the target units is modified.

11. The method according to claim 1, characterized in that: The method further comprises: Displaying a template unit pool, wherein the template unit pool includes the plurality of operable preset template units; The initial report template for obtaining the thermal imaging report includes: Based on the user operation instruction, selecting at least one target unit from the plurality of preset template units and inserting it into the template generation area; The initial report template is generated based on the at least one target unit inserted in the template generation area.

12. A report generating device, characterized in that: include: A template acquisition module is used to obtain an initial report template of a thermal imaging report; The initial report template includes at least one target unit selected by a user from a plurality of preset template units, each of the preset template units having a preset layout strategy; a template modification module, configured to determine layout parameters of each target unit according to a preset layout strategy of each target unit and a data size of data to be filled in each target unit, wherein the data to be filled includes thermal imaging image data and / or thermal imaging text data, and the at least one target unit includes an image unit for filling in the thermal imaging image data and / or a text unit for filling in the thermal imaging text data; The report generating module is used to generate the thermal imaging report according to the layout parameters of each target unit and the data to be filled in each target unit.

13. An electronic device, characterized in that: include: a processor and a memory for storing instructions executable by the processor; The processor is configured to execute the instructions so that the electronic device performs the report generating method as described in any one of claims 1-11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the report generating method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the report generating method according to any one of claims 1 to 11.

Citation Information

Cited By

  • Voice text association method and device, electronic equipment and storage medium

    CN120853576A