Image search method and device, electronic equipment and storage medium

By using the interval pixel search method, the target pixels in the image are directly determined, which solves the problem of reduced real-time performance caused by high computational load in existing technologies and achieves efficient image search.

CN115908876BActive Publication Date: 2026-11-20LUXSHARE PRECISION TECH(NANJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211635137.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-11-20
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

Existing technologies require image correction, denoising, and binarization to locate specific pixels in an image, resulting in high computational load and reduced real-time performance.

Method used

The method of interval pixel search is adopted to traverse the pixels of the image to be searched, thereby reducing the number of pixels traversed, and the target image is directly determined by the pixel value, avoiding the redundant calculation of binarization and specific pixel value search.

Benefits of technology

It improves the real-time performance and accuracy of image search while reducing computational load and processing complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115908876B_ABST
    Figure CN115908876B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an image search method and device, electronic equipment and a storage medium. A to-be-searched image including a target image is acquired; the to-be-searched image is traversed in a pixel point manner by using an interval pixel search manner; and the target image in the to-be-searched image is determined according to a pixel value of the traversed pixel point. Embodiments of the present application improve the real-time performance of image search.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to image processing technology, and more particularly to an image search method, apparatus, electronic device, and storage medium. Background Technology

[0002] In scenarios such as monocular localization, binocular localization, robotics, and machine automation, it is necessary to locate specific pixels in an image. In the following scenarios, the real-time requirements for locating specific pixels are extremely high.

[0003] In existing technologies, finding a specific pixel in an image requires image correction, denoising, and binarization, which necessitates multiple calculations for the same pixel, resulting in a large computational load and reduced real-time performance. Summary of the Invention

[0004] This application provides an image search method, apparatus, electronic device, and storage medium to improve the real-time performance of image search.

[0005] In a first aspect, embodiments of this application provide an image search method, which includes:

[0006] Obtain the search image, including the target image;

[0007] The image to be searched is traversed pixel by pixel using an interval pixel search method.

[0008] The target image in the search image is determined based on the pixel values ​​of the traversed pixels.

[0009] Secondly, embodiments of this application also provide an image search device, which includes:

[0010] The image acquisition module is used to acquire the search image, including the target image;

[0011] The pixel traversal module is used to traverse the pixels of the image to be searched using an interval pixel search method.

[0012] The target image determination module is used to determine the target image in the search image based on the pixel values ​​of the traversed pixels.

[0013] Thirdly, embodiments of this application also provide an electronic device, which includes:

[0014] One or more processors;

[0015] Storage device for storing one or more programs;

[0016] When one or more programs are executed by one or more processors, the one or more processors implement any of the image search methods provided in the embodiments of this application.

[0017] Fourthly, embodiments of this application also provide a storage medium including computer-executable instructions, which, when executed by a computer processor, are used to perform any of the image search methods provided in embodiments of this application.

[0018] This application acquires a search image including a target image; it then uses an interval pixel search method to traverse the search image pixel by pixel. Since the target image typically consists of multiple adjacent pixels, the interval pixel search method reduces the number of pixels traversed, improving search efficiency and removing isolated noise, thus improving search accuracy. Based on the pixel values ​​of the traversed pixels, the target image in the search image is determined directly through pixel values, eliminating the need for binarization and subsequent searching for specific pixel values. This reduces the number of repeated traversals of the same pixel, improving search efficiency and real-time performance of image search. Therefore, the technical solution of this application solves the problem that finding specific pixels in an image requires image correction, denoising, and binarization, necessitating multiple calculations for the same pixel, resulting in high computational load and reduced real-time performance. This achieves the effect of improving the real-time performance of image search. Attached Figure Description

[0019] Figure 1 This is a flowchart of an image search method according to Embodiment 1 of this application;

[0020] Figure 2a This is a schematic diagram of an image to be searched in Embodiment 1 of this application;

[0021] Figure 2b This is a schematic diagram of an interval pixel search method in Embodiment 1 of this application;

[0022] Figure 3 This is a flowchart of an image search method according to Embodiment 2 of this application;

[0023] Figure 4 This is a flowchart of an image search method according to Embodiment 3 of this application;

[0024] Figure 5 This is a schematic diagram of the structure of an image search device according to Embodiment 4 of this application;

[0025] Figure 6 This is a schematic diagram of the structure of an electronic device according to Embodiment 5 of this application. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first" and "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Example 1

[0029] Figure 1 This is a flowchart of an image search method provided in Embodiment 1 of this application. This embodiment can be applied to the case of determining a specific pixel by traversing the pixels in an image. The method can be executed by an image search device, which can be implemented in software and / or hardware and specifically configured in an electronic device.

[0030] See Figure 1 The image search method shown includes the following steps:

[0031] S110. Obtain the image to be searched, including the target image.

[0032] The target image can be an image composed of specific pixels to be searched, which can be used to locate the target image. The image to be searched is an image obtained by taking a picture of the object or image corresponding to the target image. For example, the image to be searched can be an image taken by a camera during monocular or binocular localization.

[0033] S120. Use the interval pixel search method to traverse the pixels of the image to be searched.

[0034] Pixel search is typically achieved by iterating through all pixels in the search image one by one. Interval pixel search, in contrast, involves iterating through the search image at intervals of a certain number of pixels. For example, interval pixel search can be an interval search, an interval search, or a search that alternates both rows and columns. Iterating through the search image using interval pixel search retrieves the pixel values ​​of the pixels that need to be traversed.

[0035] Specifically, Figure 2a This is a schematic diagram of an image to be searched. Figure 2a For an image with a resolution of 8×8, it is necessary to iterate through 64 pixels one by one; Figure 2b This is a schematic diagram of an interval pixel search method, which uses an interval pixel search method that skips one row and one column. Figure 2b In this diagram, black pixels are those that do not need to be traversed, and white pixels are those that do need to be traversed. There are 16 pixels that need to be traversed in this case. Figure 2a The search method reduces the number of pixels traversed by 75%.

[0036] S130. Determine the target image in the image to be searched based on the pixel values ​​of the traversed pixels.

[0037] Pixel values ​​in an image are values ​​assigned during the image digitization process and are used to represent average brightness information. In color images, pixel values ​​include pixel values ​​for the three primary color components: red, green, and blue.

[0038] Typical image search involves image binarization and specific pixel value search steps to determine the target image. Image binarization compares all pixel values ​​of the image to be searched with a binarization threshold to obtain a black and white image. Specifically, the binarization process can involve comparing all pixel values ​​of the image to be searched with the pixel value thresholds for the three primary color components (red, green, and blue). If the pixel value of a certain pixel is greater than or equal to the pixel value threshold for all three primary color components, then the pixel value of that pixel is set to 255; otherwise, the pixel value of that pixel is set to 0. Then, white or black pixels are searched for as the target image. The entire image search process requires traversing each pixel twice.

[0039] Based on the pixel values ​​of the traversed pixels, the target image in the search image can be determined. This can be achieved by directly comparing the pixel values ​​of the traversed pixels with a preset pixel value threshold. Alternatively, the binarization process and the process of finding specific pixel values ​​can be combined, requiring only one traversal and reducing the number of iterations.

[0040] The technical solution of this embodiment acquires a search image including a target image; it uses an interval pixel search method to traverse the search image pixel by pixel; since the target image is generally composed of multiple adjacent pixels, the interval pixel search method reduces the number of pixels traversed, improving search efficiency, while removing isolated noise and improving search accuracy; based on the pixel values ​​of the traversed pixels, the target image in the search image is determined directly through pixel values, eliminating the need for binarization before searching for specific pixel values, reducing the number of repeated traversals of the same pixel, improving search efficiency, and enhancing the real-time performance of image search. Therefore, the technical solution of this application solves the problem that finding specific pixels in an image requires image correction, denoising, and binarization, necessitating multiple calculations on the same pixel, resulting in a large computational load and reduced real-time performance, thus achieving the effect of improving the real-time performance of image search.

[0041] Example 2

[0042] Figure 3 This is a flowchart of an image search method provided in Embodiment 2 of this application. The technical solution of this embodiment is further refined based on the above technical solution.

[0043] Furthermore, the method for determining the interval step size of the interval pixel search is as follows: "Based on the shooting distance of the image to be searched, determine the target area of ​​the target image in the image to be searched; based on the size of the target area, determine the interval step size" to determine the interval step size of the interval pixel search.

[0044] See Figure 3 An image search method shown includes:

[0045] S210. Determine the target area of ​​the target image in the image to be searched based on the shooting distance of the image to be searched.

[0046] The shooting distance can be the distance between the camera or other multimedia device capable of capturing images and the area of ​​the image to be searched. The target area can be the size of the target image within the search image. The pixel area size of the target image within the search image can be determined based on the shooting distance.

[0047] For example, image search can be used to track a luminous object in an image, such as a ring aperture on a control handle. In this case, the image to be searched is an image captured by the control handle, and the target image is the ring aperture. If the shooting distance between the control handle and the tracking camera is within two meters, then the white area of ​​the luminous object after binarization must be a target area greater than or equal to a certain multiplication factor, for example, a target area greater than 3x3. Therefore, the target area can be determined to be a target area greater than 3x3.

[0048] S220. Determine the interval step size based on the size of the target area.

[0049] The interval step size is the number of pixels interleaved in the interval pixel search method. Based on the size of the target region, a size smaller than the target region is determined as the interval step size. This ensures that the target image can be effectively identified during the search process while filtering out noise of certain sizes. For example, if the target region is larger than 3x3, the interval step size can be set to 2x2 to filter out noise smaller than 2x2.

[0050] In one optional embodiment, determining the interval step size based on the size of the target area includes: determining the interval step size based on the size of the target area and a preset noise size, wherein the interval step size is less than the size of the target area and greater than or equal to the preset noise size.

[0051] The preset noise size is a pre-defined size of noise to be filtered out, used to filter out noise smaller than or equal to the preset noise size. The interval step size must be determined in a way that ensures the interval step size is less than the target area size and greater than or equal to the preset noise size. An interval step size less than the target area size ensures that the target image within the target area will not be filtered out, while an interval step size greater than or equal to the preset noise size ensures that noise within the preset noise size can be filtered out.

[0052] For example, if the target area is larger than 5x5 and the preset noise size is 3x3, the interval step size can be determined to be 3x3 or 4x4. When the interval step size is determined to be 3x3, the accuracy of noise filtering can be improved. When the interval step size is determined to be 4x4, the noise filtering can be ensured to reach a certain level of accuracy, while improving the efficiency of interval pixel search.

[0053] In one alternative embodiment, the aspect ratio of the interval step can be different. For example, if the target area is larger than 3x3, the interval step can be determined to be 2x1 or 1x2.

[0054] In one alternative embodiment, if the target area has different aspect ratios, the interval step size is determined based on the smaller of the length and width. For example, if the target area size is 5x8, then 5 is used to determine the interval step size, which can be determined as 4x4, 3x3, 4x3, 3x4 or smaller.

[0055] In one alternative embodiment, the interval step size includes a row interval step size and a column interval step size.

[0056] Since images are two-dimensional data, when using interval pixel search, the interval step size includes both row interval step size and column interval step size. Specifically, the row interval step size is the number of rows to skip when traversing the rows in the image to be searched; the column interval step size is the number of columns to skip when traversing the columns in the image to be searched. The row interval step size and column interval step size can be the same or different, and this application does not impose specific limitations on this. For example, if the interval step size is determined to be 2x2, then both the row interval step size and the column interval step size are 2.

[0057] By defining the interval step size, including both row and column interval steps, the target region can be determined. Further clarification of the interval pixel search step size across rows and columns defines the interval pixel search method, allowing for both row-by-row and column-by-column searches, thus further reducing the number of pixels traversed.

[0058] In one alternative embodiment, determining the interval step size based on the size of the target region includes: determining the column interval step size based on the length of the target region; and determining the row interval step size based on the height of the target region.

[0059] The target region is typically described by two parameters: length and height. The column interval step is the number of columns to skip during traversal; therefore, the column interval step must be less than the length of the target region. The row interval step is the number of rows to skip during traversal; therefore, the row interval step must be less than the height of the target region.

[0060] By determining the column interval step size based on the length of the target region and the row interval step size based on the height of the target region, the target region can be traversed in both length and height parameters, ensuring that the target image can be searched. At the same time, noise smaller than the interval step size is removed, eliminating the need for separate denoising processing. This improves the accuracy of image search while reducing the complexity and computational load of image processing, thus improving the real-time performance of image search.

[0061] S230. Obtain the image to be searched, including the target image.

[0062] S240. Use the interval pixel search method to traverse the pixels of the image to be searched.

[0063] S250. Determine the target image in the image to be searched based on the pixel values ​​of the traversed pixels.

[0064] The technical solution of this embodiment determines the target region of the target image in the image to be searched based on the shooting distance of the image to be searched; and determines the interval step size based on the size of the target region. This ensures that the target image can be accurately determined while minimizing the number of pixels traversed, further improving the real-time performance of image search. At the same time, it removes small-sized noise interference without the need for separate denoising processing, improving the accuracy of image search while reducing the complexity and computational load of image processing, thus improving the real-time performance of image search.

[0065] Example 3

[0066] Figure 4 This is a flowchart of an image search method provided in Embodiment 3 of this application. The technical solution of this embodiment is further refined based on the above technical solution.

[0067] Furthermore, the phrase "determine the target image in the image to be searched based on the pixel values ​​of the traversed pixels" is refined to: "if the pixel values ​​of the traversed pixels meet the preset marking conditions, then mark the corresponding pixels; combine the marked pixels in the image to be searched to obtain the target image" to obtain the target image.

[0068] See Figure 4 An image search method shown includes:

[0069] S310. Obtain the image to be searched, including the target image.

[0070] S320: The image to be searched is traversed pixel by pixel using the interval pixel search method.

[0071] S330. If the pixel value of the traversed pixel meets the preset marking condition, then the corresponding pixel is marked.

[0072] Preset marking conditions can be pre-defined marking criteria used to determine the target image. These preset marking conditions can be pixel value conditions for determining the target image, obtained by technicians based on the color characteristics of the target image through experience or experimentation. Markings are used to label pixels that meet the preset marking conditions, indicating that the pixel is a key pixel in the target image, thus confirming the target image. For example, breadth-first search or depth-first search algorithms can be used to mark the corresponding pixels.

[0073] In one optional implementation example, the pixels of the image to be searched are the three primary color values; if the three primary colors of all the traversed pixels are not less than the preset threshold of the corresponding primary color, then the pixel is determined to meet the preset marking condition.

[0074] The three primary color values ​​can be the weighted sum of pixel values ​​for the red, green, and blue primary color components of an image. To determine whether a pixel meets the preset marking conditions, it is necessary to check whether all three primary colors of the traversed pixels are not less than the preset threshold for the corresponding primary color.

[0075] The image to be searched uses the pixels as the three primary color values. If the three primary colors of all the traversed pixels are not less than the preset threshold of the corresponding primary color, then the pixel is determined to meet the preset marking condition. The pixel is directly determined to meet the preset marking condition by comparing the three primary colors with the preset threshold of the corresponding primary color. This merges the traversal of the binarization process and improves the efficiency of image search.

[0076] In one optional implementation example, the preset thresholds for each of the three primary colors are determined based on the three primary color values ​​of the standard target image.

[0077] A standard target image is an image obtained by photographing the corresponding subject under standard conditions, such as a certain light intensity. It can be used to analyze and obtain the three primary color values ​​of the standard target image. Based on the three primary color values ​​of the standard target image, preset thresholds for each primary color are determined.

[0078] By determining the preset thresholds for each primary color based on the primary color values ​​of the standard target image, the accuracy of the preset thresholds for each primary color can be improved, thereby increasing the accuracy of subsequent target image determination.

[0079] S340. Combine the marked pixels in the image to be searched to obtain the target image.

[0080] Because an interval pixel search method is used to search and label the image to be searched, the labeled pixels in the image are discrete. The target image is obtained by combining the labeled pixels. For example, the continuous boundary of the target image can also be obtained by performing curve fitting and interpolation on the labeled pixels.

[0081] The technical solution of this embodiment marks the corresponding pixel if the pixel value of the traversed pixel meets the preset marking condition; the marked pixels in the image to be searched are combined to obtain the target image; the pixel value of the traversed pixel is directly compared with the preset marking condition, without the need for binarization and specific pixel value search, reducing the number of repeated traversals of the same pixel and improving the real-time performance of image search.

[0082] Example 4

[0083] Figure 5 The diagram shown is a structural schematic of an image search device according to Embodiment 4 of this application. This embodiment is applicable to the situation where a specific pixel is determined by traversing the pixels in an image. The specific structure of the image search device is as follows:

[0084] Image acquisition module 410 is used to acquire a search image including the target image;

[0085] The pixel traversal module 420 is used to traverse the pixels of the image to be searched by using an interval pixel search method.

[0086] The target image determination module 430 is used to determine the target image in the image to be searched based on the pixel values ​​of the traversed pixels.

[0087] The technical solution of this embodiment acquires a search image, including a target image, through an image acquisition module; it then uses a pixel traversal module to perform pixel traversal of the search image using an interval pixel search method. Since the target image generally consists of multiple adjacent pixels, the interval pixel search method reduces the number of pixels traversed, improving search efficiency and removing isolated noise, thus improving search accuracy. Finally, the target image determination module determines the target image in the search image based on the pixel values ​​of the traversed pixels. This direct determination of the target image by pixel values ​​eliminates the need for binarization and subsequent searching for specific pixel values, reducing the number of repeated traversals of the same pixel and improving search efficiency and real-time performance. Therefore, the technical solution of this application solves the problem that finding specific pixels in an image requires image correction, denoising, and binarization, necessitating multiple calculations on the same pixel, resulting in high computational load and reduced real-time performance. This achieves the effect of improving the real-time performance of image search.

[0088] Optionally, the image search device also includes:

[0089] The target region determination module is used to determine the target region of the target image in the image to be searched based on the shooting distance of the image to be searched.

[0090] The interval step size determination module is used to determine the interval step size based on the size of the target area.

[0091] Optional, the interval step size determination module includes:

[0092] The interval step size refinement unit is used to determine the interval step size based on the size of the target area and the preset noise size, wherein the interval step size is less than the size of the target area and greater than or equal to the preset noise size.

[0093] Optionally, the interval step size includes the row interval step size and the column interval step size.

[0094] Optionally, the interval step size determination module also includes:

[0095] The column interval step size determination unit is used to determine the column interval step size based on the length of the target area;

[0096] The row interval step size determination unit is used to determine the row interval step size based on the height of the target area;

[0097] Optionally, the target image determination module 430 further includes:

[0098] A pixel marking unit is used to mark the corresponding pixel if the pixel value of the traversed pixel meets the preset marking conditions.

[0099] The pixel combination unit is used to combine the marked pixels in the image to be searched to obtain the target image.

[0100] Optionally, the pixels of the image to be searched are the values ​​of the three primary colors;

[0101] Correspondingly, the pixel marker unit includes:

[0102] The marking condition determination subunit is used to determine that a pixel satisfies the preset marking condition if the three primary colors of all traversed pixels are not less than the preset threshold of the corresponding primary color.

[0103] Optionally, the preset thresholds for each primary color in the three primary colors are determined based on the primary color values ​​of the standard target image.

[0104] The image search device provided in this application embodiment can execute the image search method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the image search method.

[0105] Example 5

[0106] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application, as shown below. Figure 6 As shown, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the electronic device can be one or more. Figure 6 Taking a processor 510 as an example; the processor 510, memory 520, input device 530, and output device 540 in the electronic device can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.

[0107] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the image search method in this embodiment (e.g., image acquisition module 410, pixel traversal module 420, and target image determination module 430). The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 520, thereby implementing the image search method described above.

[0108] The memory 520 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, the memory 520 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include memory remotely located relative to the processor 510, which can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0109] Input device 530 can be used to receive input character information and generate key signal inputs related to user settings and function control of the electronic device. Output device 540 may include display devices such as a display screen.

