Method and system for processing traditional pattern image

Using image processing technology to extract the characteristics of traditional patterns and integrate them with modern patterns, it solves the problem of modern processing of traditional patterns, expands application scenarios and promotes cultural inheritance.

CN118747840APending Publication Date: 2024-10-08SHANGHAI THEATRE ACADEMY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880797.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing technology cannot modernize traditional patterns, making it difficult for digital traditional patterns to fit in with modern aesthetics and limited application scenarios, affecting the inheritance and development of traditional culture.

Method used

Extract traditional pattern feature information through image processing technology, determine the modular element set and modern pattern feature set for matching and fusion, and generate a fused pattern image set to adapt to modern aesthetics.

Benefits of technology

It expands the application scenarios of traditional patterns, stimulates modern people's interest in traditional patterns, promotes the inheritance and development of traditional culture, and demonstrates the cultural charm of traditional patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747840A_ABST
    Figure CN118747840A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to a processing method and system for a traditional pattern image. The method comprises the following steps: acquiring a traditional pattern image, preprocessing the traditional pattern image, and extracting a pattern feature set; analyzing the pattern feature set, and determining a modular element set according to an analysis result; matching the modular element set with a preset modern pattern feature set, and determining a to-be-selected modern pattern feature set according to a matching result; according to a preset fusion rule, the modular element set and the modern pattern feature set to be selected are fused, and a fused pattern image set is determined; and outputting the fused pattern image set for a user to view and select for use. According to the method, the traditional pattern is modernized, so that the fused pattern fits modernized aesthetic appreciation, the application scene of the traditional pattern is expanded, the absorption of modern people to the traditional pattern is stimulated, the inheritance and development of the traditional pattern are promoted, and the cultural charm of the traditional pattern is shown.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a processing method and system for traditional pattern images. Background Art

[0002] With the development of intelligent image processing technology, the use of intelligent image processing technology to process traditional patterns has broad development prospects. Through intelligent image processing technology, traditional patterns can be digitally preserved to ensure the long-term preservation and inheritance of traditional patterns, and help users understand the origin and meaning of the patterns.

[0003] However, existing image processing methods for traditional patterns, while digitalizing traditional patterns, are unable to modernize them, making it difficult for digitalized traditional patterns to fit modern aesthetics. This in turn leads to overly limited application scenarios for digitalized traditional patterns, which is detrimental to the inheritance and development of traditional culture in the long run. Summary of the invention

[0004] The present application provides a method and system for processing traditional pattern images to solve the above technical problems.

[0005] In a first aspect, the present application provides a method for processing a traditional pattern image, the method comprising: obtaining a traditional pattern image, preprocessing the traditional pattern image, and extracting a pattern feature set;

[0006] Analyzing the pattern feature set, and determining a modular element set according to the analysis result;

[0007] Matching the modular element set with the preset modern pattern feature set, and determining the to-be-selected modern pattern feature set according to the matching result;

[0008] According to a preset fusion rule, the modular element set and the to-be-selected modern pattern feature set are fused to determine a fused pattern image set;

[0009] The fused pattern image set is output for users to view and select for use.

[0010] The method of the present application uses image processing technology to analyze and process traditional pattern images, extract feature information in traditional patterns, and obtain a pattern feature set. Then, by analyzing the pattern feature set, relevant features with symbolic meanings in traditional patterns are extracted as a modular element set. The modern pattern feature set to be selected is determined through the matching results between the modular element set and a preset modern pattern feature set. Then, the traditional patterns in the modular element set are fused with the modern patterns in the modern pattern feature set to be selected, and a fused pattern image set is determined and output for users to view and select. Through the modern processing of traditional patterns, the fused patterns are made to fit modern aesthetics, thereby expanding the application scenarios of traditional patterns, stimulating modern people's absorption of traditional patterns, promoting the inheritance and development of traditional patterns, and showing the cultural charm of traditional patterns.

[0011] Optionally, the preprocessing of the traditional pattern image to extract the pattern feature set includes:

[0012] Extract colors from traditional pattern images and determine color matching information;

[0013] Perform edge detection on traditional pattern images and extract pattern line images;

[0014] Based on the pattern line image, feature points of the pattern lines in the pattern line image are extracted to determine a set of line feature points;

[0015] Determining the pattern center point according to the line feature point set;

[0016] Determining the pattern structure type according to the pattern center point and the line feature point set;

[0017] The color matching information, the pattern line image, the pattern center point and the pattern structure type are used as the pattern feature set.

[0018] The above technical scheme uses image processing technology to analyze traditional pattern images, extract the color matching information and pattern line images of traditional patterns to reflect the basic characteristics of traditional patterns, and then extract line feature points based on the pattern line images to form a line feature point set, and then determine the pattern center point based on the line feature point set, and determine the pattern structure type based on the pattern center point, thereby providing an accurate data basis for the subsequent extraction of core symbols in traditional patterns.

[0019] Optionally, determining the pattern center point according to the line feature point set includes:

[0020] Determining the number of feature points according to the line feature point set;

[0021] According to the line feature point set and the number of feature points, the pattern center point is determined by referring to the following formula:

[0022]

[0023] Where C is the center point of the pattern, N is the number of feature points, x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point.

[0024] The above technical solution, through mathematical analysis means, uses mathematical formulas to analyze the relative center points between the image coordinates corresponding to all line feature points based on the set of line feature points and the number of feature points, so as to obtain the accurate pattern center point, thereby providing accurate pattern center point data for the subsequent analysis of the pattern structure type of traditional patterns based on the pattern center point.

[0025] Optionally, determining the pattern structure type according to the pattern center point and the line feature point set includes:

[0026] Based on the pattern center point, the axisymmetry of the line feature point set is judged to determine the axisymmetry judgment result;

[0027] If the axisymmetry evaluation result is high axisymmetry, then the pattern structure type is determined to be an axisymmetric distribution type;

[0028] If the axisymmetry evaluation result is low axisymmetry, based on the center point of the pattern, a ring distribution evaluation is performed on the set of line feature points to determine a ring distribution evaluation result;

[0029] If the ring distribution evaluation result is that the ring distribution is obvious, then the pattern structure type is determined to be a ring distribution type;

[0030] If the ring distribution evaluation result is that the ring distribution is not obvious, it is determined that the pattern structure type is irregular.

[0031] The above technical scheme, based on the center point of the pattern, conducts axial symmetry judgment on the combination of line feature points to obtain an axial symmetry judgment result. If the axial symmetry judgment result is low axial symmetry, the combination of line feature points is further judged for ring distribution. If the ring distribution judgment result is that the ring distribution is not obvious, it can be determined that the pattern structure type of the traditional pattern is irregular, which makes the analysis of the pattern structure type more comprehensive and accurate, and provides a data basis for the subsequent determination of the core symbols in the traditional pattern according to the pattern structure type.

[0032] Optionally, the performing axial symmetry evaluation on the set of line feature points based on the pattern center point to determine the axial symmetry evaluation result includes:

