Simulation automation post-processing picture generation method and device, equipment and medium

By automatically processing view angle parameters, adjusting scene view and size, and generating target post-processing pictures, the problem of image differences caused by manual input is solved, and the consistency of image quality and system automation level is improved.

CN120449227APending Publication Date: 2025-08-08ZHEJIANG LEAPMOTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510490879.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the post-processed pictures relying on manual input viewing angle parameters to acquire post-processed pictures have problems such as error, inconsistency, inefficiency and standardized execution, which affects image quality and analysis accuracy.

Method used

Automatically determine the viewing angle parameters based on the component-based spatial matrix, adjust the scene view and size, respond to the screenshot frame size input by the user, automatically adjust the color bar position and size, and generate the target post-processing picture.

Benefits of technology

The unity and accuracy of perspective parameters are achieved, the consistency of image quality and the level of system automation are improved, the differences caused by manual intervention are reduced, and the accuracy and efficiency of image generation are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120449227A_ABST
    Figure CN120449227A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of simulation processing, and discloses a simulation automation post-processing picture generation method and device, equipment and a medium, and the method comprises the steps: determining a visual angle parameter based on an obtained space matrix of a part; wherein the space matrix represents the range of the part in the three-dimensional space; adjusting the scene view based on the visual angle parameter, and determining a part size corresponding to the part according to the scene view size of the adjusted scene view; determining a preset content box size in response to a screenshot box size input by a user, and adjusting the preset content box size based on the component size to obtain a target content box size; and adjusting the position and the size of the color bar according to the size of the screenshot box and the size of the target content box so as to generate a target post-processing picture corresponding to the part. According to the technical scheme provided by the invention, the post-processing picture can be automatically generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation processing technology, and in particular to a method, device, equipment and medium for generating simulation automated post-processing images. Background Art

[0002] In current engineering applications, the reliance on manual input of viewing angle parameters when obtaining post-processed images presents multiple challenges, including manual operation errors, parameter inconsistency, inefficiency, and regulatory compliance issues. These challenges lead to inconsistent image quality, affect the accuracy of subsequent analysis and decision-making, and reduce work efficiency.

[0003] Therefore, how to eliminate manual intervention, realize the automatic calculation and unified management of viewing parameters, and thus automatically generate post-processed images, is a problem that needs to be solved urgently. Summary of the Invention

[0004] The present application provides a method, device, equipment and medium for generating simulated automated post-processing images, which achieves the technical effect of automatically generating post-processing images.

[0005] In order to achieve the above objectives, the main technical solutions adopted in this application include: In a first aspect, an embodiment of the present application provides a method for generating a simulation automated post-processing image, the method comprising: Determining a viewing angle parameter based on the acquired spatial matrix of the component; wherein the spatial matrix represents the range of the component in three-dimensional space; Adjusting the scene view based on the viewing angle parameter, and determining a component size corresponding to the component according to a scene graph size of the adjusted scene view; Determining a preset content frame size in response to a screenshot frame size input by a user, and adjusting the preset content frame size based on the component size to obtain a target content frame size; According to the screenshot frame size and the target content frame size, the position and size of the color bar are adjusted to generate a target post-processing image corresponding to the component.

[0006] This embodiment provides a method for generating simulated automated post-processing images. By automatically determining the viewing angle parameters based on the spatial matrix of the components, manual input errors are eliminated, thereby ensuring the uniformity and accuracy of the viewing angle parameters. The image consistency is further ensured by adjusting the scene view and determining the component size based on the adjusted scene graph size. The preset content frame size is automatically determined and adjusted based on the screenshot frame size input by the user to ensure the accuracy and consistency of the post-processed image. Finally, the position and size of the color bar are adjusted according to the screenshot frame and the target content frame size to generate the target post-processing image, successfully realizing the automated calculation of the viewing angle of the post-processing image, solving the problem of image differences caused by manual input of viewing angle parameters, and improving the consistency of image quality and the automation level of the system.

[0007] In one embodiment, the viewing angle parameters include a viewing angle origin, a viewing angle focus, a viewing angle coordinate system, and an upward direction vector; and determining the viewing angle parameters based on the acquired component space matrix includes: Obtaining a spatial matrix of a component and determining an average value corresponding to the spatial matrix of the component as the viewing angle origin; determining the viewing angle focus according to the viewing angle origin and a preset viewing angle direction vector; wherein the viewing angle direction vector represents a direction from the viewing angle origin to the viewing angle focus; Creating the viewing angle coordinate system based on the viewing angle direction vector; Determine the upward direction vector corresponding to the viewing angle coordinate system.

[0008] This embodiment automatically obtains the spatial matrix of the component and calculates the perspective origin, combines the preset perspective direction vector to determine the perspective focus, and finally generates an accurate perspective coordinate system. In this way, not only is the consistency of the perspective guaranteed each time the rendering is rendered, errors caused by manual input are avoided, but also the efficiency and accuracy of image processing are improved. The technical effect of this method is that it can automatically process the perspective parameters, thereby ensuring that the perspective of the acquired image is unified and stable, greatly reducing the inconsistency problems caused by manual intervention, especially in complex three-dimensional space scenes, ensuring more accurate and higher-quality image output.

[0009] In one embodiment, the viewing angle parameter includes a viewing angle coordinate system; and adjusting the scene view based on the viewing angle parameter includes: Determining a characteristic length of the component in the viewing angle coordinate system; wherein the characteristic length represents a projection length of the component in the viewing angle coordinate system; determining a scaling ratio of the component based on the characteristic length; The viewing angle of the input scene view is adjusted according to the viewing angle parameter and the scaling ratio to obtain the adjusted scene view.

[0010] This embodiment automatically calculates the projected size of a component in the image by determining its characteristic length in the view coordinate system. It then automatically determines the component's scale based on this characteristic length, ensuring it is a reasonable size in the final image. Finally, it automatically adjusts the input scene view using the view parameters and scale, generating a consistent and predictable adjusted image. This process not only increases the automation level of image processing but also effectively avoids inconsistencies caused by manual manipulation, ensuring consistent visual quality every time a view is generated.

[0011] In one embodiment, the component size includes a component width and a component height; and determining the component size corresponding to the component based on the adjusted scene graph size of the scene view includes: Obtaining a scene graph size of the adjusted scene view; wherein the scene graph size includes a scene graph width and a scene graph height; Determining the component height of the component according to the scene graph height and a preset screen ratio; The component width of the component is determined according to the component height and the characteristic length of the component in the viewing angle coordinate system of the viewing angle parameter.

[0012] This embodiment obtains the scene graph dimensions of the adjusted scene view, including the scene graph width and scene graph height. It then determines the component height based on the scene graph height and a preset screen ratio. Finally, it automatically calculates the component width based on the component's characteristic length and height in the view coordinate system. This automated process ensures consistent size and proportions for each generated image, eliminating inconsistencies caused by manual settings and making image generation more accurate and efficient.

[0013] In one embodiment, the method further comprises: When the perspective origin in the perspective parameters is not at the center point of the adjusted scene view, the perspective origin and the perspective focus in the perspective parameters are adjusted to offset the component.

[0014] In one embodiment, adjusting the perspective origin and the perspective focus in the perspective parameters to offset the component includes: Determining unit length vectors of the viewing angle coordinate system in different directions in the viewing angle parameter, and determining a unit vector in a default coordinate system based on the unit length vector; Determining the characteristic length of the component in the viewing coordinate system; Based on the unit vector, characteristic length and offset value coordinates input by the user, the offset vector in the default coordinate system is determined; according to the offset vector, the perspective origin and perspective focus in the perspective parameters are adjusted to obtain the adjusted perspective origin and adjusted perspective focus to offset the component.

[0015] This embodiment further derives the unit vector in the default coordinate system by determining the unit length vector in different directions in the perspective coordinate system, providing accurate directional data for subsequent calculations. Then, the characteristic length of the component in the perspective coordinate system is determined, which lays the foundation for the calculation of the offset. Based on the unit vector, characteristic length and the offset value coordinates input by the user, the offset vector in the default coordinate system is calculated. This step automates the offset calculation process. Finally, according to the calculated offset vector, the perspective origin and perspective focus are accurately adjusted to achieve the translation offset of the component. This process can automatically calculate and process perspective changes, effectively avoiding the problem of image differences caused by the traditional method of relying on manual input parameters, and ensuring that the perspective and image generated each time remain consistent and accurate.

[0016] In one embodiment, the screenshot frame size includes a screenshot frame aspect ratio of the screenshot frame; the preset content frame size includes a preset content frame width, a preset content frame height, and a preset content frame aspect ratio of the content frame; and determining the preset content frame size in response to a screenshot frame size input by a user includes: Obtaining a scene graph size of the adjusted scene view; wherein the scene graph size includes a scene graph width and a scene graph height; Determining a scene graph aspect ratio according to the scene graph width and the scene graph height; In response to a screenshot frame size input by a user, if the aspect ratio of the screenshot frame is less than or equal to the aspect ratio of the scene graph, determining a first screenshot frame height of the screenshot frame as the scene graph height; and determining a first screenshot frame width of the screenshot frame as a product of the first screenshot frame height and the aspect ratio of the screenshot frame divided by a preset optimization parameter; The first screenshot frame width is determined to be the preset content frame width, the first screenshot frame height is determined to be the preset content frame height, and the screenshot frame aspect ratio is determined to be the preset content frame aspect ratio.

