Method, system, equipment and medium for constructing ancient building color gene pedigree database

By constructing the color gene spectrum database of ancient buildings, the problem of low accuracy in color determination of ancient buildings is solved, and the efficient management and application of color information is realized, providing a scientific basis for the protection of ancient buildings and modern architectural design.

CN119003814BActive Publication Date: 2025-05-02BEIJING SHOUHUA CONSTR OPERATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411022107.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2025-05-02
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

The existing technology has the problem of low accuracy in determining the color of ancient buildings, and it has failed to effectively determine the color based on the architectural characteristics of ancient buildings.

Method used

Construct the color gene lineage database of ancient buildings, establish a color gene library, perform ancient buildings classification and color sample extraction, generate new colors that meet the needs of application scenarios, and establish a database through coding and statistical analysis.

Benefits of technology

It improves the management and application efficiency of color information of ancient buildings, realizes the precise grasp of color change laws and scientific basis, and provides support for the protection, restoration and modern architectural design of ancient buildings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003814B_ABST
    Figure CN119003814B_ABST
Patent Text Reader

Abstract

The invention relates to the field of ancient building restoration, and the construction method, system, equipment and medium of the color gene pedigree database of ancient buildings. In the method, a color gene library is constructed, and the color gene library includes the coding rules of basic colors, basic color values, chromaticity coordinates and coding rules of non-basic colors; the ancient buildings are classified, and color samples of various types of ancient buildings are extracted, and new colors that meet the requirements of application scenarios are generated according to the color samples; the new colors are encoded according to the coding rules of the color gene library, and the variant variables that affect the color change are collected, and the coding and variant variables are statistically analyzed; the coding and variant variables are used as the database base, the statistical analysis results are used as the screening conditions, and the business scenarios are combined as the search and measurement standards to establish a database. The implementation of the technical solution provided by the present application improves the management and application efficiency of the color information of ancient buildings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of ancient building restoration, and in particular to a method, system, electronic device and storage medium for constructing an ancient building color gene pedigree database. Background Art

[0002] As a carrier of culture and history, the use of colors in ancient buildings carries profound cultural heritage and artistic value. However, as time goes by, the colors of ancient buildings will change due to various factors such as the natural environment and human factors. In the field of ancient building repair, it is particularly important to determine the color of ancient buildings. For example, it is necessary to determine the corresponding ancient building color of the ancient building area to be repaired, and then select the paint corresponding to the color of the ancient building for painting.

[0003] At present, the color of ancient buildings is not determined by combining the architectural characteristics of ancient buildings, but by using a general color determination method, which has the problem of low color determination accuracy. In this regard, a more accurate color determination method for ancient buildings is urgently needed. On this basis, it is necessary to first build a database dedicated to the color of ancient buildings in combination with the architectural characteristics of ancient buildings.

[0004] Therefore, how to establish a database that can systematically manage and query the color information of ancient buildings has become an urgent problem to be solved in the current field of ancient building protection. Summary of the invention

[0005] The present application provides a method, system, device and medium for constructing an ancient building color gene pedigree database, which can conveniently query, analyze and apply ancient building colors, thereby improving the management and application efficiency of ancient building color information.

[0006] In a first aspect of the present application, a method for constructing an ancient building color gene pedigree database is provided, which is applied to an ancient building color construction platform. The construction method comprises:

[0007] Constructing a color gene library, wherein the color gene library includes coding rules of basic colors, basic color values, chromaticity coordinates, and coding rules of non-basic colors;

[0008] Classify ancient buildings, extract color samples of various ancient buildings, and generate new colors that meet the needs of application scenarios based on the color samples;

[0009] Encoding the new color according to the encoding rules of the color gene library, collecting the variant variables that affect the color change, and performing statistical analysis on the encoding and the variant variables;

[0010] The database is established by taking coding and variant variables as the database base, using statistical analysis results as screening conditions, and combining business scenarios as search and measurement criteria.

[0011] By adopting the above technical solutions, the coding rules of basic colors, basic color values, chromaticity coordinates and coding rules of non-basic colors are established, and a scientific and systematic color gene library is constructed. This provides a solid foundation for subsequent color analysis, coding and database construction. The ancient buildings are classified and color samples of various ancient buildings are extracted. This process ensures the representativeness and extensiveness of the samples. The new colors generated based on these color samples can more accurately reflect the actual application of ancient building colors. The new colors are encoded using the coding rules of the color gene library, and the variant variables that affect color changes are collected for statistical analysis. This method can accurately grasp the laws and trends of color changes and provide a scientific basis for color design and application. The coding and variant variables are used as the database base, combined with the statistical analysis results as the screening conditions, and the business scenarios are considered as the search and measurement criteria. This construction method makes the database both flexible and able to meet the needs of different application scenarios. The established ancient building color gene pedigree database can be directly applied to the ancient building color construction platform, providing strong support for the protection and restoration of ancient buildings and the use of colors in modern architectural design. Through the database, users can easily query, analyze and apply ancient building colors to improve work efficiency and design quality. By constructing a database of ancient building color gene genealogy, we can systematically organize and preserve the color information of ancient buildings, providing important information for future generations to understand and inherit the ancient building culture. On the basis of inheritance, the database can also provide inspiration and reference for modern architectural design, and promote the integration and innovation of traditional culture and modern design.

[0012] Optionally, the construction of a color gene library includes:

[0013] According to the CDS standard, the codes, color values ​​and chromaticity coordinates of basic colors are collected and sorted. The basic colors refer to the ten basic primary colors used to mix other colors.

[0014] Draw a hue circle in the color space to clarify the position of each basic color;

[0015] Assigning adjacent basic color symbols and color scale values ​​to each non-basic color on the hue circle to form a complete code;

[0016] The codes, color values ​​and chromaticity coordinates of all basic colors and non-basic colors are stored in the color gene library.

[0017] By adopting the above technical solution and following the CDS standard, the coding, color value and chromaticity coordinates of basic colors are collected and sorted, ensuring the standardization and normalization of color data. This helps to uniformly compare and analyze color data collected from different sources and at different times. The ten basic primary colors are clearly defined as basic colors, which are the basis for mixing other colors. This selection method builds a systematic and complete color basic system, providing solid support for subsequent color analysis, coding and application. Drawing the hue circle in the color space and clarifying the position of each basic color not only intuitively shows the relationship between colors, but also facilitates the subsequent accurate positioning and coding of non-basic colors. Each non-basic color on the hue circle is assigned an adjacent basic color symbol and color scale value to form a complete coding. This coding method not only maintains the connection with the basic color, but also can accurately express the color characteristics of non-basic colors, improving the flexibility and accuracy of coding. The coding, color value and chromaticity coordinates of all basic and non-basic colors are stored in the color gene library, realizing efficient storage and centralized management of color data. This not only facilitates data query and retrieval, but also facilitates subsequent color analysis, application and database expansion. The constructed color gene library can be widely used in many fields such as ancient building color research, modern architectural design, color matching and adjustment, etc. Through this gene library, researchers and designers can easily obtain the required color information and improve work efficiency and design quality.