[0033] According to the pattern center point and the line feature point set, the axisymmetric evaluation value is determined by referring to the following formula:

[0034]

[0035] Wherein, S is the axisymmetric evaluation value, S is the preset indicator function, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, (x j ,y j ) represents the line feature point set;

[0036] If the axisymmetry evaluation value is greater than or equal to a preset axisymmetry threshold, the axisymmetry evaluation result is determined to be high axisymmetry; otherwise, the axisymmetry evaluation result is determined to be low axisymmetry.

[0037] The above technical scheme calculates the axisymmetry evaluation value of the current traditional pattern through a mathematical formula based on the pattern center point and line feature point set. When the axisymmetry evaluation value is greater than or equal to the preset axisymmetry threshold, the axisymmetry judgment result is determined to be high axisymmetry; otherwise, the axisymmetry judgment result is determined to be low axisymmetry. By means of mathematical analysis, the axisymmetry of the current traditional pattern is quantified to obtain a more accurate axisymmetry judgment result.

[0038] Optionally, the performing annular distribution evaluation on the set of line feature points based on the pattern center point to determine the annular distribution evaluation result includes:

[0039] Determining an average radius according to the pattern center point and the line feature point set;

[0040] Based on the average radius, according to the pattern center point and the line feature point set, the annular distribution evaluation value is determined with reference to the following formula:

[0041]

[0042] Wherein, A is the annular distribution evaluation value, N is the number of feature points, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, and R is the average radius;

[0043] If the ring distribution evaluation value is less than or equal to the preset ring evaluation threshold, the ring distribution evaluation result is determined to be obvious ring distribution; otherwise, the ring distribution evaluation result is determined to be insignificant ring distribution.

[0044] The above technical scheme determines the average radius according to the set of pattern center points and line feature points, and then calculates the ring distribution evaluation value through a mathematical formula based on the average radius, pattern center points and line feature points. When the ring distribution evaluation value is less than or equal to the preset axisymmetric threshold, the ring distribution evaluation result is determined to be obvious; otherwise, the ring distribution evaluation result is determined to be inconspicuous. Through mathematical analysis, the obviousness of the ring distribution of the current traditional patterns is quantified to obtain a more accurate ring distribution evaluation result.

[0045] Optionally, analyzing the pattern feature set and determining a modular element set according to the analysis result includes:

[0046] According to the pattern structure type, segment the pattern line image to determine the core symbol line information;

[0047] Determine the core symbol color matching information according to the color matching information and the core symbol line information;

[0048] The core symbol line information and the core symbol color information are used as the modular element set.

[0049] The above technical scheme segments the pattern line image according to the pattern structure type, determines the core symbol line information, and adopts different pattern line image segmentation methods for different pattern structure types, which significantly improves the speed of extracting the core symbol lines. At the same time, by analyzing the color information, the color information corresponding to the core symbol lines is extracted to determine the core symbol color information. Using the core symbol line information and the core symbol color information as a modular element set can also highlight the cultural symbols behind the traditional patterns in the new patterns formed by the fusion of traditional patterns and modern patterns.

[0050] Optionally, segmenting the pattern line image according to the pattern structure type to determine core symbol line information includes:

[0051] If the pattern structure type is an axisymmetric distribution type, assuming that it is a left-right axisymmetric distribution, the left half of the pattern line image is expressed by the following expression:

[0052]

[0053] Among them, I L (x, y) is the left half of the pattern line image, I(x, y) is the pixel value of the pattern line image at the coordinate (x, y), x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image;

[0054] The right half of the pattern line image is expressed by the following expression:

[0055]

[0056] Among them, I R (x, y) is the right half of the pattern line image, I(x, y) is the pixel value of the pattern line image, x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image;

[0057] According to the left half and the right half of the pattern line image, the image mapping is merged by the following formula to determine the merged image:

[0058]

[0059] Among them, I core (x, y) is the merged image, I L (x, y) is the left half of the pattern line image, W is the width of the pattern line image, x is the horizontal coordinate of the pattern line image, and y is the vertical coordinate of the pattern line image;

[0060] The merged image is determined as the core symbol line information.

[0061] The above technical solution calculates the merged image of the traditional pattern in the case of axial symmetry through a series of mathematical formulas, and uses the merged image as the core symbol line information. Through mathematical analysis, it significantly improves the speed and accuracy of extracting core symbols in axially symmetrical traditional patterns.

[0062] Optionally, segmenting the pattern line image according to the pattern structure type to determine core symbol line information includes:

[0063] Determine the relative angle value of each feature point according to the pattern center point and the line feature point set;

[0064] If the pattern structure type is a ring distribution type, the core element image is determined by the following formula:

[0065]

[0066] Wherein, Core is the core element image, n is the preset number of steps, r is the average radius, Δθ is the preset step rotation angle, I(r,θ) is the preset line detection function, ∈ is the preset line difference threshold, and θ is the relative angle value of the current feature point;

[0067] The core element image is determined as the core symbol line information.

[0068] The above technical solution is based on the pattern center point and line feature point set. Through mathematical analysis, a mathematical formula is designed to express the core element image, and the core element image is determined as the core symbol line information. When the pattern structure type is a ring distribution type, the core symbol in the traditional pattern is quickly determined, and the core symbol line information is accurate.

[0069] In a second aspect, the present application provides a processing system for traditional pattern images, the system comprising:

[0070] A feature extraction module, used for acquiring a traditional pattern image, preprocessing the traditional pattern image, and extracting a pattern feature set;

[0071] An element extraction module is used to analyze the pattern feature set and determine a modular element set based on the analysis result;

[0072] A matching module, used for matching the modular element set with the preset modern pattern feature set, and determining the modern pattern feature set to be selected according to the matching result;

[0073] A fusion module, used for fusing the modular element set and the to-be-selected modern pattern feature set according to a preset fusion rule to determine a fused pattern image set;

[0074] The output module is used to output the fused pattern image set for users to view and select for use.

[0075] Optionally, the feature extraction module is specifically used to:

[0076] Extract colors from traditional pattern images and determine color matching information;

[0077] Perform edge detection on traditional pattern images and extract pattern line images;

[0078] Based on the pattern line image, feature points of the pattern lines in the pattern line image are extracted to determine a set of line feature points;

[0079] Determining the pattern center point according to the line feature point set;

[0080] Determining the pattern structure type according to the pattern center point and the line feature point set;

[0081] The color matching information, the pattern line image, the pattern center point and the pattern structure type are used as the pattern feature set.

[0082] Optionally, the feature extraction module is specifically used to:

[0083] Determining the number of feature points according to the line feature point set;

[0084] According to the line feature point set and the number of feature points, the pattern center point is determined by referring to the following formula:

[0085]

[0086] Where C is the center point of the pattern, N is the number of feature points, x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point.

[0087] Optionally, the feature extraction module is specifically used to:

[0088] Based on the pattern center point, the axisymmetry of the line feature point set is judged to determine the axisymmetry judgment result;

