Image matching method and related device

By acquiring color block distribution information and shape matching of the image, the image is adjusted to improve matching accuracy, solving the problem of low image matching accuracy in existing technologies and achieving more efficient image matching.

CN115761283BActive Publication Date: 2026-04-07ZHEJIANG ANJI INTELLIGENT ELECTRONICS HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing image matching methods fail to comprehensively consider position, orientation, and structure when extracting and matching key image features, resulting in low matching accuracy.

Method used

By acquiring the color block distribution information of the image to be matched, the target matching color block is determined, and the degree of matching is judged based on its shape information. Under the preset conditions, the target transformation information is acquired, and the image is adjusted to improve the matching accuracy.

Benefits of technology

It simplifies the process of determining the location, orientation, and structure of several key features, thereby improving the accuracy and efficiency of image matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115761283B_ABST
    Figure CN115761283B_ABST
Patent Text Reader

Abstract

This invention provides an image matching method and related equipment, comprising: acquiring first color patch distribution information of an image to be matched; determining target matching color patches of the image to be matched based on the first color patch distribution information; determining a first matching degree between the target matching color patch and the target matching image based on the shape information of the target matching color patch; acquiring target transformation information of the image to be matched when the first matching degree is greater than or equal to a preset matching degree; acquiring a target image to be matched based on the target transformation information; and determining whether the image to be matched and the target matching image match based on the degree of overlap between the target image to be matched and the target matching image. By matching color patches with a large proportion, adjusting the image based on the matching results, and determining the matching status based on the adjusted image, the method simplifies the judgment of the position, orientation, and structure of multiple key features, reduces the matching difficulty, and improves accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to an image matching method and related equipment. Background Technology

[0002] Image matching methods are methods that seek similar image targets by analyzing the similarity and consistency of the correspondence between the content, features, texture, and grayscale of images.

[0003] Current image matching methods typically extract and match key features directly when processing images. However, they cannot solve the problem of mutual exclusion between multiple key features in terms of position, orientation, and structure. They cannot accurately match images that are similar to the target image in key features but have different distributions or orientations, resulting in low matching accuracy. Summary of the Invention

[0004] This invention provides an image matching method and related equipment to solve the problem that current image matching methods cannot comprehensively consider the position, orientation, and structure of key features during the extraction and matching of key features of images, resulting in low accuracy of image matching.

[0005] In a first aspect, the present invention provides an image matching method, comprising:

[0006] Obtain the first color patch distribution information of the image to be matched;

[0007] Based on the first color block distribution information, the target matching color block of the image to be matched is determined;

[0008] Based on the shape information of the target matching color patch, a first degree of matching between the target matching color patch and the target matching image is determined;

[0009] If the first matching degree is greater than or equal to the preset matching degree, the target transformation information of the image to be matched is obtained;

[0010] Based on the target transformation information, obtain the target image to be matched;

[0011] Based on the degree of overlap between the target image to be matched and the target matching image, it is determined whether the image to be matched and the target matching image are matched.

[0012] Optionally, the image matching method further includes:

[0013] If the first matching degree is less than the preset matching degree, obtain the distribution information of the second color block within the preset range of the target matching color block;

[0014] Based on the second color block distribution information, the color difference within a preset range of the target matching color block is determined;

[0015] Based on the color difference and the preset difference, the corrected matching color block of the target matching image is determined;

[0016] Based on the shape information of the modified matching color patch, a second matching degree between the modified matching color patch and the target matching image is determined.

[0017] Optionally, the image matching method further includes:

[0018] If the second matching degree is greater than or equal to the preset matching degree, the color correction information of the target matching image is determined based on the color difference and the preset difference;

[0019] Based on the color correction information and the first color block distribution information, the third color block distribution information of the image to be matched is determined;

[0020] Based on the distribution information of the third color block, it is determined whether the image to be matched matches the target matching image.

[0021] Optionally, before the step of determining the color difference within a preset range of the target matching color patch based on the second color patch distribution information, the method further includes:

[0022] Based on the target matching color patch and the standard color patch distribution information of the target matching image, the standard matching color patch is determined;

[0023] Based on the shape information of the standard matching color block, the preset range of the target matching color block is determined.

[0024] Optionally, the image matching method further includes:

[0025] If the second matching degree is less than the preset matching degree, it is determined that the image to be matched does not match the target matching image.

[0026] Optionally, obtaining the target transformation information of the image to be matched includes:

[0027] Based on the shape information of the target matching color block and the shape information of the standard matching color block, the target transformation angle information of the image to be matched is determined.

