A method, system, device and medium for optimizing dynamic text display in three-dimensional visualization

By rastering and segmenting dynamic text, building a text image library, and combining real-time color adjustment, the blurring and performance loss problems of dynamic text display in three-dimensional visualization are solved, improving the clarity and user experience of the display.

CN118605783BActive Publication Date: 2024-11-26ZHEJIANG SUPCON INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411083515.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-26
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

In the existing three-dimensional visualization technology, dynamic text display has problems such as enlargement and reduction of blurring, distortion and performance loss, especially when it changes frequently or changes at high frequency, which affects the clarity and authenticity of the display effect.

Method used

By rastering and segmenting dynamic text, independent single words or phrases are generated, and color changes are performed and proportional transformations are carried out, text picture libraries are constructed, colors are adjusted in real time, and dynamic replacement is used using preset logic rules or external input instructions. Color changes.

Benefits of technology

It significantly improves the clarity and visual effect of text display, avoids distortion caused by zooming in and out, reduces performance losses, improves response speed and user experience, and achieves a more vivid dynamic display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605783B_ABST
    Figure CN118605783B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, system, device and medium for optimizing dynamic text display in three-dimensional visualization, and the method includes: rasterizing and segmenting dynamic text to obtain single characters or phrases; performing color change processing on single characters or phrases; placing single characters or phrases in one or more pictures, and marking the position coordinates of the single characters or phrases in the pictures to form a text picture library; selectively retrieving and replacing corresponding single characters or phrases from the text picture library according to preset logical rules or external input instructions, and applying corresponding proportional transformations; in the process of dynamic text display, adjusting the color of the single characters or phrases in the display in real time according to preset color change logic or external input instructions. In summary, the present invention significantly improves the clarity, stability and visual effect of dynamic text display in three-dimensional visualization, while reducing performance loss, improving response speed and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional visualization technology, and in particular to a method, system, device and medium for optimizing dynamic text display in three-dimensional visualization. Background Art

[0002] Realizing dynamic text display in 3D scenes is an important part of applications such as digital twins, information board display, and dynamic presentation of equipment data. For example, dynamic text display is particularly important when displaying real-time data such as air conditioning temperature changes, ambient humidity, and light brightness. However, in current 3D visualization technology, dynamic text display still has some significant problems.

[0003] There are two main types of existing text display technologies. One is based on text modeling, but this method cannot achieve true dynamic display and can only provide static text presentation. If dynamic effects are to be achieved, a simulated three-dimensional method, the so-called pseudo-3D, is required, but its realism and interactivity are limited.

[0004] Another solution to achieve dynamic text display is to transform the texture map, that is, to simulate the dynamic effect by continuously changing the picture containing the text. However, this method will cause blur and distortion when the picture is enlarged or reduced, which seriously affects the clarity and authenticity of the display effect.

[0005] In addition, there is also a method of using web page technology such as HTML to overlay a text layer on the 3D scene. Although this method can achieve certain dynamic effects, it requires dynamic calculation of the text position on the text layer, and the viewing angle is limited, and can only provide a single-view visual effect. More importantly, when the text changes frequently or the frequency of changes is high, this method will bring a large performance loss, because the frequent refresh process will occupy a lot of system resources.

[0006] Therefore, the current dynamic text display methods in 3D visualization still face many challenges, including but not limited to distortion problems caused by image replacement and performance loss problems caused by HTML simulation. Summary of the invention

[0007] 1. Technical issues to be resolved

[0008] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a method, system, device and medium for optimizing the display of dynamic text in three-dimensional visualization, which solves the technical problems of blurring, distortion and performance loss in zooming in and out of dynamic text display in three-dimensional visualization.

[0009] (II) Technical solution

[0010] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0011] In a first aspect, an embodiment of the present invention provides a method for optimizing dynamic text display in three-dimensional visualization, comprising:

[0012] rasterizing and segmenting the acquired dynamic text to obtain multiple independent single characters or phrases;

[0013] Change the color of each independent word or phrase;

[0014] Placing a set single word or phrase in one or more pictures, and marking the position coordinates of the single word or phrase in the picture to form a text picture library;

[0015] According to preset logic rules or external input instructions, the corresponding single words or phrases are selectively retrieved and replaced from the text image library, and corresponding proportional transformation is applied to the replaced single words or phrases;

[0016] During the dynamic text display process, the color of a single word or phrase in the display is adjusted in real time according to the preset color change logic or external input instructions.

[0017] Optionally, the acquired dynamic text is rasterized and segmented to obtain a plurality of independent single characters or phrases including:

[0018] Analyze the edge features of the acquired dynamic text, identify the jagged area, and smooth the jagged area;

[0019] The dynamic text after smoothing is rasterized to convert the dynamic text into an image composed of discrete pixel points;

[0020] The edge detection algorithm is used to identify the edge information in the text image, and the boundary of each independent single word or phrase is located on the image composed of discrete pixels in combination with the set threshold;

[0021] Based on the boundary of each independent single word or phrase, the set seed point and the growth criterion, the pixel area is gradually expanded until the entire word or phrase is covered, and the adjacent pixel areas belonging to the same word or phrase are merged to obtain a preliminary segmentation result;