[0089] If the axisymmetry evaluation result is high axisymmetry, then the pattern structure type is determined to be an axisymmetric distribution type;

[0090] If the axisymmetry evaluation result is low axisymmetry, based on the center point of the pattern, a ring distribution evaluation is performed on the set of line feature points to determine a ring distribution evaluation result;

[0091] If the ring distribution evaluation result is that the ring distribution is obvious, then the pattern structure type is determined to be a ring distribution type;

[0092] If the ring distribution evaluation result is that the ring distribution is not obvious, it is determined that the pattern structure type is irregular.

[0093] Optionally, the feature extraction module is specifically used to:

[0094] According to the pattern center point and the line feature point set, the axisymmetric evaluation value is determined by referring to the following formula:

[0095]

[0096] Wherein, S is the axisymmetric evaluation value, δ is the preset indicator function, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, (x j ,y j ) represents the line feature point set;

[0097] If the axisymmetry evaluation value is greater than or equal to a preset axisymmetry threshold, the axisymmetry evaluation result is determined to be high axisymmetry; otherwise, the axisymmetry evaluation result is determined to be low axisymmetry.

[0098] Optionally, the feature extraction module is specifically used to:

[0099] Determining an average radius according to the pattern center point and the line feature point set;

[0100] Based on the average radius, according to the pattern center point and the line feature point set, the annular distribution evaluation value is determined with reference to the following formula:

[0101]

[0102] Wherein, A is the annular distribution evaluation value, N is the number of feature points, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, and R is the average radius;

[0103] If the ring distribution evaluation value is less than or equal to the preset ring evaluation threshold, the ring distribution evaluation result is determined to be obvious ring distribution; otherwise, the ring distribution evaluation result is determined to be insignificant ring distribution.

[0104] Optionally, the element extraction module is specifically used to:

[0105] According to the pattern structure type, segment the pattern line image to determine the core symbol line information;

[0106] Determine the core symbol color matching information according to the color matching information and the core symbol line information;

[0107] The core symbol line information and the core symbol color information are used as the modular element set.

[0108] Optionally, the element extraction module is specifically used to:

[0109] If the pattern structure type is an axisymmetric distribution type, assuming that it is a left-right axisymmetric distribution, the left half of the pattern line image is expressed by the following expression:

[0110]

[0111] Among them, I L(x, y) is the left half of the pattern line image, I(x, y) is the pixel value of the pattern line image at the coordinate x(, y), x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image;

[0112] The right half of the pattern line image is expressed by the following expression:

[0113]

[0114] Among them, I R (x, y) is the right half of the pattern line image, I(x, y) is the pixel value of the pattern line image, x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image;

[0115] According to the left half and the right half of the pattern line image, the image mapping is merged by the following formula to determine the merged image:

[0116]

[0117] Among them, I core (x, y) is the merged image, I L (x, y) is the left half of the pattern line image, W is the width of the pattern line image, x is the horizontal coordinate of the pattern line image, and y is the vertical coordinate of the pattern line image;

[0118] The merged image is determined as the core symbol line information.

[0119] Optionally, the element extraction module is specifically used to:

[0120] Determine the relative angle value of each feature point according to the pattern center point and the line feature point set;

[0121] If the pattern structure type is a ring distribution type, the core element image is determined by the following formula:

[0122]

[0123] Wherein, Core is the core element image, n is the preset number of steps, r is the average radius, Δθ is the preset step rotation angle, I(r,θ) is the preset line detection function, ∈ is the preset line difference threshold, and θ is the relative angle value of the current feature point;

[0124] The core element image is determined as the core symbol line information. BRIEF DESCRIPTION OF THE DRAWINGS

[0125] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0126] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0127] Figure 2 A flowchart of a method for processing a traditional pattern image provided by an embodiment of the present application;

[0128] Figure 3 A schematic diagram of the structure of a processing system for traditional pattern images provided in one embodiment of the present application. DETAILED DESCRIPTION

[0129] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0130] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0131] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0132] Existing image processing methods for traditional patterns, while digitalizing traditional patterns, are unable to modernize them, making it difficult for digitalized traditional patterns to fit modern aesthetics, which in turn leads to overly limited application scenarios for digitalized traditional patterns. In the long run, this is not conducive to the inheritance and development of traditional culture.

[0133] Based on this, the present application provides a processing method and system for traditional pattern images. Through image processing technology, the traditional pattern images are analyzed and processed, the feature information in the traditional patterns is extracted, and the pattern feature set is obtained. Then, by analyzing the pattern feature set, the relevant features of the core symbols with core symbolic meanings in the traditional patterns are extracted as a modular element set. Through the matching results between the modular element set and the preset modern pattern feature set, the modern pattern feature set to be selected is determined, and then the traditional patterns in the modular element set are fused with the modern patterns in the modern pattern feature set to be selected, and the fused pattern image set is determined and output for users to view and select. Through the modern processing of traditional patterns, the fused patterns are made to fit the modern aesthetics, thereby expanding the application scenarios of traditional patterns, stimulating modern people's absorption of traditional patterns, promoting the inheritance and development of traditional patterns, and showing the cultural charm of traditional patterns.

[0134] Figure 1 A schematic diagram of an application scenario provided for the present application, in the process of digital processing of traditional patterns, the method provided by the present application is applied to fuse the traditional patterns with modern patterns, and the fused pattern image set is provided to the user for the user to view and select for use.

[0135] Specifically, the method provided in the present application is applied to any server, which communicates with at least one camera, obtains traditional pattern images provided by at least one camera, analyzes and processes the traditional pattern images, and obtains a pattern feature set, and then extracts relevant features of core symbols with core symbolic meanings in traditional patterns as a modular element set by analyzing the pattern feature set, and determines a modern pattern feature set to be selected through the matching results between the modular element set and a preset modern pattern feature set, and then merges the traditional patterns in the modular element set with the modern patterns in the modern pattern feature set to be selected, determines and outputs a merged pattern image set for users to view and select for use, and through the modernization of traditional patterns, makes the merged patterns fit modern aesthetics, thereby expanding the application scenarios of traditional patterns, stimulating modern people's absorption of traditional patterns, promoting the inheritance and development of traditional patterns, and showing the cultural charm of traditional patterns.

[0136] For specific implementation methods, please refer to the following embodiments.

[0137] Figure 2 This is a flowchart of a method for processing traditional pattern images provided in an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes:

[0138] S201, obtaining a traditional pattern image, preprocessing the traditional pattern image, and extracting a pattern feature set.

[0139] The traditional pattern image can be considered as an image corresponding to elements such as patterns and symbols in traditional culture. The traditional pattern image can be obtained by photographing the traditional pattern with at least one camera.

[0140] The pattern feature set can be considered as a set of feature information in traditional patterns, such as color matching information, pattern line images, etc.