[0017] This embodiment can accurately understand the actual size of the current scene graph by obtaining the scene graph size (including the scene graph width and height) of the adjusted scene view. By calculating the aspect ratio of the scene graph, the aspect ratio of the scene graph can be clarified, which provides a basis for subsequent screenshot frame adjustments. In response to the screenshot frame size input by the user, when the screenshot frame aspect ratio set by the user is less than or equal to the scene graph aspect ratio, the screenshot frame height is automatically set to the scene graph height. To ensure that the screenshot frame aspect ratio is not stretched or compressed, the screenshot frame width is adjusted to ensure that the screenshot frame matches the scene graph. Through this process, not only is the size of the screenshot frame automatically adjusted, but preset optimization parameters are also added to avoid excessive cropping or inappropriate proportions, further optimizing the visual effect. Finally, the adjusted screenshot frame size is set to the size of the preset content frame, and the aspect ratio of the screenshot frame remains unchanged. In this way, the entire process ensures that the screenshot frame input by the user is always consistent with the scene graph, without the need for manual parameter input, thereby avoiding differences caused by human adjustment.

[0018] In one embodiment, the method further comprises: In response to a screenshot frame size input by a user, if the aspect ratio of the screenshot frame is greater than the aspect ratio of the scene graph, determining a second screenshot frame width of the screenshot frame as a ratio of the scene graph width to a preset optimization parameter; and determining a second screenshot frame height of the screenshot frame as a ratio of the second screenshot frame width to the screenshot frame aspect ratio; The second screenshot frame width is determined to be the preset content frame width, the second screenshot frame height is determined to be the preset content frame height, and the screenshot frame aspect ratio is determined to be the preset content frame aspect ratio.

[0019] In this embodiment, when responding to the screenshot frame size input by the user, if the aspect ratio of the screenshot frame is greater than the aspect ratio of the scene graph, the screenshot frame size is automatically adjusted to ensure its visual consistency with the scene graph. Specifically, the second screenshot frame width of the screenshot frame is first determined as the ratio of the scene graph width to the preset optimization parameter, and then its height is adjusted according to the screenshot frame aspect ratio to ensure that the size of the screenshot frame does not have stretching or compression problems. In addition, the second screenshot frame width and the second screenshot frame height are adjusted to the width and height of the preset content frame, respectively, and the screenshot frame aspect ratio is set to the preset content frame aspect ratio. This automatic calculation and adjustment process avoids the trouble of engineers manually entering parameters in traditional methods, thereby eliminating the differences caused by manual adjustments, making the perspective and size of the final generated picture more consistent, ensuring the accuracy of the image and the optimization of the visual effect.

[0020] In one embodiment, adjusting the preset content frame size based on the component size to obtain a target content frame size includes: Generate component width and component height corresponding to the component under viewing angle parameters; Determining the aspect ratio of the component according to the component width and the component height; The preset content frame size is adjusted according to the component aspect ratio to obtain the target content frame size including the actual content frame width, the actual content frame height and the actual content frame aspect ratio.

[0021] This embodiment automatically generates the width and height of components at different viewing angles, effectively reducing the problems caused by manual manipulation. Next, based on the generated component width and height, its aspect ratio is calculated to ensure that the component's dimensions meet the expected proportions. Finally, the preset content frame dimensions are adjusted based on the component's aspect ratio to obtain the actual content frame width, height, and aspect ratio. This ensures that the resulting target content frame has accurate and consistent dimensions at all viewing angles, improving the consistency and accuracy of image processing.

[0022] In one embodiment, the adjusting the preset content frame size according to the component aspect ratio to obtain the target content frame size including an actual content frame width, an actual content frame height, and an actual content frame aspect ratio includes: if a ratio of the preset content frame aspect ratio to the component aspect ratio is less than or equal to a preset ratio threshold, determining the actual content frame width as the preset content frame width, and determining the actual content frame height as the ratio of the actual content frame width to the component aspect ratio; An actual content frame aspect ratio is determined according to the actual content frame width and the actual content frame height.

[0023] In this embodiment, when the ratio of the preset content box aspect ratio to the component aspect ratio is less than or equal to the preset ratio threshold, the width and height of the actual content box are automatically determined. Specifically, the actual content box width will be consistent with the preset content box width, while the actual content box height will be adjusted according to the component aspect ratio to ensure that its height and width ratio are reasonable. This automated adjustment process avoids the traditional method of relying on engineers and reduces image differences caused by human factors. Then, the aspect ratio of the actual content box is calculated based on the width and height of the actual content box to ensure the size consistency of the final content box under various viewing angles. This automatic calculation and post-processing method effectively improves the accuracy and consistency of image processing.

[0024] In one embodiment, the method further comprises: When the ratio of the preset content box aspect ratio to the component aspect ratio is greater than the preset ratio threshold, the actual content box height is determined as the product of the preset content box height and the preset ratio threshold, and the actual content box width is determined as the product of the actual content box height and the component aspect ratio.

[0025] In one embodiment, adjusting the position and size of the color bar according to the screenshot frame size and the target content frame size includes: Determining the color bar width of the color bar as the component width; Determine the color bar height of the color bar as the product of the screenshot frame height and a preset adjustment threshold; Determine, based on the color bar width and the scene graph width, the ratio of the upper left corner of the color bar to the β-axis of the perspective coordinate system in the perspective parameter; wherein the β-axis represents the left direction vector axis; According to the screenshot frame height, the color bar height and the actual content frame height, the upper left corner of the color bar position and the υ axis ratio of the perspective coordinate system in the perspective parameter are determined; wherein the υ axis represents the upward direction vector axis.

[0026] This embodiment ensures that the color bar width is consistent with the actual component size by setting the color bar width to the component width. The color bar height is automatically determined based on the screenshot frame height and a preset adjustment threshold, avoiding manual intervention. The position ratio of the color bar on the β axis of the viewing coordinate system is calculated based on the color bar width and the scene graph width to ensure that the color bar is correctly aligned in the horizontal direction. By calculating the position ratio of the color bar on the υ axis of the viewing coordinate system, its precise vertical positioning is ensured. This series of automated calculation and adjustment methods effectively eliminates the image differences that may be caused by manually inputting parameters, achieving accurate and consistent image perspectives.

[0027] In a second aspect, an embodiment of the present application provides a simulation automated post-processing image generation device, the device comprising: a viewing angle parameter determination unit, configured to determine a viewing angle parameter based on an acquired spatial matrix of a component; wherein the spatial matrix represents the range of the component in three-dimensional space; a component size determining unit, configured to adjust the scene view based on the viewing angle parameter, and determine a component size corresponding to the component according to a scene graph size of the adjusted scene view; a content frame size determining unit, configured to determine a preset content frame size in response to a screenshot frame size input by a user, and adjust the preset content frame size based on the component size to obtain a target content frame size; The color bar adjustment unit allows the user to adjust the position and size of the color bar according to the screenshot frame size and the target content frame size to generate a target post-processing image corresponding to the component.

[0028] In a third aspect, an embodiment of the present application provides a computer device, including: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the above-mentioned simulation automated post-processing image generation method by executing the computer instructions.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the above-mentioned simulation automated post-processing image generation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] Figure 1 A flowchart of a method for generating a simulation automated post-processing image provided in an embodiment of the present application; Figure 2 Flowchart of step S1 provided in the embodiment of the present application; Figure 3 A flowchart of adjusting a scene view based on viewing angle parameters provided in an embodiment of the present application; Figure 4 A flowchart for determining component sizes corresponding to components provided in an embodiment of the present application; Figure 5 A flowchart of offsetting components provided in an embodiment of the present application; Figure 6 A flowchart of determining a preset content frame size in response to a screenshot frame size input by a user according to an embodiment of the present application; Figure 7 A flowchart of adjusting the preset content frame size based on the component size to obtain the target content frame size provided in an embodiment of the present application; Figure 8 Flowchart of step S535 provided in an embodiment of the present application; Figure 9 Flowchart of step S7 provided in the embodiment of the present application; Figure 10 A core scalar post-processing image provided for the application embodiment; Figure 11 A post-processed image of the y-axis cross section of the cabin provided for the application embodiment; Figure 12 A block diagram of a simulation automated post-processing image generation device provided in an embodiment of the present application; Figure 13 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 those skilled in the art without making creative efforts shall fall within the scope of protection of this application.

[0033] In current engineering applications, obtaining post-processed images often requires manual input of parameters, particularly viewing angle parameters. While this approach can meet the needs to a certain extent, it also introduces several potential problems. Specifically, traditional manual input of viewing angle parameters has the following issues: 1. Human operation error Due to human oversight or misunderstandings when engineers input viewpoint parameters, variations in the resulting images can occur. This human error can directly impact the accuracy of post-processing results, especially in scenarios requiring precise calculations and high-quality image acquisition. For example, if different engineers define "viewpoint" differently, or if errors are made during actual operation due to negligence, the viewpoint of the post-processed images will be inconsistent, impacting image quality and data comparability.

[0034] 2. Parameter inconsistency Even for the same engineer, perspective parameters may vary due to differences in operating environment, tool usage, or understanding of standard operating procedures. Especially in teamwork, differences in operating habits and understanding among different engineers can lead to inconsistent parameter input. This inconsistency can result in multiple images captured in the same scene having different perspectives, affecting the accuracy of subsequent analysis, comparison, and decision-making.

[0035] 3. Efficiency issues Traditional solutions require manual parameter input, increasing the workload for engineers. This not only consumes a significant amount of their time and energy but can also delay project progress. This is especially true during high-frequency image acquisition and post-processing, where manual parameter input is required each time, increasing the workload and reducing the overall automation level of the system.

[0036] 4. Issues with regulatory enforcement In multi-project, multi-team engineering applications, even with standardized naming and operational procedures, the actual implementation of these standards can be problematic. In particular, varying levels of understanding and implementation among different teams and engineers can lead to inconsistent naming and even different parameter input methods. Even with standardized naming templates, uniform post-processing results cannot be guaranteed, hindering subsequent work.