[0028] Optionally, before the step of obtaining the target transformation information of the image to be matched when the first matching degree is greater than or equal to a preset matching degree, the method further includes:

[0029] Obtain the area ratio of the target matching color patch relative to the image to be matched;

[0030] If the area ratio is less than the preset ratio, the preset matching degree is determined based on the perimeter information of the target matching color block.

[0031] Secondly, the present invention also provides an image matching device, comprising:

[0032] The first acquisition module is used to acquire the first color block distribution information of the image to be matched;

[0033] The first determining module is used to determine the target matching color block of the image to be matched based on the first color block distribution information;

[0034] The second determining module is used to determine the first degree of matching between the target matching color block and the target matching image based on the shape information of the target matching color block;

[0035] The second acquisition module is used to acquire the target transformation information of the image to be matched when the first matching degree is greater than or equal to the preset matching degree.

[0036] The third acquisition module is used to acquire the target image to be matched based on the target transformation information;

[0037] The judgment module is used to determine whether the image to be matched and the target matching image match based on the degree of overlap between the target image to be matched and the target matching image.

[0038] Thirdly, the present invention also provides an electronic device, including a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory to implement the steps of the image matching method as described in any of the first aspects above.

[0039] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the image matching method as described in any of the first aspects above.

[0040] As can be seen from the above technical solutions, the present invention provides an image matching method and related equipment, including: acquiring first color patch distribution information of an image to be matched; determining a target matching color patch of the image to be matched based on the first color patch distribution information; determining a first matching degree between the target matching color patch and the target matching image based on the shape information of the target matching color patch; acquiring target transformation information of the image to be matched when the first matching degree is greater than or equal to a preset matching degree; acquiring a target image to be matched based on the target transformation information; and determining whether the image to be matched and the target matching image match based on the degree of overlap between the target image to be matched and the target matching image. Currently, image matching methods, in the process of extracting and matching key features of an image, suffer from the inability to comprehensively consider the position, orientation, and structure of key features, resulting in low accuracy in image matching. This application embodiment determines the target matching color block in the image to be matched, matches the shape of the target matching color block with the target matching image, and when the first matching degree between the target matching color block and the target matching image is greater than or equal to a preset matching degree, determines the target transformation information of the image to be matched, adjusts the image to be matched according to the target transformation information, and obtains the target image to be matched. Based on the degree of overlap between the target image and the target matching image, it is determined whether the target image matches the target image. Preliminary matching can be performed using feature color blocks that occupy a large proportion of the image to be matched. If the preliminary matching is successful, the image to be matched is adjusted according to the matching result, and the matching status is directly determined based on the adjusted target image to be matched. This simplifies the process of judging the position, direction, and structure of multiple key features during the matching process, reduces the matching difficulty, improves the matching accuracy, and thus improves matching efficiency and quality. Attached Figure Description

[0041] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 A schematic flowchart illustrating an image matching method provided in an embodiment of this application;

[0043] Figure 2 A schematic structural diagram of an image matching device provided in an embodiment of this application;

[0044] Figure 3 A schematic structural diagram of an electronic device provided in an embodiment of this application;

[0045] Figure 4This is a schematic structural diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation

[0046] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims. In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways, and the apparatus embodiments described below are merely exemplary.

[0047] like Figure 1 As shown, this application provides an image matching method, including:

[0048] Step S110: Obtain the first color block distribution information of the image to be matched.

[0049] For example, the color value distribution information of the image to be matched can be obtained, and areas with the same color value can be taken as a color block, thereby obtaining the first color block distribution information.

[0050] Step S120: Based on the first color block distribution information, determine the target matching color block of the image to be matched.

[0051] For example, the area of ​​each color block can be obtained using an image processing algorithm based on the aforementioned first color block distribution information. The target matching color block can be determined by the proportion of each color block's area to the area of ​​the image to be matched, provided that the proportion is greater than or equal to a preset proportion. Alternatively, the target matching color block can be determined if its area is greater than or equal to a preset area.

[0052] Step S130: Based on the shape information of the target matching color block, determine the first matching degree between the target matching color block and the target matching image.

[0053] For example, the color block distribution information of the target matching image can be obtained, and the first matching degree can be determined based on the shape information of the target matching color block and the color block distribution information of the target matching image, wherein the first matching degree is determined based on at least one of the area, color value and shape of the color block.

[0054] Step S140: If the first matching degree is greater than or equal to the preset matching degree, obtain the target transformation information of the image to be matched.