[0141] Specifically, at least one camera is used to photograph clothing, handicrafts, etc. with traditional patterns to obtain traditional pattern images, and then the traditional pattern images are preprocessed through image processing technology, such as denoising, grayscale, etc., to optimize the quality and features of the traditional pattern images and reduce interference factors, so as to extract the characteristics of the traditional patterns and obtain a pattern feature set, providing a data basis for subsequent further analysis of the pattern characteristics.

[0142] S202, analyzing the pattern feature set, and determining the modular element set based on the analysis results.

[0143] The modular element set can be considered as a collection of information related to the core cultural symbols in traditional patterns, such as core symbol line information, core symbol color matching information, etc. The core cultural symbols can be considered as symbolic elements with symbolic meaning and representativeness in a specific cultural background.

[0144] Specifically, traditional patterns usually follow certain rules and structures, with repeated patterns and elements forming a whole to create a unique decorative effect. The repeated appearance of such patterns makes the overall pattern more unified and coordinated, and the colors are rich and colorful, with relatively strong tonal matching and contrast. The above characteristics constitute the overall visual effect of traditional patterns. The repeated patterns and elements in traditional patterns usually have profound symbolic meanings, representing the characteristics and values ​​of a specific culture, that is, the core cultural symbols in traditional patterns. Through image processing technology, the pattern feature set is analyzed, and the core cultural symbols are extracted from them, which improves the processing efficiency of traditional patterns and provides core data for the subsequent combination of traditional patterns with modern patterns.

[0145] S203, matching the modular element set with the preset modern pattern feature set, and determining a to-be-selected modern pattern feature set according to the matching result.

[0146] The preset modern pattern feature set can be considered as a data set that stores modern pattern lines and color matching information. The preset modern pattern feature set can be obtained by integrating a large amount of modern pattern lines and color matching information.

[0147] The modern pattern feature set to be selected can be considered as a number of modern pattern features in the preset modern pattern feature set that are similar in overall style to the core symbols in the modular element set, including but not limited to modern pattern line information and modern pattern color matching information.

[0148] Specifically, through texture analysis techniques, such as grayscale co-occurrence matrix and directional gradient histogram, the line information of the core symbols in the modular element set is analyzed, and the line features of the core symbols are extracted, including but not limited to line type and line direction. The line features are matched with modern pattern features in a preset modern pattern feature set to obtain several modern pattern features in the pre-selected modern pattern feature set that are similar to the core symbol line features. These several modern pattern features are used as the modern pattern feature set to be selected, so as to ensure the overall visual harmony of the new pattern formed by the subsequent combination of traditional patterns and modern patterns, and avoid overly abrupt or uncoordinated combinations.

[0149] S204: According to a preset fusion rule, the modular element set and the to-be-selected modern pattern feature set are fused to determine a fused pattern image set.

[0150] The preset fusion rules can be considered as the splicing and style adjustment rules between traditional patterns and corresponding modern patterns.

[0151] The fused pattern image set can be considered as a collection of a series of new patterns formed by fusing traditional patterns with different modern patterns in the candidate modern pattern feature set.

[0152] Specifically, the preset fusion rules can refer to the following specific rules: through the image registration technology, the core symbol lines in the modular element set are aligned with several modern pattern lines in the selected modern pattern feature set, and then through the feature extraction technology, the key feature points in the core symbol lines and several modern pattern lines are respectively identified, and then according to the key feature points, the image fusion technology is used to realize the splicing of the core symbol lines and the corresponding modern pattern lines to form several fused lines, and then through the color recognition technology, the high contrast colors in the traditional patterns are identified and the high contrast colors are eliminated, and then through the color matching and transition technology, the colors in the corresponding modern patterns are combined with the traditional pattern colors to form natural transition colors, and through the combination of natural transition colors and fusion lines, several fused images are formed, and finally the overall style in the several fused images is optimized through the style migration algorithm.

[0153] S205: Output the fused pattern image set for the user to view and select for use.

[0154] Specifically, after the fused pattern image set is determined, several fused pattern images in the fused pattern image set can be output through a human-computer interaction device, such as a high-definition touch display screen, for users to view and select for use.

[0155] In some other embodiments, during the process of outputting the fused pattern image, the product model provided by the user can be mapped according to the fused pattern image selected by the user to show the user the effect of the fused pattern on the product, so as to optimize the user experience.

[0156] Through the method provided in this embodiment, through image processing technology, the traditional pattern image is analyzed and processed, the feature information in the traditional pattern is extracted, and the pattern feature set is obtained. Then, by analyzing the pattern feature set, the relevant features with symbolic meaning in the traditional pattern are extracted as a modular element set. Through the matching results between the modular element set and the preset modern pattern feature set, the modern pattern feature set to be selected is determined, and then the traditional patterns in the modular element set are fused with the modern patterns in the modern pattern feature set to be selected, and the fused pattern image set is determined and output for users to view and select for use. Through the modern processing of traditional patterns, the fused patterns are made to fit the modern aesthetics, thereby expanding the application scenarios of traditional patterns, stimulating modern people's absorption of traditional patterns, promoting the inheritance and development of traditional patterns, and showing the cultural charm of traditional patterns.

[0157] In some embodiments, color extraction is performed on a traditional pattern image to determine color matching information; edge detection is performed on the traditional pattern image to extract a pattern line image; based on the pattern line image, feature point extraction is performed on the pattern lines in the pattern line image to determine a line feature point set; based on the line feature point set, the pattern center point is determined; based on the pattern center point and the line feature point set, the pattern structure type is determined; and the color matching information, the pattern line image, the pattern center point and the pattern structure type are used as a pattern feature set.

[0158] Color matching information can be considered as the color matching information of different areas in traditional patterns.

[0159] The pattern line image can be considered as the corresponding image of the pattern lines in the traditional pattern.

[0160] The line feature point set can be considered as a set of line feature point coordinates in traditional patterns.

[0161] The pattern center point can be considered as the relative center point coordinates of all key feature points of the traditional pattern lines in the image.

[0162] The pattern structure type can be considered as the overall structural layout type of traditional patterns, such as axially symmetrical distribution, circular distribution, etc.

[0163] Specifically, through color clustering algorithms, such as K-means clustering algorithm, colors in traditional pattern images are extracted and cluster analysis is performed to determine color matching information, and then through edge detection algorithms, such as Sobel operator and Prewitt operator, edge detection and extraction of traditional patterns in traditional pattern images are performed to determine the pattern line image, and then through feature point extraction algorithms, such as Harris corner point detection algorithm and accelerated robust feature extraction algorithm, line feature points in the pattern line image are extracted to form a line feature point set. The basic characteristics of the traditional patterns can be reflected through color matching information and pattern line images.

[0164] Furthermore, the pattern structure type of traditional patterns will directly affect the recognition of core symbols in traditional patterns. If the pattern structure type of traditional patterns is axially symmetrical distribution, then only a part of the axially symmetrical structure of the pattern needs to be extracted to determine the core symbols in the traditional patterns. In the process of analyzing the pattern structure type of traditional patterns, the center point of the pattern is determined based on the set of line feature points through mathematical analysis, and then the pattern structure type is determined based on the center point of the pattern through mathematical analysis. The pattern center point and pattern structure type provide an accurate mathematical analysis data basis for the subsequent extraction of core symbols in traditional patterns.

