A method for digital extraction and generation of patterns

Through the combination of image processing and user input, the pattern pattern is automatically restored and repaired, and the problem of unclear and defective pattern patterns in the prior art is solved, and efficient pattern repair and restoration is achieved, saving labor costs and time.

CN115619673BActive Publication Date: 2025-01-10XIAN ACAD OF FINE ARTS ASSET MANAGEMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211295747.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-01-10
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently and automatically restore old patterns, resulting in unclear or defective rubbing images, which requires a lot of labor costs and time to repair and restore.

Method used

Through image processing methods, the patterns on cultural relics are extracted, and the material parts are segmented and overlapped, and the integrity of the patterns is detected and repaired, combined with user input, and finally the complete patterns are output.

Benefits of technology

It greatly saves the labor cost and time of researchers, improves the integrity and research efficiency of patterns, and realizes the automated repair and restoration of patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115619673B_ABST
    Figure CN115619673B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for digital extraction and generation of patterns, which extracts a paper material image from a cultural relic, scans the paper material image to obtain its corresponding electronic material image, sets the part of the material image without a pattern to be transparent; receives the pattern structure received by the material image, divides the material image into various material parts according to the pattern structure, and obtains the positional relationship between the various material parts; overlaps the various material parts into various layers in sequence by translation or rotation or a combination of the two, so that the material parts of each layer are aligned respectively; merges the material parts of each layer to obtain a preliminary decorative pattern, detects the preliminary decorative pattern and completes the preliminary decorative pattern to obtain a final decorative pattern; restores the final decorative pattern according to the pattern structure to obtain an overall decorative pattern and outputs it. The present invention processes the material image in a digital way, and automatically restores the decorative pattern and the corresponding element pattern.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of art material data, and in particular to a method for digitizing and extracting patterns. Background Art

[0002] my country is a country with a long history, and has preserved a large number of cultural relics and historical sites. Among these cultural relics, there are many precious decorative patterns. As ancient Chinese fine arts, these decorative patterns play an important role in the study of fine arts. At the same time, modern art can also create works based on the materials provided by these decorative patterns, and then create more aesthetic works.

[0003] Yuelu Academy is the largest and best-preserved academy complex in China, with a large number of decorative patterns. For example, on both sides of the gate of Yuelu Academy are Ming Dynasty stone drums with exquisite decorative patterns carved on them. The decorative pattern is called "Three Lions Playing with Pearls". In this decorative pattern, the vivid postures of the three lions present a rich visual effect, and the pattern itself has the meaning of being happy and worry-free, auspicious and festive, and peaceful and prosperous. Since the decorative pattern is carved on the stone drum, it was copied on paper by rubbing, thus obtaining the "Three Lions Playing with Pearls" rubbing on paper.

[0004] However, the current reality is that due to the long history and the lack of timely protection of the stone drum, the decorative patterns of the "Three Lions Playing with Pearls" are unclear or part of the decorative patterns are missing, which will result in the incompleteness of the image after rubbing, and it needs to be completed manually. At the same time, the rubbing image is only in black and white. Most of the decorative patterns of the "Three Lions Playing with Pearls" need to be processed and analyzed after simple rubbing to restore the original "Three Lions Playing with Pearls". When restoring the "Three Lions Playing with Pearls", the same decorative patterns also need to be gradually restored manually, which will consume a lot of labor costs and time costs. After restoration, extracting the element patterns will also cost a lot of labor costs and time costs. For such a project, it often takes a professional team to continuously study for more than ten years or even longer to obtain some relatively complete basic decorative patterns and element patterns. Summary of the invention

[0005] The purpose of the present invention is to overcome the problems existing in the above-mentioned prior art and provide a method for digital extraction and generation of patterns, which processes the material image in a digital way to automatically restore the decorative patterns and corresponding element patterns on the cultural relics.

[0006] To this end, the present invention provides a method for digitally extracting and generating a pattern, comprising the following steps:

[0007] Extracting a paper material image from the cultural relic, scanning the paper material image to obtain its corresponding electronic material image, and setting the part without pattern in the material image to be transparent;

[0008] receiving a pattern structure received by the material image, dividing the material image into various material parts according to the pattern structure, and obtaining a positional relationship between the various material parts;

[0009] Overlap the material parts into layers in sequence by translation or rotation or a combination of the two, so that the material parts of each layer are aligned respectively;

[0010] Merging the material parts of each layer to obtain a preliminary decorative pattern, detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain a final decorative pattern;

[0011] Restoring the final decorative pattern according to the pattern structure to obtain an overall decorative pattern;

[0012] The overall decorative pattern is matched with the material image and outputted.

[0013] Furthermore, when detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain the final decorative pattern, the following steps are included:

[0014] Displaying the preliminary decorative pattern to the user, and simultaneously displaying the corresponding material image and each of the material parts to the user;

[0015] receiving the user's modification on the preliminary decorative pattern and saving the modification;

[0016] The final saved preliminary decorative pattern is used as the final decorative pattern and outputted.

[0017] Furthermore, when the preliminary decorative pattern, the material image, and each of the material parts are displayed to the user, the size of the preliminary decorative pattern is respectively larger than the size of the material image and each of the material parts, the preliminary decorative pattern is displayed on the right side of the screen, and the material image and each of the material parts are displayed on the left side of the screen.

[0018] Furthermore, when detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain the final decorative pattern, the following steps are included:

[0019] Obtaining a pattern name in the preliminary decorative pattern according to the preliminary decorative pattern, and obtaining a corresponding shape according to the pattern name;

[0020] Comparing the preliminary decorative pattern with the shape corresponding to the pattern name to obtain a different part;

[0021] Eliminating the distinguishing portion by compensating the endpoints of the free ends on the preliminary decorative pattern;

[0022] The preliminary decorative pattern with all the different parts eliminated is used as the final decorative pattern and output is completed.

[0023] Furthermore, when the preliminary decorative pattern is compared with the shape corresponding to the pattern name to obtain the difference part, the following steps are included:

[0024] By means of central symmetry, the preliminary decorative pattern and the shape corresponding to the pattern name are respectively matched in perspective and size;

[0025] Taking each pixel point in the shape corresponding to the pattern name as the center of the circle and setting the length as the radius, a pixel point range is obtained;

[0026] Merge the pixel point ranges corresponding to the pixel points in the shape corresponding to the pattern name to obtain the pattern range;

[0027] The preliminary decorative pattern is compared with the pattern range, and the portion beyond the pattern range is the distinguishing portion.

[0028] Furthermore, after the preliminary decorative pattern with all the different parts eliminated is used as the final decorative pattern, the following steps are included:

[0029] Displaying the final decorative pattern to the user, and displaying the corresponding material image and each material part thereof to the user respectively;

[0030] receiving the user's modification on the final decorative pattern and saving it;

[0031] The final decorative pattern saved last is used as the final decorative pattern and outputted.

[0032] Further, when receiving the pattern structure received by the material image, it is obtained by receiving user input.

[0033] The present invention provides a method for digitally extracting and generating patterns, which has the following beneficial effects:

[0034] The present invention processes the material image by image processing to obtain the structure of the decorative pattern, and combines the existing partial decorative patterns according to the structure to obtain the repaired partial decorative patterns, and finally improves the partial decorative patterns according to the characteristics of the patterns, and obtains the repaired decorative patterns according to the structure. When repairing, the researchers only need to adjust the repaired decorative patterns, thereby greatly saving the labor cost and time cost of the research work and improving the research efficiency.