[0055] For example, when the first matching degree is greater than or equal to a preset matching degree, the relative relationship between the target matching color patch and the color patch of the matching target image is obtained. Based on this relative relationship, the target change information can be determined.

[0056] Step S150: Based on the above target transformation information, obtain the target image to be matched.

[0057] For example, the angle of the image to be matched can be adjusted according to the target transformation information to obtain the target image to be matched.

[0058] Step S160: Determine whether the target image to be matched matches the target image based on the degree of overlap between the target image to be matched and the target image to be matched.

[0059] By identifying target matching color patches in the image to be matched, the shape of the target matching color patches is matched against the target matching image. If the initial matching degree between the target matching color patches and the target matching image is greater than or equal to a preset matching degree, the target transformation information of the image to be matched is determined. The image to be matched is adjusted according to the target transformation information to obtain the target image to be matched. Based on the degree of overlap between the target image and the target matching image, it is determined whether the target image matches the target image. Preliminary matching can be performed using feature color patches that occupy a large proportion in the image to be matched. If the preliminary matching is successful, the image to be matched is adjusted according to the matching result, and the matching status is directly determined based on the adjusted target image to be matched. This simplifies the process of judging the position, orientation, and structure of multiple key features during the matching process, reduces the matching difficulty, improves the matching accuracy, and thus improves matching efficiency and quality.

[0060] According to some embodiments, the above-described image matching method further includes:

[0061] If the first matching degree is less than the preset matching degree, obtain the second color block distribution information within the preset range of the target matching color block;

[0062] Based on the above-mentioned second color block distribution information, the color difference within the preset range of the target matching color block is determined;

[0063] Based on the above color difference and preset difference, the corrected matching color block of the above target matching image is determined;

[0064] Based on the shape information of the modified matching color block, the second matching degree between the modified matching color block and the target matching image is determined.

[0065] For example, if the color difference between the color values ​​around the target matching color patch and the color value of the target matching color patch is less than a preset difference within a preset range, the matching color patch is determined to be corrected.

[0066] Because color differences may exist during image acquisition, errors may occur in color patch extraction. Therefore, obtaining the color difference between color patches within a preset range, and then obtaining corrected matching color patches based on color differences smaller than the preset difference, followed by a secondary matching of the corrected matching color patches with the target matching image, can improve the accuracy of image matching, thereby enhancing matching quality and efficiency.

[0067] According to some embodiments, the above-described image matching method further includes:

[0068] If the second matching degree is greater than or equal to the preset matching degree, the color correction information of the target matching image is determined based on the color difference and the preset difference.

[0069] Based on the above color correction information and the above first color block distribution information, the third color block distribution information of the above image to be matched is determined;

[0070] Based on the distribution information of the third color block mentioned above, it is determined whether the image to be matched matches the target matching image mentioned above.

[0071] For example, when the color setting is less than the preset difference, the color difference can be corrected according to the color value of the color block in the target matching image to obtain the color correction information of the target matching image. The color correction information includes information such as color correction area and color correction intensity.

[0072] If the degree of matching between the corrected color patch and the target image is higher than the second degree of matching mentioned above, the color correction is considered effective. The image to be matched can be corrected based on the color correction information mentioned above, and the third color patch distribution information of the corrected image can be obtained to determine whether the image to be matched matches the target image. This can simplify the image matching steps, improve the accuracy of image matching, and thus improve the matching quality and efficiency.

[0073] According to some embodiments, before the step of determining the color difference within a preset range of the target matching color patch based on the second color patch distribution information, the method further includes:

[0074] Based on the above target matching color patches and the standard color patch distribution information of the above target matching image, standard matching color patches are determined;

[0075] Based on the shape information of the standard matching color block mentioned above, the preset range of the target matching color block is determined.

[0076] For example, the color block with the highest degree of matching with the target matching color block can be determined as the standard matching color block based on the standard color block distribution information of the target matching image, and the preset range can be determined based on the shape of the standard matching color block and the position information of the target matching color block.

[0077] The standard matching color patch is determined by comparing the distribution information of the target matching color patch and the standard color patch. Based on the shape information of the standard matching color patch, the preset range is determined. This improves the practicality of the preset range, simplifies the image matching process, increases the accuracy of image matching, and thus improves matching quality and efficiency.

[0078] According to some embodiments, the above-described image matching method further includes:

[0079] If the second matching degree is less than the preset matching degree, it is determined that the image to be matched does not match the target matching image.