[0018] Optionally, the classification of ancient buildings includes:

[0019] Collecting the building monomer colors and environmental colors of the ancient buildings, and performing initial clustering on the ancient buildings according to the building monomer colors and environmental colors to obtain an initial ancient building classification;

[0020] According to the architectural function categories of ancient buildings, the initial ancient building classification is reclassified to obtain the final ancient building classification.

[0021] By adopting the above technical scheme, by collecting the building monomer color and environmental color of the ancient building, not only the color characteristics of the building itself are considered, but also the color influence of the surrounding environment is taken into account. This comprehensive consideration makes the classification results more comprehensive and accurate. Based on the initial clustering of the building monomer color and environmental color, the ancient buildings with similar color characteristics can be quickly clustered together to form a preliminary classification framework. On the basis of the initial clustering, the ancient buildings are further reclassified according to the architectural function category. This step fully considers the actual use and functional characteristics of the ancient buildings, making the classification results more accurate and practical. Through functional classification, we can better understand the characteristics and laws of color application of ancient buildings of different categories, and provide more targeted guidance for subsequent color research and application. Scientific and reasonable classification of ancient buildings is conducive to establishing a unified management system and improving management efficiency. Different types of ancient buildings can adopt different protection, restoration and management measures. The classified ancient building data is more orderly and clear, which is convenient for researchers to conduct in-depth analysis and mining. This helps to reveal the cultural connotation and historical changes behind the color of ancient buildings and promote the in-depth development of ancient building color research.

[0022] Optionally, the extracting of color samples of various ancient buildings includes:

[0023] Determine the building material category according to the category of the ancient building, wherein the building material category includes the facade material category and the material category of the attachment itself;

[0024] Use color measuring instruments to sample the color of the facades and attachments of ancient buildings or take high-definition images.

[0025] By adopting the above technical solution, by clarifying the category of ancient buildings, and then determining the category of their building materials (including the category of facade materials and the category of materials of the attachments themselves), this step ensures the accuracy and pertinence of color sampling. Different building materials may have differences in color performance, so sampling according to material categories can more accurately reflect the true color of ancient buildings. Using color measuring instruments to sample the facades and attachments of ancient buildings can greatly improve the accuracy and efficiency of sampling. Color measuring instruments can quantify color parameters such as hue, brightness, saturation, etc., to ensure the objectivity and repeatability of sampling data. In addition to color measuring instruments, color sampling through high-definition image shooting is also an effective method. High-definition images can capture the details and color changes of ancient buildings, providing rich materials for subsequent color analysis and application. At the same time, image sampling is non-contact and will not cause damage to ancient buildings. Whether using color measuring instruments or high-definition image shooting, both methods have strong adaptability and flexibility. They can be applied to the color sampling of ancient buildings of different materials, shapes, and sizes to meet diverse sampling needs. The collected color sample data can be used in subsequent color analysis, coding, database construction and other links. These data not only provide basic information for the study of ancient building colors, but also provide reference for modern architectural design, color matching and adjustment and other fields. By extracting color samples of ancient buildings, we can establish ancient building color archives and provide a scientific basis for the protection of ancient buildings. In the process of restoration and reconstruction, we can choose appropriate materials and colors according to the color sample data to ensure that the color of the restored ancient buildings remains consistent with the original appearance.

[0026] Optionally, generating a new color that meets the requirements of an application scenario according to the color sample includes:

[0027] Use color design software or virtual reality technology to simulate the effects of different decorative materials laid on the facade of the ancient building and generate corresponding color preview images. According to the simulation effect, adjust the color parameters of the decorative materials to generate the first new color that conforms to the style of the ancient building; or

[0028] The influence of material characteristics on color expression is determined according to the building material category, and a second new color is generated according to the influence and the color harmony principle to ensure that the second new color is consistent with the color sample of the building material category.

[0029] By adopting the above technical solution, the effect of different decorative materials laid on the facade of the ancient building can be intuitively simulated through color design software or virtual reality technology, and a color preview can be generated. This method enables designers and decision makers to intuitively see the application effect of the new color in the actual scene, which improves the scientificity and accuracy of decision-making. Virtual reality technology also allows users to immerse themselves in the simulation environment and feel the visual impact and atmosphere changes brought by the new color, thereby further improving user experience and satisfaction. According to the simulation effect, the designer can flexibly adjust the color parameters of the decorative material, such as hue, brightness, saturation, etc., to generate the first new color that conforms to the style of the ancient building. This adjustability makes the color design more flexible and changeable, and can meet the needs of different application scenarios. Whether it is for the restoration of traditional ancient buildings or the design of modern buildings, this method can provide an effective color solution to ensure that the new color is coordinated with the ancient building style or modern design concept. Determining the influence of material characteristics on color performance according to the category of building materials is an important prerequisite for generating the second new color. This method fully considers the influence of materials on color, making the new color more in line with the physical and chemical properties of actual applications. In the process of generating the second new color, the principle of color harmony is applied to ensure that the new color is consistent and coordinated with the color samples of the building material category. This scientific and professional approach makes the new color not only beautiful but also practical.

[0030] Optionally, encoding the new color according to the encoding rules of the color gene library, collecting variant variables that affect color changes, and performing statistical analysis on the encoding and variant variables include:

[0031] Determine the color parameters of the new color, the color parameters include hue, lightness and saturation, convert the color parameters into a unique code, and collect corresponding variation variables according to the category of the ancient building;

[0032] The unique code and the variant variable data are statistically analyzed to determine the correlation or causal relationship between the unique code and the variant variable.

[0033] By adopting the above technical solution, the color parameters (hue, brightness, saturation) of the new color are converted into a unique code, so that the color information is standardized and unified. This coding method is not only convenient for computer processing and storage, but also convenient for data exchange and sharing between different systems. The variant variables that affect color changes, such as time, climate, lighting conditions, aging of building materials, etc., are collected, which may have an important impact on the performance of the new color. By collecting these variables, a more comprehensive data set can be established. The unique code and the variant variable data are statistically analyzed to determine the correlation or causal relationship between them. This analysis helps to understand the causes and laws of color changes and provide a scientific basis for color protection and restoration. Through coding and statistical analysis, accurate management and monitoring of color changes can be achieved. When color changes are found, the relevant variant variables can be quickly located, and corresponding measures can be taken to adjust or repair them. Based on the results of statistical analysis, it can provide strong support for decision-making in the fields of ancient building restoration, architectural design, color matching, etc. For example, in ancient building restoration, appropriate restoration materials and processes can be selected according to the causes and laws of color changes; in architectural design, more scientific color matching schemes can be formulated based on color coding and variant variable data. Through in-depth research on color coding and variation variables, we can promote the development of color science, material science, environmental science and other fields. This interdisciplinary research helps to reveal the nature and laws of color change and provide more effective solutions for color protection and restoration.

[0034] Optionally, establishing a database includes:

[0035] Design database table structure, including color table, lighting table and ancient building table;