[0037] In order to solve the above technical problems, according to an embodiment of the present application, an embodiment of a simulation automated post-processing image generation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] In this embodiment, a simulation automation post-processing image generation method is provided. Figure 1 This is a flowchart of a simulation automation post-processing image generation method provided in an embodiment of the present application, such as Figure 1 As shown, the process includes the following steps: Step S1, determining the viewing angle parameter based on the acquired spatial matrix of the component; wherein the spatial matrix represents the range of the component in the three-dimensional space.

[0039] Specifically, the spatial matrix of a component refers to the geometric range of the component in three-dimensional space, usually composed of the minimum coordinate (X min ,Y min ,Z min ) and the maximum coordinate (X max ,Y max ,Z max) definition. The space matrix provides the boundary information of the component, which is used to determine the viewing angle parameters to ensure that the generated image can fully display the component. The viewing angle parameters include the viewing origin, viewing focus, upward direction vector, scaling ratio, etc. These parameters together define the position, direction and viewing angle range of the camera or observer. The viewing origin is the position of the camera in three-dimensional space, and is usually selected as the center point of the component space matrix. The viewing focus is the target point that the camera or observer is observing, and is usually selected as a point that is offset a certain distance from the viewing origin along a certain direction (such as the Z-axis direction). The upward direction vector defines the "up" direction in the viewing coordinate system, and is usually selected as a unit vector parallel to the Z-axis. The scaling ratio is used to control the size of the component in the generated image to ensure that the component occupies the appropriate proportion in the image.

[0040] Step S3: adjusting the scene view based on the viewing angle parameter, and determining the component size corresponding to the component according to the scene graph size of the adjusted scene view.

[0041] Specifically, the scene view is adjusted according to the viewing angle parameters to ensure that the generated image meets user needs. The component size refers to the display size of the component in the adjusted scene view, including the component width and component height. By determining the characteristic length of the component in the viewing angle coordinate system, its projected size in the image is automatically calculated; the scaling ratio of the component is automatically determined based on the characteristic length to ensure its reasonable size in the final image; the input scene view is automatically adjusted using the viewing angle parameters and scaling ratio to generate a consistent and expected adjusted image. By obtaining the scene graph size of the adjusted scene view, including the scene graph width and scene graph height; then confirming the component height based on the scene graph height and the preset screen ratio, and finally automatically calculating the component width based on the characteristic length and component height of the component in the viewing angle coordinate system.

[0042] Step S5 : determining a preset content frame size in response to the screenshot frame size input by the user, and adjusting the preset content frame size based on the component size to obtain a target content frame size.

[0043] Specifically, by obtaining the scene graph size (including the scene graph width and height) of the adjusted scene view, the actual size of the current scene graph can be accurately understood. By calculating the aspect ratio of the scene graph, the aspect ratio of the scene graph can be clarified. In response to the screenshot frame size input by the user, when the screenshot frame aspect ratio set by the user is less than or equal to the scene graph aspect ratio, the screenshot frame height is automatically set to the scene graph height. In order to ensure that the screenshot frame aspect ratio is not stretched or compressed, the screenshot frame width is adjusted to ensure that the screenshot frame matches the scene graph. Finally, the adjusted screenshot frame size is set to the size of the preset content frame, and the aspect ratio of the screenshot frame remains unchanged.

[0044] By automatically generating component widths and heights at different viewing angles, the aspect ratio is calculated based on the generated component widths and heights, ensuring that the component's dimensions meet the expected proportions. Finally, the preset content box dimensions are adjusted based on the component's aspect ratio to determine the actual content box's width, height, and aspect ratio. This ensures that the resulting target content box has accurate and consistent dimensions at all viewing angles, improving the consistency and accuracy of image processing.

[0045] Step S7: adjusting the position and size of the color bar according to the screenshot frame size and the target content frame size to generate a target post-processing image corresponding to the component.

[0046] Specifically, the color bar width is set to the component width to ensure that it matches the actual component size. The color bar height is automatically determined based on the screenshot frame height and a preset adjustment threshold, eliminating manual intervention. The color bar's position ratio on the β axis of the view coordinate system is calculated based on the color bar width and the scene graph width to ensure correct horizontal alignment of the color bar. The color bar's position ratio on the υ axis of the view coordinate system is calculated to ensure its precise vertical positioning.

[0047] It's important to note that the scene view, generated by the simulation software after adjustment, reflects the visual effects of the current scene and serves as the basis for generating the final screenshot. The screenshot frame is the user-defined range within which the screenshot is generated, defined by the screenshot frame dimensions entered by the user. The content frame is a dynamically adjusted rectangular area used to place the actual visual content, i.e., the displayed components. The content frame ensures that the visual content occupies the appropriate proportions and position within the generated screenshot.

[0048] This embodiment provides a method for generating simulated automated post-processing images. By automatically determining the viewing angle parameters based on the spatial matrix of the components, manual input errors are eliminated, thereby ensuring the uniformity and accuracy of the viewing angle parameters. The image consistency is further ensured by adjusting the scene view and determining the component size based on the adjusted scene graph size. The preset content frame size is automatically determined and adjusted based on the screenshot frame size input by the user to ensure the accuracy and consistency of the post-processed image. Finally, the position and size of the color bar are adjusted according to the screenshot frame and the target content frame size to generate the target post-processing image, successfully realizing the automated calculation of the viewing angle of the post-processing image, solving the problem of image differences caused by manual input of viewing angle parameters, and improving the consistency of image quality and the automation level of the system.

[0049] Figure 2 In the flowchart of step S1 provided in the embodiment of the present application, the viewing angle parameters include the viewing angle origin, the viewing angle focus, the viewing angle coordinate system, and the upward direction vector; the process may include the following steps: Step S11: obtaining a spatial matrix of the component, and determining an average value corresponding to the spatial matrix of the component as the view origin.

[0050] Specifically, the geometric range of the component in three-dimensional space is obtained, usually by the minimum coordinate (X min ,Y min ,Z min ) and the maximum coordinate (X max ,Y max ,Z max ) definition. Use the space matrix function, the input is an element or a collection, the element is a component, and the output is a space matrix {X min ,Y min ,Z min ,X max ,Y max ,Z max}. Calculate the center point mid(x,y,z) of the space matrix, which is the geometric center of the component, that is, (X min +X max ) / 2,(Y min +Y max ) / 2,(Z min +Z max ) / 2, and use it as the perspective origin (x0, y0, z0). The perspective origin represents the position of the camera (or observer) in three-dimensional space, and mid(x, y, z) is used as the reference point for perspective calculation.

[0051] Step S13: determining the viewing focus according to the viewing origin and a preset viewing direction vector; wherein the viewing direction vector represents the direction from the viewing origin to the viewing focus.

[0052] Specifically, the view direction vector is the direction from the view origin to the view focal point, typically represented as a three-dimensional vector (i, j, k). It defines the viewing direction, or the direction in which you're looking. The view direction vector can be predefined or derived from user input. The view focal point (x1, y1, z1) is obtained by adding the view origin (x0, y0, z0) and the view direction vector (i, j, k).

[0053] Step S15: Create a viewing angle coordinate system based on the viewing angle direction vector.

[0054] Specifically, the view coordinate system is a local coordinate system with the view origin (x0, y0, z0) as the origin, the view direction vector α = (i, j, k) as the X-axis, the left direction vector β = (m, n, v) as the Y-axis, and the upward direction vector υ = (a, b, c) as the Z-axis.

[0055] Step S17: Determine the upward direction vector corresponding to the viewing angle coordinate system.

[0056] Specifically, given the known value α, solve for β and υ. Add the constraint that the leftward vector β is parallel to the XY plane, meaning that the Z component of β is 0, or v = 0. This simplifies the calculation by ensuring that β lies on the XY plane. The vectors α, β, and υ are perpendicular to each other and satisfy the following conditions: i×m+j×n=0(α⊥β) and the solution is (m=j,n=-i) or (m=-j,n=i); m×a+n×b=0(β⊥υ) Solving for (a=i,b=j) or (a=-i,b=-j); i×a+j×b+k×c=0(α⊥υ) Solving it yields (a=i, b=j) or (a=-i, b=-j); According to the right-hand rule, the coordinate system must satisfy the condition υ=α×β; that is, the vector υ is the cross product of the vectors α and β, and the solution is (a=-k×n, b=k×m, c=i×nj×m); substituting the solution value of α⊥β above; we can get (a=i×k, b=j×k, c=-(i 2 +j 2 )) or (a=-i×k, b=-j×k, c=i 2 +j 2 ), add the restriction condition c>0, and the unique solution can be screened out: the left direction vector β=(-j,i,0), the upward direction vector υ=(-i×k,-j×k,i 2 +j 2 ).

[0057] This embodiment automatically obtains the spatial matrix of the component and calculates the perspective origin, combines the preset perspective direction vector to determine the perspective focus, and finally generates an accurate perspective coordinate system. In this way, not only is the consistency of the perspective guaranteed each time the rendering is rendered, errors caused by manual input are avoided, but also the efficiency and accuracy of image processing are improved. The technical effect of this method is that it can automatically process the perspective parameters, thereby ensuring that the perspective of the acquired image is unified and stable, greatly reducing the inconsistency problems caused by manual intervention, especially in complex three-dimensional space scenes, ensuring more accurate and higher-quality image output.

[0058] Figure 3 This is a flowchart of adjusting a scene view based on viewing angle parameters provided in an embodiment of the present application. The viewing angle parameters include a viewing angle coordinate system. The flowchart may include the following steps: Step S311 , determining the characteristic length of the component in the viewing angle coordinate system; wherein the characteristic length represents the projection length of the component in the viewing angle coordinate system.