[0165] Through the method provided in this embodiment, image processing technology is used to analyze traditional pattern images, extract the color matching information and pattern line images of traditional patterns to reflect the basic characteristics of traditional patterns, and then extract line feature points based on the pattern line images to form a line feature point set, and then determine the pattern center point based on the line feature point set, and determine the pattern structure type based on the pattern center point, thereby providing an accurate data basis for subsequent extraction of core symbols in traditional patterns.

[0166] In some embodiments, the number of feature points is determined based on the line feature point set; the pattern center point is determined based on the line feature point set and the number of feature points with reference to formula (1):

[0167]

[0168] Among them, C is the center point of the pattern, N is the number of feature points, x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point.

[0169] The number of feature points can be considered as the specific number value of the line feature points in the line feature point set.

[0170] Specifically, the number of feature points can be determined based on the line feature point set through the data statistics function in the image processing library. Based on the line feature point set and the number of feature points, the relative center points between the image coordinates corresponding to all line feature points are analyzed through formula (1) to obtain the pattern center point.

[0171] Through the method provided in the above embodiment, by means of mathematical analysis, on the basis of the line feature point set and the number of feature points, a mathematical formula is used to analyze the relative center points between the image coordinates corresponding to all line feature points to obtain the accurate pattern center point, thereby providing accurate pattern center point data for the subsequent analysis of the pattern structure type of the traditional pattern according to the pattern center point.

[0172] In some embodiments, based on the center point of the pattern, the axial symmetry of the set of line feature points is judged to determine the result of the axial symmetry judgment; if the result of the axial symmetry judgment is high axial symmetry, the pattern structure type is determined to be an axially symmetrical distribution type; if the result of the axial symmetry judgment is low axial symmetry, based on the center point of the pattern, the ring distribution of the set of line feature points is judged to determine the result of the ring distribution judgment; if the result of the ring distribution judgment is that the ring distribution is obvious, the pattern structure type is determined to be a ring distribution type; if the result of the ring distribution judgment is that the ring distribution is not obvious, the pattern structure type is determined to be irregular.

[0173] The results of the axisymmetry judgment can be considered as information used to express whether the traditional pattern is axisymmetrically distributed, including but not limited to high axisymmetry and low axisymmetry, among which high axisymmetry indicates that the current traditional pattern is axisymmetrically distributed, and low axisymmetry indicates that the current traditional pattern is non-axisymmetrically distributed.

[0174] The ring distribution evaluation results can be considered as information used to express whether the traditional pattern is a ring distribution, including but not limited to obvious ring distribution and unclear ring distribution. Among them, obvious ring distribution indicates that the current traditional pattern is a ring distribution, and unclear ring distribution indicates that the current traditional pattern is a non-circular distribution.

[0175] Specifically, through the analysis of a large number of traditional patterns, the pattern structure types of traditional patterns can be divided into three categories: axisymmetric distribution type, circular distribution type and irregular distribution type. According to the center point of the pattern, the axisymmetry of the line feature point set can be judged by mathematical analysis to obtain the axisymmetry judgment result. If the axisymmetry judgment result is low axisymmetry, the circular distribution of the line feature point set is further judged by mathematical analysis. If the circular distribution judgment result is that the circular distribution is not obvious, it can be determined that the pattern structure type of the traditional pattern is irregular, which provides a data basis for subsequently determining the core symbols in the traditional pattern according to the pattern structure type.

[0176] Through the method provided in the above embodiment, on the basis of the center point of the pattern, the axisymmetry of the combination of line feature points is judged to obtain the axisymmetry judgment result. If the axisymmetry judgment result is low axisymmetry, the ring distribution of the combination of line feature points is further judged. If the ring distribution judgment result is that the ring distribution is not obvious, it can be determined that the pattern structure type of the traditional pattern is irregular, which makes the analysis of the pattern structure type more comprehensive and accurate, and provides a data basis for subsequently determining the core symbols in the traditional pattern according to the pattern structure type.

[0177] In some embodiments, according to the pattern center point and the line feature point set, the axisymmetric evaluation value is determined with reference to formula (2):

[0178]

[0179] Among them, S is the axisymmetric evaluation value, δ[a∈b] is the preset indicator function, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, (x j ,y j ) represents a set of line feature points; if the axisymmetry evaluation value is greater than or equal to the preset axisymmetry threshold, the axisymmetry evaluation result is determined to be high axisymmetry, otherwise, the axisymmetry evaluation result is determined to be low axisymmetry.

[0180] The axisymmetric evaluation value can be considered as a mathematical quantitative value used to express whether the current traditional pattern is axisymmetrically distributed.

[0181] The meaning of the preset indicator function δ[a∈b] is that when point a exists in set b, the value of δ[a∈b] is 1, otherwise, the value of δ[a∈b] is 0;

[0182] The preset axisymmetric threshold can be considered as the minimum axisymmetric evaluation value corresponding to when the traditional pattern is axisymmetrically distributed. When the axisymmetric evaluation value is greater than or equal to the preset axisymmetric threshold, the current traditional pattern can be considered to be axisymmetrically distributed. The preset axisymmetric threshold can be obtained through a large amount of traditional pattern historical analysis data.

[0183] Specifically, based on the pattern center point and the line feature point set, the mapping point of each line feature point on the other side of the imaginary symmetry axis is calculated through formula (2), and each mapping point is judged whether it is in the line feature point set through a preset indicator function. If most of the mapping points are in the line feature point set, it means that most of the line feature points have corresponding mapping points on the other side of the imaginary symmetry axis, and the final axisymmetry evaluation value will be close to 1. When the axisymmetry evaluation value is greater than the preset axisymmetry threshold, it means that the current traditional pattern has high axisymmetry, and the axisymmetry judgment result can be determined to be high axisymmetry. Otherwise, the axisymmetry judgment result is determined to be low axisymmetry.

[0184] Through the method provided in the above embodiment, on the basis of the pattern center point and the line feature point set, the axisymmetry evaluation value of the current traditional pattern is calculated by a mathematical formula. When the axisymmetry evaluation value is greater than or equal to the preset axisymmetry threshold, the axisymmetry judgment result is determined to be high axisymmetry. Otherwise, the axisymmetry judgment result is determined to be low axisymmetry. Through mathematical analysis, the axisymmetry of the current traditional pattern is quantified to obtain a more accurate axisymmetry judgment result.

[0185] In some embodiments, the average radius is determined according to the pattern center point and the line feature point set; based on the average radius, the annular distribution evaluation value is determined according to the pattern center point and the line feature point set with reference to formula (3):

[0186]