[0022] The preliminary segmentation results are subjected to post-processing operations including removing small noise areas and filling holes to obtain multiple independent single words or phrases, which are output in the form of images or vector graphics.

[0023] Optionally, performing color change processing on each independent single word or phrase includes:

[0024] Sample the color of each individual word or phrase;

[0025] Analyze the sampled color data, determine the basic color of a single word or phrase by statistically analyzing the color distribution and calculating the color average;

[0026] Based on a preset color mapping table or color transformation algorithm, a color change scheme matching a single word or phrase is generated with the basic color as a starting point;

[0027] Creating a unique identifier for each independent single word or phrase, and associating the generated color change scheme with the unique identifier of the corresponding single word or phrase;

[0028] Create a color library to store color schemes associated with single words or phrases.

[0029] Optionally, placing a set single word or phrase in one or more pictures, and marking the position coordinates of the single word or phrase in the picture to form a text picture library includes:

[0030] Determine the set of single word or phrase images that need to be placed in the picture;

[0031] Placing the individual words or phrases of the image set one by one in one or more background images, and marking the position coordinates of each individual word or phrase placed in the background image;

[0032] Integrate one or more background images with corresponding location annotation data to build a text image library;

[0033] The position coordinates are marked including the bounding box coordinates, center point coordinates and key point coordinates of a single word or phrase.

[0034] Optionally, according to a preset logic rule or an external input instruction, selectively retrieving and replacing corresponding single words or phrases from the text image library, and applying corresponding proportional transformation to the replaced single words or phrases includes:

[0035] Receiving and parsing preset logic rules or external input instructions to determine the single word or phrase that needs to be retrieved and replaced, the new position of the single word or phrase to be replaced, and the proportional transformation parameters that should be applied after the replacement;

[0036] Using the determined position mark of the single word or phrase that needs to be retrieved and replaced, locate and obtain the image of the single word or phrase in the text image library;

[0037] In the currently displayed image or scene, locate and remove the text or phrase to be replaced, and determine the insertion position of the replaced single word or phrase according to the new position of the replaced single word or phrase;

[0038] Inserting the replacement text or phrase image retrieved from the text image library into the insertion position replacing the single word or phrase;

[0039] The replaced text or phrase image is proportionally transformed according to the proportional transformation parameters that should be applied after the replacement.

[0040] Optionally, during the dynamic text display process, according to a preset color change logic or an external input instruction, the color of a single word or phrase in the display is adjusted in real time, including:

[0041] Receive and analyze preset logic rules or external input instructions to determine the single word or phrase that needs to change color, the start and end colors of the color change, and the rate of color change;

[0042] Retrieve the corresponding color change scheme from a pre-established color library through the unique identifier of the single word or phrase that needs to change color;

[0043] If the corresponding color change scheme is not retrieved, a color change scheme is dynamically generated according to the text or phrase that needs to change the color, the start and end colors of the color change, and the rate of the color change;

[0044] Based on the retrieved color change scheme or the dynamically generated color change scheme, according to the color change speed and the start and end colors of the color change, combined with an interpolation algorithm for generating intermediate color values ​​between the start color and the end color, the color value of each frame is calculated and updated to the displayed text in real time, so that the color-changed text is output to the specified display interface.

[0045] Optionally, preset color change logic, including the following triggering methods:

[0046] Time trigger: trigger the color change of a single word or phrase according to a specific time point or time period;

[0047] Rhythm trigger: trigger the color change of a single word or phrase according to the rhythm or beat of the music;

[0048] Scene change trigger: trigger the color change of a single word or phrase according to the switching of application scenes;

[0049] External input commands include the following triggering methods:

[0050] User interaction commands: trigger color changes of single words or phrases based on mouse clicks, touch events, or keyboard input;

[0051] Audio signal command: trigger the color change of a single word or phrase based on the characteristic signal of the analyzed audio signal;

[0052] Ambient light sensing data command: triggers the color change of a single word or phrase based on the current ambient light conditions obtained through the ambient light sensor.

[0053] In a second aspect, an embodiment of the present invention provides a system for optimizing dynamic text display in three-dimensional visualization, including:

[0054] A pre-processing module is used to perform rasterization and segmentation processing on the acquired dynamic text to obtain multiple independent single characters or phrases;

[0055] A color change processing module is used to perform color change processing on each independent single word or phrase;

[0056] A picture library output module is used to place a set single word or phrase in one or more pictures, and mark the position coordinates of the single word or phrase in the picture to form a text picture library;

[0057] A text replacement module, for selectively retrieving and replacing corresponding single words or phrases from a text image library according to preset logic rules or external input instructions, and applying corresponding proportional transformation to the replaced single words or phrases;

[0058] The color adjustment module is used to adjust the color of a single word or phrase in real time during the dynamic text display according to a preset color change logic or an external input instruction.

[0059] In a third aspect, an embodiment of the present invention provides a device for optimizing dynamic text display in three-dimensional visualization, including:

[0060] At least one database for storing and managing three-dimensional scene data, dynamic text data, color change schemes, and logic rules;