[0059] Specifically, determine the characteristic length of the component in the viewing coordinate system, which usually refers to the size of the component on the projected two-dimensional image (for example, the difference between the maximum and minimum values projected onto the Z axis of the viewing coordinate system). By calling the report generation function, the maximum and minimum values of the component in the viewing coordinate system (for example, the Z axis) are obtained. These values describe the projection range of the component on the Z axis. The characteristic length is calculated by obtaining the maximum and minimum values on the coordinate axis (for example, the Z axis), and then using their difference to represent the size of the component. Here, the characteristic length = Z max -Z min .

[0060] It should be noted that the operating logic of calling the report creation function here is the input parameters: report type, scalar type, read element, report name, and coordinate axis. Based on the input report type, the report creation function is called. Based on the input report type, the report creation function calls the corresponding sub-function, such as the average report generation function, the maximum report generation function, etc., and passes the input parameters to the sub-function. Taking the average report generation function as an example: the sub-function sets the scalar content of the report based on the input scalar type. Different processing is performed according to the scalar type: if the scalar type is temperature or pressure, the scalar is set directly. If the scalar type is speed, the speed direction needs to be distinguished. If the scalar type is position, it is necessary to determine whether a coordinate system has been entered.

[0061] Processing speed and position scalars: Velocity scalar: If the input coordinate axis is empty, the speed is read.

[0062] If an axis is entered, read the velocity component along that axis.

[0063] Position scalar: If a coordinate system is input, read the position on the X axis of the input coordinate system.

[0064] If no coordinate system is entered, the position on the X axis of the default coordinate system is read.

[0065] Finally, the report name is modified according to the report name entered by the user, and the created report is output.

[0066] Step S313: Determine the scaling ratio of the component based on the characteristic length.

[0067] Specifically, the size of the components in the generated image is dynamically adjusted based on the feature length and the preset screen ratio, ensuring that the components occupy an appropriate proportion of the image. Scaling ratio = 0.5 × (feature length / 1000) / preset screen ratio, where the preset screen ratio represents the proportion of the component in the generated image. Specifically, preset screen ratio = component height / scene image height, preferably 1.

[0068] Step S315 , adjusting the viewing angle of the input scene view using the viewing angle parameter and the scaling ratio to obtain an adjusted scene view.

[0069] Specifically, the viewing angle parameters include the viewing angle origin, viewing angle focal point, upward direction vector, and scaling ratio. These parameters collectively define the position, orientation, and viewing angle range of the camera or observer. These parameters determine how the camera or observer observes the scene and how the three-dimensional scene is projected onto a two-dimensional image. The input scene view is the starting point for adjustment, and by adjusting the viewing angle parameters and scaling ratio, it is converted to the desired view. The adjusted scene view is the view after the viewing angle parameters and scaling ratio have been adjusted. Specifically, the adjusted viewing angle parameters and scaling ratio are input into the simulation software's API to generate the adjusted scene view.

[0070] This embodiment automatically calculates the projected size of a component in the image by determining its characteristic length in the view coordinate system. It then automatically determines the component's scale based on this characteristic length, ensuring it is a reasonable size in the final image. Finally, it automatically adjusts the input scene view using the view parameters and scale, generating a consistent and predictable adjusted image. This process not only increases the automation level of image processing but also effectively avoids inconsistencies caused by manual manipulation, ensuring consistent visual quality every time a view is generated.

[0071] Figure 4 A flowchart for determining component dimensions corresponding to a component provided in an embodiment of the present application, wherein the component dimensions include component width and component height; the flowchart may include the following steps: Step S331 , obtaining the adjusted scene graph size of the scene view; wherein the scene graph size includes the scene graph width and the scene graph height.

[0072] Step S333: Determine the component height of the component according to the scene graph height and the preset screen ratio.

[0073] Step S335 , determining the component width of the component according to the component height and the characteristic length of the component in the viewing angle coordinate system of the viewing angle parameter.

[0074] Specifically, the scene graph size includes the scene graph width and the scene graph height, which represent the size of the adjusted scene view. The component width is calculated based on the scene graph width and the characteristic length of the component in the perspective coordinate system. Specifically, component width = component height × (Y-axis characteristic length of the perspective coordinate system / Z-axis characteristic length of the perspective coordinate system). The method for obtaining the characteristic length is consistent with step S311. Here, the maximum and minimum values of the component on the Y-axis of the perspective coordinate system are obtained. The Y-axis characteristic length of the perspective coordinate system = Y max -Y min , get the maximum and minimum values of the component on the Z axis of the view coordinate system, the Z axis characteristic length of the view coordinate system = Z max -Z min The component height is calculated based on the scene graph height and the preset screen ratio. Component height = scene graph height × preset screen ratio.

[0075] This embodiment obtains the scene graph dimensions of the adjusted scene view, including the scene graph width and scene graph height. It then determines the component height based on the scene graph height and a preset screen ratio. Finally, it automatically calculates the component width based on the component's characteristic length and height in the view coordinate system. This automated process ensures consistent size and proportions for each generated image, eliminating inconsistencies caused by manual settings and making image generation more accurate and efficient.

[0076] In one embodiment, the method further includes: when the perspective origin in the perspective parameters is not at the center point of the adjusted scene view, adjusting the perspective origin and the perspective focus in the perspective parameters to offset the component.

[0077] Specifically, the position of the view origin directly affects the center position of the generated image. If the view origin is not at the center, the generated image may be offset, causing the component to be off-center. By adjusting the view origin and view focus, you can move the component to the desired position and ensure a reasonable layout in the generated image.

[0078] Figure 5 A flowchart for offsetting components provided in an embodiment of the present application may include the following steps: Step S351, determining the unit length vectors of the perspective coordinate system in different directions in the perspective parameters, and determining the unit vector in the default coordinate system based on the unit length vector.

[0079] Specifically, according to the view coordinate system (α, β, υ) obtained in the above steps, the unit length vector is calculated. The unit length vector is a vector with a length of 1 and is used to represent the direction. Taking α as an example, the corresponding unit length vector α1=α / ‖α‖=(i / (i 2 +j 2 +k2 ) 1 / 2 ,j / (i 2 +j 2 +k 2 ) 1 / 2 ,k / (i 2 +j 2 +k 2 ) 1 / 2 ), the unit length vectors of β and υ can be deduced by analogy and will not be described here.

[0080] Convert the unit length vector to the unit vector in the default coordinate system. The unit vector of α1 in the default coordinate system = (α1.get(0), α1.get(1), α1.get(2)), the unit vector of β1 in the default coordinate system = (β1.get(0), β1.get(1), β1.get(2)), and the unit vector of υ1 in the default coordinate system = (υ1.get(0), υ1.get(1), υ1.get(2)).

[0081] Step S353: determine the characteristic length of the component in the viewing coordinate system.

[0082] Specifically, similar to step S311 , the three distances of the component along the α, β, and υ axes in the viewing coordinate system can be calculated and recorded as length_α, length_β, and length_υ.

[0083] Step S355 : determining the offset vector in the default coordinate system based on the unit vector, the characteristic length, and the offset value coordinate input by the user.

[0084] Specifically, coordinate offsets require input of offset value coordinates (lr, ud), where both lr and ud are in the range of (-1, 1): lr represents the left-right offset (-1 for the leftmost side of the component and 1 for the rightmost side), and ud represents the top-bottom offset (-1 for the bottom of the component and 1 for the top). Offsets essentially translate the origin or focus in the view coordinate system along each coordinate axis, recorded as an offset vector: The offset vector on the X-axis of the default coordinate system is: -length_β / 2*lr*β1.get(0)+length_υ / 2*ud*υ1.get(0) The offset vector on the Y axis of the default coordinate system: -length_β / 2*lr*β1.get(1)+length_υ / 2*ud*υ1.get(1) The offset vector on the Z axis of the default coordinate system: -length_β / 2*lr*β1.get(2)+length_υ / 2*ud*υ1.get(2) It should be noted that, since the leftmost side of the bias coordinate is -1 and the rightmost side is 1, and the direction is opposite to the leftward vector, the coefficient of β in the above bias vector is a negative number.

[0085] Step S357: Adjust the perspective origin and perspective focus in the perspective parameters according to the offset vector to obtain the adjusted perspective origin and adjusted perspective focus to offset the component.

[0086] Specifically, the origin coordinates after offset: (x0-length_β / 2*lr*β1.get(0)+length_υ / 2*ud*υ1.get(0), y0-length_β / 2*lr*β1.get(1)+length_υ / 2*ud*υ1.get(1), z0-length_β / 2*lr*β1.get(2)+length_υ / 2*ud*υ1.get(2)) Focus coordinates after offset: (x1-length_β / 2*lr*β1.get(0)+length_υ / 2*ud*υ1.get(0), y1-length_β / 2*lr*β1.get(1)+length_υ / 2*ud*υ1.get(1), z1-length_β / 2*lr*β1.get(2)+length_υ / 2*ud*υ1.get(2)) This embodiment further derives the unit vector in the default coordinate system by determining the unit length vector in different directions in the perspective coordinate system, providing accurate directional data for subsequent calculations. Then, the characteristic length of the component in the perspective coordinate system is determined, which lays the foundation for the calculation of the offset. Based on the unit vector, characteristic length and the offset value coordinates input by the user, the offset vector in the default coordinate system is calculated. This step automates the offset calculation process. Finally, according to the calculated offset vector, the perspective origin and perspective focus are accurately adjusted to achieve the translation offset of the component. This process can automatically calculate and process perspective changes, effectively avoiding the problem of image differences caused by the traditional method of relying on manual input parameters, and ensuring that the perspective and image generated each time remain consistent and accurate.