[0036] Using the chain rule and relationship analysis methods, the effects of materials and climate on color are quantified into a function or set form;

[0037] Based on the quantitative results, a mathematical model between materials, climate and color is established;

[0038] An ancient building color gene pedigree database is constructed based on the database table structure and the mathematical model.

[0039] By adopting the above technical solution, the structured storage of ancient building color-related data is realized by designing database table structures such as color table, light table and ancient building table. This storage method not only facilitates data query, update and maintenance, but also improves the integrity and consistency of the data. Using the chain rule and relational analysis method, the influence of external factors such as materials and climate on the color of ancient buildings is quantified into a function or set form. This step makes the influencing factors that were originally difficult to quantify measurable, providing data support for subsequent mathematical modeling. Based on the quantitative results, a mathematical model between materials, climate and color is established. This model can accurately describe how external factors affect the color of ancient buildings, providing a scientific basis for color prediction, protection and restoration. According to the database table structure and mathematical model, an ancient building color gene pedigree database is constructed. The database can efficiently store, retrieve and analyze ancient building color-related data, support complex query and analysis operations, and improve the efficiency and accuracy of data processing.

[0040] In a second aspect of the present application, a system for constructing an ancient building color gene pedigree database is provided, including a construction module, a classification module, an encoding module and a database construction module, wherein:

[0041] A construction module configured to construct a color gene library, wherein the color gene library includes coding rules for basic colors, basic color values, chromaticity coordinates, and coding rules for non-basic colors;

[0042] A classification module is configured to classify ancient buildings, extract color samples of various ancient buildings, and generate new colors that meet the requirements of application scenarios based on the color samples;

[0043] A coding module configured to encode the new color according to the coding rules of the color gene library, collect variant variables that affect color changes, and perform statistical analysis on the coding and variant variables;

[0044] The database building module is configured to build a database using coding and variant variables as the database base, statistical analysis results as screening conditions, and business scenarios as search and measurement criteria.

[0045] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0046] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0047] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0048] 1. By constructing a color gene library, including the coding rules of basic colors, basic color values, chromaticity coordinates, and coding rules of non-basic colors, the systematization and standardization of ancient building colors are achieved. This standardization is not only conducive to the unified management and analysis of color data, but also improves the reusability and portability of color data;

[0049] 2. Classify ancient buildings and extract color samples, and generate new colors that meet the needs of application scenarios based on the color samples. This process ensures the fit between the new colors and the style of ancient buildings, while meeting the needs of actual application scenarios. Through the precise extraction of color samples and the precise generation of new colors, it provides strong color support for ancient building restoration, architectural design and other fields;

[0050] 3. Encode new colors according to the coding rules of the color gene library, and collect the variation variables that affect color changes for statistical analysis. This analysis method can reveal the complex relationship between color changes and external factors such as materials and climate, and provide a scientific basis for color prediction, protection and restoration. At the same time, the introduction of coding also makes color data easier to process and analyze;

[0051] 4. Use coding and variant variables as the database base, statistical analysis results as screening conditions, and business scenarios as search and measurement criteria to establish a database. This database structure makes data management and retrieval more efficient and convenient. Users can quickly locate relevant color data and analysis results as needed, providing strong support for decision-making and practical applications.

[0052] 5. The constructed database is not only applicable to the field of ancient building restoration, but can also be widely used in architectural design, color matching, cultural heritage and other fields. By adjusting the search and measurement standards, it can flexibly meet the color needs in different scenarios;

[0053] 6. The color of ancient buildings is an important part of traditional culture. By constructing a color gene genealogy database, we can systematically record and preserve the historical changes and cultural connotations of ancient building colors, providing an important carrier for cultural inheritance. At the same time, the establishment of the database also provides rich materials and sources of inspiration for color research and innovation. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flowchart of the method for constructing the ancient building color gene pedigree database disclosed in the embodiment of the present application;

[0055] Figure 2 It is a schematic diagram of colorful basic color coding disclosed in the embodiment of the present application;

[0056] Figure 3 It is a schematic diagram of the achromatic basic color coding disclosed in the embodiment of the present application;

[0057] Figure 4 is a schematic diagram of the hue ring disclosed in the embodiment of the present application;

[0058] Figure 5 It is a schematic diagram of the color gene of ancient buildings disclosed in the embodiments of this application;

[0059] Figure 6 It is a module schematic diagram of the construction system of the ancient building color gene pedigree database disclosed in the embodiment of the present application;

[0060] Figure 7 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0061] Explanation of the reference numerals: 601, construction module; 602, classification module; 603, encoding module; 604, database building module; 701, processor; 702, communication bus; 703, user interface; 704, network interface; 705, memory. DETAILED DESCRIPTION

[0062] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0063] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0064] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0065] This embodiment discloses a method for constructing an ancient building color gene pedigree database, which is applied to an ancient building color construction platform. Figure 1 is a flow chart of the method for constructing the ancient building color gene pedigree database disclosed in the embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0066] S110, constructing a color gene library, wherein the color gene library includes coding rules of basic colors, basic color values, chromaticity coordinates, and coding rules of non-basic colors;

[0067] The color gene library is constructed using the CDS "Color Design System" GB / Z35473-2017 color coding standard. Basic colors include colored basic colors and achromatic basic colors. The color hue code (H) and color position code (b / w) are combined into a complete colored basic color code, where the colored basic color code is represented by the hue symbol and the number 100, and the code other than the colored basic color is represented by the two adjacent basic color hue symbols and the corresponding order, and the sum of the orders is equal to 100. Among them, b is the black amount, w is the white amount, and c is the color amount. b+w=100-c. Figure 2 is a schematic diagram of the colorful basic color coding disclosed in the embodiment of the present application, such as Figure 2 As shown in the figure, the color code T21B79 and the color bit code b25w49 with a cyan ratio of 21, a blue ratio of 79, a black amount of 25, and a white amount of 49 are combined into T21B79 b25w49. The letter N representing achromatic color and the color bit code (b / w) are combined into a complete achromatic color code. Figure 3 is a schematic diagram of the achromatic basic color coding disclosed in the embodiment of the present application, such as Figure 3 As shown, the color with a black content of 3 and a white content of 97 is combined with the letter N and the color bit code b03w97 to form Nb03w97.

[0068] Optionally, the construction of a color gene library includes:

[0069] According to the CDS standard, the codes, color values ​​and chromaticity coordinates of basic colors are collected and sorted. The basic colors refer to the ten basic primary colors used to mix other colors.

[0070] Draw a hue circle in the color space to clarify the position of each basic color;

[0071] Assigning adjacent basic color symbols and color scale values ​​to each non-basic color on the hue circle to form a complete code;

[0072] The codes, color values ​​and chromaticity coordinates of all basic colors and non-basic colors are stored in the color gene library.