[0035] When extracting element patterns, the present invention judges the integrity of the decorative pattern and divides it, so that the obtained element pattern has the characteristic of single use. At the same time, it divides it according to the overall and detailed parts, so that the extracted element pattern is relatively complete relative to the decorative pattern, and the existing decorative pattern is fully utilized, bringing the resources in the decorative pattern to the extreme. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic block diagram of the overall method flow of the present invention;

[0037] Figure 2 A schematic flow chart of a method for detecting the integrity of a preliminary decorative pattern and completing the preliminary decorative pattern to obtain a final decorative pattern in the present invention;

[0038] Figure 3 It is a schematic flowchart of another method for detecting the integrity of a preliminary decorative pattern and completing the preliminary decorative pattern to obtain a final decorative pattern in the present invention;

[0039] Figure 4 A schematic flowchart of a method for comparing a preliminary decorative pattern with a shape corresponding to a pattern name to obtain a distinguished portion according to the present invention;

[0040] Figure 5 The present invention is a schematic flowchart of the method flow after the preliminary decorative pattern with all distinguishing parts eliminated is used as the final decorative pattern. DETAILED DESCRIPTION

[0041] A specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation.

[0042] In the present application document, component models and structures that are not clearly defined are all prior arts known to those skilled in the art, and those skilled in the art may set them according to actual needs, and are not specifically limited in the embodiments of the present application document.

[0043] Specifically, Figure 1-5As shown, the embodiment of the present invention provides a method for digitally extracting and generating a pattern, which specifically includes the following steps:

[0044] (1) extracting a paper material image from the stone tablet, scanning the paper material image to obtain its corresponding electronic material image, and setting the portion of the material image without a pattern to be transparent;

[0045] (2) receiving a pattern structure of the material image, dividing the material image into various material parts according to the pattern structure, and obtaining a positional relationship between the various material parts;

[0046] (3) overlapping the material parts into layers in sequence by translation or rotation or a combination of the two, so that the material parts of each layer are aligned respectively;

[0047] (iv) merging the material parts of each layer to obtain a preliminary decorative pattern, detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain a final decorative pattern;

[0048] (5) restoring the final decorative pattern according to the pattern structure to obtain an overall decorative pattern;

[0049] (6) Matching the overall decorative pattern with the material image and outputting the result.

[0050] In the above technical scheme, steps (a) to (six) are performed in a logical order. First, the existing original image is extracted. Since the cultural relics are underground all year round, due to the corrosion of the soil and the age, the obtained image must have most of the damage. Therefore, we can only extract the only image that the machine can, and repair the image based on these. In step (a), the material image is extracted from the stone tablet. The generally used method is the rubbing method. In this way, the original image on the stone tablet can be obtained, that is, the material image of the present invention. At this time, the material image obtained in the present invention is incomplete. Therefore, step (b) is based on the existing material image to obtain the pattern structure. The positional relationship between each material in the pattern is the number of uniformly distributed materials when a material rotates one circle, or the number of materials distributed in a matrix. These are all pattern structures. According to these pattern structures, the original single material can be restored, and the parts of each material can be overlapped according to the positional relationship, that is, the materials of each layer are aligned in step (iii), so that each layer can be merged to obtain a relatively complete material, that is, the preliminary decorative pattern in step (iv). After repairing and perfecting this, the final decorative pattern is obtained. This final decorative pattern is used as a material, and according to the above pattern structure, the overall decorative pattern can be restored and output. In this way, the pattern on the surface of the cultural relic can be repaired in an automatic way.

[0051] The present invention processes the material image by means of image processing to obtain the structure of the decorative pattern, and combines the existing partial decorative patterns according to the structure to obtain the repaired partial decorative patterns, and finally improves the partial decorative patterns according to the characteristics of the patterns, and obtains the repaired decorative patterns according to the structure. When performing the repair, the researchers only need to adjust the already repaired decorative patterns, thereby greatly saving the labor cost and time cost of the research work and improving the research efficiency.

[0052] In the above technical solution, in the present invention, when detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain the final decorative pattern, the following steps are included:

[0053] (1) displaying the preliminary decorative pattern to the user, and simultaneously displaying the corresponding material image and each of the material parts to the user;

[0054] (2) receiving the user's modification on the preliminary decorative pattern and saving the modification;

[0055] (3) The preliminary decorative pattern saved last is used as the final decorative pattern and outputted.

[0056] In the above technical solution, steps (1) to (3) are performed in a logical order. The technical solution displays the preliminary decorative pattern to the user, displays the corresponding material image, provides the user with a certain reference, receives the user's modification of the preliminary decorative pattern, and keeps the modified part and the original part at the same time, so that the final decorative pattern can be obtained and output. The final decorative pattern obtained in this way can be consistent with the original pattern of the cultural relic to the greatest extent, and has a positive effect on the original extraction.

[0057] Preferably, in order to allow the user to have a more obvious visual effect when repairing and lifting, the size of the preliminary decorative pattern, the material image, and each material part is larger than the size of the material image and each material part when displayed to the user. The preliminary decorative pattern is displayed on the right side of the screen, and the material image and each material part are displayed on the left side of the screen.

[0058] In addition, the present invention also proposes a technical solution for repairing and extracting, which is completed in an automatic machine manner, that is, when detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain the final decorative pattern, the following steps are included:

[0059] <1> obtaining a pattern name in the preliminary decorative pattern according to the preliminary decorative pattern, and obtaining a corresponding shape according to the pattern name;

[0060] <2> Compare the preliminary decorative pattern with the shape corresponding to the pattern name to obtain the difference part;

[0061] <3> Eliminating the distinguishing portion by compensating for the endpoints of the free ends on the preliminary decorative pattern;

[0062] <IV> The preliminary decorative pattern with all the distinguishing parts eliminated is used as the final decorative pattern, and the output is completed.

[0063] In the above technical solution, steps <1> to <4> are performed in a logical order, and the current pattern is repaired by analyzing the decorative pattern and its corresponding shape, and the difference part is eliminated by compensating the endpoints of the free end, and the traversed pattern is output as the final decorative pattern. In this way, the preliminary decorative pattern is repaired automatically by the system, so that the corresponding element can be extracted.

[0064] As a preferred solution of the above technical solution, when comparing the preliminary decorative pattern with the shape corresponding to the pattern name to obtain the difference part, the following steps are included:

[0065] <1> By means of central symmetry, the preliminary decorative pattern and the shape corresponding to the pattern name are respectively matched in perspective and size;

[0066] <2> Taking each pixel point in the shape corresponding to the pattern name as the center of the circle and setting the length as the radius, a pixel point range is obtained;

[0067] <3> Merge the pixel point ranges corresponding to the pixel points in the shape corresponding to the pattern name to obtain the pattern range;

[0068] <4> The preliminary decorative pattern is compared with the pattern range, and the portion beyond the pattern range is the distinguishing portion.

[0069] In the above technical solution, the steps <1> To step <4> Proceed in logical order. For some rotated pattern structures, the sizes of the preliminary decorative patterns in each orientation are matched by means of central symmetry, so that they have the same size when they overlap in perspective. Then, by setting the pixel radius, the range of the sub-image to be repaired is limited, so that a corresponding actual range that can be used as an expansion can be obtained, that is, the allowable error range. Therefore, the difference part obtained is the part that exceeds the range. The difference part set in this way reasonably avoids the existing error.

[0070] At the same time, the above technical solution is further optimized, and after the preliminary decorative pattern with all the distinguishing parts eliminated is used as the final decorative pattern, the following steps are included:

[0071] 1) displaying the final decorative pattern to the user, and displaying the corresponding material image and each material part thereof to the user respectively;

[0072] 2) receiving the user's modification on the final decorative pattern and saving it;

[0073] 3) taking the final decorative pattern saved last as the final decorative pattern and outputting it.