[0087] Figure 6A flowchart of determining a preset content frame size in response to a screenshot frame size input by a user is provided in an embodiment of the present application. The screenshot frame size includes the screenshot frame aspect ratio of the screenshot frame; the preset content frame size includes the preset content frame width, preset content frame height, and preset content frame aspect ratio of the content frame. The flowchart may include the following steps: Step S511 , obtaining the adjusted scene graph size of the scene view; wherein the scene graph size includes the scene graph width and the scene graph height.

[0088] Step S513: Determine the scene graph aspect ratio according to the scene graph width and the scene graph height.

[0089] Specifically, by calling the API of the simulation software, the scene graph width and scene graph height of the adjusted scene view are obtained, and the scene graph aspect ratio is calculated as: scene graph width / scene graph height.

[0090] Step S515, in response to the screenshot frame size input by the user, when the screenshot frame aspect ratio is less than or equal to the scene graph aspect ratio, the first screenshot frame height of the screenshot frame is determined as the scene graph height; the first screenshot frame width of the screenshot frame is determined as the product of the first screenshot frame height and the screenshot frame aspect ratio divided by a preset optimization parameter.

[0091] Step S517 : determining the first screenshot frame width as the preset content frame width, the first screenshot frame height as the preset content frame height, and the screenshot frame aspect ratio as the preset content frame aspect ratio.

[0092] Specifically, if the screenshot frame aspect ratio is less than or equal to the scene graph aspect ratio, in order to ensure that the size of the screenshot frame matches the size of the scene graph and avoid the screenshot content being cropped or stretched, set the first screenshot frame height to the scene graph height. This ensures that the screenshot frame height matches the scene graph height. Figure 1 To avoid the screenshot frame height being too small or not matching the scene graph. The first screenshot frame width of the screenshot frame is determined as the product of the first screenshot frame height and the screenshot frame aspect ratio divided by the preset optimization parameter: first screenshot frame width = (first screenshot frame height × screenshot frame aspect ratio) / preset optimization parameter, where the preset optimization parameter is preferably 1.1 to ensure that the screenshot frame fits the size of the scene graph as much as possible without stretching. The first screenshot frame width is used as the preset content frame width, the first screenshot frame height is used as the preset content frame height, and the screenshot frame aspect ratio is used as the preset content frame aspect ratio.

[0093] This embodiment can accurately understand the actual size of the current scene graph by obtaining the scene graph size (including the scene graph width and height) of the adjusted scene view. By calculating the aspect ratio of the scene graph, the aspect ratio of the scene graph can be clarified, which provides a basis for subsequent screenshot frame adjustments. In response to the screenshot frame size input by the user, when the screenshot frame aspect ratio set by the user is less than or equal to the scene graph aspect ratio, the screenshot frame height is automatically set to the scene graph height. To ensure that the screenshot frame aspect ratio is not stretched or compressed, the screenshot frame width is adjusted to ensure that the screenshot frame matches the scene graph. Through this process, not only is the size of the screenshot frame automatically adjusted, but preset optimization parameters are also added to avoid excessive cropping or inappropriate proportions, further optimizing the visual effect. Finally, the adjusted screenshot frame size is set to the size of the preset content frame, and the aspect ratio of the screenshot frame remains unchanged. In this way, the entire process ensures that the screenshot frame input by the user is always consistent with the scene graph, without the need for manual parameter input, thereby avoiding differences caused by human adjustment.

[0094] In one embodiment, the method further includes: in response to a screenshot frame size input by a user, when the screenshot frame aspect ratio is greater than the scene graph aspect ratio, determining a second screenshot frame width of the screenshot frame as a ratio of the scene graph width to a preset optimization parameter; determining a second screenshot frame height of the screenshot frame as a ratio of the second screenshot frame width to the screenshot frame aspect ratio; determining the second screenshot frame width as a preset content frame width, determining the second screenshot frame height as a preset content frame height, and determining the screenshot frame aspect ratio as a preset content frame aspect ratio.

[0095] Specifically, if the screenshot frame aspect ratio input by the user is greater than the scene graph aspect ratio, the second screenshot frame width is set to the ratio of the scene graph width to the preset optimization parameter. Second screenshot frame width = scene graph width / preset optimization parameter. The second screenshot frame height is set to the ratio of the second screenshot frame width to the screenshot frame aspect ratio. Second screenshot frame height = second screenshot frame width / screenshot frame aspect ratio. The preset optimization parameter here is preferably 1.1 to ensure that the screenshot frame adapts to the size of the scene graph as much as possible without stretching. The second screenshot frame width is determined to be the preset content frame width, the second screenshot frame height is determined to be the preset content frame height, and the screenshot frame aspect ratio is determined to be the preset content frame aspect ratio.

[0096] In this embodiment, when responding to the screenshot frame size input by the user, if the aspect ratio of the screenshot frame is greater than the aspect ratio of the scene graph, the screenshot frame size is automatically adjusted to ensure its visual consistency with the scene graph. Specifically, the second screenshot frame width of the screenshot frame is first determined as the ratio of the scene graph width to the preset optimization parameter, and then its height is adjusted according to the screenshot frame aspect ratio to ensure that the size of the screenshot frame does not have stretching or compression problems. In addition, the second screenshot frame width and the second screenshot frame height are adjusted to the width and height of the preset content frame, respectively, and the screenshot frame aspect ratio is set to the preset content frame aspect ratio. This automatic calculation and adjustment process avoids the trouble of engineers manually entering parameters in traditional methods, thereby eliminating the differences caused by manual adjustments, making the perspective and size of the final generated picture more consistent, ensuring the accuracy of the image and the optimization of the visual effect.

[0097] Figure 7 The flowchart of adjusting the preset content frame size based on the component size to obtain the target content frame size provided in the embodiment of the present application may include the following steps: Step S531: Generate component width and component height corresponding to the component under the viewing angle parameters.

[0098] Step S533: Determine the aspect ratio of the component according to the component width and the component height.

[0099] Step S535 : adjusting the preset content frame size according to the component aspect ratio to obtain a target content frame size including the actual content frame width, the actual content frame height, and the actual content frame aspect ratio.

[0100] Specifically, steps S331-S335 are called to generate the component width and component height. The component aspect ratio is calculated based on the ratio of the component width to the component height. Component aspect ratio = component width / component height. Based on the component aspect ratio and the required content box adjustments, the new content box width, height, and aspect ratio are calculated.

[0101] This embodiment automatically generates the width and height of components at different viewing angles, effectively reducing the problems caused by manual manipulation. Next, based on the generated component width and height, its aspect ratio is calculated to ensure that the component's dimensions meet the expected proportions. Finally, the preset content frame dimensions are adjusted based on the component's aspect ratio to obtain the actual content frame width, height, and aspect ratio. This ensures that the resulting target content frame has accurate and consistent dimensions at all viewing angles, improving the consistency and accuracy of image processing.

[0102] Figure 8 The flowchart of step S535 provided in the embodiment of the present application may include the following steps: Step S5351: When the ratio of the preset content box aspect ratio to the component aspect ratio is less than or equal to the preset ratio threshold, the actual content box width is determined as the preset content box width, and the actual content box height is determined as the ratio of the actual content box width to the component aspect ratio.

[0103] Specifically, if the ratio of the preset content box aspect ratio to the component aspect ratio is less than or equal to a preset ratio threshold (e.g., 0.76), the actual content box width is set to the preset content box width, and the actual content box height is set to the ratio of the actual content box width to the component aspect ratio. That is, the actual content box width = the preset content box width, and the actual content box height = the actual content box width / the component aspect ratio.

[0104] Step S5353: Determine the actual content frame aspect ratio based on the actual content frame width and the actual content frame height.

[0105] Specifically, the actual content box aspect ratio = actual content box width / actual content box height. In one embodiment, the method also includes: when the ratio of the preset content box aspect ratio to the component aspect ratio is greater than a preset ratio threshold, determining the actual content box height as the product of the preset content box height and the preset ratio threshold, and determining the actual content box width as the product of the actual content box height and the component aspect ratio.

[0106] Specifically, if the ratio of the preset content box aspect ratio to the component aspect ratio is greater than a preset ratio threshold (e.g., 0.76), the actual content box height is set to the product of the preset content box height and the preset ratio threshold, and the actual content box width is set to the product of the actual content box height and the component aspect ratio. Actual content box height = preset content box height × preset ratio threshold, actual content box width = actual content box height × component aspect ratio.

[0107] In this embodiment, when the ratio of the preset content box aspect ratio to the component aspect ratio is less than or equal to the preset ratio threshold, the width and height of the actual content box are automatically determined. Specifically, the actual content box width will be consistent with the preset content box width, while the actual content box height will be adjusted according to the component aspect ratio to ensure that its height and width ratio are reasonable. This automated adjustment process avoids the traditional method of relying on engineers and reduces image differences caused by human factors. Then, the aspect ratio of the actual content box is calculated based on the width and height of the actual content box to ensure the size consistency of the final content box under various viewing angles. This automatic calculation and post-processing method effectively improves the accuracy and consistency of image processing.

[0108] Figure 9 The flowchart of step S7 provided in the embodiment of the present application may include the following steps: Step S71: Determine the color bar width of the color bar as the component width.

[0109] Step S73: Determine the color bar height of the color bar as the product of the screenshot frame height and a preset adjustment threshold.

[0110] Step S75 , determining the ratio of the upper left corner of the color bar to the β-axis of the perspective coordinate system in the perspective parameters according to the color bar width and the scene graph width; wherein the β-axis represents the left direction vector axis.

[0111] Step S77, determining the ratio of the upper left corner of the color bar to the υ axis of the viewing angle coordinate system in the viewing angle parameters according to the screenshot frame height, the color bar height and the actual content frame height; wherein the υ axis represents the upward direction vector axis.

