A scene map generation system
By extracting the hue, color temperature, and visual focus of the scene design drawing, building a color profile, and generating a scene map, the problem of low accuracy in traditional solutions is solved, achieving higher accuracy and restoration.
Patent Information
- Application Number
- CN202410631931.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-05-21
AI Technical Summary
Traditional scene map generation solutions have low accuracy and fail to fully utilize design information, resulting in inaccurate generated scene maps and a low degree of restoration of the scene design drawings.
The design element extraction module extracts the hue, color temperature and visual focus of the scene design drawing, builds a color profile, uses the image decoding module to generate a scene map, and combines the design information to improve accuracy.
By introducing global information, the accuracy and restoration of scene mapping are improved, ensuring the consistency of rendering effects with design effects.
Smart Images

Figure CN118470148B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and in particular relates to a scene map generation system. Background Art
[0002] The current scene map generation scheme is a traditional compression scheme based on visual perception and mathematical algorithms within the image. It does not fully utilize design information. On the one hand, traditional mathematical algorithms will introduce color value errors outside the design range. On the other hand, the algorithm's optimization is not targeted enough, making optimization difficult.
[0003] In addition, the traditional scene texture generation scheme does not introduce global information into the texture generation process, which will result in the generated scene texture being inaccurate and the degree of restoration of the scene design drawing being low.
[0004] In summary, the accuracy of scene maps generated by current scene map generation schemes is low. Summary of the Invention
[0005] The present application provides a scene map generation system that can solve the problem of low accuracy of scene maps generated by traditional technical solutions.
[0006] The present application provides a scene map generation system, comprising a design element extraction module, a design element storage module, and an image decoding module;
[0007] The design element extraction module is used to extract the hue, color temperature and visual focus of the scene design drawing respectively, and send the hue, color temperature and visual focus to the design element storage module; the visual focus represents the low-frequency information of the scene design drawing;
[0008] The design element storage module is used to construct a color profile based on hue, color temperature, and visual focus; the color profile includes image path, image description, hue, color temperature, and visual focus;
[0009] The image decoding module is used to generate a scene map corresponding to the scene design drawing according to the color configuration file.
[0010] Optionally, the design element extraction module extracts the color tone of the scene design drawing, including:
[0011] Convert the scene design image from RGB space to HSV color space, obtain the HSV image corresponding to the scene design image, and extract the hue of the HSV image;
[0012] According to the number of pixels corresponding to the scene design drawing, the hue is segmented to obtain a plurality of pixel blocks, and the color average of each pixel block is used as the sub-hue corresponding to the pixel block; the plurality of pixel blocks correspond to a plurality of theme colors of the scene design drawing, each theme color corresponds to at least one pixel block, and each pixel block includes at least one pixel of the scene design drawing;
[0013] The sub-tones corresponding to the multiple pixel blocks are used as the tones of the scene design drawing.
[0014] Optionally, the color temperature is obtained from pre-configured information of the scene design diagram.
[0015] Optionally, the design element extraction module extracts the visual focus of the scene design diagram, including:
[0016] Perform Fourier transform on the scene design drawing to obtain the visual focus; the visual focus represents the low-frequency information corresponding to the scene design drawing.
[0017] Optionally, color profiles are independent of the scene art.
[0018] Optionally, generate a scene map corresponding to the scene design drawing based on the color profile, including:
[0019] Decoding the scene design drawing into raw RGB color data using a decoder, and writing the visual focus in the color profile into the raw RGB color data to obtain first RGB color data;
[0020] Writing the hue in the color profile into the first RGB color data to obtain second RGB color data;
[0021] The color temperature in the color configuration file is used as the color temperature of the second RGB color data, the scene design drawing is obtained according to the image path and image description in the color configuration file, and the scene map is obtained according to the scene design drawing and the second RGB color data.
[0022] The above solution of the present application has the following beneficial effects:
[0023] The scene map generation system provided in the present application utilizes a design element extraction module to extract the hue, color temperature, and visual focus of a scene design drawing, utilizes a design element storage module to construct a color profile based on the hue, color temperature, and visual focus, and then utilizes an image decoding module to generate a scene map corresponding to the scene design drawing based on the color profile. In the process of generating the scene map, the hue, color temperature, and visual focus of the scene design drawing, and other design information are fully combined, which is conducive to improving the accuracy of the scene map. At the same time, by constructing a color profile as global information, the degree of restoration of the scene map to the scene design drawing is effectively guaranteed.
[0024] Other beneficial effects of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] Figure 1 A schematic diagram of the structure of a scene map generation system provided in one embodiment of the present application;
[0027] Figure 2 This is an execution flow chart of a scene map generation system provided in one embodiment of the present application. DETAILED DESCRIPTION
[0028] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0029] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0030] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0031] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0032] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0033] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0034] In response to the problem of low accuracy of scene maps generated by traditional technical solutions, the present application provides a scene map generation system, which uses a design element extraction module to extract the hue, color temperature and visual focus of the scene design drawing, uses a design element storage module to construct a color configuration file based on the hue, color temperature and visual focus, and then uses an image decoding module to generate a scene map corresponding to the scene design drawing based on the color configuration file. In the process of generating the scene map, the design information is fully integrated, which is conducive to improving the accuracy of the scene map. At the same time, by introducing global information, the restoration degree of the scene map to the scene design drawing is effectively guaranteed.
[0035] The scene map generation system provided by this application is described in detail below.
[0036] like Figure 1 As shown, the scene map generation system includes a design element extraction module 101, a design element storage module 102 and an image decoding module 103, and each module is connected in sequence.
[0037] The design element extraction module 101 is used to extract the hue, color temperature and visual focus of the scene design drawing respectively, and send the hue, color temperature and visual focus to the design element storage module 102.
[0038] In an embodiment of the present application, the scene design drawing may be a game screen design drawing or an architectural design drawing, etc. It is an important tool for designers to express design plans, communicate ideas, and demonstrate effects, and presents design concepts and implementation plans in the form of drawings or images.
[0039] The following describes the process of extracting the color tone of the scene design drawing by the design element extraction module 101, which specifically includes steps a to c:
[0040] Step a: convert the scene design drawing from the RGB space to the HSV color space, obtain the HSV image corresponding to the scene design drawing, and extract the hue of the HSV image.
[0041] Specifically, first, the color value of each pixel in the RGB image is converted to the corresponding HSV color value.
[0042] It should be noted that the above conversion can be achieved through mathematical formulas or common color space conversion functions provided in image processing libraries.
[0043] Then, extract the hue channel from the converted HSV image.
[0044] It should be noted that the hue channel represents the color type or category of each pixel in the image. Usually, the hue value range is 0 to 360 degrees.
[0045] Step b: segment the hue according to the number of pixels corresponding to the scene design diagram to obtain multiple pixel blocks, and use the color average of each pixel block as the sub-tone corresponding to the pixel block.
[0046] The plurality of pixel blocks correspond to a plurality of theme colors of the scene design drawing, each theme color corresponds to at least one pixel block, and each pixel block includes at least one pixel of the scene design drawing.
[0047] The above-mentioned process of segmenting the hue is as follows: converting RGB into the color value of the HSV space, sorting and segmenting the hue, and extracting the sub-hue.
[0048] The calculation process of the above color average value is shown in steps I to III:
[0049] Step I: sort the pixels in each pixel block according to the hue value (H).
[0050] Step II: If the number n of pixels in the pixel block is an odd number, the color average is the color value of the (n+1) / 2th pixel after sorting, otherwise execute step III.
[0051] Step III: If the number n of pixels in the pixel block is an even number, the color average is the average of the color values of the sorted n / 2th pixel and the (n / 2)+1th pixel.
[0052] Step c: using the sub-tones corresponding to the plurality of pixel blocks as the tones of the scene design drawing.
[0053] It should be noted that in the embodiments of this application, the color temperature is obtained from the pre-configured information of the scene design. For example, the color temperature is pre-specified by the designer and the data format is a string consisting of a four-digit value such as "6500K" or "3000K" followed by the letter "K". For example, when the color temperature is "6500K", it indicates that the color tone of the scene design is biased towards blue.
[0054] Compared with RGB images, HSV images themselves are composed of three components: hue, saturation, and value, which are more suitable for hue extraction. Therefore, this application converts the scene design diagram from RGB space to HSV color space.
[0055] The following is an exemplary description of the process of extracting the visual focus of the scene design drawing by the design element extraction module 101 in the embodiment of the present application.
[0056] Specifically, a Fourier transform is performed on the scene design drawing to obtain the visual focus. The visual focus represents the low-frequency information corresponding to the scene design drawing. During the decompression and restoration process of the scene design drawing, the visual focus can ensure that the scene map can be accurately restored to the design effect corresponding to the scene design drawing.
[0057] The design element storage module 102 is used to construct a color profile according to hue, color temperature, and visual focus.
[0058] In the embodiments of this application, the color configuration file is independent of the scene design. Its format can be set to JSON and contains the image path (pointing to the original material image to be used for texture generation), image description (providing a detailed description or guidance of the texture content), hue, color temperature, and visual focus information. This file can exist independently of the image and can be loaded from the network or locally based on the association relationship when used.
[0059] The image decoding module 103 is used to generate a scene map corresponding to the scene design drawing according to the color configuration file.
[0060] The following describes the workflow of the image decoding module 103 in detail, as shown in steps A to C:
[0061] In step A, a decoder is used to decode the scene design diagram into original RGB color data, and a visual focus in a color configuration file is written into the original RGB color data to obtain first RGB color data.
[0062] The above-mentioned original RGB color data includes the RGB value corresponding to each pixel in the scene design image.
[0063] Step B: writing the color tone in the color profile into the first RGB color data to obtain second RGB color data.
[0064] Step C: Using the color temperature in the color configuration file as the color temperature of the second RGB color data, obtaining a scene design drawing according to the image path and image description in the color configuration file, and obtaining a scene map according to the scene design drawing and the second RGB color data.
[0065] From the above content, it can be seen that the scene map generation system provided by this application uses a design element extraction module to extract the hue, color temperature and visual focus of the scene design drawing, uses a design element storage module to construct a color configuration file based on the hue, color temperature and visual focus, and then uses an image decoding module to generate a scene map corresponding to the scene design drawing based on the color configuration file. In the process of generating the scene map, the design information such as the hue, color temperature and visual focus of the scene design drawing is fully combined, which is conducive to improving the accuracy of the scene map. At the same time, by constructing a color configuration file as global information, the restoration degree of the scene map to the scene design drawing is effectively guaranteed.
[0066] The following is an exemplary description of the execution process of the scene map generation system in another embodiment of the present application. Figure 2 As shown:
[0067] First, the designer designs the scene and forms a scene design drawing.
[0068] This step corresponds to Figure 2 Design the scene and form the scene design drawing.
[0069] Then, the design drawing information is extracted (the hue, color temperature and visual focus of the scene design drawing are extracted respectively).
[0070] This step corresponds to Figure 2 Extracting design drawing information.
[0071] Then, the design drawing information is written into the color profile (a color profile is constructed based on hue, color temperature and visual focus, and the color profile includes image path, image description, hue, color temperature and visual focus).
[0072] This step corresponds to Figure 2 Write color profiles and file storage in .
[0073] Then, the color profile is stored in Json format.
[0074] This step corresponds to Figure 2 File management in .
[0075] Finally, when the map is generated, the color configuration file is downloaded, and according to the picture path and picture description in the color configuration file, the original scene design picture is downloaded, and finally the scene design picture corresponding to the scene map is generated based on the original scene design picture and the color tone, color temperature and visual focus in the color configuration (picture decoding restoration).
[0076] This step corresponds to color configuration file download, picture download and picture decoding restoration in Figure 2
[0077] The application has the advantages that: the design information is innovatively introduced, the scene global color tone information, color temperature information and local picture own detail information are extracted and stored into the color configuration file, the problem of repeated storage of the local picture color tone information of the consistent or close color tone in the scene is reduced, the color temperature is introduced to increase the consistency of the scene rendering effect and the design effect, the visual focus information of the local picture is introduced, in the case of missing original picture, the picture close to the original picture effect can be generated through the visual focus information, scene color tone information and color temperature information, so that the rendering process can be normally carried out, the rendering effect is close to the design effect, and the client service accessibility and user experience are greatly improved.
[0078] The above is the preferred embodiment of the application, and it should be pointed out that for ordinary skilled persons in the technical field, some improvements and refinements can be made without departing from the principles described in the application, and these improvements and refinements should also be regarded as the protection scope of the application.
Claims
1. A scene map generation system, characterized in that: It includes a design element extraction module, a design element storage module and an image decoding module; The design element extraction module is used to extract the color tone, color temperature and visual focus of the scene design drawing respectively, and send the color tone, color temperature and visual focus to the design element storage module; The visual focus represents low-frequency information of the scene design diagram; The design element extraction module extracts the color tone of the scene design drawing, including: Convert the scene design drawing from the RGB space to the HSV color space to obtain an HSV image corresponding to the scene design drawing, and extract the hue of the HSV image; Segmenting the hue according to the number of pixels corresponding to the scene design drawing to obtain a plurality of pixel blocks, and using the color average of each pixel block as the sub-hue corresponding to the pixel block; the plurality of pixel blocks correspond to a plurality of theme colors of the scene design drawing, each theme color corresponds to at least one pixel block, and each pixel block includes at least one pixel of the scene design drawing; Using the sub-tones corresponding to the plurality of pixel blocks as the hue of the scene design drawing; The color temperature is obtained from pre-configured information of the scene design diagram; The design element extraction module extracts the visual focus of the scene design drawing, including: Performing Fourier transform on the scene design drawing to obtain the visual focus; the visual focus represents low-frequency information corresponding to the scene design drawing; The design element storage module is used to construct a color profile according to the hue, the color temperature, and the visual focus; the color profile includes an image path, an image description, the hue, the color temperature, and the visual focus; The image decoding module is used to generate a scene map corresponding to the scene design drawing according to the color configuration file.
2. The scene map generation system according to claim 1, characterized in that: The color profile is independent of the scene design graph.
3. The scene map generation system according to claim 1, characterized in that: Generating a scene map corresponding to the scene design drawing according to the color configuration file includes: Decoding the scene design drawing into original RGB color data using a decoder, and writing the visual focus in the color configuration file into the original RGB color data to obtain first RGB color data; Writing the color tone in the color profile into the first RGB color data to obtain second RGB color data; The color temperature in the color configuration file is used as the color temperature of the second RGB color data, the scene design drawing is obtained according to the image path and the image description in the color configuration file, and a scene map is obtained according to the scene design drawing and the second RGB color data.
Citation Information
Patent Citations
Three-dimensional scene rendering method capable of realizing day and night plotting effect
CN110378989A
Map processing method and device, electronic equipment and readable storage medium
CN117576242A