[0110] Example 6

[0111] Embodiment 6 of this application also provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform an image search method. The method includes: acquiring a search image including a target image; performing pixel traversal on the search image using an interval pixel search method; and determining the target image in the search image based on the pixel values ​​of the traversed pixels.

[0112] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the method operations described above, but can also perform related operations in the image search method provided in any embodiment of this application.

[0113] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this application can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0114] It is worth noting that in the embodiments of the search device described above, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of this application.

[0115] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.

Claims

1. An image search method, characterized in that, include: Obtain the search image, including the target image; The image to be searched is traversed pixel by pixel using an interval pixel search method; The target image in the image to be searched is determined based on the pixel values ​​of the traversed pixels. The interval pixel search includes: Based on the shooting distance of the image to be searched, the target area of ​​the target image in the image to be searched is determined; The interval step size is determined based on the size of the target region; The step of determining the interval step size based on the size of the target region includes: The interval step size is determined based on the size of the target area and the preset noise size, wherein the interval step size is less than the size of the target area and greater than or equal to the preset noise size; If the target region has different aspect ratios, the interval step size is determined based on the smaller of the length and width of the target region; The interval step size includes the row interval step size and the column interval step size; Determining the interval step size based on the size of the target region includes: The column interval step size is determined based on the length of the target region; and, The row interval step size is determined based on the height of the target area; The step of determining the target image in the search image based on the pixel values ​​of the traversed pixels includes: If the pixel value of the traversed pixel meets the preset marking condition, then the corresponding pixel is marked. The marked pixels in the image to be searched are combined to obtain the target image; The pixels of the image to be searched are the three primary color values; If the three primary colors of all the traversed pixels are not less than the preset threshold of the corresponding primary color, then the pixel is determined to satisfy the preset marking condition. The preset threshold values ​​for each primary color in the three primary colors are determined based on the primary color values ​​of the standard target image.