[0061] and a memory in communication with at least one database;

[0062] The memory stores instructions that can be executed by at least one database, and the instructions are executed by at least one database so that the at least one database can execute the above-mentioned method for optimizing dynamic text display in three-dimensional visualization.

[0063] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having computer executable instructions stored thereon, and when the executable instructions are executed by a processor, a method for optimizing the display of dynamic text in three-dimensional visualization as described above is implemented.

[0064] (III) Beneficial effects

[0065] The beneficial effects of the present invention are:

[0066] First, the acquired dynamic text is rasterized and segmented to obtain multiple independent single characters or phrases. The advantage of this processing method is that it ensures that each character or phrase remains clear and recognizable when displayed, and there will be no distortion even when zoomed in or out. This significantly improves the visual effect of the text display, allowing users to see every detail more clearly.

[0067] Secondly, the color change of each independent single word or phrase not only adds rich visual effects to the display, but also enables the dynamic text to adjust the color in real time according to preset logical rules or external input instructions. This flexibility makes the display more vivid and interesting, and can be adjusted accordingly according to user needs or scene changes.

[0068] Then, by placing the specified single word or phrase in one or more pictures and marking the position coordinates to form a text picture library, an efficient text management and retrieval mechanism is realized, which greatly simplifies the processing flow of dynamic text.

[0069] Furthermore, when the text needs to be replaced or updated, the corresponding part of the text or phrase is selectively retrieved and replaced from the text image library, and the corresponding proportional transformation is applied to the replaced text or phrase. This not only improves the flexibility and efficiency of text processing, but also ensures that the replaced text can maintain clarity and geometric accuracy when enlarged or reduced, thereby improving the overall visual effect and user experience.

[0070] Finally, during the dynamic text display process, the color is adjusted in real time according to the preset color change logic or external input instructions, further enhancing the dynamic and interactive nature of the display. This real-time color adjustment function enables dynamic text to better adapt to different display needs and scene changes, improving user experience and satisfaction.

[0071] Therefore, the present invention significantly improves the clarity, stability and visual effect of dynamic text display in three-dimensional visualization through innovations in rasterization processing, color change technology, construction of text and picture library, and real-time color adjustment, while reducing performance loss and improving response speed and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A schematic diagram of a flow chart of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0073] Figure 2 A specific flow chart of step S1 of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0074] Figure 3An independent single word or phrase obtained by segmentation of a dynamic text display optimization method in three-dimensional visualization provided by an embodiment of the present invention;

[0075] Figure 4 A specific flow chart of step S2 of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0076] Figure 5 A specific flow chart of step S3 of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0077] Figure 6 A schematic data table of position coordinates of a single word or phrase in a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0078] Figure 7 A specific flow chart of step S4 of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0079] Figure 8 A schematic diagram of replacing a single word or phrase in a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0080] Fig. 9 A specific flow chart of step S5 of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention;

[0081] Fig.10 A display schematic diagram of a display interface of a method for optimizing dynamic text display in three-dimensional visualization provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0082] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0083] like Figure 1 As shown, an optimization method for dynamic text display in three-dimensional visualization proposed in an embodiment of the present invention includes: rasterizing and segmenting the acquired dynamic text to obtain multiple independent single characters or phrases; performing color change processing on each independent single character or phrase; placing the set single character or phrase in one or more pictures, and marking the position coordinates of the single character or phrase in the picture to form a text picture library; selectively retrieving and replacing the corresponding single character or phrase from the text picture library according to preset logical rules or external input instructions, and applying corresponding proportional transformation to the replaced single character or phrase; in the process of dynamic text display, adjusting the color of the single character or phrase in the display in real time according to the preset color change logic or external input instructions.

[0084] First, the acquired dynamic text is rasterized and segmented to obtain multiple independent single characters or phrases. The advantage of this processing method is that it ensures that each character or phrase remains clear and recognizable when displayed, and there will be no distortion even when zoomed in or out. This significantly improves the visual effect of the text display, allowing users to see every detail more clearly.

[0085] Secondly, the color change of each independent single word or phrase not only adds rich visual effects to the display, but also enables the dynamic text to adjust the color in real time according to preset logical rules or external input instructions. This flexibility makes the display more vivid and interesting, and can be adjusted accordingly according to user needs or scene changes.

[0086] Then, by placing the specified single word or phrase in one or more pictures and marking the position coordinates to form a text picture library, an efficient text management and retrieval mechanism is realized, which greatly simplifies the processing flow of dynamic text.

[0087] Furthermore, when the text needs to be replaced or updated, the corresponding part of the text or phrase is selectively retrieved and replaced from the text image library, and the corresponding proportional transformation is applied to the replaced text or phrase. This not only improves the flexibility and efficiency of text processing, but also ensures that the replaced text can maintain clarity and geometric accuracy when enlarged or reduced, thereby improving the overall visual effect and user experience.

[0088] Finally, during the dynamic text display process, the color is adjusted in real time according to the preset color change logic or external input instructions, further enhancing the dynamic and interactive nature of the display. This real-time color adjustment function enables dynamic text to better adapt to different display needs and scene changes, improving user experience and satisfaction.

