A method for rendering a display picture of a three-dimensional digital factory based on an HSV model

By analyzing and adjusting the H, S, and V values ​​using the HSV model, the problem of text blending with background colors in 3D digital factory display images was solved, improving the visual experience and color difference resolution.

CN115937386BActive Publication Date: 2026-04-28CITIC TECH GRP CO LTD SOUTHWEST BRANCH +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CITIC TECH GRP CO LTD SOUTHWEST BRANCH
Filing Date
2022-12-12
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

When viewing existing 3D digital factory display images on mobile devices, the text color blends with the background color, resulting in a poor visual experience and making it difficult to adjust color values ​​to improve the visual effect according to the needs of different users.

Method used

The HSV model is used to analyze the similarity between text and background color values. By adjusting the H, S, and V values, the color differences are optimized to meet the user's visual needs.

Benefits of technology

It improves the visual experience of 3D digital factory display images, enhances the color difference resolution between text and background, and improves the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115937386B_ABST
    Figure CN115937386B_ABST
Patent Text Reader

Abstract

The purpose of the present application is to provide a method for rendering a three-dimensional digital factory display picture based on an HSV model, which aims to solve the technical problem that the visual experience of operators viewing the three-dimensional digital factory display picture is poor, and it is difficult to adjust the text and background of the picture according to the color value requirements of different users. The method for rendering the three-dimensional digital factory display picture of the present application adopts an HSV color model. The HSV model focuses on the measurement of H and S components, making it very easy for the HSV color system to understand the three-dimensional digital factory display picture, and the color classification is simple and natural. The effect obtained by changing the HSV value is very clear and predictable for the text part and the background part, improving the visual experience of operators viewing the three-dimensional digital factory display picture, and being more consistent with the human visual system. According to the color value requirements of different users, the text and background of the picture are adjusted accordingly, better meeting the visual needs of users and achieving better visual effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing, and in particular to a method for rendering three-dimensional digital factory display images based on the HSV model. Background Technology

[0002] In the existing process of creating 3D digital factory display images, a sufficiently large base background needs to be established first. Depending on the user's choice, if the base background is not a solid color image, it may present different color styles, such as some areas displaying light colors and some areas displaying dark colors. Then, the 3D digital factory route planning diagram is drawn on the base background, and finally, the stations are drawn. Text templates are added at the corresponding station locations, and the text is edited in the text templates. Therefore, there may be color fusion between the base background and the upper text or line parts, which affects the user's visual experience.

[0003] Today's mobile devices, such as smartphones and tablets, are becoming increasingly powerful. These products already possess network capabilities and office document processing functions. In real-world applications, a 3D digital factory display image is a very large canvas, with corresponding text descriptions in different locations. When creating a 3D digital factory display image, different colors are often used to describe these locations. When users open the 3D digital factory display image on a mobile device, there may be some text colors that are not clearly distinguishable from the background color, or even some text colors that blend together, resulting in less than ideal text legibility and a poor viewing experience. Therefore, users may need to adjust the color values ​​of the text and background to achieve a better visual effect and display quality. Furthermore, since different users have different needs for the color values ​​of text and background, the H, S, and V parameters of the text or background can be adjusted to varying degrees to meet user requirements and achieve a better visual effect. Summary of the Invention

[0004] The purpose of this invention is to provide a method for rendering 3D digital factory display images based on the HSV model. The technical problem to be solved is that the visual experience of users viewing 3D digital factory display images is quite poor, and it is difficult to adjust the text and background according to the different users' needs for color values.

[0005] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:

[0006] A method for rendering a 3D digital factory display image based on an HSV model, characterized by the following steps:

[0007] Step 1: Input a 3D digital factory display image, which includes a text portion and a background portion. Obtain the color values ​​of the text portion and the background portion, and record them as follows: , The obtained color values ​​of the text portion and the background portion are converted into corresponding HSV values, and denoted as follows: , ;

[0008] Step 2: Analyze and compare the similarity between the color values ​​of the text portion and the background portion of the 3D digital factory display image, and determine whether the similarity meets the standard that requires adjustment.

[0009] Preferably, the specific process for determining whether the similarity meets the standard for adjustment is as follows:

[0010] (a) First, extract the color values ​​of the text portion and the background portion of the displayed image;

[0011] (b) Compare the color values ​​of the text portion and the background portion of the displayed picture in a specific area. Specifically, the similarity is measured using absolute error and SAD. The absolute error and SAD of the color values ​​of the text portion and the background portion are calculated in that specific area.

[0012] (c) When the SAD value is less than a certain threshold, the color values ​​of the text portion and the background portion of the displayed image meet the standards that need to be adjusted;

[0013] Step 3: If the color values ​​of the background and text portions of the 3D digital factory display image are the same, no adjustment is needed. If the color values ​​of the background and text portions of the 3D digital factory display image are different, adjust the H, S, and V values ​​of either the text or background portions of the 3D digital factory display image.

[0014] Preferably, in step 1, the specific process of converting the obtained RGB color values ​​of the text portion and the background portion into corresponding HSV values ​​is as follows:

[0015] V = max(R, G, B) S = (V - min(R, G, B)) / V (S = 0 when V = 0)

[0016] H = 60 (GB) / (V - min(R, G, B)) If V = R

[0017] H = 120 + 60(BR) / (V - min(R, G, B)) If V = G

[0018] H = 240 + 60(RG) / (V - min(R, G, B)) If V = B

[0019] If the obtained H < 0, then H = H + 360. In this case, the range of the hue information H is 0° to 360°, and the range of V and S is 0 to 1.

[0020] Preferably, in step 3, the process of adjusting the HSV value of the text or background portion of the 3D digital factory display image is as follows:

[0021] The preset purity threshold is denoted as The preset brightness threshold is denoted as The purity value S and brightness value V obtained after conversion are compared with preset purity thresholds and brightness thresholds, respectively. Based on the comparison results, the values ​​of H, S, and V are adjusted accordingly. If the purity value is greater than the preset purity threshold and the brightness value is greater than the preset brightness threshold, then... If the purity value is greater than a preset purity threshold and the brightness value is less than a preset brightness threshold, then let , If the purity value is less than a preset purity threshold and the brightness value is greater than a preset brightness threshold, then , If the purity value is less than the preset purity threshold And if the brightness value is less than the preset brightness threshold, then let , .

[0022] The method for rendering 3D digital factory display images in this invention uses the HSV color model. The HSV model focuses on measuring the H and S components, making the 3D digital factory display images very easy to understand. The color classification is simple and natural. By changing the HSV values, the effect obtained is very clear and predictable for the text and background parts, improving the user's visual experience of viewing the 3D digital factory display images. It is more in line with the human visual system. According to the different users' needs for color values, the text and background images are adjusted accordingly, better meeting the user's visual needs and achieving better visual effects. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0024] Figure 1 This is a flowchart of the present invention;

[0025] Figure 2 It uses the HSV color model. Detailed Implementation

[0026] This invention provides a method for rendering 3D digital factory display images based on the HSV model. The invention employs the HSV model because color images provide richer information than grayscale images. Therefore, with the rapid improvement of computer processing capabilities, color image processing is receiving increasing attention. Depending on the application, there are many color spaces for expressing color. Currently, the most widely used color space is the Red-Green-Blue (RGB) model, where color images are typically represented by the values ​​of the three components R, G, and B. However, while RGB is suitable for display systems, the R, G, and B components are highly correlated; if the luminance component changes, all three components will change accordingly. A color space more suitable for human eye color perception is the Hue, Saturation, Value (HSV) model. Hue and saturation are collectively referred to as chromaticity, which describes both the distribution of wavelength components of color and the intensity (the amount of white mixed in) of that color light. Therefore, this invention selects the HSV color model as the color model for rendering 3D digital factory display images.

[0027] like Figure 1 As shown, the specific implementation steps of the present invention are as follows:

[0028] Step 1: Input a 3D digital factory display image, which includes a text portion and a background portion. Obtain the color values ​​of the text portion and the background portion, and record them as follows: , The obtained color values ​​of the text portion and the RGB color values ​​of the background portion are then converted into their corresponding HSV values, which are denoted as follows: , ;

[0029] A point in the RGB space (R, G, B) that is transformed into the HSV space can be defined as:

[0030] V = max(R, G, B) S = (V - min(R, G, B)) / V (when V = 0, S = 0);

[0031] H = 60 (GB) / (V - min(R, G, B)) if V = R;

[0032] H = 120 + 60(BR) / (V - min(R, G, B)) if V = G;

[0033] H = 240 + 60(RG) / (V - min(R, G, B)) if V = B;

[0034] If the obtained H < 0, then H = H + 360. Thus, the range of the hue information H is 0° to 360°. The ranges of V and S are 0 to 1, where max(R, G, B) represents the maximum value among R, G, and B, and min(R, G, B) represents the minimum value among R, G, and B.

[0035] Step 2: Analyze and compare the similarity between the color values ​​of the text portion and the background portion of the 3D digital factory display image, and determine whether the similarity meets the standard that requires adjustment.

[0036] Generally, the human eye can distinguish 128 different colors, 130 color saturations, and 23 brightness levels. The human eye can intuitively compare the color difference between text and background in a foreground text template. However, a computer first needs to extract the color values ​​of the text and background portions of the displayed image. Then, it can compare the similarity of the color values ​​of the text and background portions in a specific area. Specifically, it can use absolute error and SAD to measure similarity. The absolute error and SAD of the color values ​​of the text and background portions are calculated in that specific area. If the SAD value is less than a certain threshold, then the color values ​​of the text and background portions of the displayed image are considered to have reached the standard requiring adjustment.

[0037] Step 3: If the color value of the background part of the 3D digital factory display picture is the same as the color value of the text part, no adjustment is needed. If the color value of the background part of the 3D digital factory display picture is different from the color value of the text part, adjust the H, S, V values ​​of the text part or the background part of the 3D digital factory display picture until the color value of the text and the color value of the background reach the ideal value.