[0112] Specifically, the color bar width = component width, the color bar height = screenshot frame height × preset adjustment threshold (e.g., 0.12), the left side of the upper left corner of the color bar's position in the perspective coordinate system β axis ratio = (1-color bar width / scene graph width) / 2, ensuring that the color bar is horizontally centered within the screenshot frame. The upper left corner of the color bar's position in the perspective coordinate system υ axis ratio = (0.5×screenshot frame height-0.45×actual content frame height-color bar height) / screenshot frame height, ensuring that the color bar is correctly positioned vertically.

[0113] This embodiment ensures that the color bar width is consistent with the actual component size by setting the color bar width to the component width. The color bar height is automatically determined based on the screenshot frame height and a preset adjustment threshold, avoiding manual intervention. The position ratio of the color bar on the β axis of the viewing coordinate system is calculated based on the color bar width and the scene graph width to ensure that the color bar is correctly aligned in the horizontal direction. By calculating the position ratio of the color bar on the υ axis of the viewing coordinate system, its precise vertical positioning is ensured. This series of automated calculation and adjustment methods effectively eliminates the image differences that may be caused by manually inputting parameters, achieving accurate and consistent image perspectives.

[0114] Finally, enter the screen ratio = content frame scale ratio × actual content frame height / scene graph height, and set the upper and lower offset parameters to -0.2. The content frame scale ratio here is 0.8-1, and the default is 1. Call the simulation software API to output the image based on the input path, screenshot frame width, and screenshot frame height. Restore the color bar to its pre-screenshot state to prevent impact on subsequent operations.

[0115] It should be noted that the embodiments of this application also provide front-end window design, element acquisition, and element creation. Specifically: 1. Front-end window design Function: Provide users with an interactive interface that allows them to input parameters related to the simulation model.

[0116] Optional: Users can choose to skip the front-end input step. If skipped, the system will automatically read the simulation model results as post-processing parameters.

[0117] Input: Velocity and temperature range for scalar screenshots of the core surface.

[0118] The location of the cross-section screenshot.

[0119] speed and temperature range for each core.

[0120] Dynamically generate input boxes: Dynamically generate a corresponding number of input text boxes based on the number of cores in the simulation model.

[0121] Recommended range: Provide the maximum velocity and temperature values for the inlet and outlet of each core as input suggestions.

[0122] 2. Element Acquisition 1. Element classification: Divide the elements to be obtained into existing elements and newly created elements.

[0123] 2. Acquisition of existing elements: Element type judgment: Perform preliminary screening based on the element type (such as domain, surface, axis, etc.).

[0124] Spatial coordinate calculation: further confirm the element based on its spatial position (such as coordinates, direction, etc.).

[0125] Custom function implementation: Write a corresponding custom function for each element and obtain the element through function calls.

[0126] 3. Element creation: Dynamically create new elements (such as reports, scenes, planes, etc.) based on user needs or post-processing requirements.

[0127] Write a corresponding custom function for each newly created element and create the element through function calls.

[0128] a. Core domain collection acquisition function Get all regions: Step 1: Extract all existing regions from the 3D simulation model and generate a total set. This set includes all domains in the model (such as fluid domains, porous media domains, or solid domains, etc.).

[0129] Traverse the area: Step ②: Use a loop structure (such as for or while) to traverse each area in the total set one by one.

[0130] Determine the area type: Step 3: During the traversal process, obtain the type of each region and use the instanceof operator to determine whether the region belongs to a fluid domain, porous medium domain, or solid domain. If a match is found, add it to the target set.

[0131] Select a sorting method: Step 4: Select named sorting or spatial coordinate sorting according to the sorting method entered by the user.

[0132] Sorting logic: Name sorting: Step 5: Sort by the name of the core, from small to large.

[0133] Spatial coordinate sorting: Step ⑤.1: Call the core axial acquisition function (c) to obtain the axial direction of the core domain.

[0134] Step ⑤.2: Input the axial direction of the core domain and the core into the spatial coordinate acquisition function (i) to calculate the spatial coordinates of each core in the axial coordinate system.

[0135] Step ⑤.3: Sort the core domains in ascending order according to the spatial coordinates.

[0136] Output the sorted set: Step 6: Output the sorted core domain set for subsequent processing.

[0137] b. Function for obtaining the core inlet and outlet wind surfaces Get all boundaries: Step ①: Extract all boundaries (i.e., faces adjacent to the domain) from the input core domain.

[0138] Screening contact surface: Step 2: Filter out the contact surfaces related to airflow from all boundaries. These contact surfaces may be air inlet or outlet surfaces, but their specific identities cannot be distinguished at this time.

[0139] Get the core axis: Step 3: Call the core axial acquisition function (c) to determine the axial direction of the core domain. The axial direction is usually related to the flow direction of the airflow.

[0140] Calculate the spatial coordinates of the contact surface: Step ④: Input the axial direction of the core domain and the two contact surfaces into the spatial coordinate acquisition function (i) to calculate the coordinate values of the two contact surfaces in the core axial coordinate system.

[0141] Determine the air inlet and outlet: Step 5: Determine the inlet and outlet surfaces based on the coordinate values of the contact surface in the core axial coordinate system. The surface with the smaller coordinate value is the inlet surface, and the surface with the larger coordinate value is the outlet surface.

[0142] Output: Step 6: Put the judged inlet and outlet surfaces into a set in the order ({inlet surface, outlet surface}) and output it.

[0143] c. Core axial acquisition function Get the contact surface: Step 1: Extract one of the contact surfaces from the core domain. This contact surface can be the air inlet or outlet surface of the core.

[0144] Get the space matrix coordinates: Step ②: Call the spatial coordinate acquisition function (i) to calculate the spatial matrix coordinates of the contact surface and obtain its range in space, which is expressed as {X min ,Y min ,Z min ,X max ,Y max ,Z max}.