[0073] The hue circle is a representation method in color space. It arranges all hues in a certain order on a circle to form a closed loop. This representation method helps to intuitively understand the relationship and changes between hues. The positions of each basic color are clearly marked on the hue circle. These positions are usually fixed and represent the basic hues in the color system. By drawing the hue circle, color information can be presented in a visual way, which is convenient for designers and color experts to analyze and select colors. Figure 4 is a schematic diagram of the hue ring disclosed in the embodiment of the present application, such as Figure 4 As shown in the figure, the eight basic colors are arranged on the hue circle in a clockwise direction. The angle between two adjacent basic colors is 45°. There are 100 levels between each two basic colors. One color is selected every 10 levels. There are 80 hues in total. The angle difference between two adjacent hues is 4.5°. The basic color hue codes are: R100, O100, Y100, K100, G100, T100, B100 and P100. The remaining 72 hues are represented by codes composed of two adjacent basic color symbols and hue values. The sum of the hue values ​​of the two basic colors in the code is equal to 100. The hue circle uses the PK line as the boundary of the cold and warm color areas. The upper half of the PK line is the warm color area, and the lower half is the cold color area. Generally, different areas of the hue circle represent different psychological and emotional feelings and states. Non-basic colors refer to colors obtained by mixing basic colors. In the color gene library, these colors need to be assigned codes. According to the CDS standard, the encoding of non-basic colors consists of adjacent basic color symbols and color scale values. Find the two basic colors closest to the non-basic color on the hue circle and use their symbols to represent it. According to the relative position relationship between the non-basic color and the adjacent basic colors, the corresponding color scale value is assigned. These values ​​are usually used to represent the contribution of each basic color in the non-basic color. Combine the adjacent basic color symbols and color scale values ​​to form a complete encoding of the non-basic color. All the collected color information (including the encoding, color value, chromaticity coordinates, etc. of basic and non-basic colors) is stored in the color gene library.

[0074] By following the CDS (color description standard), collecting and organizing the encoding, color value and chromaticity coordinates of basic colors, the standardization and unification of color data is achieved. This not only facilitates the exchange and sharing of color data between different fields and systems, but also ensures the consistency and accuracy of color data, providing a solid foundation for subsequent color applications. Drawing a hue circle in the color space and clarifying the position of each basic color makes color management more intuitive and convenient. As an important tool for color organization, the hue circle can clearly show the relative relationship between colors and help designers or color management personnel quickly locate, select and adjust colors. Assigning adjacent basic color symbols and color scale values ​​to each non-basic color on the hue circle to form a complete encoding, this step greatly enriches the content of the color gene library. This encoding method not only covers all basic colors, but also covers non-basic colors in the entire color space through the combination and transition of basic colors, achieving the integrity and continuity of color encoding. At the same time, this encoding method also has a certain degree of scalability. When it is necessary to introduce new colors or adjust existing colors, it can be easily achieved by adjusting the basic color symbols and color scale values. The codes, color values ​​and chromaticity coordinates of all basic and non-basic colors are stored in the color gene library, providing rich resources for color application. Designers or color managers can quickly retrieve, select and apply colors from the color gene library according to actual needs, greatly improving the flexibility and efficiency of color application. At the same time, the color gene library can also serve as a reference and basis for color design, helping designers create color schemes that meet specific styles or emotional needs.

[0075] S120, classifying ancient buildings, extracting color samples of various types of ancient buildings, and generating new colors that meet the requirements of application scenarios according to the color samples;

[0076] Classify ancient buildings. The classification of ancient buildings can be based on a variety of factors, including but not limited to region, age, architectural style, usage function, etc. For example:

[0077] Regional classification: It can be divided into northern ancient buildings (such as the Forbidden City in Beijing and the Shanxi courtyards) and southern ancient buildings (such as Suzhou gardens and Fujian Tulou). Due to the different building materials and climatic conditions caused by regional differences, the colors will also be different.

[0078] Classification by era: It can be classified according to historical periods (such as Tang and Song, Ming and Qing, etc.). The architectural styles and color preferences of different periods are different.

[0079] Style classification: such as palace style, temple style, residential style, etc., each style has its own unique color application characteristics.

[0080] Functional classification: such as residential buildings, religious buildings, public buildings, etc., the color expression will be different due to different functions.

[0081] Based on the classification, a detailed color analysis is conducted on each type of ancient building, and color samples are extracted. This includes: recording the color matching, material texture, etc. of the ancient buildings through field investigations; using professional cameras to take high-definition photos of the ancient buildings to ensure accurate color reproduction; using color management software or image processing technology to extract representative color samples from the photos. These samples should include main colors, auxiliary colors, and embellishment colors. In-depth analysis is conducted on the extracted color samples to understand their color composition, color matching principles, and the cultural meaning behind the colors. This helps to maintain respect and inheritance for traditional culture when designing new colors.

[0082] According to the needs of the application scenario, combined with the analysis results of the ancient building color samples, new colors that meet the needs are generated. This process may include: blending the colors in the ancient building color samples to create new color combinations; adding modern design elements on the basis of maintaining the essence of the ancient building colors to create new colors that are both traditional and fashionable; according to the specific needs of the application scenario (such as light conditions, material matching, etc.), the new colors are adaptively adjusted to ensure the best effect in actual application.

[0083] Optionally, the classification of ancient buildings includes:

[0084] Collecting the building monomer colors and environmental colors of the ancient buildings, and performing initial clustering on the ancient buildings according to the building monomer colors and environmental colors to obtain an initial ancient building classification;

[0085] According to the architectural function categories of ancient buildings, the initial ancient building classification is reclassified to obtain the final ancient building classification.

[0086] Collect the building monomer color of each ancient building in the target ancient building complex and the related environmental color (also called planning color). The building monomer color refers to the color of the main part of the ancient building, such as the color of the roof, wall, door and window, etc.; the environmental color includes the color of the natural landscape around the ancient building, the color of the street pavement, the color of the adjacent buildings, etc. These colors together constitute the environmental atmosphere of the ancient building. After collecting the color data, the ancient buildings are preliminarily classified according to the similarity of the building monomer color and the environmental color using the cluster analysis method. Cluster analysis is an unsupervised learning method that can automatically divide data into multiple groups, so that the data similarity within the same group is high, while the data similarity between different groups is low. Through this method, the initial ancient building classification based on the color dimension can be obtained. On the basis of obtaining the initial ancient building classification, the architectural function category of the ancient building is further considered to reclassify the initial classification. The architectural function category is another important dimension in the classification of ancient buildings, which reflects the main purpose and characteristics of the ancient buildings. According to the different building functions, ancient buildings can be divided into single building function categories (such as residential buildings, palaces, temples, etc.) and comprehensive building categories (i.e. buildings with multiple functions). For comprehensive buildings, it is necessary to analyze their main functional characteristics and classify them accordingly. After the above two steps of classification, the final classification of ancient buildings includes both a large classification based on the color dimension (i.e., the initial clustering result) and a small classification based on the building function category dimension. This classification method can reflect the commonalities and differences in color of ancient buildings, as well as their characteristics and diversity in architectural functions.