[0187] Among them, A is the annular distribution evaluation value, N is the number of feature points, x0 is the horizontal coordinate of the pattern center point, y0 is the vertical coordinate of the pattern center point, x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, and R is the average radius; if the annular distribution evaluation value is less than or equal to the preset annular evaluation threshold, the annular distribution evaluation result is determined to be an obvious annular distribution, otherwise, the annular distribution evaluation result is determined to be an inconspicuous annular distribution.

[0188] The average radius can be considered as the average value of the distance between all line feature points in the line feature point set and the center point of the pattern.

[0189] The ring distribution evaluation value can be considered as a mathematical quantitative value used to express whether the current traditional pattern is a ring distribution.

[0190] The preset ring evaluation threshold can be considered as the maximum ring distribution evaluation value corresponding to when the traditional pattern is a ring distribution. When the ring distribution evaluation value is less than or equal to the preset ring distribution threshold, the current traditional pattern can be considered to be a ring distribution. The maximum ring distribution evaluation value can be obtained through a large amount of traditional pattern historical analysis data.

[0191] Specifically, the deviation between the distance from each line feature point in the line feature point set to the pattern center point and the average radius is calculated by formula (3). The smaller the deviation corresponding to each line feature point, the smaller the final ring distribution evaluation value. The smaller the ring distribution evaluation value, the more obvious the ring distribution of the current traditional pattern. When the ring distribution evaluation value is less than or equal to the preset ring distribution threshold, the ring distribution judgment result is determined to be obvious. Otherwise, the ring distribution judgment result is determined to be inconspicuous.

[0192] Through the method provided in this embodiment, the average radius is determined according to the set of pattern center points and line feature points, and then the ring distribution evaluation value is calculated through a mathematical formula based on the average radius, the pattern center point and the line feature point. When the ring distribution evaluation value is less than or equal to the preset axisymmetric threshold, the ring distribution judgment result is determined to be obvious ring distribution; otherwise, the ring distribution judgment result is determined to be inconspicuous ring distribution. Through mathematical analysis, the obviousness of the ring distribution of the current traditional pattern is quantified to obtain a more accurate ring distribution judgment result.

[0193] In some embodiments, the pattern line image is segmented according to the pattern structure type to determine the core symbol line information; the core symbol color information is determined according to the color information and the core symbol line information; the core symbol line information and the core symbol color information are used as a modular element set.

[0194] The core symbol line information can be considered as the line image information corresponding to the core symbol with core symbolic meaning in the traditional pattern.

[0195] The core symbol color information can be considered as the color information of the core symbols in traditional patterns.

[0196] Specifically, from the analysis of the aforementioned embodiments, it can be known that traditional patterns are usually composed of repetitive patterns and elements to form a whole. Extracting the core symbol lines with core symbolic meaning can significantly improve the processing efficiency of traditional patterns. At the same time, it can also make the new patterns formed by the subsequent fusion of traditional patterns and modern patterns highlight the cultural symbols behind the traditional patterns. In the process of extracting the core symbol lines, according to the pattern structure type, the pattern line image is segmented by mathematical analysis to determine the core symbol line information, which can greatly improve the efficiency of extracting the core symbol line information. For example, for a traditional pattern with an upper and lower axial symmetrical structure, it is only necessary to extract the line information corresponding to the image on one side of the symmetry axis based on the symmetry axis. While extracting the core symbol line information, on the basis of the color information, the color information corresponding to the core symbol lines is extracted to determine the core symbol color information. The core symbol line information and the core symbol color information are used as a modular element set to fully reflect the cultural characteristics conveyed by traditional patterns.

[0197] Through the method provided in this embodiment, the pattern line image is segmented according to the pattern structure type to determine the core symbol line information. Different pattern line image segmentation methods are adopted for different pattern structure types, which significantly improves the speed of extracting the core symbol lines. At the same time, based on the analysis of the color information, the color information corresponding to the core symbol lines is extracted to determine the core symbol color information. The core symbol line information and the core symbol color information are used as a modular element set, which can also highlight the cultural symbols behind the traditional patterns in the new patterns formed by the fusion of traditional patterns and modern patterns.

[0198] In some embodiments, if the pattern structure type is an axisymmetric distribution type, assuming that it is a left-right axisymmetric distribution, the left half of the pattern line image is expressed by expression (4):

[0199]

[0200] Among them, I L (x, y) is the left half of the pattern line image, I(x, y) is the pixel value of the pattern line image at the coordinate (x, y), x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image; the right half of the pattern line image is expressed by expression (5):

[0201]

[0202] Among them, I R(x, y) is the right half of the pattern line image, I(x, y) is the pixel value of the pattern line image at the coordinate (x, y), x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image; according to the left and right halves of the pattern line image, image mapping is performed through formula (6) to determine the merged image:

[0203]

[0204] Among them, I core (x, y) is the merged image, I L (x, y) is the left half of the pattern line image, W is the width of the pattern line image, x is the horizontal coordinate of the pattern line image, and y is the vertical coordinate of the pattern line image; the merged image is determined as the core symbol line information.

[0205] The pixel value of the pattern line image at the coordinate (x, y), the horizontal coordinate of the pattern line image, the vertical coordinate of the pattern line image and the width of the pattern line image can all be obtained by recognizing the pattern line image through a computer vision library, such as OpenCV (Open Source Computer Vision Library).

[0206] Specifically, when the pattern structure type is an axisymmetric distribution type, it is assumed that the traditional pattern is a left-right symmetrical structure, and the left and right halves of the pattern line image are extracted using the vertical symmetry axis as the boundary through formula (4) and formula (5), and then the right half of the pattern line image is merged into the left half through formula (6) to obtain a merged image, and the merged image is determined as the core symbol line information.

[0207] In some other embodiments, the similarity between the merged image and the left half of the pattern line image is calculated by an image similarity algorithm, such as a mean square error algorithm and a structural similarity index algorithm. If the merged image is inconsistent with the left half of the pattern line image, it means that the current traditional pattern is not a left-right axisymmetric structure, but a top-bottom axisymmetric structure. At this time, the height value H of the pattern line image is extracted through the computer vision library, and the height value H is substituted into formula (4), formula (5) and formula (6) respectively, and the width W of the pattern line image in the above formulas is replaced, and the final merged image is recalculated, and the merged image is determined as the core conforming line information.

[0208] In some other embodiments, when the traditional pattern is symmetrical in both the horizontal and vertical directions, the final merged image can be obtained by repeating the above-mentioned processing of the left-right symmetrical structure and the top-bottom symmetrical structure, and the merged image can be determined as the core symbol line information.

[0209] Through the method provided in this embodiment, a series of mathematical formulas are used to calculate the merged image of the traditional pattern in the case of axial symmetry, and the merged image is used as the core symbol line information. Through mathematical analysis, the speed and accuracy of extracting core symbols in axially symmetrical traditional patterns are significantly improved.

[0210] In some embodiments, the relative angle value of each feature point is determined based on the pattern center point and the line feature point set; if the pattern structure type is a ring distribution type, the core element image is determined by formula (7):

[0211]