[0145] Calculate the core axial vector: Step ③: Calculate the axial vector of the core according to the spatial matrix coordinates. The calculation formula of the axial vector is {Z max -Z min ,0,X min -X max The formula here assumes that the axial direction of the core mainly changes along the Z direction or the X direction.

[0146] Generate a preset vector: Step 4: Preset 160 core angles, from 0° to 80°, divided by 0.5°. Generate 160 unit vectors based on these angles.

[0147] Compute the angle and choose the optimal vector: Step 5: Calculate the angle between the core axis vector and the 160 preset vectors. Select the preset vector with the smallest angle and assign it to the core axis vector. The vector with the smallest angle means it is closest to the actual core axis.

[0148] Create and output axes: Step 6: Create a coordinate axis based on the final core axis vector and use it as the output of the function.

[0149] d. Specify relative area component acquisition function To define a relative range: Step 1: Enter the relative range. For example, (-1, 1, -1, 1, -1, 1) represents the space matrix of the entire vehicle, and (-1, -0.2, -1, 1, -1, 0) represents the relative range of the front cabin of the car.

[0150] Get all the parts of the vehicle: Step ②: Extract information of all components from the vehicle model.

[0151] Get the component space coordinates: Step 3: Call the spatial coordinate acquisition function (i) to calculate the spatial coordinates of each component.

[0152] Filter vehicle parts: Step 4: Divide the components into wind tunnel surfaces and vehicle components. Exclude components with distances greater than 3000mm on the x, y, and z axes (these may be auxiliary components or irrelevant parts in the wind tunnel test). Determine the spatial matrix coordinates of the vehicle based on the maximum and minimum x, y, and z axis coordinates of the remaining vehicle components.

[0153] Calculate the absolute coordinate range: Step 5: Given the midpoint and vertex coordinates of the vehicle space matrix, combine the relative coordinates of the input relative range to convert the relative coordinates into absolute coordinate range.

[0154] Find matching parts: Step 6: Traverse the vehicle parts and search for parts whose spatial coordinates are within the above absolute coordinate range.

[0155] Output: Step 7: Group the found parts into a set and output them.

[0156] e. Report creation function Enter the parameters and call the total function: Step 1: Call the report creation function based on the report type, scalar type, read element, report name and coordinate axis input by the user.

[0157] Call the sub-function according to the report type: Step ②: The report creation function calls the corresponding sub-function according to the input report type, such as the average report generation function, the maximum report generation function, etc., and passes the input parameters to the sub-function.

[0158] Take the average value report generation function as an example: Step ③: The sub-function sets the scalar content of the report according to the input scalar type.

[0159] Set the scalar content: Step 4: Perform different processing according to the scalar type: If the scalar type is temperature or pressure, set the scalar directly.

[0160] If the scalar type is velocity, the velocity direction needs to be distinguished.

[0161] If the scalar type is position, it is necessary to determine whether a coordinate system is input.

[0162] Processing speed and position scalars: Step 5: Velocity scalar: If the input coordinate axis is empty, the speed is read.

[0163] If an axis is entered, read the velocity component along that axis.

[0164] Position scalar: If a coordinate system is input, read the position on the X axis of the input coordinate system.

[0165] If no coordinate system is entered, the position on the X axis of the default coordinate system is read.

[0166] Modify the report name and output: Step ⑥: Modify the report name according to the report name entered by the user and output the created report.

[0167] f. Scene creation function Create an empty scene and set the properties: Step 1: Create an empty scene object based on the scene name entered by the user.

[0168] Set the basic properties of the scene, including: Scene Background: Defines the background color or image of the scene.

[0169] Mapping mode: Set the mapping method of objects in the scene (such as texture mapping, color mapping, etc.).

[0170] Visibility: Set whether the scene is visible based on the input visibility parameters.

[0171] Output the created scene: Step 2: Return the created and configured scene object as output.

[0172] g. Display creation function Enter the parameters and call the total function: Step 1: Call the display generation function based on the parameters input by the user (display type, scalar type, scalar range, displayed elements, display name, display visibility, coordinate axis).

[0173] Call the sub-function according to the display type: Step ②: The display generation function calls the corresponding sub-function according to the input display type, such as the surface display generation function, contour display generation function, scalar display generation function, vector display generation function, and streamline display generation function, and passes all input parameters to the sub-function.

[0174] Note: Although surface and contour displays do not require scalar types, scalar ranges, and axes, all input parameters are still passed for uniform formatting.

[0175] Set the scalar field and scalar range: Step ③: For scalar displays, vector displays, and streamline displays, set the scalar field and scalar range according to the input scalar type.

[0176] Surface Displays and Contour Displays: Skip this step as they do not require scalar information.

[0177] Determine the type of display element: Step 4: Use instanceof to determine the specific type of the input display element (type is Object) (such as boundary, mesh surface, derivative). Based on the result, convert the element type to a type supported by the corresponding display and input it to the display.

[0178] Modify the display name and output: Step 5: Modify the name of the display according to the display name entered by the user, and return the created display element as output.

[0179] h. Plane creation function Call the simulation software API: Step 1: Create a plane object by calling the API interface provided by the simulation software.

[0180] Step 2: Pass the input plane origin, plane normal, and plane name information to the API interface.

[0181] Set the plane properties: Step 3: Set the position of the plane according to the input origin coordinates.

[0182] Step 4: Set the direction of the plane according to the input normal vector.

[0183] Step 5: Set the name of the plane according to the entered plane naming information.

[0184] Output plane elements: Step 6: Return the created and configured plane object as output.

[0185] i. Get spatial coordinate function Read the space matrix in the coordinate system: Step 1: Based on the input element or set, read its spatial matrix coordinates in the specified coordinate system (if a coordinate system is provided) or the default coordinate system.

[0186] Create a new coordinate system: Step 2: Create three new coordinate systems using the X, Y, and Z axes of the input coordinate system as the X-axis direction of the new coordinate system. Each new coordinate system is used to calculate the spatial extent in the X, Y, and Z directions.

[0187] Create a report of the minimum and maximum values of a position scalar: Step 3: Input the newly created coordinate system as a parameter to the report creation function (e) to generate the maximum and minimum value reports of the position scalar. Through these reports, we can get the {X min ,Y min ,Z min ,X max ,Y max ,Z max}.

[0188] Judging rationality: Step ④: Check whether the obtained spatial matrix coordinates are reasonable. If X max >X min , it is considered unreasonable and output {0,0,0,1,1,1}.

[0189] Output space matrix coordinates: Step ⑤: If the rationality check passes, the output space matrix coordinates {X min ,Y min ,Z min ,X max ,Y max ,Z max}.

[0190] 3. Output numerical table Step a: Create an empty two-dimensional string array Create a two-dimensional string array with 30 rows and 40 columns.

[0191] Initializes each position of the array to a space ("").

[0192] Define the two-dimensional string array as a global variable so that it can be accessed and modified in subsequent steps.

[0193] Step b: Read simulation results from the report In the previous step, various reports on the inlet and outlet of each core have been obtained, including: Mass flow reporting.

[0194] Average wind speed report.

[0195] Maximum wind speed report.

[0196] UI value report.

[0197] Average temperature report.

[0198] Maximum temperature reported.

[0199] The values reported by these simulation software are read through the API to obtain floating-point results.

[0200] Step c: Convert the floating point number result into a string and fill it into a two-dimensional array For the floating-point number result obtained in the previous step, use String.format("%.1f", floating-point number) to convert the floating-point number to a string with 1 (or n) decimal places.

[0201] Fill the converted string into the specified position of the two-dimensional string array.

[0202] Step d: Output CSV table Create an empty string all="".

[0203] Traverse a two-dimensional array and read each element row by row: Append each element to the string all, adding a comma (,) after each element.

[0204] When reading the last column of each line, an additional newline character (\n) is added.

[0205] After the traversal is completed, use BufferedWriter.write to output the string all to the CSV file in the specified path.

[0206] If the specified path does not exist, it will be created first.

[0207] The specific implementation of the present invention is described below in conjunction with specific application scenarios.

[0208] 1. Core scalar post-processing image logic: ① Obtain core-related elements In the element acquisition step, the core inlet and outlet wind surface acquisition function b is called to obtain the core inlet and outlet wind surfaces, the core axial acquisition function c is called to obtain the core axial direction, and the display creation function g is called to obtain the scalar display of the core inlet and outlet wind surfaces.

[0209] ②Adjust the visibility of the display Only keep the core scalar display that needs to be captured and hide other irrelevant displays.

[0210] ③ Input the scene, image path, core inlet and outlet elements, core axis, and image aspect ratio.

[0211] The scene is a global variable, and the image path is generated based on the core, air inlet and outlet, and scalar type (such as "core name + T / V + in / out").

[0212] ④ Output the core scalar post-processing image, such as Figure 10 shown.

[0213] 2. Post-processing image logic of the cabin y-axis cross section: ① Get the front cabin parts collection In the element acquisition step, the core domain collection acquisition function a is called to obtain the automobile front cabin parts collection.

[0214] ②Adjust the display Only the flat vector displays or flat scalar displays and flat outline displays that need to be captured are retained.

[0215] ③ Input the scene, image path, front cabin components, positive y-axis position (0,1,0), and image aspect ratio. Automatically generate screenshots to improve work efficiency.

[0216] ④ Output the post-processed image of the cabin y-axis cross section, such as Figure 11 shown.

[0217] Accordingly, please refer to Figure 12 This is a block diagram of a simulation automated post-processing image generation device provided in an embodiment of the present application, the device comprising: A viewing angle parameter determining unit 101 is configured to determine a viewing angle parameter based on the acquired spatial matrix of the component; wherein the spatial matrix represents the range of the component in three-dimensional space; A component size determining unit 103 is configured to adjust the scene view based on the viewing angle parameter and determine a component size corresponding to the component according to the scene graph size of the adjusted scene view; a content frame size determining unit 105 for determining a preset content frame size in response to a screenshot frame size input by a user, and adjusting the preset content frame size based on a component size to obtain a target content frame size; The color bar adjustment unit 107 allows the user to adjust the position and size of the color bar according to the screenshot frame size and the target content frame size to generate a target post-processing image corresponding to the component.

[0218] In some optional implementations, the viewing angle parameters include a viewing angle origin, a viewing angle focus, a viewing angle coordinate system, and an upward direction vector; and the viewing angle parameter determination unit 101 includes: Obtain the spatial matrix of the component, and determine the average value corresponding to the spatial matrix of the component as the perspective origin; Determine the viewing focus according to the viewing origin and a preset viewing direction vector; wherein the viewing direction vector represents the direction from the viewing origin to the viewing focus; Create a viewing coordinate system based on the viewing direction vector; Determine the upward direction vector corresponding to the view coordinate system.

[0219] In some optional embodiments, the viewing angle parameter includes a viewing angle coordinate system; the component size determination unit 103 includes: determining a characteristic length of the component in the viewing angle coordinate system; wherein the characteristic length represents a projection length of the component in the viewing angle coordinate system; Determine the scaling of components based on characteristic length; The perspective of the input scene view is adjusted by the perspective parameter and the scaling ratio to obtain an adjusted scene view.

[0220] In some optional embodiments, the component size includes component width and component height; the component size determination unit 103 includes: Obtaining the scene graph size of the adjusted scene view; wherein the scene graph size includes the scene graph width and the scene graph height; determining the component height of the component according to the scene graph height and a preset screen ratio; Determines the component width of a component based on the component height and the characteristic length of the component in the view coordinate system of the view parameters.

[0221] In some optional embodiments, the device further comprises: If the view origin in the view parameters is not at the center of the adjusted scene view, adjust the view origin and view focus in the view parameters to offset the components.

[0222] In some optional implementations, adjusting the perspective origin and perspective focus in the perspective parameters to offset the component includes: Determine the unit length vectors of the perspective coordinate system in different directions in the perspective parameters, and determine the unit vector in the default coordinate system based on the unit length vector; Determine the characteristic length of the component in the view coordinate system; Determine the offset vector in the default coordinate system based on the unit vector, characteristic length, and offset value coordinates entered by the user; According to the offset vector, the perspective origin and the perspective focus in the perspective parameters are adjusted to obtain the adjusted perspective origin and the adjusted perspective focus to offset the component.

[0223] In some optional implementations, the screenshot frame size includes the screenshot frame aspect ratio of the screenshot frame; the preset content frame size includes the preset content frame width, preset content frame height, and preset content frame aspect ratio of the content frame; and the content frame size determining unit 105 includes: Obtaining the scene graph size of the adjusted scene view; wherein the scene graph size includes the scene graph width and the scene graph height; determining the scene graph aspect ratio according to the scene graph width and the scene graph height; In response to a screenshot frame size input by a user, if the screenshot frame aspect ratio is less than or equal to the scene graph aspect ratio, determining a first screenshot frame height of the screenshot frame as the scene graph height; determining a first screenshot frame width of the screenshot frame as a product of the first screenshot frame height and the screenshot frame aspect ratio divided by a preset optimization parameter; The first screenshot frame width is determined as the preset content frame width, the first screenshot frame height is determined as the preset content frame height, and the screenshot frame aspect ratio is determined as the preset content frame aspect ratio.

[0224] In some optional embodiments, the device further comprises: In response to the screenshot frame size input by the user, if the aspect ratio of the screenshot frame is greater than the aspect ratio of the scene graph, determining the second screenshot frame width of the screenshot frame as the ratio of the scene graph width to the preset optimization parameter; and determining the second screenshot frame height of the screenshot frame as the ratio of the second screenshot frame width to the aspect ratio of the screenshot frame; The second screenshot frame width is determined to be the preset content frame width, the second screenshot frame height is determined to be the preset content frame height, and the screenshot frame aspect ratio is determined to be the preset content frame aspect ratio.

[0225] In some optional implementations, the content frame size determining unit 105 includes: Generate component width and component height corresponding to the viewing angle parameters; Determine the aspect ratio of the component based on the component width and component height; The preset content box size is adjusted according to the component aspect ratio to obtain a target content box size including an actual content box width, an actual content box height, and an actual content box aspect ratio.

[0226] In some optional implementations, the content frame size determining unit 105 includes: If the ratio of the preset content box aspect ratio to the component aspect ratio is less than or equal to a preset ratio threshold, the actual content box width is determined as the preset content box width, and the actual content box height is determined as the ratio of the actual content box width to the component aspect ratio; Determine the actual content box aspect ratio based on the actual content box width and the actual content box height.

[0227] In some optional embodiments, the device further comprises: When the ratio of the preset content box aspect ratio to the component aspect ratio is greater than the preset ratio threshold, the actual content box height is determined as the product of the preset content box height and the preset ratio threshold, and the actual content box width is determined as the product of the actual content box height and the component aspect ratio.

[0228] In some optional implementations, the color bar adjustment unit 107 includes: Determine the color bar width of the color bar as the component width; Determine the color bar height of the color bar as the product of the screenshot frame height and a preset adjustment threshold; According to the width of the color bar and the width of the scene graph, the ratio of the upper left corner of the color bar to the β axis of the perspective coordinate system in the perspective parameter is determined; wherein the β axis represents the left direction vector axis; According to the screenshot frame height, the color bar height and the actual content frame height, the upper left corner of the color bar position is determined in the perspective coordinate system υ axis ratio in the perspective parameter; wherein the υ axis represents the upward direction vector axis.

[0229] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0230] In this embodiment, a simulation automated post-processing image generation device is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0231] See also Figure 13 , Figure 13 A schematic diagram of the structure of a computer device provided in an embodiment of the present application is shown in FIG. Figure 13 As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 13A processor 10 is taken as an example.