[0089] Therefore, the present invention significantly improves the clarity, stability and visual effect of dynamic text display in three-dimensional visualization through innovations in rasterization processing, color change technology, construction of text and picture library, and real-time color adjustment, while reducing performance loss and improving response speed and user experience.

[0090] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0091] Specifically, an embodiment of the present invention provides a method for optimizing dynamic text display in three-dimensional visualization, including:

[0092] S1. rasterize and segment the acquired dynamic text to obtain multiple independent single characters or phrases.

[0093] Furthermore, if Figure 2 As shown, step S1 includes:

[0094] S11, analyzing the edge features of the acquired dynamic text, identifying the jagged area, and smoothing the jagged area.

[0095] Before rasterization, anti-aliasing technology is first applied to the dynamic text for preliminary processing. Anti-aliasing technology is a graphics processing technology used to reduce the "jaggies" effect on the edges of images, making the edges of images look smoother and more natural. In this step, the edges of the text are blurred to eliminate or reduce jagged lines, thereby improving the visual quality of the text.

[0096] S12, converting the smoothed dynamic text into an image composed of discrete pixels by rasterizing the dynamic text.

[0097] In this step, the dynamic text is converted into an image composed of pixels. The advantage of this is that it can maintain its clarity and avoid distortion when the text is enlarged or reduced. Rasterization is a key step to ensure that the text remains clear at various sizes.

[0098] Before segmentation, necessary preprocessing operations can be performed on the rasterized text image, including but not limited to denoising, binarization, contrast enhancement, etc., to improve the accuracy and efficiency of the subsequent segmentation algorithm.

[0099] S13. Using an edge detection algorithm to identify edge information in the text image, and locating the boundary of each independent single word or phrase on the image composed of discrete pixels in combination with a set threshold.

[0100] Apply edge detection algorithms, such as Canny edge detector, Sobel operator, etc., to identify edge information in text images. By setting appropriate thresholds and parameters, the boundaries of each independent word or phrase can be accurately located.

[0101] S14, based on the boundary of each independent single word or phrase, the set seed point and the growth criterion, the pixel area is gradually expanded until the entire word or phrase is covered, and the adjacent pixel areas belonging to the same word or phrase are merged to obtain a preliminary segmentation result.

[0102] Based on edge detection, the region growing algorithm is used to further subdivide and merge adjacent pixel regions. By setting seed points and growth criteria, the region is gradually expanded until the entire word or phrase is covered. At the same time, the merging strategy is used to merge adjacent regions belonging to the same word or phrase to ensure the accuracy of segmentation.

[0103] S15, performing post-processing operations on the preliminary segmentation results, including removing small noise areas and filling holes, to obtain multiple independent single words or phrases.

[0104] Perform necessary post-processing operations on the segmentation results, such as removing small noise areas and filling holes, to improve the integrity and accuracy of the segmentation results. In addition, morphological operations (such as dilation and erosion) can be used to further optimize the segmentation boundaries.

[0105] Next, refer to Figure 3 The text shown above: "Fan temperature ABCDEFGHJKLMNOPQRSTUVWXYZ0123456789+-!.,?" (+-!.,? are symbols), and then the independent single words or phrases obtained by segmentation are output in the form of images or vector graphics and stored in a suitable file format for subsequent use.

[0106] S2. Perform color change processing on each independent single word or phrase.

[0107] Furthermore, if Figure 4 As shown, step S2 includes:

[0108] S21, color sampling for each independent single word or phrase. Using a color space model, such as RGB, HSV or CMYK, color analysis is performed on each segmented independent single word or phrase.

[0109] S22, analyzing the sampled color data, determining the basic color of a single word or phrase by statistically analyzing the color distribution and calculating the color average. By analyzing the color distribution and characteristics of the word or phrase, its basic color is determined to provide basic data for subsequent color change processing.

[0110] S23. According to a preset color mapping table or color conversion algorithm, a color change scheme matching a single word or phrase is generated with the basic color as a starting point.

[0111] S24. Create a unique identifier for each independent single word or phrase, and associate the generated color change scheme with the unique identifier of the corresponding single word or phrase to ensure that the color change scheme can be accurately applied to specific text.

[0112] S25. Create a color library for storing color change schemes associated with single words or phrases.

[0113] When you need to display color-changing text, you can quickly find the color-changing scheme associated with a specific independent single word or phrase by searching the color library. According to the display requirements, you can select the appropriate color-changing scheme and apply it to the target text to achieve a flexible color-changing effect for the text.

[0114] By implementing the above method, flexible color change processing can be achieved for each independent single word or phrase, improving the visual effect and display diversity of the text. At the same time, the efficiency and accuracy of color change processing are improved through the establishment of a color library and a fast retrieval mechanism.