[0080] If the second matching degree is less than the preset matching degree, it can be considered that the image to be matched does not match the target matching image after the color difference of the image to be matched has been eliminated, thus improving the accuracy of image matching and thereby improving the efficiency of image matching.

[0081] According to some embodiments, obtaining the target transformation information of the image to be matched includes:

[0082] Based on the shape information of the target matching color block and the shape information of the standard matching color block, the target transformation angle information of the image to be matched is determined.

[0083] Based on the shape information of the target matching color block and the standard matching color block, the target transformation angle of the image to be matched is determined. Adjusting the image to be matched based on the target transformation angle can simplify the image matching steps and improve matching efficiency.

[0084] According to some embodiments, before the step of obtaining the target transformation information of the image to be matched when the first matching degree is greater than or equal to the preset matching degree, the method further includes:

[0085] Obtain the area ratio of the target matching color block relative to the image to be matched;

[0086] If the area ratio is less than the preset ratio, the preset matching degree is determined based on the perimeter information of the target matching color block.

[0087] When the area ratio is less than the preset ratio, it can be assumed that the selection criterion for the target matching color block may be the complexity of its shape. Therefore, determining the preset matching degree based on the perimeter information of the target matching color block can expand the scope of image matching, improve the practicality of image matching, and improve the accuracy of image matching.

[0088] like Figure 2 As shown, Figure 2 This is a schematic structural diagram of an image matching device provided in an embodiment of this application.

[0089] This application provides an image matching device 200, which includes:

[0090] The first acquisition module 201 is used to acquire the first color block distribution information of the image to be matched;

[0091] The first determining module 202 is used to determine the target matching color block of the image to be matched based on the first color block distribution information.

[0092] The second determining module 203 is used to determine the first degree of matching between the target matching color block and the target matching image based on the shape information of the target matching color block.

[0093] The second acquisition module 204 is used to acquire the target transformation information of the image to be matched when the first matching degree is greater than or equal to the preset matching degree.

[0094] The third acquisition module 205 is used to acquire the target image to be matched based on the above target transformation information;

[0095] The judgment module 206 is used to determine whether the image to be matched and the target matching image match based on the degree of overlap between the target image to be matched and the target matching image.

[0096] An image matching device 200 is capable of achieving Figure 1 The various processes implemented in the method embodiments are not described in detail here to avoid repetition.

[0097] Please see Figure 3 , Figure 3 This is a schematic structural diagram of an electronic device provided in an embodiment of this application.

[0098] This application provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it performs the following steps:

[0099] Obtain the first color patch distribution information of the image to be matched;

[0100] Based on the first color block distribution information mentioned above, the target matching color block of the image to be matched is determined;

[0101] Based on the shape information of the target matching color block, the first degree of matching between the target matching color block and the target matching image is determined;

[0102] If the first matching degree is greater than or equal to the preset matching degree, the target transformation information of the image to be matched is obtained.

[0103] Based on the target transformation information mentioned above, the target image to be matched is obtained;

[0104] Based on the degree of overlap between the target image to be matched and the target matching image, it is determined whether the target image to be matched and the target matching image match.

[0105] In practical implementation, when the processor 320 executes the computer program 311, it can achieve... Figure 1 Any of the corresponding implementation methods in the embodiments.

[0106] Since the electronic device described in this embodiment is a device used to implement a device in the embodiments of this application, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in the embodiments of this application. Therefore, how the electronic device implements the method in the embodiments of this application will not be described in detail here. Any device used by those skilled in the art to implement the method in the embodiments of this application falls within the scope of protection of this application.

[0107] like Figure 4 As shown, Figure 4 This is a schematic structural diagram of a computer-readable storage medium provided in an embodiment of this application.

[0108] This embodiment provides a computer-readable storage medium 400 on which a computer program 411 is stored. When the computer program 411 is executed by a processor, it performs the following steps:

[0109] Obtain the first color patch distribution information of the image to be matched;

[0110] Based on the first color block distribution information mentioned above, the target matching color block of the image to be matched is determined;

[0111] Based on the shape information of the target matching color block, the first degree of matching between the target matching color block and the target matching image is determined;

[0112] If the first matching degree is greater than or equal to the preset matching degree, the target transformation information of the image to be matched is obtained.

[0113] Based on the target transformation information mentioned above, the target image to be matched is obtained;

[0114] Based on the degree of overlap between the target image to be matched and the target matching image, it is determined whether the target image to be matched and the target matching image match.