[0232] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

[0233] The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0234] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0235] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0236] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0237] The embodiments of the present application also provide a computer-readable storage medium. The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0238] The devices and units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0239] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0240] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods or devices. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0241] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices, and apparatus according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0242] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0243] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0244] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0245] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

[0246] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

[0247] Although the embodiments of the present application have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations shall fall within the scope defined by the appended claims.

Claims

1. A method for generating a simulation automated post-processing image, characterized in that: The method comprises: Determining a viewing angle parameter based on the acquired spatial matrix of the component; wherein the spatial matrix represents the range of the component in three-dimensional space; Adjusting the scene view based on the viewing angle parameter, and determining a component size corresponding to the component according to a scene graph size of the adjusted scene view; Determining a preset content frame size in response to a screenshot frame size input by a user, and adjusting the preset content frame size based on the component size to obtain a target content frame size; According to the screenshot frame size and the target content frame size, the position and size of the color bar are adjusted to generate a target post-processing image corresponding to the component.

2. The method according to claim 1, characterized in that The viewing angle parameters include a viewing angle origin, a viewing angle focus, a viewing angle coordinate system, and an upward direction vector; and determining the viewing angle parameters based on the acquired component space matrix includes: Obtaining a spatial matrix of a component, and determining an average value corresponding to the spatial matrix of the component as the perspective origin; Determining the viewing focus according to the viewing origin and a preset viewing direction vector; wherein the viewing direction vector represents a direction from the viewing origin to the viewing focus; Creating the viewing angle coordinate system based on the viewing angle direction vector; Determine the upward direction vector corresponding to the viewing angle coordinate system.

3. The method according to claim 1, characterized in that The viewing angle parameters include a viewing angle coordinate system; and adjusting the scene view based on the viewing angle parameters includes: Determining a characteristic length of the component in the viewing angle coordinate system; wherein the characteristic length represents a projection length of the component in the viewing angle coordinate system; determining a scaling ratio of the component based on the characteristic length; The viewing angle of the input scene view is adjusted according to the viewing angle parameter and the scaling ratio to obtain the adjusted scene view.

4. The method according to claim 1, wherein The component size includes a component width and a component height; and determining the component size corresponding to the component according to the adjusted scene graph size of the scene view includes: Obtaining a scene graph size of the adjusted scene view; wherein the scene graph size includes a scene graph width and a scene graph height; Determining the component height of the component according to the scene graph height and a preset screen ratio; The component width of the component is determined according to the component height and the characteristic length of the component in the viewing angle coordinate system of the viewing angle parameter.

5. The method according to claim 1, wherein The method further comprises: When the perspective origin in the perspective parameters is not at the center point of the adjusted scene view, the perspective origin and the perspective focus in the perspective parameters are adjusted to offset the component.

6. The method according to claim 5, characterized in that The adjusting the perspective origin and the perspective focus in the perspective parameters to offset the component includes: Determining unit length vectors of the viewing angle coordinate system in different directions in the viewing angle parameter, and determining a unit vector in a default coordinate system based on the unit length vector; Determining the characteristic length of the component in the viewing coordinate system; Based on the unit vector, characteristic length and offset value coordinates input by the user, the offset vector in the default coordinate system is determined; according to the offset vector, the perspective origin and perspective focus in the perspective parameters are adjusted to obtain the adjusted perspective origin and adjusted perspective focus to offset the component.

7. The method according to claim 1, characterized in that The screenshot frame size includes the screenshot frame aspect ratio of the screenshot frame; the preset content frame size includes the preset content frame width, preset content frame height and preset content frame aspect ratio of the content frame; The determining of the preset content frame size in response to the screenshot frame size input by the user includes: Obtaining a scene graph size of the adjusted scene view; wherein the scene graph size includes a scene graph width and a scene graph height; Determining a scene graph aspect ratio according to the scene graph width and the scene graph height; In response to a screenshot frame size input by a user, if the aspect ratio of the screenshot frame is less than or equal to the aspect ratio of the scene graph, determining a first screenshot frame height of the screenshot frame as the scene graph height; and determining a first screenshot frame width of the screenshot frame as a product of the first screenshot frame height and the aspect ratio of the screenshot frame divided by a preset optimization parameter; The first screenshot frame width is determined to be the preset content frame width, the first screenshot frame height is determined to be the preset content frame height, and the screenshot frame aspect ratio is determined to be the preset content frame aspect ratio.

8. The method according to claim 7, characterized in that The method further comprises: In response to a screenshot frame size input by a user, if the aspect ratio of the screenshot frame is greater than the aspect ratio of the scene graph, determining a second screenshot frame width of the screenshot frame as a ratio of the scene graph width to a preset optimization parameter; and determining a second screenshot frame height of the screenshot frame as a ratio of the second screenshot frame width to the screenshot frame aspect ratio; The second screenshot frame width is determined to be the preset content frame width, the second screenshot frame height is determined to be the preset content frame height, and the screenshot frame aspect ratio is determined to be the preset content frame aspect ratio.

9. The method according to claim 7, characterized in that The adjusting the preset content frame size based on the component size to obtain a target content frame size includes: Generate component width and component height corresponding to the component under viewing angle parameters; Determining the aspect ratio of the component according to the component width and the component height; The preset content frame size is adjusted according to the component aspect ratio to obtain the target content frame size including the actual content frame width, the actual content frame height and the actual content frame aspect ratio.

10. The method according to claim 9, characterized in that The step of adjusting the preset content frame size by using the component aspect ratio to obtain the target content frame size including the actual content frame width, the actual content frame height, and the actual content frame aspect ratio includes: If the ratio of the preset content frame aspect ratio to the component aspect ratio is less than or equal to a preset ratio threshold, the actual content frame width is determined as the preset content frame width, and the actual content frame height is determined as the ratio of the actual content frame width to the component aspect ratio; An actual content frame aspect ratio is determined according to the actual content frame width and the actual content frame height.

11. The method according to claim 10, characterized in that The method further comprises: When the ratio of the preset content box aspect ratio to the component aspect ratio is greater than the preset ratio threshold, the actual content box height is determined as the product of the preset content box height and the preset ratio threshold, and the actual content box width is determined as the product of the actual content box height and the component aspect ratio.

12. The method according to claim 9, characterized in that The adjusting the position and size of the color bar according to the size of the screenshot frame and the size of the target content frame includes: Determining the color bar width of the color bar as the component width; Determine the color bar height of the color bar as the product of the screenshot frame height and a preset adjustment threshold; Determine, based on the color bar width and the scene graph width, the ratio of the upper left corner of the color bar to the β-axis of the perspective coordinate system in the perspective parameter; wherein the β-axis represents the left direction vector axis; According to the screenshot frame height, the color bar height and the actual content frame height, the upper left corner of the color bar position and the υ axis ratio of the perspective coordinate system in the perspective parameter are determined; wherein the υ axis represents the upward direction vector axis.

13. A simulation automated post-processing image generation device, characterized in that: The device comprises: A viewing angle parameter determining unit, configured to determine a viewing angle parameter based on the acquired spatial matrix of the component; wherein the spatial matrix represents the range of the component in three-dimensional space; a component size determining unit, configured to adjust the scene view based on the viewing angle parameter, and determine a component size corresponding to the component according to a scene graph size of the adjusted scene view; a content frame size determining unit, configured to determine a preset content frame size in response to a screenshot frame size input by a user, and adjust the preset content frame size based on the component size to obtain a target content frame size; The color bar adjustment unit allows the user to adjust the position and size of the color bar according to the screenshot frame size and the target content frame size to generate a target post-processing image corresponding to the component.

14. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the simulation automated post-processing image generation method according to any one of claims 1 to 12 by executing the computer instructions.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the simulation automated post-processing image generation method according to any one of claims 1 to 12.