[0115] In another embodiment, the msdf (Multi-channel Signed Distance Field) algorithm is used. The msdf algorithm processes fonts in a unique way so that the edges of the fonts remain clear when they are reduced or enlarged. Specifically, first, the selected word or phrase is processed by the algorithm to perform median calculation using the RGB three-color channels. Secondly, during the processing, the median of each pixel in the word or phrase is calculated respectively by the RGB three-color channels to determine the position of the font's sharp corner. Then, based on the calculated median, the font's sharp corner is precisely located to ensure the accuracy of the color change processing. Furthermore, using the characteristics of the RGB three-color channels, color conversion processing is performed simultaneously to change the color of the selected word or phrase to the target color. Finally, after the color change processing is completed, the independent single word or phrase that has changed color is output.

[0116] S3. placing a set single word or phrase in one or more pictures, and marking the position coordinates of the single word or phrase in the picture to form a text picture library.

[0117] Furthermore, if Figure 5 As shown, step S3 includes

[0118] S31, determining a set of single word or phrase images that need to be placed in the picture.

[0119] This step involves selecting and organizing the specific words or phrases that will be embedded in the image, ensuring that they meet the pre-determined standards and purpose.

[0120] S32, placing the individual words or phrases in the image set one by one in one or more background images, and marking the position coordinates of each individual word or phrase placed in the background image.

[0121] The placement position can be preset or dynamically determined based on a certain algorithm. The position coordinates include the bounding box coordinates, center point coordinates, and key point coordinates of a single word or phrase. Figure 6 As shown, the position coordinates of a single word or phrase are saved in the form of a data table.

[0122] S33, integrating one or more background images with corresponding position annotation data to construct a text image library.

[0123] S4. According to preset logic rules or external input instructions, the corresponding single words or phrases are selectively retrieved and replaced from the text image library, and corresponding proportional transformations are applied to the replaced single words or phrases.

[0124] Furthermore, if Figure 7 As shown, step S4 includes:

[0125] S41, receiving and parsing preset logic rules or external input instructions to determine the single word or phrase that needs to be retrieved and replaced, the new position to replace the single word or phrase, and the proportional transformation parameters to be applied after the replacement.

[0126] S42: using the determined position mark of the single word or phrase that needs to be retrieved and replaced, locate and obtain the image of the single word or phrase in the text image library.

[0127] S43: In the currently displayed image or scene, locate and remove the text or phrase to be replaced, and determine the insertion position of the replaced single word or phrase according to the new position of the replaced single word or phrase.

[0128] S44, Figure 8 As shown, the replacement text or phrase image retrieved from the text image library is inserted into the insertion position to replace the single word or phrase.

[0129] S45, performing proportional transformation on the replaced text or phrase image according to the proportional transformation parameters that should be applied after the replacement.

[0130] The embodiment of the present invention also uses image transformation technology, such as affine transformation or perspective transformation, to perform fine proportional transformation on the replaced text or phrase. This transformation is performed according to preset proportional transformation parameters, aiming to ensure that the accuracy of the geometric shape and visual clarity of the text can be maintained when it is enlarged or reduced in three-dimensional space. In this way, no matter how the text changes, its visual effect remains consistent, providing users with a smooth viewing experience.

[0131] To illustrate with a specific example, when dynamic text is displayed in a three-dimensional scene, the fonts of these texts can change accordingly as the scene is enlarged or reduced, and the size of the text is not restricted in any way. For example, a letter "A" can be rasterized and its shape can be precisely defined by selecting its 11 vertices. In this way, when the letter is enlarged or reduced, its shape will not be distorted because it is defined by these vertices. The key to this proportional enlargement and reduction method is to determine the position of each point in the rasterization and match them with the corresponding fonts. In practical applications, even if a word exists in the form of a picture, it can be dynamically displayed in three-dimensional space in this way while maintaining the accuracy and clarity of its shape.

[0132] S5. During the dynamic text display process, the color of a single word or phrase in the display is adjusted in real time according to a preset color change logic or an external input instruction.

[0133] Furthermore, if Fig. 9 As shown, step S5 includes:

[0134] S51, receiving and parsing preset logic rules or external input instructions to determine the single word or phrase that needs to change color, the start and end colors of the color change, and the rate of color change.

[0135] S52. Retrieve the corresponding color change scheme from a pre-established color library using the unique identifier of the single word or phrase whose color needs to be changed.

[0136] S53. If the corresponding color change scheme is not retrieved, a color change scheme is dynamically generated according to the text or phrase whose color needs to be changed, the start and end colors of the color change, and the rate of the color change.

[0137] The corresponding color change scheme is retrieved from the pre-established color library by the unique identifier of the text or phrase whose color needs to be changed. If the corresponding color change scheme is not retrieved, the current color change scheme is generated according to the text or phrase whose color needs to be changed, the order of color change and the speed of color change.

[0138] S54, based on the retrieved color change scheme or the dynamically generated color change scheme, according to the color change speed and the start and end colors of the color change, combined with an interpolation algorithm for generating intermediate color values ​​between the start color and the end color, the color value of each frame is calculated, and updated in real time to the displayed text, so that the color-changed text is output to the display as shown in FIG. Fig.10 On the specified display interface shown.

[0139] In a specific embodiment, during the dynamic text color adjustment process, the color value of each frame is calculated based on the color change speed and interpolation algorithm, and updated to the displayed text in real time, which is a key step to ensure smooth color transition. The following is a detailed description of the process:

[0140] (1) Determine the starting and ending colors: First, you need to specify the starting and ending colors of the color change. These colors can be values ​​in RGB, HSV, or other color spaces. For example, in the RGB color space, a color may consist of three components (red, green, and blue), and the value range of each component is usually 0 to 255.

[0141] (2) Set the color change speed: The color change speed determines how fast the color changes from the starting color to the ending color. This speed can be expressed as the amount of color change per second or the total time required to complete the entire color change process. For example, if the color change speed is set to 2 seconds, the color will gradually change from the starting color to the ending color within 2 seconds.

[0142] (3) Select an interpolation algorithm: The interpolation algorithm is used to generate intermediate color values ​​between the starting color and the ending color. Common interpolation algorithms include linear interpolation and spline interpolation. Linear interpolation simply interpolates between the starting and ending colors in a straight line, while spline interpolation can use more complex curves to generate smoother color transitions.

[0143] (4) Calculate the color value of each frame: Based on the color change speed and interpolation algorithm, the color value that should be displayed in each frame can be calculated. This process is usually performed in an update loop, and each loop determines the progress of the color transition based on the current time and color change speed. Then, the interpolation algorithm is used to calculate the color value of the current frame based on this progress.

[0144] For example, if linear interpolation is used and the current progress is 50% (that is, at the midpoint of the color change process), then the color value of the current frame will be the average of the starting color and the ending color.

[0145] (5) Update text color in real time: Once the color value of the current frame is calculated, this color needs to be immediately applied to the displayed text.

[0146] (6) Loop until the color change is complete: The above process will be repeated in each frame until the color completely transitions to the end color. Once the end color is reached, the color change process is complete. If necessary, the next color change cycle can be started or the current color can be kept unchanged.

[0147] In this way, the text color of each frame can be accurately controlled according to the color change speed and interpolation algorithm, thus achieving a smooth and continuous color transition effect.

[0148] Furthermore, the preset color change logic includes the following triggering methods:

[0149] Time trigger: trigger the color change of a single word or phrase according to a specific time point or time period, such as changing one color every second.

[0150] Rhythm trigger: trigger the color change of a single word or phrase according to the rhythm or beat of the music, such as changing color synchronously with the beat of the music.

[0151] Scene change trigger: trigger the color change of a single word or phrase according to the switching of application scenes. For example, the text color is automatically adjusted according to the ambient light to maintain readability.

[0152] External input commands include the following triggering methods:

[0153] User interaction instructions: trigger the color change of a single word or phrase based on mouse clicks, touch events or keyboard input.

[0154] Audio signal command: trigger the color change of a single word or phrase based on the characteristic signal of the analyzed audio signal.

[0155] Ambient light sensing data command: triggers the color change of a single word or phrase based on the current ambient light conditions obtained through the ambient light sensor.

[0156] In addition, an embodiment of the present invention provides a dynamic text display optimization system in three-dimensional visualization, including:

[0157] The pre-processing module is used to perform rasterization and segmentation processing on the acquired dynamic text to obtain multiple independent single characters or phrases.

[0158] The color change processing module is used to perform color change processing on each independent single word or phrase.

[0159] The picture library output module is used to place a set single word or phrase in one or more pictures, and mark the position coordinates of the single word or phrase in the picture to form a text picture library.

[0160] The text replacement module is used to selectively retrieve and replace corresponding single words or phrases from the text image library according to preset logical rules or external input instructions, and apply corresponding proportional transformation to the replaced single words or phrases.

[0161] The color adjustment module is used to adjust the color of a single word or phrase in real time during the dynamic text display according to a preset color change logic or an external input instruction.

[0162] Furthermore, an embodiment of the present invention provides a device for optimizing the display of dynamic text in three-dimensional visualization, comprising: at least one database for storing and managing three-dimensional scene data, dynamic text data, color change schemes, and logical rules; and a memory communicatively connected to the at least one database; wherein the memory stores instructions that can be executed by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute a method for optimizing the display of dynamic text in three-dimensional visualization as described above.

[0163] The embodiment of the present invention provides a device for optimizing dynamic text display in a three-dimensional visualization environment, which has significant effects in improving digital twins, information board display, and dynamic presentation of device data. Specifically, the device includes at least one database, which is not only used to store and manage three-dimensional scene data, but also responsible for processing dynamic text data, color change schemes, and related logical rules.

[0164] In addition, the device is also equipped with a memory that is connected to the database. This memory stores instructions that can be executed by the database. When these instructions are executed by the database, an efficient method for optimizing the display of dynamic text in three-dimensional visualization can be realized. This method is crucial for displaying real-time data such as air conditioning temperature changes, ambient humidity, and light brightness. It can significantly improve the display effect of dynamic text in three-dimensional scenes, making the presentation of data more intuitive and vivid.

[0165] In general, the device provided by the embodiment of the present invention provides strong technical support for three-dimensional visualization applications such as digital twins and information board displays by optimizing the display of dynamic text, making the presentation of real-time data more dynamic, intuitive and efficient.

[0166] Furthermore, an embodiment of the present invention provides a computer-readable medium having computer executable instructions stored thereon, and when the executable instructions are executed by a processor, a method for optimizing dynamic text display in three-dimensional visualization as described above is implemented.