[0087] By collecting the architectural monomer colors and environmental colors of ancient buildings and performing initial clustering based on these color information, a more objective and accurate initial classification of ancient buildings can be obtained. This method overcomes the subjective and empirical deficiencies in traditional classification, making the classification results more scientific and reliable. As one of the important visual features of ancient buildings, color can reflect a variety of information such as the material, age, and region of ancient buildings. Therefore, classification based on color information can more comprehensively reveal the similarities and differences between ancient buildings. On the basis of initial clustering, further reclassification is performed according to the architectural function categories of ancient buildings, so that the final ancient building classification contains both information in the color dimension and the key element of architectural function. This multi-dimensional classification method not only improves the practicality of classification, so that the classification results can better serve subsequent protection, restoration, research and other work, but also enhances the pertinence of classification, which is helpful to formulate corresponding protection and management strategies according to the characteristics of ancient buildings of different functional categories. Introducing color analysis into the classification process of ancient buildings not only enriches the methods and means of ancient building research, but also improves the application level of color analysis in ancient building research. By extracting and analyzing the color information of ancient buildings, we can gain a deeper understanding of the color characteristics, changing patterns, and cultural meanings behind them, providing important references and bases for the protection, restoration, and design of ancient buildings. At the same time, this analysis method can also be extended to other cultural heritage fields, providing new ideas and methods for the protection and research of cultural heritage.

[0088] Optionally, the extracting of color samples of various ancient buildings includes:

[0089] Determine the building material category according to the category of the ancient building, wherein the building material category includes the facade material category and the material category of the attachment itself;

[0090] Use color measuring instruments to sample the color of the facades and attachments of ancient buildings or take high-definition images.

[0091] Through historical document research, on-site investigation and other means, ancient buildings are divided into different types, such as palaces, temples, dwellings, city walls, etc. Each type of ancient building often has its own unique architectural style and structural characteristics, which directly determine the building materials used. The facade material is the most direct form of expression of the appearance of ancient buildings. Common facade materials include blue bricks, red bricks, stones (such as granite, marble), wood (such as nanmu, fir), gray bricks, glazed tiles, etc. Different materials will present unique colors and textures due to their different physical and chemical properties. Attachments refer to decorative or protective materials attached to the main body of the building, such as murals, paintings, stone carvings, wood carvings, tiles, anti-corrosion coatings, etc. These attachment materials also have their own unique color characteristics, and often reflect the historical and cultural background and artistic style of ancient buildings. After determining the category of building materials for ancient buildings, the next step is to conduct color sampling. Color sampling can be achieved in two ways:

[0092] Color sampling using color measuring instruments: This method uses professional color measuring instruments (such as spectrophotometers, color analyzers, etc.) to directly measure the color data of the facades and attachments of ancient buildings. The instruments can capture accurate color values ​​(such as RGB, CMYK, Lab, etc.), providing a reliable data basis for subsequent color analysis and processing.

[0093] Color sampling through high-definition image shooting: For large ancient buildings that cannot be directly touched or measured, you can use a high-definition camera to take photos of their facades and attachments, and then use image processing software (such as Photoshop, GIMP, etc.) on the computer to extract colors. Although this method may be affected by factors such as light and shooting angle, through reasonable shooting techniques and post-processing, you can still get a relatively accurate color sample.

[0094] By determining the category of building materials according to the category of ancient buildings and conducting targeted color sampling, the accuracy and reliability of color samples can be greatly improved. Different categories of ancient buildings often use different building materials, and these materials may have significant differences in color. Therefore, after clarifying the category of building materials, sampling methods and tools can be selected more targeted to reduce errors and interference, and ensure that the collected color samples can truly reflect the actual color conditions of ancient buildings. Color is an important part of the appearance of ancient buildings and an important manifestation of their historical style and cultural characteristics. By accurately extracting color samples of ancient buildings, the original color information of ancient buildings can be preserved, providing an important basis for subsequent protection, restoration and digital recording. These color samples not only help to restore the historical appearance of ancient buildings, but also help people better understand and inherit the cultural values ​​carried by ancient buildings. The process of extracting color samples of ancient buildings is also a process of promoting the development of ancient building protection and restoration technology. In the sampling process, advanced color measurement instruments and image processing technologies need to be used. The application of these technologies not only improves sampling efficiency and accuracy, but also promotes the innovation and development of related technologies. At the same time, through the analysis and research of color samples, we can gain a deeper understanding of the color change patterns of ancient building materials and their influencing factors, providing strong support for the formulation of scientific protection plans and restoration strategies.

[0095] Optionally, generating a new color that meets the requirements of an application scenario according to the color sample includes:

[0096] Use color design software or virtual reality technology to simulate the effects of different decorative materials laid on the facade of the ancient building and generate corresponding color preview images. According to the simulation effect, adjust the color parameters of the decorative materials to generate the first new color that conforms to the style of the ancient building; or

[0097] The influence of material characteristics on color expression is determined according to the building material category, and a second new color is generated according to the influence and the color harmony principle to ensure that the second new color is consistent with the color sample of the building material category.

[0098] Collect and organize the color samples of the facades and attachments of various ancient buildings to ensure the accuracy and completeness of the color data. In the color design software, import the 3D model or 2D image of the ancient building and select the material library suitable for decoration. These materials can be tiles, stones, wood, paint, etc., each of which has its own specific color and texture. Lay the selected decorative materials on the facade of the ancient building for simulation, and observe its visual effect on the ancient building by adjusting the color parameters of the decorative materials (such as hue, saturation, brightness, etc.). The software will generate the corresponding color preview to help designers intuitively see the effect of laying different decorative materials. According to the simulation effect, the color parameters of the decorative materials are continuously adjusted until the first new color that conforms to the style of the ancient building is generated. This new color should be coordinated with the overall tone of the ancient building and be able to highlight the unique beauty of the decorative materials. Finally, verify it through virtual reality technology or actual laying samples to ensure that the effect of the first new color in actual application meets expectations.

[0099] According to the building material categories (such as blue bricks, red bricks, stones, wood, etc.), analyze the impact of their material properties on color performance. Different materials have different absorption, reflection and scattering abilities for light, which will lead to differences in color presentation. Conduct in-depth analysis of the collected color samples to understand the color range, hue tendency and color change rules of each building material category. According to the color harmony principles (such as contrast, complementarity, similarity, etc.), combined with the color samples of the building material category, design new colors that are both in line with the style of ancient buildings and innovative. In this process, it may be necessary to consider the balance, layering and dynamic effects of colors. The designed new colors are presented through color design software or hand-painting. This new color needs to maintain unity and coordination with the color samples of the building material category, while also having a certain degree of innovation and recognition. Apply the second new color to some areas of the ancient building for verification, collect feedback and make necessary adjustments. Through continuous iteration and optimization, the best new color scheme that meets the needs of the application scenario is finally obtained.