[0115] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0116] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0117] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0118] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0119] This application also provides a computer program product, which includes computer software instructions that, when executed on a processing device, cause the processing device to perform actions such as... Figure 1 The process of the image matching method in the corresponding embodiment.

[0120] The aforementioned computer program product includes one or more computer instructions. When the aforementioned computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The aforementioned computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The aforementioned computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the aforementioned computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The aforementioned computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks (SSDs)).

[0121] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0122] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

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

[0124] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0125] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0126] In summary, the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. An image matching method, characterized in that, include: Obtain the first color patch distribution information of the image to be matched; Based on the first color block distribution information, the target matching color block of the image to be matched is determined; Based on the shape information of the target matching color patch, a first degree of matching between the target matching color patch and the target matching image is determined; If the first matching degree is greater than or equal to the preset matching degree, the target transformation information of the image to be matched is obtained; Based on the target transformation information, obtain the target image to be matched; Based on the degree of overlap between the target image to be matched and the target matching image, it is determined whether the image to be matched and the target matching image match. If the first matching degree is less than the preset matching degree, obtain the distribution information of the second color block within the preset range of the target matching color block; Based on the second color block distribution information, the color difference within a preset range of the target matching color block is determined; Based on the color difference and the preset difference, the corrected matching color block of the target matching image is determined; Based on the shape information of the modified matching color patch, a second matching degree between the modified matching color patch and the target matching image is determined; If the second matching degree is greater than or equal to the preset matching degree, the color correction information of the target matching image is determined based on the color difference and the preset difference; Based on the color correction information and the first color block distribution information, the third color block distribution information of the image to be matched is determined; Based on the distribution information of the third color block, it is determined whether the image to be matched matches the target matching image.

2. The image matching method as described in claim 1, characterized in that, Before the step of determining the color difference within a preset range of the target matching color patch based on the second color patch distribution information, the method further includes: Based on the target matching color patch and the standard color patch distribution information of the target matching image, the standard matching color patch is determined; Based on the shape information of the standard matching color block, the preset range of the target matching color block is determined.

3. The image matching method as described in claim 1, characterized in that, Also includes: If the second matching degree is less than the preset matching degree, it is determined that the image to be matched does not match the target matching image.

4. The image matching method as described in claim 2, characterized in that, The step of obtaining the target transformation information of the image to be matched includes: Based on the shape information of the target matching color block and the shape information of the standard matching color block, the target transformation angle information of the image to be matched is determined.

5. The image matching method as described in claim 1, characterized in that, Before the step of obtaining the target transformation information of the image to be matched when the first matching degree is greater than or equal to the preset matching degree, the method further includes: Obtain the area ratio of the target matching color patch relative to the image to be matched; If the area ratio is less than the preset ratio, the preset matching degree is determined based on the perimeter information of the target matching color block.

6. An image matching device, characterized in that, The image matching method as described in claims 1 to 5 includes: The first acquisition module is used to acquire the first color block distribution information of the image to be matched; The first determining module is used to determine the target matching color block of the image to be matched based on the first color block distribution information; The second determining module is used to determine the first degree of matching between the target matching color block and the target matching image based on the shape information of the target matching color block; The second acquisition module is used to acquire the target transformation information of the image to be matched when the first matching degree is greater than or equal to the preset matching degree. The third acquisition module is used to acquire the target image to be matched based on the target transformation information; The judgment module is used to determine whether the image to be matched and the target matching image match based on the degree of overlap between the target image to be matched and the target matching image; The fourth acquisition module is used to acquire the distribution information of the second color block within a preset range of the target matching color block when the first matching degree is less than the preset matching degree; The third determining module is used to determine the color difference within a preset range of the target matching color block based on the second color block distribution information; The fourth determining module is used to determine the corrected matching color block of the target matching image based on the color difference and the preset difference; The fifth determining module is used to determine the second matching degree between the modified matching color block and the target matching image based on the shape information of the modified matching color block; The sixth determining module is used to determine the color correction information of the target matching image based on the color difference and the preset difference when the second matching degree is greater than or equal to the preset matching degree. The seventh determining module is used to determine the third color block distribution information of the image to be matched based on the color correction information and the first color block distribution information; The matching module is used to determine whether the image to be matched matches the target matching image based on the distribution information of the third color block.

7. An electronic device, comprising a memory and a processor, characterized in that, When the processor executes a computer program stored in the memory, it implements the steps of the image matching method as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the steps of the image matching method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Image matching method and device and computer equipment

    CN115115857A