[0038] In common software, such as Office presentation documents, there are code descriptions of the color values ​​of text and background. In the process of creating a 3D digital factory display image, the R, G, and B values ​​of the text and background can be directly obtained from the code description. The R, G, and B values ​​of the text and background are then converted using an RGB to HSV algorithm to obtain the corresponding H, S, and V values ​​of the text and background.

[0039] Preferably, in step 3, the process of adjusting the HSV value of the text or background portion of the 3D digital factory display image is as follows:

[0040] The preset purity threshold is denoted as The preset brightness threshold is denoted as The purity value S and brightness value V obtained after conversion are compared with preset purity thresholds and brightness thresholds, respectively. Based on the comparison results, the values ​​of H, S, and V are adjusted accordingly. If the purity value is greater than the preset purity threshold and the brightness value is greater than the preset brightness threshold, then... If the purity value is greater than a preset purity threshold and the brightness value is less than a preset brightness threshold, then let , If the purity value is less than a preset purity threshold and the brightness value is greater than a preset brightness threshold, then , If the purity value is less than the preset purity value and the brightness value is less than the preset brightness threshold, then let , , .

[0041] Reference Figure 2 The image shows the HSV color model (hexagonal pyramid model), where color is represented by the angle H, with a value ranging from 0° to 360°. Saturation is represented by S, with a value ranging from 0.0 to 1.0. The larger the S value, the more saturated the color. Brightness is represented by V, with a value ranging from 0 (black) to 255 (white).

[0042] If the preset purity threshold is denoted as The preset brightness threshold is denoted as The purity value S and brightness value V obtained after conversion are compared with preset purity thresholds and brightness thresholds, respectively. Based on the comparison results, the values ​​of H, S, and V are adjusted accordingly.

[0043] If the purity value S is greater than the preset purity threshold And the brightness value V is greater than the preset brightness threshold. , make ;

[0044] If the purity value S is greater than the preset purity threshold And the brightness value V is less than the preset brightness threshold. ,make , ;

[0045] If the purity value S is less than the preset purity threshold And the brightness value V is greater than the preset brightness threshold. ,

[0046] make , ;

[0047] If the purity value S is less than the preset purity threshold And the brightness value V is less than the preset brightness threshold. ,make , .

[0048] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention. The scope of protection claimed by the appended claims and their equivalents is defined.

Claims

1. A method for rendering 3D digital factory display images based on the HSV model, characterized in that, Includes the following steps: Step 1: Input a 3D digital factory display image, which includes a text portion and a background portion. Obtain the color values ​​of the text portion and the background portion, and record them as follows: , The obtained RGB values ​​of the text and background colors are converted into their corresponding HSV values ​​and denoted as follows: , ; Step 2: Analyze and compare the similarity between the color values ​​of the text portion and the background portion of the 3D digital factory display image, and determine whether the similarity meets the standard that requires adjustment. The specific steps for determining whether the similarity meets the standard for adjustment are as follows: (a) First, extract the color values ​​of the text portion and the background portion of the displayed image; (b) Compare the color values ​​of the text portion and the background portion of the displayed image in a specific area to obtain similarity. Specifically, use absolute error and SAD to measure similarity. Calculate the absolute error and SAD of the color values ​​of the text portion and the background portion in that specific area. (c) When the SAD value is less than a certain threshold, the color values ​​of the text portion and the background portion of the displayed image meet the standards that need to be adjusted; Step 3: If the color values ​​of the background and text portions of the 3D digital factory display image do not meet the adjustment standard, no adjustment is needed. If the color values ​​of the background and text portions of the 3D digital factory display image meet the adjustment standard, then adjust the H, S, and V values ​​of either the text or background portions of the 3D digital factory display image; specifically including: The preset purity threshold is denoted as The preset brightness threshold is denoted as The purity value S and brightness value V obtained after conversion are compared with preset purity thresholds and brightness thresholds, respectively. Based on the comparison results, the values ​​of H, S, and V are adjusted accordingly. If the purity value is greater than the preset purity threshold and the brightness value is greater than the preset brightness threshold, then... If the purity value is greater than a preset purity threshold and the brightness value is less than a preset brightness threshold, then let , If the purity value is less than a preset purity threshold and the brightness value is greater than a preset brightness threshold, then , If the purity value is less than a preset purity threshold and the brightness value is less than a preset brightness threshold, then let , , .

2. The method for rendering a 3D digital factory display image based on an HSV model according to claim 1, characterized in that, In step 1, the specific process of converting the obtained RGB color values ​​of the text portion and the background portion into corresponding HSV values ​​is as follows: V = max(R, G, B) S = (V - min(R, G, B)) / V; where S = 0 when V = 0. H = 60 (GB) / (V - min(R, G, B)) if V = R; H = 120 + 60(BR) / (V - min(R, G, B)) if V = G; H = 240 + 60(RG) / (V - min(R, G, B)) if V = B; If the obtained H < 0, then H = H + 360; thus, the range of the hue information H is 0° to 360°, and the range of V and S is 0 to 1, where max(R, G, B) represents the maximum value among R, G, and B, and min(R, G, B) represents the minimum value among (R, G, B).

Citation Information

Patent Citations

  • Image color retrieval method and system

    CN103699532A

  • Character display method and device

    CN105812888A