[0100] By using color design software or virtual reality technology, the laying effect of different decorative materials on the facade of ancient buildings can be accurately simulated, and color preview images can be generated instantly. This intuitive and fast simulation method greatly reduces the trial and error cost and time consumption in traditional color design, and improves the accuracy and efficiency of color design. Designers can quickly adjust the color parameters of decorative materials according to the preview image until the ideal visual effect is achieved, thereby speeding up the design process. Through precise color design and reasonable color matching, new colors can not only enhance the visual beauty of ancient buildings, but also highlight their unique cultural value. New colors that conform to the style of ancient buildings can enhance the historical sense and cultural heritage of ancient buildings, so that the audience can feel their unique artistic charm and cultural connotation when appreciating ancient buildings. This visual improvement helps to enhance the public's cognition and interest in ancient buildings, and further promote the inheritance and development of ancient building culture. Through the application of color design software and virtual reality technology, not only the efficiency and accuracy of color design are improved, but also new ideas and methods are provided for the protection and restoration of ancient buildings. Designers can find the best color restoration plan through simulation and adjustment without destroying the original appearance of ancient buildings, thereby realizing the precise protection and restoration of ancient buildings. This technological innovation will help improve the overall level of protection and restoration of ancient buildings, and provide strong support for the long-term preservation and inheritance of ancient buildings.

[0101] S130, encoding the new color according to the encoding rules of the color gene library, collecting variant variables that affect color changes, and performing statistical analysis on the encoding and variant variables;

[0102] After generating new colors that meet the needs of the application scenario, these new colors need to be encoded according to the encoding rules of the color gene library. The encoding process includes converting the color attributes of the new color (such as hue, saturation, brightness) into quantitative values ​​and assigning them a unique identifier. In this way, each new color will have a corresponding encoding record in the color gene library, which is convenient for subsequent management and use. Variants refer to various factors that affect color changes. They may come from different aspects, such as environmental factors (light, humidity, temperature, etc.), material factors (material type, aging degree, surface treatment method, etc.) and human factors (design style, aesthetic preference, etc.). In order to study the impact of these factors on color changes, it is necessary to systematically collect data on these variant variables. Collection methods may include field measurements, laboratory tests, literature research, etc. After collecting enough coding and variant variable data, statistical analysis is required to explore the relationship between them. Statistical analysis methods may include descriptive statistical analysis (such as mean, standard deviation, frequency distribution, etc.), correlation analysis (such as Pearson correlation coefficient, Spearman rank correlation coefficient, etc.), regression analysis (such as linear regression, multiple regression, etc.) and cluster analysis. Through these statistical analyses, we can have a deeper understanding of the mechanism of color change and provide a more scientific basis for the protection, restoration and digital recording of ancient buildings. At the same time, these analysis results can also provide guidance for color design and the selection of decorative materials, and promote the innovation and development of ancient building protection and restoration technology.

[0103] Optionally, encoding the new color according to the encoding rules of the color gene library, collecting variant variables that affect color changes, and performing statistical analysis on the encoding and variant variables include:

[0104] Determine the color parameters of the new color, the color parameters include hue, lightness and saturation, convert the color parameters into a unique code, and collect corresponding variation variables according to the category of the ancient building;

[0105] The unique code and the variant variable data are statistically analyzed to determine the correlation or causal relationship between the unique code and the variant variable.

[0106] For each type of ancient building, the color parameters of the new color extracted according to the building material category are clarified. Color parameters usually include three dimensions: hue, lightness and saturation. These parameters are the basic characteristics of describing colors and are also the basis for CDS coding. CDS coding may be converted based on the specific values ​​of color parameters, or it may be encoded in combination with other attributes of color (such as material, source, etc.). The specific coding rules need to be determined according to the design of the color gene library. The color parameters (hue, lightness, saturation) of the new color are converted into a unique code according to the CDS coding rules, and this code will serve as the unique identifier of the new color in the color gene library. For each type of ancient building, in addition to color information, it is also necessary to collect variant variables that affect color changes. These variant variables include but are not limited to environmental parameters (such as light intensity, light time, climate type, temperature, humidity, etc.), climate parameters (such as seasonal changes, rainfall, etc.), material category parameters (such as material type, aging degree, surface treatment method, etc.) and use parameters (such as the use function and maintenance status of the ancient building). The collection of variant variables can be carried out through various methods such as on-site measurement, laboratory testing, historical data query, and literature research. The collected data should be representative and accurate to ensure the validity of subsequent analysis. The CDS code of the new color and the collected variant variable data are statistically analyzed to explore the relationship between them. The purpose of statistical analysis is to determine the correlation or causal relationship between the CDS code (i.e. color) and the variant variable. By calculating the correlation coefficient (such as the Pearson correlation coefficient) between the CDS code and each variant variable, the degree of linear correlation between them can be evaluated. Correlation analysis helps to identify variant variables that have a significant impact on color changes. If the data allows and the analysis purpose requires, the causal relationship between the CDS code and the variant variable can be further explored. This usually requires regression analysis, causal inference and other methods to achieve this. Causal analysis can help understand the mechanism behind color changes and provide a scientific basis for color restoration, protection and management.

[0107] By converting the color parameters (hue, lightness, saturation) of new colors into unique codes (such as CDS codes), standardized color management is achieved. This standardized coding not only facilitates the unique identification of each color in the color gene library, but also promotes the exchange and sharing of color information. Whether it is designers, researchers or conservation workers, they can query, compare and apply colors through a unified coding system, which greatly improves work efficiency and accuracy. By collecting variant variables that affect color changes (such as environmental parameters, climate parameters, material category parameters, and use parameters, etc.), and statistically analyzing these variant variables with color codes, the factors that have a significant impact on color changes can be accurately identified. This analysis method helps to deeply understand the mechanism of color change and provides a scientific basis for the protection, restoration and prediction of ancient building colors. At the same time, it also helps to formulate more accurate color management strategies for different ancient building types and environmental conditions. Based on the correlation or causal relationship analysis between color codes and variant variables, the restoration of ancient building colors can be guided more scientifically. By adjusting the restoration materials, improving the restoration process or improving environmental conditions, the color changes can be more accurately controlled, so that the restored colors are closer to the original state or meet the design requirements. This improvement in scientificity and precision not only improves the quality of color restoration of ancient buildings, but also extends the service life of ancient buildings.

[0108] S140. Establish a database using coding and variant variables as the database base, statistical analysis results as screening conditions, and business scenarios as search and measurement criteria.

[0109] Use CDS or other standardized color coding systems to convert the hue, lightness, and saturation parameters of each color (including new colors) into unique codes. These codes serve as unique identifiers for colors in the database. Design coding systems for various types of variation variables that affect color changes (such as environmental parameters, climate parameters, material category parameters, use parameters, etc.). These codes should be able to accurately reflect the types and specific values ​​of variation variables to facilitate subsequent data analysis and query.

[0110] Color table: stores color codes, color names, color parameters (hue, brightness, saturation, etc.) and any descriptive information related to color. Mutation variable table: stores mutation variable codes, variable names, variable types (such as numerical type, classification type, etc.), variable values ​​and related descriptive information. Association table: establishes the association relationship between color and mutation variables.