[0167] This medium stores specific computer executable instructions. When these instructions are executed by the processor, the above-mentioned optimization method for dynamic text display in three-dimensional visualization is implemented. In this way, users can more efficiently use dynamic text to display information in a three-dimensional scene, thereby enhancing the visualization effect and interactive experience of data. This computer-readable medium provides a convenient and efficient solution for implementing and optimizing dynamic text display in three-dimensional visualization.

[0168] In summary, the embodiments of the present invention provide a method, system, device and medium for optimizing dynamic text display in three-dimensional visualization. First, the scheme performs rasterization processing on dynamic text, effectively solving the distortion problem that may occur when the text is enlarged or reduced, thereby ensuring the clarity of the display effect. This technology is inspired by movable type printing, similar to the damage digital display in the game, and the dynamic text to be displayed is divided into individual characters. This method is more flexible because only part of the text needs to be replaced instead of the entire picture during dynamic display, thereby greatly reducing performance loss. Secondly, the font preprocessing technology is adopted to pre-place commonly used text in the picture and mark the position of each word. In this way, when the text needs to be displayed, it can be achieved by quickly replacing part of the content in the picture, which not only improves the display speed, but also realizes a real three-dimensional effect, rather than just a simulation effect. In addition, when the dynamic text changes less, the performance advantage of this replacement method is more obvious. In addition, the color change technology is combined so that the text can achieve color change when it changes, thereby greatly improving the visual effect. This technology not only increases the attractiveness of dynamic text, but also makes the display of data more intuitive and easy to understand.

[0169] Therefore, the embodiment of the present invention significantly optimizes the dynamic text display effect in three-dimensional visualization by means of rasterization processing, font preprocessing, and color change technology. Compared with the existing dynamic text display method, this solution shows obvious advantages in visual effects, flexibility, and performance. In particular, in scenarios where dynamic text changes frequently and the frequency of changes is high, this solution can effectively reduce performance loss and improve display efficiency.

[0170] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.

[0171] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0172] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0173] It should be noted that in the scheme of the present invention, any figure mark between brackets should not be understood as limiting the scheme of the present invention. The word "comprising" does not exclude the existence of components or steps not listed in the scheme of the present invention. The word "one" or "an" preceding a component does not exclude the existence of multiple such components. The present invention can be implemented with the aid of hardware including several different components and with the aid of appropriately programmed computers. In the scheme of the present invention that lists several devices, several of these devices can be embodied by the same hardware. The use of the words first, second, third, etc. is only for convenience of expression and does not indicate any order. These words can be understood as part of the name of the component.

[0174] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0175] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the present invention should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0176] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the present invention and its equivalent technology, the present invention should also include these modifications and variations.

Claims

1. A method for optimizing dynamic text display in three-dimensional visualization, characterized in that: include: rasterizing and segmenting the acquired dynamic text to obtain multiple independent single characters or phrases; Change the color of each independent word or phrase; Placing a set single word or phrase in one or more pictures, and marking the position coordinates of the single word or phrase in the picture to form a text picture library; According to preset logic rules or external input instructions, the corresponding single words or phrases are selectively retrieved and replaced from the text image library, and corresponding proportional transformation is applied to the replaced single words or phrases; During the dynamic text display process, the color of a single word or phrase in the display is adjusted in real time according to the preset color change logic or external input instructions; The color change processing for each independent single word or phrase includes: Sample the color of each individual word or phrase; Analyze the sampled color data, determine the basic color of a single word or phrase by statistically analyzing the color distribution and calculating the color average; Based on a preset color mapping table or color transformation algorithm, a color change scheme matching a single word or phrase is generated with the basic color as a starting point; Creating a unique identifier for each independent single word or phrase, and associating the generated color change scheme with the unique identifier of the corresponding single word or phrase; Create a color library to store color schemes associated with single words or phrases.

2. The method for optimizing dynamic text display in three-dimensional visualization according to claim 1, characterized in that: The acquired dynamic text is rasterized and segmented to obtain multiple independent single words or phrases including: Analyze the edge features of the acquired dynamic text, identify the jagged area, and smooth the jagged area; The dynamic text after smoothing is rasterized to convert the dynamic text into an image composed of discrete pixel points; The edge detection algorithm is used to identify the edge information in the text image, and the boundary of each independent single word or phrase is located on the image composed of discrete pixels in combination with the set threshold; Based on the boundary of each independent single word or phrase, the set seed point and the growth criterion, the pixel area is gradually expanded until the entire word or phrase is covered, and the adjacent pixel areas belonging to the same word or phrase are merged to obtain a preliminary segmentation result; The preliminary segmentation results are subjected to post-processing operations including removing small noise areas and filling holes to obtain multiple independent single words or phrases, which are output in the form of images or vector graphics.