2. An image search device, characterized in that, include: The image acquisition module is used to acquire the search image, including the target image; The pixel traversal module is used to traverse the image to be searched using an interval pixel search method. The target image determination module is used to determine the target image in the image to be searched based on the pixel values ​​of the traversed pixels. The image search device further includes: The target region determination module is used to determine the target region of the target image in the image to be searched based on the shooting distance of the image to be searched; An interval step size determination module is used to determine the interval step size based on the size of the target region; The interval step size determination module includes: An interval step size refinement unit is used to determine the interval step size based on the size of the target region and a preset noise size, wherein the interval step size is smaller than the size of the target region and greater than or equal to the preset noise size; The interval step size determination module is further configured to: if the target region has different aspect ratios, determine the interval step size based on the smaller of the length and width of the target region; The interval step size includes the row interval step size and the column interval step size; The interval step size determination module further includes: A column interval step size determination unit is configured to determine the column interval step size based on the length of the target region; and, A row interval step size determination unit is used to determine the row interval step size based on the height of the target area; The target image determination module includes: A pixel marking unit is used to mark the corresponding pixel if the pixel value of the traversed pixel meets the preset marking conditions. A pixel combination unit is used to combine the marked pixels in the image to be searched to obtain the target image; The pixels of the image to be searched are the three primary color values; The pixel marking unit is specifically used to determine that a pixel satisfies the preset marking condition if the three primary colors of all traversed pixels are not less than the preset threshold of the corresponding primary color. The preset threshold values ​​for each primary color in the three primary colors are determined based on the primary color values ​​of the standard target image.

3. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the image search method as described in claim 1.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the image search method as described in claim 1.

Citation Information

Patent Citations

  • Image data processing method and apparatus, and electronic device

    CN106920252A

  • Search interval decision device and recognition processor using the device

    JP1998307912A