[0111] Perform statistical analysis on color coding and variant variable data, including correlation analysis, regression analysis, etc., to determine the correlation or causal relationship between them. The analysis results will be stored in the database as screening conditions for subsequent data query and screening. According to the statistical analysis results, set reasonable screening conditions. For example, you can set a threshold range for a variant variable, and only when the correlation between the color change and the variable exceeds a certain level, the color will be included in the specific query results.

[0112] Business scenario definition: clarify the business scenarios of database services, such as ancient building protection, interior design, color matching, etc. Search function: design flexible search functions according to the needs of business scenarios. Users can search by keywords such as color coding, variant variables, business scenarios, etc. to quickly locate the required information. Measurement standard: formulate the standard of color measurement in combination with the actual needs of business scenarios. For example, in the ancient building protection scenario, the change threshold before and after color restoration can be set as the measurement standard.

[0113] Regularly collect new color samples and variant variable data, and update the database content. Based on user feedback and actual needs, continuously optimize the performance and functions of the database. Ensure the security and stability of the database to prevent data leakage and loss.

[0114] Optionally, establishing a database includes:

[0115] Design database table structure, including color table, lighting table and ancient building table;

[0116] Using the chain rule and relationship analysis methods, the effects of materials and climate on color are quantified into a function or set form;

[0117] Based on the quantitative results, a mathematical model between materials, climate and color is established;

[0118] An ancient building color gene pedigree database is constructed based on the database table structure and the mathematical model.

[0119] The color table is used to store basic information about colors and quantified color data. The fields of the color table include: color ID (unique identifier), color name, color value (may contain multiple fields, such as X (brightness), Y (chroma), and other possible color parameters such as hue, etc.), corrected color value (i.e., corrected color in the B color-value range). The lighting table is used to record parameters under different lighting conditions for subsequent color analysis. The fields of the lighting table include: lighting ID (unique identifier), lighting type, lighting parameters (such as lighting intensity, lighting angle, etc., designed according to specific needs). The ancient building table is used to store basic information about ancient buildings and related color and lighting data. The fields of the ancient building table include: ancient building ID (unique identifier), name, location, material type, decorative material type, color ID (foreign key, associated color table), lighting ID (foreign key, associated lighting table), and other relevant information (such as construction year, protection level, etc.). Chain rule: By decomposing a complex system into multiple simple subsystems, analyzing the interactions between the subsystems one by one, and finally integrating them to understand the behavior of the entire system. In the quantification of color influencing factors, the basic effects of materials and climate on color can be considered separately, and then the interactions between them can be further analyzed. Relationship analysis method: Identify and quantify the dependencies between different factors. For example, the color change patterns of different materials under different climatic conditions can be analyzed to establish a correlation model between materials, climate and color. Based on the results of the chain rule and relationship analysis, the effects of materials and climate on color are quantified into functions or sets. These functions or sets may contain multiple variables, such as material type, climate parameters (temperature, humidity, light, etc.) and time factors. Mathematical models between these variables and color parameters (brightness, chroma, etc.) are established using mathematical methods (such as regression analysis, neural networks, etc.). These models should be able to accurately predict the changes in color under given material and climatic conditions. According to the designed database table structure and the established mathematical model, a database of ancient building color gene pedigrees is constructed. The database should be able to store a large amount of ancient building color data, light data, and related material and climate information. The functions of database query, update, maintenance, etc. are realized to ensure the accuracy and timeliness of the data. Figure 5 is a schematic diagram of the ancient building color gene disclosed in the embodiment of this application, such as Figure 5 As shown, the ancient building gene = A light (X, Y), B color (X, Y), C ancient building (contemporary material*X, decorative material*Y), X represents brightness, Y represents color saturation, contemporary material represents basic material, and decorative material represents mixed material.

[0120] By designing a clear database table structure (color table, lighting table, ancient building table), standardized storage of color, lighting and ancient building related data is achieved. This helps to eliminate data redundancy and inconsistency and improve data quality. The scattered color, lighting and ancient building information are integrated into a unified database to form a systematic data management system. This systematic management method is conducive to the centralized management and efficient use of data. Using the chain rule and relational analysis method, the influence of materials and climate on color is quantified into a function or set form. This quantitative method can accurately reflect the complex relationship between different factors and provide a scientific basis for the prediction of color changes. The mathematical model established based on the quantitative results can predict the color changes under given material and climatic conditions. This is of great significance for the protection, restoration and prediction of ancient building colors. The establishment of the database provides researchers with rich and standardized data resources, which helps them to conduct research on color change mechanisms, material properties and other aspects more quickly and accurately. Designers, conservation workers, etc. can quickly obtain the required color information through the database for color matching, quality control and material selection of ancient building colors, which improves work efficiency and accuracy.

[0121] This embodiment also discloses a system for constructing an ancient building color gene pedigree database. Figure 6 Schematic diagram of the module of the construction system of the ancient building color gene pedigree database disclosed in the embodiment of the present application, such as Figure 6 As shown, the construction system includes a construction module 601, a classification module 602, an encoding module 603 and a library building module 604, wherein:

[0122] A construction module 601 is configured to construct a color gene library, wherein the color gene library includes coding rules of basic colors, basic color values, chromaticity coordinates, and coding rules of non-basic colors;

[0123] The classification module 602 is configured to classify the ancient buildings, extract color samples of various types of ancient buildings, and generate new colors that meet the requirements of application scenarios according to the color samples;

[0124] The encoding module 603 is configured to encode the new color according to the encoding rules of the color gene library, collect the variation variables that affect the color change, and perform statistical analysis on the encoding and the variation variables;

[0125] The database building module 604 is configured to build a database using coding and variant variables as the database base, statistical analysis results as screening conditions, and business scenarios as search and measurement criteria.

[0126] Optionally, the construction module 601 is configured to:

[0127] According to the CDS standard, the codes, color values ​​and chromaticity coordinates of basic colors are collected and sorted. The basic colors refer to the ten basic primary colors used to mix other colors.

[0128] Draw a hue circle in the color space to clarify the position of each basic color;

[0129] Assigning adjacent basic color symbols and color scale values ​​to each non-basic color on the hue circle to form a complete code;

[0130] The codes, color values ​​and chromaticity coordinates of all basic colors and non-basic colors are stored in the color gene library.

[0131] Optionally, the classification module 602 is configured to:

[0132] Collecting the building monomer colors and environmental colors of the ancient buildings, and performing initial clustering on the ancient buildings according to the building monomer colors and environmental colors to obtain an initial ancient building classification;

[0133] According to the architectural function categories of ancient buildings, the initial ancient building classification is reclassified to obtain the final ancient building classification.

[0134] Optionally, the classification module 602 is configured to:

[0135] Determine the building material category according to the category of the ancient building, wherein the building material category includes the facade material category and the material category of the attachment itself;

[0136] Use color measuring instruments to sample the color of the facades and attachments of ancient buildings or take high-definition images.

[0137] Optionally, the classification module 602 is configured to:

[0138] Use color design software or virtual reality technology to simulate the effects of different decorative materials laid on the facade of the ancient building and generate corresponding color preview images. According to the simulation effect, adjust the color parameters of the decorative materials to generate the first new color that conforms to the style of the ancient building; or

[0139] The influence of material characteristics on color expression is determined according to the building material category, and a second new color is generated according to the influence and the color harmony principle to ensure that the second new color is consistent with the color sample of the building material category.

[0140] Optionally, the encoding module 603 is configured to:

[0141] Determine the color parameters of the new color, the color parameters include hue, lightness and saturation, convert the color parameters into a unique code, and collect corresponding variation variables according to the category of the ancient building;

[0142] The unique code and the variant variable data are statistically analyzed to determine the correlation or causal relationship between the unique code and the variant variable.

[0143] Optionally, the library building module 604 is configured to:

[0144] Design database table structure, including color table, lighting table and ancient building table;

[0145] Using the chain rule and relationship analysis methods, the effects of materials and climate on color are quantified into a function or set form;

[0146] Based on the quantitative results, a mathematical model between materials, climate and color is established;

[0147] An ancient building color gene pedigree database is constructed based on the database table structure and the mathematical model.

[0148] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0149] This embodiment also discloses an electronic device, referring to Figure 7 The electronic device may include: at least one processor 701 , at least one communication bus 702 , a user interface 703 , a network interface 704 , and at least one memory 705 .

[0150] The communication bus 702 is used to realize the connection and communication between these components.

[0151] The user interface 703 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 703 may also include a standard wired interface and a wireless interface.

[0152] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0153] Among them, the processor 701 may include one or more processing cores. The processor 701 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 701, and it can be implemented separately through a chip.

[0154] Among them, the memory 705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 705 may also be optionally at least one storage device located away from the aforementioned processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a method for constructing a database of ancient color gene pedigrees.

[0155] exist Figure 7In the electronic device shown, the user interface 703 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 701 can be used to call the application program for the construction method of the ancient color gene pedigree database stored in the memory 705. When executed by one or more processors 701, the electronic device executes one or more methods in the above-mentioned embodiments.

[0156] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0157] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0158] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0159] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0161] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory 705 and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory 705 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0162] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for constructing an ancient building color gene pedigree database, characterized in that: Applied to the ancient building color construction platform, the construction method includes: Constructing a color gene library, wherein the color gene library includes coding rules of basic colors, basic color values, chromaticity coordinates, and coding rules of non-basic colors; Classify ancient buildings, extract color samples of various ancient buildings, and generate new colors that meet the needs of application scenarios based on the color samples; Encoding the new color according to the encoding rules of the color gene library, collecting the variant variables that affect the color change, and performing statistical analysis on the encoding and the variant variables; The database is established by taking coding and variant variables as the database base, using statistical analysis results as screening conditions, and combining business scenarios as search and measurement criteria. Generating a new color that meets the requirements of the application scenario according to the color sample includes: Use color design software or virtual reality technology to simulate the effects of different decorative materials laid on the facade of the ancient building and generate corresponding color preview images. According to the simulation effect, adjust the color parameters of the decorative materials to generate the first new color that conforms to the style of the ancient building; or Determine the influence of material characteristics on color expression according to the building material category, generate a second new color according to the influence and the color harmony principle to ensure that the second new color is consistent with the color sample of the building material category, The step of encoding the new color according to the encoding rules of the color gene library, collecting the variation variables that affect the color change, and performing statistical analysis on the encoding and the variation variables includes: Determine the color parameters of the new color, the color parameters include hue, lightness and saturation, convert the color parameters into a unique code, and collect corresponding variation variables according to the category of the ancient building; The unique code and the variant variable data are statistically analyzed to determine the correlation or causal relationship between the unique code and the variant variable.

2. The method for constructing the ancient building color gene pedigree database according to claim 1 is characterized in that: The construction of the color gene library comprises: According to the CDS standard, the codes, color values ​​and chromaticity coordinates of basic colors are collected and sorted. The basic colors refer to the ten basic primary colors used to mix other colors. Draw a hue circle in the color space to clarify the position of each basic color; Assigning adjacent basic color symbols and color scale values ​​to each non-basic color on the hue circle to form a complete code; The codes, color values ​​and chromaticity coordinates of all basic colors and non-basic colors are stored in the color gene library.

3. The method for constructing the ancient building color gene pedigree database according to claim 1 is characterized in that: The classification of ancient buildings includes: Collecting the building monomer colors and environmental colors of the ancient buildings, and performing initial clustering on the ancient buildings according to the building monomer colors and environmental colors to obtain an initial ancient building classification; According to the architectural function categories of ancient buildings, the initial ancient building classification is reclassified to obtain the final ancient building classification.

4. The method for constructing the ancient building color gene pedigree database according to claim 1 is characterized in that: The color samples extracted from various ancient buildings include: Determine the building material category according to the category of the ancient building, wherein the building material category includes the facade material category and the material category of the attachment itself; Use color measuring instruments to sample the color of the facades and attachments of ancient buildings or take high-definition images.

5. The method for constructing the ancient building color gene pedigree database according to claim 1 is characterized in that: The establishment of the database comprises: Design database table structure, including color table, lighting table and ancient building table; Using the chain rule and relationship analysis methods, the effects of materials and climate on color are quantified into a function or set form; Based on the quantitative results, a mathematical model between materials, climate and color is established; An ancient building color gene pedigree database is constructed based on the database table structure and the mathematical model.

6. A system for constructing an ancient building color gene pedigree database, characterized in that: It includes construction module, classification module, encoding module and library building module, among which: A construction module configured to construct a color gene library, wherein the color gene library includes coding rules for basic colors, basic color values, chromaticity coordinates, and coding rules for non-basic colors; A classification module is configured to classify ancient buildings, extract color samples of various ancient buildings, and generate new colors that meet the requirements of application scenarios based on the color samples; A coding module configured to encode the new color according to the coding rules of the color gene library, collect variant variables that affect color changes, and perform statistical analysis on the coding and variant variables; The database building module is configured to build a database using coding and variant variables as the database base, statistical analysis results as screening conditions, and business scenarios as search and measurement criteria. Generating a new color that meets the requirements of the application scenario according to the color sample includes: Use color design software or virtual reality technology to simulate the effects of different decorative materials laid on the facade of the ancient building and generate corresponding color preview images. According to the simulation effect, adjust the color parameters of the decorative materials to generate the first new color that conforms to the style of the ancient building; or Determine the influence of material characteristics on color expression according to the building material category, generate a second new color according to the influence and the color harmony principle to ensure that the second new color is consistent with the color sample of the building material category, The step of encoding the new color according to the encoding rules of the color gene library, collecting the variation variables that affect the color change, and performing statistical analysis on the encoding and the variation variables includes: Determine the color parameters of the new color, the color parameters include hue, lightness and saturation, convert the color parameters into a unique code, and collect corresponding variation variables according to the category of the ancient building; The unique code and the variant variable data are statistically analyzed to determine the correlation or causal relationship between the unique code and the variant variable.

7. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 5 is performed.