[0212] Wherein, Core is the core element image, n is the preset number of steps, r is the average radius, Δθ is the preset step rotation angle, I(r,θ) is the preset line detection function, ∈ is the preset line difference threshold, and θ is the relative angle value of the current feature point; the core element image is determined as the core symbol line information.

[0213] The relative angle value can be considered as the deviation angle value of the line feature point in the line feature point set relative to the pattern center point in the pattern line image. The relative angle value can be obtained by analyzing each line feature point and the pattern center point through a feature point detection algorithm.

[0214] The core element image can be considered as the image corresponding to the core symbol line in the pattern line image.

[0215] Specifically, when the pattern structure type of the traditional pattern is a circular distribution type, two symmetry axes are set in the pattern line image. The two symmetry axes are rotated in opposite directions for a certain number of times and at a certain angle in the pattern line image. When the two symmetry axes pass through the corresponding pattern lines in the area, the two symmetry axes pass through the corresponding pattern lines in the area as determined as the core element image. The mathematical expression of the above process can refer to formula (7).

[0216] The preset number of steps can be considered as the preset number of rotations of the two symmetry axes.

[0217] The preset step rotation angle can be considered as the preset angle of rotation of the two symmetry axes mentioned above each time.

[0218] The preset line detection function can be considered as a preset function for detecting whether the corresponding pattern lines in the area where two symmetry axes pass through are consistent. The preset line detection function can adopt an image similarity algorithm in image processing technology.

[0219] The preset line difference threshold can be considered as the maximum difference value of the corresponding pattern lines in the area where two preset symmetry axes pass through.

[0220] In some other embodiments, when the pattern structure type of the traditional pattern is irregular, each line feature point is combined and analyzed through the feature point detection algorithm in the image processing technology, and the similarity of the combined line feature points is analyzed, the line feature point combination with the most repetitions is extracted, and the line image corresponding to the line feature point combination is determined as the core symbol line information.

[0221] Through the method provided in this embodiment, based on the pattern center point and line feature point set, through mathematical analysis, a mathematical formula is designed to express the core element image, and the core element image is determined as the core symbol line information. When the pattern structure type is a ring distribution type, the core symbol in the traditional pattern is quickly determined, and the core symbol line information is accurate.

[0222] Figure 3 A schematic diagram of a structure of a processing system for traditional pattern images provided in one embodiment of the present application is shown in FIG. Figure 3 As shown, the processing system 300 for traditional pattern images of this embodiment includes: a feature extraction module 301, an element extraction module 302, a matching module 303, a fusion module 304 and an output module 305.

[0223] The feature extraction module 301 is used to obtain a traditional pattern image, pre-process the traditional pattern image, and extract a pattern feature set;

[0224] An element extraction module 302 is used to analyze the pattern feature set and determine a modular element set based on the analysis result;

[0225] A matching module 303 is used to match the modular element set with a preset modern pattern feature set, and determine a to-be-selected modern pattern feature set according to the matching result;

[0226] A fusion module 304 is used to fuse the modular element set and the to-be-selected modern pattern feature set according to a preset fusion rule to determine a fused pattern image set;

[0227] The output module 305 is used to output the fused pattern image set for users to view and select.

[0228] Optionally, the feature extraction module 301 is specifically used for:

[0229] Extract colors from traditional pattern images and determine color matching information;

[0230] Perform edge detection on traditional pattern images and extract pattern line images;

[0231] Based on the pattern line image, feature points of the pattern lines in the pattern line image are extracted to determine a set of line feature points;

[0232] Determining the pattern center point according to the line feature point set;

[0233] Determining the pattern structure type according to the pattern center point and the line feature point set;

[0234] The color matching information, the pattern line image, the pattern center point and the pattern structure type are used as the pattern feature set.

[0235] Optionally, the feature extraction module 301 is specifically used for:

[0236] Determining the number of feature points according to the line feature point set;

[0237] According to the line feature point set and the number of feature points, the pattern center point is determined by referring to the following formula:

[0238]

[0239] Where C is the center point of the pattern, N is the number of feature points, x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point.

[0240] Optionally, the feature extraction module 301 is specifically used for:

[0241] Based on the pattern center point, the axisymmetry of the line feature point set is judged to determine the axisymmetry judgment result;

[0242] If the axisymmetry evaluation result is high axisymmetry, then the pattern structure type is determined to be an axisymmetric distribution type;

[0243] If the axisymmetry evaluation result is low axisymmetry, based on the center point of the pattern, a ring distribution evaluation is performed on the set of line feature points to determine a ring distribution evaluation result;

[0244] If the ring distribution evaluation result is that the ring distribution is obvious, then the pattern structure type is determined to be a ring distribution type;

[0245] If the ring distribution evaluation result is that the ring distribution is not obvious, it is determined that the pattern structure type is irregular.

[0246] Optionally, the feature extraction module 301 is specifically used for:

[0247] According to the pattern center point and the line feature point set, the axisymmetric evaluation value is determined by referring to the following formula:

[0248]

[0249] Wherein, S is the axisymmetric evaluation value, δ is the preset indicator function, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, (x j ,y j ) represents the line feature point set;

[0250] If the axisymmetry evaluation value is greater than or equal to a preset axisymmetry threshold, the axisymmetry evaluation result is determined to be high axisymmetry; otherwise, the axisymmetry evaluation result is determined to be low axisymmetry.

[0251] Optionally, the feature extraction module 301 is specifically used for:

[0252] Determining an average radius according to the pattern center point and the line feature point set;

[0253] Based on the average radius, according to the pattern center point and the line feature point set, the annular distribution evaluation value is determined with reference to the following formula:

[0254]

[0255] Wherein, A is the annular distribution evaluation value, N is the number of feature points, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, and R is the average radius;

[0256] If the ring distribution evaluation value is less than or equal to the preset ring evaluation threshold, the ring distribution evaluation result is determined to be obvious ring distribution; otherwise, the ring distribution evaluation result is determined to be insignificant ring distribution.

[0257] Optionally, the element extraction module 302 is specifically used to:

[0258] According to the pattern structure type, segment the pattern line image to determine the core symbol line information;

[0259] Determine the core symbol color matching information according to the color matching information and the core symbol line information;

[0260] The core symbol line information and the core symbol color information are used as the modular element set.

[0261] Optionally, the element extraction module 302 is specifically used to:

[0262] If the pattern structure type is an axisymmetric distribution type, assuming that it is a left-right axisymmetric distribution, the left half of the pattern line image is expressed by the following expression:

[0263]

[0264] Among them, I L (x, y) is the left half of the pattern line image, I(x, y) is the pixel value of the pattern line image at the coordinate (x, y), x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image;

[0265] The right half of the pattern line image is expressed by the following expression:

[0266]

[0267] Among them, I R (x, y) is the right half of the pattern line image, I(x, y) is the pixel value of the pattern line image, x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image;

[0268] According to the left half and the right half of the pattern line image, the image mapping is merged by the following formula to determine the merged image:

[0269]

[0270] Among them, I core (x, y) is the merged image, I L (x, y) is the left half of the pattern line image, W is the width of the pattern line image, x is the horizontal coordinate of the pattern line image, and y is the vertical coordinate of the pattern line image;

[0271] The merged image is determined as the core symbol line information.

[0272] Optionally, the element extraction module 302 is specifically used to:

[0273] Determine the relative angle value of each feature point according to the pattern center point and the line feature point set;

[0274] If the pattern structure type is a ring distribution type, the core element image is determined by the following formula:

[0275]

[0276] Wherein, Core is the core element image, n is the preset number of steps, r is the average radius, Δθ is the preset step rotation angle, I(r,θ) is the preset line detection function, ∈ is the preset line difference threshold, and θ is the relative angle value of the current feature point;

[0277] The core element image is determined as the core symbol line information.

[0278] The system of this embodiment can be used to execute the method of any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.

Claims

1. A method for processing traditional pattern images, characterized in that: include: Acquire a traditional pattern image, preprocess the traditional pattern image, and extract a pattern feature set; Analyzing the pattern feature set, and determining a modular element set according to the analysis result; Matching the modular element set with the preset modern pattern feature set, and determining the to-be-selected modern pattern feature set according to the matching result; According to a preset fusion rule, the modular element set and the to-be-selected modern pattern feature set are fused to determine a fused pattern image set; The fused pattern image set is output for users to view and select for use.

2. The method according to claim 1, characterized in that: The preprocessing of the traditional pattern image to extract the pattern feature set includes: Extract colors from traditional pattern images and determine color matching information; Perform edge detection on traditional pattern images and extract pattern line images; Based on the pattern line image, feature points of the pattern lines in the pattern line image are extracted to determine a set of line feature points; Determining the pattern center point according to the line feature point set; Determining the pattern structure type according to the pattern center point and the line feature point set; The color matching information, the pattern line image, the pattern center point and the pattern structure type are used as the pattern feature set.

3. The method according to claim 2, characterized in that The step of determining the pattern center point according to the line feature point set includes: Determining the number of feature points according to the line feature point set; According to the line feature point set and the number of feature points, the pattern center point is determined by referring to the following formula: Where C is the center point of the pattern, N is the number of feature points, x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point.

4. The method according to claim 3, characterized in that The determining of the pattern structure type according to the pattern center point and the line feature point set comprises: Based on the pattern center point, the axisymmetry of the line feature point set is judged to determine the axisymmetry judgment result; If the axisymmetry evaluation result is high axisymmetry, then the pattern structure type is determined to be an axisymmetric distribution type; If the axisymmetry evaluation result is low axisymmetry, based on the center point of the pattern, a ring distribution evaluation is performed on the set of line feature points to determine a ring distribution evaluation result; If the ring distribution evaluation result is that the ring distribution is obvious, then the pattern structure type is determined to be a ring distribution type; If the ring distribution evaluation result is that the ring distribution is not obvious, it is determined that the pattern structure type is irregular.

5. The method according to claim 4, characterized in that The step of judging the axisymmetry of the line feature point set based on the pattern center point and determining the axisymmetry judgment result includes: According to the pattern center point and the line feature point set, the axisymmetric evaluation value is determined by referring to the following formula: Wherein, S is the axisymmetric evaluation value, δ is the preset indicator function, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, (x j ,y j ) represents the line feature point set; If the axisymmetry evaluation value is greater than or equal to a preset axisymmetry threshold, the axisymmetry evaluation result is determined to be high axisymmetry; otherwise, the axisymmetry evaluation result is determined to be low axisymmetry.

6. The method according to claim 4, characterized in that The step of performing annular distribution evaluation on the set of line feature points based on the pattern center point and determining annular distribution evaluation result includes: Determining an average radius according to the pattern center point and the line feature point set; Based on the average radius, according to the pattern center point and the line feature point set, the annular distribution evaluation value is determined with reference to the following formula: Wherein, A is the annular distribution evaluation value, N is the number of feature points, x0 is the horizontal coordinate of the center point of the pattern, y0 is the vertical coordinate of the center point of the pattern, and x i is the horizontal coordinate of the i-th feature point, y i is the ordinate of the i-th feature point, and R is the average radius; If the ring distribution evaluation value is less than or equal to the preset ring evaluation threshold, the ring distribution evaluation result is determined to be obvious ring distribution; otherwise, the ring distribution evaluation result is determined to be insignificant ring distribution.

7. The method according to claim 2, characterized in that: The step of analyzing the pattern feature set and determining a modular element set according to the analysis result includes: According to the pattern structure type, segmenting the pattern line image to determine the core symbol line information; Determine the core symbol color information according to the color information and the core symbol line information; The core symbol line information and the core symbol color information are used as the modular element set.

8. The method according to claim 7, characterized in that The step of segmenting the pattern line image according to the pattern structure type and determining the core symbol line information includes: If the pattern structure type is an axisymmetric distribution type, assuming that it is a left-right axisymmetric distribution, the left half of the pattern line image is expressed by the following expression: Among them, I L (x, y) is the left half of the pattern line image, I(x, y) is the pixel value of the pattern line image at the coordinate (x, y), x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image; The right half of the pattern line image is expressed by the following expression: Among them, I R (x, y) is the right half of the pattern line image, I(x, y) is the pixel value of the pattern line image, x is the horizontal coordinate of the pattern line image, y is the vertical coordinate of the pattern line image, and W is the width of the pattern line image; According to the left half and the right half of the pattern line image, the image mapping is merged by the following formula to determine the merged image: Among them, I core (x, y) is the merged image, I L (x, y) is the left half of the pattern line image, W is the width of the pattern line image, x is the horizontal coordinate of the pattern line image, and y is the vertical coordinate of the pattern line image; The merged image is determined as the core symbol line information.

9. The method according to claim 7, characterized in that: The step of segmenting the pattern line image according to the pattern structure type and determining the core symbol line information includes: Determine the relative angle value of each feature point according to the pattern center point and the line feature point set; If the pattern structure type is a ring distribution type, the core element image is determined by the following formula: Wherein, Core is the core element image, n is the preset number of steps, r is the average radius, Δθ is the preset step rotation angle, I(r,θ) is the preset line detection function, ∈ is the preset line difference threshold, and θ is the relative angle value of the current feature point; The core element image is determined as the core symbol line information.

10. A processing system for traditional pattern images, characterized in that: include: A feature extraction module, used to obtain a traditional pattern image, pre-process the traditional pattern image, and extract a pattern feature set; An element extraction module is used to analyze the pattern feature set and determine a modular element set based on the analysis result; A matching module, used for matching the modular element set with the preset modern pattern feature set, and determining the modern pattern feature set to be selected according to the matching result; A fusion module, used for fusing the modular element set and the to-be-selected modern pattern feature set according to a preset fusion rule to determine a fused pattern image set; The output module is used to output the fused pattern image set for users to view and select for use.