3. The method for optimizing dynamic text display in three-dimensional visualization according to claim 1, characterized in that: Place a set single word or phrase in one or more pictures, and mark the position coordinates of the single word or phrase in the picture to form a text picture library including: Determine the set of single word or phrase images that need to be placed in the picture; Placing the individual words or phrases of the image set one by one in one or more background images, and marking the position coordinates of each individual word or phrase placed in the background image; Integrate one or more background images with corresponding location annotation data to build a text image library; The position coordinates are marked including the bounding box coordinates, center point coordinates and key point coordinates of a single word or phrase.

4. The method for optimizing dynamic text display in three-dimensional visualization according to claim 1, characterized in that: According to preset logic rules or external input instructions, selectively retrieving and replacing corresponding single words or phrases from the text image library, and applying corresponding proportional transformation to the replaced single words or phrases include: Receiving and parsing preset logic rules or external input instructions to determine the single word or phrase that needs to be retrieved and replaced, the new position of the single word or phrase to be replaced, and the proportional transformation parameters that should be applied after the replacement; Using the determined position mark of the single word or phrase that needs to be retrieved and replaced, locate and obtain the image of the single word or phrase in the text image library; In the currently displayed image or scene, locate and remove the text or phrase to be replaced, and determine the insertion position of the replaced single word or phrase according to the new position of the replaced single word or phrase; Inserting the replacement text or phrase image retrieved from the text image library into the insertion position replacing the single word or phrase; The replaced text or phrase image is proportionally transformed according to the proportional transformation parameters that should be applied after the replacement.

5. The method for optimizing dynamic text display in three-dimensional visualization according to claim 1, characterized in that: During the dynamic text display process, according to the preset color change logic or external input instructions, the color of a single word or phrase in the display is adjusted in real time, including: Receive and analyze preset logic rules or external input instructions to determine the single word or phrase that needs to change color, the start and end colors of the color change, and the rate of color change; Retrieve the corresponding color change scheme from a pre-established color library through the unique identifier of the single word or phrase that needs to change color; If the corresponding color change scheme is not retrieved, a color change scheme is dynamically generated according to the text or phrase that needs to change the color, the start and end colors of the color change, and the rate of the color change; Based on the retrieved color change scheme or the dynamically generated color change scheme, according to the color change speed and the start and end colors of the color change, combined with an interpolation algorithm for generating intermediate color values ​​between the start color and the end color, the color value of each frame is calculated and updated to the displayed text in real time, so that the color-changed text is output to the specified display interface.

6. The method for optimizing dynamic text display in three-dimensional visualization according to claim 4 or 5, characterized in that: Preset color change logic, including the following triggering methods: Time trigger: trigger the color change of a single word or phrase according to the set time point or time period; Rhythm trigger: trigger the color change of a single word or phrase according to the rhythm or beat of the music; Scene change trigger: trigger the color change of a single word or phrase according to the switching of application scenes; External input commands include the following triggering methods: User interaction commands: trigger color changes of single words or phrases based on mouse clicks, touch events, or keyboard input; Audio signal command: trigger the color change of a single word or phrase based on the characteristic signal of the analyzed audio signal; Ambient light sensing data command: triggers the color change of a single word or phrase based on the current ambient light conditions obtained through the ambient light sensor.

7. A dynamic text display optimization system in three-dimensional visualization, characterized in that: include: A pre-processing module is used to perform rasterization and segmentation processing on the acquired dynamic text to obtain multiple independent single characters or phrases; A color change processing module is used to perform color change processing on each independent single word or phrase; A picture library output module is used to place a set single word or phrase in one or more pictures, and mark the position coordinates of the single word or phrase in the picture to form a text picture library; A text replacement module, for selectively retrieving and replacing corresponding single words or phrases from a text image library according to preset logic rules or external input instructions, and applying corresponding proportional transformation to the replaced single words or phrases; A color adjustment module is used to adjust the color of a single word or phrase in real time during the dynamic text display process according to a preset color change logic or an external input instruction; The color change processing for each independent single word or phrase includes: Sample the color of each individual word or phrase; Analyze the sampled color data, determine the basic color of a single word or phrase by statistically analyzing the color distribution and calculating the color average; Based on a preset color mapping table or color transformation algorithm, a color change scheme matching a single word or phrase is generated with the basic color as a starting point; Creating a unique identifier for each independent single word or phrase, and associating the generated color change scheme with the unique identifier of the corresponding single word or phrase; Create a color library to store color schemes associated with single words or phrases.

8. A device for optimizing dynamic text display in three-dimensional visualization, characterized in that: include: At least one database for storing and managing three-dimensional scene data, dynamic text data, color change schemes, and logic rules; and a memory in communication with at least one database; The memory stores instructions that can be executed by at least one database, and the instructions are executed by at least one database so that the at least one database can execute a method for optimizing dynamic text display in three-dimensional visualization as described in any one of claims 1-6.

9. A computer-readable medium having computer-executable instructions stored thereon, characterized in that: When the executable instructions are executed by the processor, a method for optimizing dynamic text display in three-dimensional visualization as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for changing colors of image

    CN104021579A

  • Character display method and device, computing device and storage medium

    CN109814977A

  • System and method for displaying commodity information by using electronic commerce

    CN113240488A

  • Game scene intelligent identification method, system and device and storage medium

    CN116020115A

  • Touch typing practice system using computer

    JP1998143060A