[0074] 4) In the present invention, when receiving the pattern structure of the material image, it is obtained by receiving user input.

[0075] In the above technical solution, steps 1) to 4) are performed in a logical order, and the initial decorative pattern automatically obtained by the above system is manually repaired a second time. Therefore, both the system and human work can be concentrated to achieve the best extraction effect.

[0076] When extracting element patterns, the present invention judges the integrity of the decorative pattern and divides it, so that the obtained element pattern has the characteristic of single use. At the same time, it divides it according to the overall and detailed parts, so that the extracted element pattern is relatively complete relative to the decorative pattern, and the existing decorative pattern is fully utilized, bringing the resources in the decorative pattern to the extreme.

[0077] The above disclosures are only several specific embodiments of the present invention. However, the embodiments of the present invention are not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.

Claims

1. A method for digitally extracting and generating a pattern, characterized in that: The steps include: Extracting a paper material image from the cultural relic, scanning the paper material image to obtain its corresponding electronic material image, and setting the part without pattern in the material image to be transparent; receiving a pattern structure received by the material image, dividing the material image into various material parts according to the pattern structure, and obtaining a positional relationship between the various material parts; Overlap the material parts into layers in sequence by translation or rotation or a combination of the two, so that the material parts of each layer are aligned respectively; Merging the material parts of each layer to obtain a preliminary decorative pattern, detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain a final decorative pattern, wherein when the preliminary decorative pattern, the material image, and each of the material parts are displayed to the user, the size of the preliminary decorative pattern is larger than the size of the material image and each of the material parts, the preliminary decorative pattern is displayed on the right side of the screen, and the material image and each of the material parts are displayed on the left side of the screen; When detecting the integrity of the preliminary decorative pattern and completing the preliminary decorative pattern to obtain the final decorative pattern, the following steps are included: Displaying the preliminary decorative pattern to the user, and simultaneously displaying the corresponding material image and each of the material parts to the user; receiving the user's modification on the preliminary decorative pattern and saving the modification; Obtaining a pattern name in the preliminary decorative pattern according to the preliminary decorative pattern, and obtaining a corresponding shape according to the pattern name; Comparing the preliminary decorative pattern with the shape corresponding to the pattern name to obtain a different part; Eliminating the distinguishing portion by compensating the endpoints of the free ends on the preliminary decorative pattern; The preliminary decorative pattern with all the different parts eliminated is used as the final decorative pattern, and the final decorative pattern is outputted; When the preliminary decorative pattern is compared with the shape corresponding to the pattern name to obtain the difference part, the following steps are included: By means of central symmetry, the preliminary decorative pattern and the shape corresponding to the pattern name are respectively matched in perspective and size; Taking each pixel point in the shape corresponding to the pattern name as the center of the circle and setting the length as the radius, a pixel point range is obtained; Merge the pixel point ranges corresponding to the pixel points in the shape corresponding to the pattern name to obtain the pattern range; Comparing the preliminary decorative pattern with the pattern range, the portion beyond the pattern range is the distinguished portion; Restoring the final decorative pattern according to the pattern structure to obtain an overall decorative pattern; The overall decorative pattern is matched with the material image and outputted.

2. A method for digitally extracting and generating a pattern as claimed in claim 1, characterized in that: After the preliminary decorative pattern with all the different parts eliminated is used as the final decorative pattern, the following steps are included: Displaying the final decorative pattern to the user, and displaying the corresponding material image and each material part thereof to the user respectively; receiving the user's modification on the final decorative pattern and saving it; The final decorative pattern saved last is used as the final decorative pattern and outputted.

3. A method for digitally extracting and generating a pattern as claimed in claim 1, characterized in that: When receiving the pattern structure received by the material image, it is obtained by receiving user input.

Citation Information

Patent Citations

  • Image processing method, device and equipment and storage medium

    CN109816615A

  • Object-Based Image Inpainting

    US20080238942A1