Image corner detection method, device and storage medium

By performing corner point detection in parallel in multiple computing units, the problem of low efficiency of traditional corner point detection methods is solved, efficient parallel calculation of fast corner point detection is achieved, and the speed of image processing is improved.

CN113744177BActive Publication Date: 2024-08-23CAMBRICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010466710.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-28
Publication Date
2024-08-23
Estimated Expiration
2040-05-28

AI Technical Summary

Technical Problem

The traditional corner detection method has slow operation speed and low efficiency, making it difficult to achieve real-time processing.

Method used

By reading pixels from the surrounding points of multiple central points in the original image, and performing subtraction operations in parallel in multiple computing units, it determines whether the difference meets the preset conditions, thereby quickly detecting corner points.

Benefits of technology

It improves the speed and efficiency of corner point detection, achieves efficient parallel computing compared with traditional methods, and can quickly process the differences between multiple center points and surrounding points in the image, significantly improving the speed of image processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113744177B
    Figure CN113744177B
Patent Text Reader

Abstract

The present application relates to a method for detecting corner points of an image, a computing device and a storage medium. The method processes the center point pixels and the surrounding point pixels in the image in a parallel manner, and then obtains the corner points of the image based on the parallel processing results. The method involves simple computing logic and fast computing speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device and storage medium for detecting corner points of an image. Background Art

[0002] Corner points in an image are very important feature points of the image, and they play an important role in the understanding and analysis of image graphics.

[0003] Corner points are stable features that can effectively reduce the amount of data in the image processing process while retaining important features of the image graphics, thereby increasing the speed of calculation in image processing and making real-time processing possible. Corner points can usually be used to apply their stable properties to computer vision fields such as 3D scene reconstruction, motion estimation, target tracking, target recognition, image registration and matching.

[0004] Traditional corner detection methods mainly include SIFT (Scale Invariant Feature Transform), Surf (Speeded Up Robust Features; it is a point of interest detection and descriptor algorithm similar to SIFT), FAST corner detection and other feature point extraction algorithms to extract feature points in images, etc. However, traditional corner detection methods have the disadvantages of slow operation speed and low efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device and storage medium that can quickly detect corner points in an image in order to solve the above technical problems.

[0006] A method for detecting corner points of an image, the method comprising:

[0007] Reading a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distributing the plurality of surrounding point pixels to a plurality of first computing units, wherein the surrounding points are distributed around the center point;

[0008] The multiple first operation units respectively perform subtraction operations using corresponding center point pixels and surrounding point pixels to obtain multiple difference values;

[0009] If the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point, wherein the target result is a first preset number of consecutive difference values ​​that meet the preset conditions;

[0010] Calculate the response value of the predicted corner point according to the target result corresponding to the predicted corner point;

[0011] A corner point is determined from the predicted corner points according to the response value of the predicted corner point.

[0012] In one optional embodiment, the target result includes a first preset number of consecutive difference values ​​greater than a positive threshold, or includes a first preset number of consecutive difference values ​​less than a negative threshold.

[0013] In one optional embodiment, if the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point, including:

[0014] Obtaining a difference matrix according to the multiple differences and a preset rule, wherein the preset rule is that the difference corresponding to each midpoint is arranged in the same row or column of the difference matrix;

[0015] Reading a plurality of difference values ​​corresponding to a certain central point from the difference matrix, and distributing the plurality of difference values ​​to a plurality of first operation units;

[0016] The plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix;

[0017] It is determined whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix.

[0018] In one optional embodiment, obtaining a difference matrix according to the multiple differences and a preset rule includes:

[0019] Arranging the multiple differences according to a preset rule to obtain an original difference matrix;

[0020] Reading a second preset number of difference values ​​from the rows or columns of the difference values ​​corresponding to each center point of the original difference matrix, wherein the second preset number is 1 less than the first preset number;

[0021] The second preset number of difference values ​​before reading is written into the end of the row or column of the difference value corresponding to each center point of the original difference matrix to obtain a difference matrix.

[0022] In one optional embodiment, the plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain the comparison result of each difference value in the difference matrix; judging whether the difference value corresponding to each center point contains the target result according to the comparison result of each difference value in the difference matrix includes:

[0023] Each of the first operation units compares the received difference value with the positive threshold in parallel;

[0024] If the difference is greater than the positive threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0;

[0025] Obtaining a result matrix according to the comparison results of the respective differences;

[0026] Performing a convolution operation using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*a first preset number, and 1 in the convolution kernel is a weight;

[0027] Whether the difference corresponding to each center point includes the target result is determined according to whether the result of the convolution operation is equal to the first preset number.

[0028] In one optional embodiment, the plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain the comparison result of each difference value in the difference matrix; judging whether the difference value corresponding to each center point contains the target result according to the comparison result of each difference value in the difference matrix includes:

[0029] Each of the first operation units compares the received difference value with the negative threshold in parallel;

[0030] If the difference is less than the negative threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0;

[0031] Obtaining a result matrix according to the comparison results of the respective differences;

[0032] Performing a convolution operation using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*first preset number, and 1 in the convolution kernel is a weight;

[0033] Whether the difference corresponding to each center point includes the target result is determined according to whether the result of the convolution operation is equal to the opposite number of the first preset number.

[0034] In one optional embodiment, calculating the response value of the predicted corner point according to the target result corresponding to the predicted corner point includes:

[0035] Performing a first pooling operation on each target result corresponding to a certain predicted corner point to obtain a minimum difference in each target result corresponding to the certain predicted corner point;

[0036] The maximum value of the minimum difference in each target result corresponding to the certain predicted corner point is used as the response value of the certain predicted corner point.

[0037] In one optional embodiment, determining a corner point from the predicted corner points according to a response value of the predicted corner point includes:

[0038] Taking each of the predicted corner points as the center, using the response values ​​of each of the predicted corner points to perform a second pooling operation to obtain a maximum response value;

[0039] The predicted corner point corresponding to the maximum response value is determined as the corner point.

[0040] A computing device, comprising: a read / write circuit, a second computing unit, and a plurality of first computing units, wherein the read / write circuit is connected to the plurality of first computing units, and the plurality of first computing units are connected to the second computing units.

[0041] The read / write circuit is used to read a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distribute the plurality of surrounding point pixels to a plurality of first operation units, wherein the surrounding points are distributed around the center point;

[0042] The multiple first operation units respectively use the corresponding center point pixels and the surrounding point pixels to perform subtraction operations to obtain multiple differences; if the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point;

[0043] The second operation unit is used to calculate the response value of the predicted corner point according to the target result corresponding to the predicted corner point; and determine the corner point from the predicted corner points according to the response value of the predicted corner point.

[0044] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method of any embodiment of the present application.

[0045] The above-mentioned image corner point detection method, computing device and storage medium realize parallel computing of the difference between the center point pixels and the surrounding point pixels of different center points by making multiple first computing units perform subtraction operations on the center point pixels and the surrounding point pixels respectively, and then determine the predicted corner points based on the differences obtained in the parallel manner, and obtain the corner points from the predicted corner points. Since each computing cycle of the computing device of the method of this embodiment can process the computing of multiple center point pixels and surrounding point pixels, compared with the serial execution mode of the traditional image corner point detection method, the method of this embodiment has the advantages of fast computing speed and high efficiency of image corner point detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 An image frame of a video captured by a camera in one embodiment;

[0047] Figure 2 is a schematic diagram of a flow chart of a method for detecting corner points of an image in one embodiment;

[0048] Figure 3 A schematic diagram of the distribution of the central point and the surrounding points in one embodiment;

[0049] Figure 4Schematic diagram of the detailed steps of step S103 in one embodiment;

[0050] Figure 5 Schematic diagram of conversion between an original difference matrix and a difference matrix in one embodiment;

[0051] Figure 6 is a flowchart of detailed steps of step S104 in one embodiment;

[0052] Figure 7 FIG. 4 is a structural block diagram of a computing device in one embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] To facilitate the description of the embodiments of the present invention, the following explains the terms involved in the embodiments of the present invention:

[0055] (1) Feature points, also known as key points, are certain special and representative points on an image.

[0056] (2) Corner point: A type of feature point. It can be understood as follows: if a pixel is significantly different from enough pixels in its surrounding neighborhood, then the pixel may be a corner point.

[0057] (3) The descriptor uses mathematical methods to describe feature points.

[0058] The image corner detection method provided in this application can be applied to target tracking, registration of multiple images, three-dimensional reconstruction using two-dimensional images, and restoration of scene three-dimensional structure, etc., which involve image processing scenarios involving feature point detection and matching.

[0059] Specifically, when processing images in these scenarios, the reference image and the image to be matched are generally determined first, and then feature points are extracted from the two images. The extracted feature points are then described, that is, the process of generating descriptors of the feature points, and finally feature point matching is performed. The feature point matching process is the process of comparing descriptors of the feature points. Generally, the descriptor comparison of feature points is performed by calculating the descriptor distance of the corresponding feature points. After obtaining the comparison results, subsequent processing in the above specific scenarios is performed to realize the image processing process in the above scenarios. In the above image processing process, corner points can be used as feature points extracted in the above process.

[0060] Optionally, feature point extraction algorithms such as SIFT (Scale Invariant Feature Transform), Surf (Speeded Up Robust Features; it is an interest point detection and descriptor algorithm similar to SIFT), FAST corner point detection, etc. can be generally used to extract feature points in the image.

[0061] Optionally, a commonly used feature point descriptor generation algorithm can be used, such as BRISK (Binary Robust Invariant Scalable Keypoints, feature extraction algorithm), FREAK (Fast Retina Keypoint, feature point matching algorithm), BRIEF (Binary Robust Independent Elementary Features, feature point description algorithm), etc. to obtain the descriptor of the feature point.

[0062] In order to facilitate the understanding of the above process, Figure 1 A scene is shown as an example to illustrate the above feature point extraction and matching process and how the above process is applied to the target tracking scene. Figure 1 is an image frame of a video shot by a camera, the target is an airplane, and the poses of the targets in each image frame are not exactly the same. The airplane in each image frame can be tracked by the above method.

[0063] Specifically, the first image is used as the reference image, and the other images are used as images to be matched. First, corner point detection is performed on each image frame. Figure 1 The black dots in each frame of the image are the extracted corner points of each frame of the image. After that, the descriptors of the corner points of each image frame are generated (the descriptors are a string of numbers), and the descriptors of the corner points are compared to obtain the feature matching results. Finally, the feature matching can be realized by analyzing several Figure 1 The target of each image frame is tracked. Optionally, the descriptors of the feature points can be compared by calculating the distance (such as Hamming distance, Euclidean distance, etc.).

[0064] Optionally, a fast algorithm may be applied to process each image frame to obtain corner points.

[0065] Specifically, applying the fast algorithm to process each image frame to obtain corner points generally includes the following steps:

[0066] (1) Compare the center pixel in the image with the surrounding pixels

[0067] Generally, the pixel difference between the center point and the surrounding 16 points (Center-round) is calculated.

[0068] (2) Preliminary determination of whether it is a corner point

[0069] Are there nine consecutive differences greater than the threshold (T); or, are there nine consecutive differences less than the threshold and negative (-T)? If so, the corresponding center point is used as the predicted corner point.

[0070] (3) Calculate the predicted corner point response value

[0071] First, take the minimum value of each consecutive nine differences, and then take the maximum value of all the minimum values ​​that meet the conditions corresponding to each center point, which is the response value (score).

[0072] (4) Non-maximum suppression

[0073] If there are multiple predicted corner points in a neighborhood (such as 3x3 or 5x5) centered on a predicted corner point, the predicted corner point with the largest response value in the neighborhood is retained; otherwise, it is suppressed. If there is only one feature point (corner point) in the neighborhood, it is retained. The predicted corner point that is finally retained is the required corner point.

[0074] In one embodiment, Figure 2 As shown, a method for detecting corner points of an image is provided, and the method is applied to Figure 1 Taking the scenario in as an example, the method is executed by a computing device including multiple first computing units, each of which can perform basic operations, such as addition, subtraction, multiplication, division, convolution, pooling, etc. The method includes the following steps:

[0075] Step S101 , reading a plurality of surrounding point pixels from surrounding points of a plurality of center points in an original image, and distributing the plurality of surrounding point pixels to a plurality of first computing units.

[0076] The surrounding points are distributed around the central point. Figure 3 The point P in the image is the center point, and 16 surrounding points are distributed around the point P. Optionally, the original image can be Figure 1 Any image frame in the scene. Optionally, the computing device reads a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distributes the plurality of surrounding point pixels to a plurality of first computing units.

[0077] In step S102, the plurality of first operation units respectively perform subtraction operations using corresponding center point pixels and surrounding point pixels to obtain a plurality of difference values.

[0078] Specifically, the plurality of first operation units of the operation device respectively perform subtraction operations using corresponding center point pixels and surrounding point pixels to obtain a plurality of difference values.

[0079] For example, the computing device has n first computing units participating in the operation of this step, and each of the n first computing units uses the corresponding center point pixel and the surrounding point pixels it receives to perform a subtraction operation, and each first computing unit obtains a subtraction result: a difference.

[0080] Optionally, the computing device may send the center point pixel to the corresponding first computing unit each time the surrounding point pixels are distributed. Optionally, it may also be possible to first determine which center point pixels each first computing unit needs to perform related subtraction operations on, and then store the center point pixels correspondingly in the private storage space of the first computing unit. After each first computing unit receives the surrounding point pixels and needs to perform a subtraction operation, each first computing unit reads the corresponding center point pixel from its own private storage space and performs a corresponding subtraction operation. It is understandable that if it is first determined which center point pixels each first computing unit needs to perform related subtraction operations on, when distributing the surrounding point pixels, it is necessary to consider the storage position of the center point pixel corresponding to each surrounding point pixel.

[0081] Step S103: If the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point.

[0082] Wherein, the target result is a first preset number of continuous difference values ​​that meet the preset conditions. The predicted corner point can be understood as a point in the image that may be a corner point obtained according to the result of the above processing process. Further, the target result is a difference value that contains a first preset number of continuous differences that are greater than a positive threshold, or a difference value that contains a first preset number of continuous differences that are less than a negative threshold. Specifically, if the difference value corresponding to a certain center point meets the target result, the computing device uses the certain center point as the predicted corner point.

[0083] Optionally, the first preset number can be determined according to the number of points surrounding the center point. For example, when the number of surrounding points is 16, the first preset number of 9 or 12 is a good choice.

[0084] Step S104, calculating a response value of the predicted corner point according to a target result corresponding to the predicted corner point.

[0085] Specifically, the computing device calculates the response value of the predicted corner point according to the target result corresponding to the predicted corner point. More specifically, the computing device may first determine whether each predicted corner point has a target result that meets the requirements. If a certain predicted corner point has multiple target results that meet the requirements, the minimum difference of the differences among the target results is first determined, and then the minimum differences among the target results are compared to obtain the maximum value among the minimum differences, which is the response value.

[0086] For example, a certain predicted corner point A has two target results that meet the requirements (in this example, the first preset number is assumed to be 9), namely R0(D 00 , D 01 , D 02 , D 03 , D 04 , D 05 , D 06 , D 07 , D 08 ) and R1(D 10 , D 11 , D 12 , D 13 , D 14 , D 15 , D 16 , D 17 , D 18 ).

[0087] The computing device first selects D 00 , D 01 , D 02 , D 03 , D 04 , D 05 , D 06 , D 07 , D 08 The minimum value in R0 is assumed to be D 02 ; and, the computing device first selects D 10 , D 11 , D 12 , D 13 , D 14 , D 15 , D 16 , D 17 , D 18 The minimum value in R1 is assumed to be D 14 . Then compare D 02 With D 14 Size, D 02 With D 14 The larger one is the response value of the predicted corner point A.

[0088] Step S105 , determining a corner point from the predicted corner points according to the response value of the predicted corner point.

[0089] Specifically, the computing device determines a corner point from the predicted corner points according to the response value of the predicted corner point. Specifically, the computing device first determines a neighborhood with a certain predicted corner point as the center, and the neighborhood can be a 3*3 or 5*5 area. After that, it is determined whether there are other predicted corner points in the neighborhood. If not, the predicted corner point is retained. If so, the response values ​​of each predicted corner point in the neighborhood are compared, and the predicted corner point with the largest response value is retained (the one not retained is not a corner point of the image). The predicted corner point finally retained is the detected corner point.

[0090] For example, there is a predicted corner point B in the neighborhood of predicted corner point A, and the response value of predicted corner point A is D 14 ; The predicted response value of corner point B is D 20 At this time, it is necessary to compare the response values ​​D of the two 14 With D 20 The size of determines the predicted corner points to be retained.

[0091] The image corner detection method provided by the present application realizes the difference between multiple center points and surrounding point pixels in the image in a parallel manner by making multiple first operation units perform subtraction operations on the center point pixels and surrounding point pixels of different center points respectively, and then determines the predicted corner points based on the differences obtained in the parallel manner, and obtains the corner points from the predicted corner points. Since each operation cycle of the method operation device of this embodiment can process the operation of multiple center point pixels and surrounding point pixels, compared with the serial execution method of the traditional image corner detection method, the method of this embodiment has the advantages of fast operation speed and high efficiency of image corner detection.

[0092] In one embodiment, the above step S103 can also be executed in parallel. This can further speed up the detection of corner points in the image. Figure 4 As shown, step S103 includes:

[0093] Step S1031, obtaining a difference matrix according to the multiple differences and preset rules.

[0094] The preset rule is that the difference values ​​corresponding to each midpoint are arranged in the same row or column of the difference matrix. In order to further facilitate statistics on whether the difference values ​​corresponding to each center point meet the requirements of the target result, the computing device can apply the following method to obtain the difference matrix.

[0095] First, the plurality of differences are arranged according to a preset rule to obtain an original difference matrix. Then, the first second preset number of differences are read from the row or column of the difference corresponding to each center point of the original difference matrix, wherein the second preset number is 1 less than the first preset number. Finally, the second preset number of differences read before are written to the end of the row or column of the difference corresponding to each center point of the original difference matrix to obtain a difference matrix.

[0096] Below Figure 5 The example shown is used as an example to illustrate the process of obtaining the difference matrix. The original difference matrix is ​​as follows Figure 5 As shown in the left figure, each row of the difference matrix corresponds to the difference of a center point. For example, the first row is the difference corresponding to the center point A. The difference matrix obtained by processing the original difference matrix by the above method is as follows Figure 5 As shown in the right figure. Due to the distribution of the surrounding center point, the above processing of the original difference matrix can make the difference between the starting surrounding points and the ending surrounding points of the center point continuous in the two-dimensional distribution. At this time, the computing device only needs to perform a simple convolution operation on the difference matrix to easily determine whether the difference corresponding to each center point meets the target result.

[0097] Optionally, in order to match the configuration of the computing device, in some cases, the original difference matrix may be transposed first before the copy-paste operation is performed. For example, a computing device can only read data by row, but the center point differences are arranged by column in the original difference matrix. In this case, the original difference matrix needs to be transposed first before the copy-paste operation is performed.

[0098] Step S1032, reading a plurality of difference values ​​corresponding to a certain central point from the difference matrix, and distributing the plurality of difference values ​​to a plurality of first operation units.

[0099] Specifically, the computing device reads a plurality of difference values ​​corresponding to a certain center point from the difference matrix, and distributes the plurality of difference values ​​to a plurality of first computing units.

[0100] Step S1033 , the plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix.

[0101] Specifically, a plurality of first operation units of the operation device compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix.

[0102] Step S1034, judging whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix.

[0103] Specifically, the computing device determines whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix. Since each difference in the difference matrix contains two-dimensional features, it is convenient to count continuous results that meet the requirements.

[0104] Furthermore, the execution of the above steps S1033-S1034 specifically includes two situations.

[0105] Case 1 (determining whether there are a first preset number of consecutive differences greater than a positive threshold): each of the first operation units compares the received difference with the positive threshold in parallel; if the difference is greater than the positive threshold, the corresponding difference comparison result is counted as 1, otherwise it is counted as 0; a result matrix is ​​obtained according to the comparison results of each difference; a convolution operation is performed using each comparison result in the result matrix, wherein the shape of the convolution kernel of the convolution operation is 1*first preset number, and 1 in the convolution kernel is a weight; based on whether the result of the convolution operation is equal to the first preset number, it is determined whether the difference corresponding to each center point contains the target result.

[0106] For example, the first preset number is 9, and the convolution kernel size is 1*9. If there are 9 consecutive difference values ​​that meet the preset conditions, the result of the convolution operation is 9.

[0107] Case 2 (determining whether there are a first preset number of consecutive difference values ​​that are smaller than the negative threshold):

[0108] Each of the first operation units compares the received difference value with a negative threshold value in parallel; if the difference value is smaller than the negative threshold value, the comparison result of the corresponding difference value is counted as 1, otherwise it is counted as 0; a result matrix is ​​obtained according to the comparison results of each of the difference values; a convolution operation is performed using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*a first preset number, and 1 in the convolution kernel is a weight; and whether the difference value corresponding to each center point contains the target result is determined according to whether the result of the convolution operation is equal to the opposite number of the first preset number.

[0109] For example, the first preset number is 9, and the convolution kernel size is 1*9. If there are 9 consecutive difference values ​​that meet the preset conditions, the result of the convolution operation is -9.

[0110] This implementation method converts complex and cumbersome data statistics into simple convolution operations, reducing the probability of errors in data processing. The method also involves simple operations and high data processing efficiency.

[0111] In one embodiment, if Figure 6 As shown, step S104 includes:

[0112] Step S1041, performing a first pooling operation on each target result corresponding to a certain predicted corner point, and obtaining a minimum difference in each target result corresponding to the certain predicted corner point.

[0113] Specifically, the computing device performs a first pooling operation (min_pooling) on ​​each target result corresponding to a certain predicted corner point to obtain the minimum difference in each target result corresponding to the certain predicted corner point. Optionally, the convolution kernel size of the first pooling operation can be 1*9.

[0114] Step S1042: taking the maximum value of the minimum difference values ​​in each target result corresponding to the certain predicted corner point as the response value of the certain predicted corner point.

[0115] Specifically, the computing device uses the maximum value (max_pooling) of the minimum difference values ​​in each target result corresponding to the certain predicted corner point as the response value of the certain predicted corner point.

[0116] This implementation method transforms complex and cumbersome comparison operations into simple pooling operations, reducing the probability of errors in data processing. In addition, the method involves simple operations and high data processing efficiency.

[0117] In one embodiment, step S105 includes: a computing device performs a second pooling operation (max_pooling) with each of the predicted corner points as the center and using the response values ​​of each of the predicted corner points to obtain a maximum response value; and determines the predicted corner point corresponding to the maximum response value as the corner point.

[0118] This implementation method transforms complex and cumbersome comparison operations into simple pooling operations, reducing the probability of errors in data processing. In addition, the method involves simple operations and high data processing efficiency.

[0119] It should be understood that although Figure 2 , Figure 4 , Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 4 , Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0120] Based on the same inventive concept, in one embodiment, a method as follows is also proposed: Figure 7 The computing device shown.

[0121] The computing device 10 comprises a read / write circuit 100 , a second computing unit 300 , and a plurality of first computing units 200 . The read / write circuit is connected to the plurality of first computing units 200 , and the plurality of first computing units 200 are connected to the second computing units 300 .

[0122] The read / write circuit 100 is used to read a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distribute the plurality of surrounding point pixels to a plurality of first operation units, wherein the surrounding points are distributed around the center point.

[0123] The multiple first operation units 200 respectively use the corresponding center point pixels and the surrounding point pixels to perform subtraction operations to obtain multiple differences; if the difference corresponding to a certain center point meets the target result, the certain center point is used as the predicted corner point, wherein the target result is a first preset number of consecutive difference values ​​that meet the preset conditions. Optionally, the target result is a first preset number of consecutive difference values ​​greater than the positive threshold, or a first preset number of consecutive difference values ​​less than the negative threshold.

[0124] The second operation unit 300 is used to calculate the response value of the predicted corner point according to the target result corresponding to the predicted corner point; and determine the corner point from the predicted corner points according to the response value of the predicted corner point.

[0125] The computing device of this embodiment realizes computing the difference between multiple center points and surrounding point pixels in the image in a parallel manner by making multiple first computing units perform subtraction operations on the center point pixels of different center points and the surrounding point pixels respectively, and then determines the predicted corner points based on the differences obtained in the parallel manner, and obtains the corner points from the predicted corner points. Since each computing cycle of the computing device of the method of this embodiment can process the computing of multiple center point pixels and surrounding point pixels, compared with the serial execution method of the traditional image corner point detection method, the computing device of this embodiment can efficiently and quickly realize corner point detection.

[0126] In one embodiment, the read / write circuit 100 is further configured to obtain a difference matrix according to the plurality of differences and a preset rule, wherein the preset rule is that the differences corresponding to each midpoint are arranged in the same row or column of the difference matrix.

[0127] In one embodiment, the read-write circuit 100 is further used to read multiple differences corresponding to a certain center point from the difference matrix, and distribute the multiple differences to multiple first operation units. The multiple first operation units are used to compare the received differences with the positive threshold or the negative threshold in parallel to obtain the comparison results of each difference in the difference matrix; and judge whether the difference corresponding to each center point contains the target result according to the comparison results of each difference in the difference matrix.

[0128] Optionally, the read-write circuit 100 is specifically used to arrange the multiple differences according to a preset rule to obtain an original difference matrix; read the first second preset number of differences from the row or column of the difference corresponding to each center point of the original difference matrix, wherein the second preset number is 1 less than the first preset number; write the second preset number of differences before reading to the end of the row or column of the difference corresponding to each center point of the original difference matrix to obtain a difference matrix.

[0129] Optionally, each of the first operation units 200 is used to compare the received difference with the positive threshold in parallel; if the difference is greater than the positive threshold, the corresponding difference comparison result is counted as 1, otherwise it is counted as 0; a result matrix is ​​obtained according to the comparison results of the various differences; a convolution operation is performed using each comparison result in the result matrix, wherein the shape of the convolution kernel of the convolution operation is 1*first preset number, and 1 in the convolution kernel is a weight; and whether the difference corresponding to each center point contains the target result is determined according to whether the result of the convolution operation is equal to the first preset number.

[0130] Optionally, each of the first operation units 200 is used to compare the received difference with the negative threshold in parallel; if the difference is less than the negative threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0; a result matrix is ​​obtained according to the comparison results of the various differences; a convolution operation is performed using each comparison result in the result matrix, wherein the convolution kernel of the convolution operation has a shape of 1*first preset number, and 1 in the convolution kernel is a weight; and whether the difference corresponding to each center point contains the target result is determined according to whether the result of the convolution operation is equal to the opposite number of the first preset number.

[0131] In one embodiment, the second operation unit 300 is specifically used to perform a first pooling operation on each target result corresponding to a certain predicted corner point to obtain the minimum difference in each target result corresponding to the certain predicted corner point; and take the maximum value of the minimum difference in each target result corresponding to the certain predicted corner point as the response value of the certain predicted corner point.

[0132] In one embodiment, the second operation unit 300 is specifically used to perform a second pooling operation with each of the predicted corner points as the center and use the response values ​​of each of the predicted corner points to obtain a maximum response value; and determine the predicted corner point corresponding to the maximum response value as the corner point.

[0133] For the specific definition of the computing device, please refer to the definition of the image corner detection method above, which will not be repeated here. Each module in the above-mentioned image corner detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: reading multiple surrounding point pixels from surrounding points of multiple center points in an original image, distributing the multiple surrounding point pixels to multiple first operation units, wherein the surrounding points are distributed around the center point; controlling the multiple first operation units to perform subtraction operations using corresponding center point pixels and surrounding point pixels respectively to obtain multiple differences; if the difference corresponding to a certain center point meets the target result, taking the certain center point as a predicted corner point, wherein the target result is a first preset number of consecutive differences that meet preset conditions; calculating a response value of the predicted corner point according to the target result corresponding to the predicted corner point; and determining a corner point from the predicted corner points according to the response value of the predicted corner point.

[0135] Optionally, the target result includes a first preset number of consecutive difference values ​​that are greater than a positive threshold, or includes a first preset number of consecutive difference values ​​that are less than a negative threshold.

[0136] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented: a difference matrix is ​​obtained according to the multiple differences and preset rules, wherein the preset rule is that the differences corresponding to each midpoint are arranged in the same row or column of the difference matrix; multiple differences corresponding to a certain center point are read from the difference matrix, and the multiple differences are distributed to multiple first operation units; the multiple first operation units compare the received differences with the positive threshold or the negative threshold in parallel to obtain the comparison results of the differences in the difference matrix; and whether the differences corresponding to each center point contain the target result is determined according to the comparison results of the differences in the difference matrix.

[0137] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented: the multiple differences are arranged according to a preset rule to obtain an original difference matrix; a second preset number of differences are read from the row or column of differences corresponding to each center point of the original difference matrix, wherein the second preset number is 1 less than the first preset number; and the second preset number of differences are written to the end of the row or column of differences corresponding to each center point of the original difference matrix to obtain a difference matrix.

[0138] In one embodiment, when the computer program is executed by the processor, the following steps are specifically implemented: controlling each of the first operation units to compare the received difference value with the size of the positive threshold in parallel; if the difference value is greater than the positive threshold value, the corresponding difference value comparison result is counted as 1, otherwise it is counted as 0; a result matrix is ​​obtained according to the comparison results of each difference value; a convolution operation is performed using each comparison result in the result matrix, wherein the shape of the convolution kernel of the convolution operation is 1*first preset number, and 1 in the convolution kernel is a weight; and whether the difference value corresponding to each center point contains the target result is determined according to whether the result of the convolution operation is equal to the first preset number.

[0139] In one embodiment, when the computer program is executed by the processor, the following steps are specifically implemented: controlling each of the first operation units to compare the received difference value with the negative threshold value in parallel; if the difference value is less than the negative threshold value, the corresponding difference value comparison result is counted as 1, otherwise it is counted as 0; a result matrix is ​​obtained according to the comparison results of each difference value; a convolution operation is performed using each comparison result in the result matrix, wherein the convolution kernel of the convolution operation has a shape of 1*first preset number, and 1 in the convolution kernel is a weight; and judging whether the difference value corresponding to each center point contains the target result according to whether the result of the convolution operation is equal to the opposite number of the first preset number.

[0140] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented: a first pooling operation is performed on each target result corresponding to a certain predicted corner point to obtain the minimum difference in each target result corresponding to the certain predicted corner point; and the maximum value of the minimum difference in each target result corresponding to the certain predicted corner point is used as the response value of the certain predicted corner point.

[0141] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented: taking each of the predicted corner points as the center, using the response values ​​of each of the predicted corner points to perform a second pooling operation to obtain a maximum response value; and determining the predicted corner point corresponding to the maximum response value as the corner point.

[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0143] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0144] The foregoing content can be better understood in accordance with the following terms:

[0145] Clause 1. A method for detecting corner points of an image, the method comprising:

[0146] Reading a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distributing the plurality of surrounding point pixels to a plurality of first computing units, wherein the surrounding points are distributed around the center point;

[0147] The multiple first operation units respectively perform subtraction operations using corresponding center point pixels and surrounding point pixels to obtain multiple difference values;

[0148] If the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point, wherein the target result is a first preset number of consecutive difference values ​​that meet the preset conditions;

[0149] Calculate the response value of the predicted corner point according to the target result corresponding to the predicted corner point;

[0150] A corner point is determined from the predicted corner points according to the response value of the predicted corner point.

[0151] Clause 2. According to the method described in Clause 1, in the first operation unit 200, the target result is a first preset number of consecutive difference values ​​greater than a positive threshold, or a first preset number of consecutive difference values ​​less than a negative threshold.

[0152] Clause 3. According to the method of clause 2, the first computing unit 200, if the difference corresponding to a certain center point meets the target result, takes the certain center point as a predicted corner point, including:

[0153] Obtaining a difference matrix according to the multiple differences and a preset rule, wherein the preset rule is that the difference corresponding to each midpoint is arranged in the same row or column of the difference matrix;

[0154] Reading a plurality of difference values ​​corresponding to a certain central point from the difference matrix, and distributing the plurality of difference values ​​to a plurality of first operation units;

[0155] The plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix;

[0156] It is determined whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix.

[0157] Clause 4. According to the method of clause 3, the first operation unit 200, obtaining a difference matrix according to the plurality of differences and a preset rule, comprises:

[0158] Arranging the multiple differences according to a preset rule to obtain an original difference matrix;

[0159] Reading a second preset number of difference values ​​from the rows or columns of the difference values ​​corresponding to each center point of the original difference matrix, wherein the second preset number is 1 less than the first preset number;

[0160] The second preset number of difference values ​​before reading is written into the end of the row or column of the difference value corresponding to each center point of the original difference matrix to obtain a difference matrix.

[0161] Clause 5. The method according to clause 3 or 4, wherein the first operation unit 200, the plurality of first operation units compare the received difference value with the positive threshold value or the negative threshold value in parallel to obtain the comparison result of each difference value in the difference matrix; and judging whether the difference value corresponding to each center point contains the target result according to the comparison result of each difference value in the difference matrix, comprises:

[0162] Each of the first operation units compares the received difference value with the positive threshold in parallel;

[0163] If the difference is greater than the positive threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0;

[0164] Obtaining a result matrix according to the comparison results of the respective differences;

[0165] Performing a convolution operation using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*a first preset number, and 1 in the convolution kernel is a weight;

[0166] Whether the difference corresponding to each center point includes the target result is determined according to whether the result of the convolution operation is equal to the first preset number.

[0167] Clause 6. The method according to clause 3 or 4, wherein the first operation unit 200, the plurality of first operation units compare the received difference value with the positive threshold value or the negative threshold value in parallel to obtain the comparison result of each difference value in the difference matrix; and judging whether the difference value corresponding to each center point contains the target result according to the comparison result of each difference value in the difference matrix, comprises:

[0168] Each of the first operation units compares the received difference value with the negative threshold in parallel;

[0169] If the difference is less than the negative threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0;

[0170] Obtaining a result matrix according to the comparison results of the respective differences;

[0171] Performing a convolution operation using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*first preset number, and 1 in the convolution kernel is a weight;

[0172] Whether the difference corresponding to each center point includes the target result is determined according to whether the result of the convolution operation is equal to the opposite number of the first preset number.

[0173] Clause 7. According to the method of clause 3 or 4, the first computing unit 200 calculates the response value of the predicted corner point according to the target result corresponding to the predicted corner point, including:

[0174] Performing a first pooling operation on each target result corresponding to a certain predicted corner point to obtain a minimum difference in each target result corresponding to the certain predicted corner point;

[0175] The maximum value of the minimum difference in each target result corresponding to the certain predicted corner point is used as the response value of the certain predicted corner point.

[0176] Clause 8. According to the method of clause 7, the first operation unit 200 determines a corner point from the predicted corner points according to the response value of the predicted corner point, comprising:

[0177] Taking each of the predicted corner points as the center, using the response values ​​of each of the predicted corner points to perform a second pooling operation to obtain a maximum response value;

[0178] The predicted corner point corresponding to the maximum response value is determined as the corner point.

[0179] Clause 9. A computing device, a first computing unit 200, comprising: a read / write circuit, a second computing unit, and a plurality of first computing units, wherein the read / write circuit is connected to the plurality of first computing units, and the plurality of first computing units are connected to the second computing unit.

[0180] The read / write circuit is used to read a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distribute the plurality of surrounding point pixels to a plurality of first operation units, wherein the surrounding points are distributed around the center point;

[0181] The multiple first operation units respectively use the corresponding center point pixels and the surrounding point pixels to perform subtraction operations to obtain multiple differences; if the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point;

[0182] The second operation unit is used to calculate the response value of the predicted corner point according to the target result corresponding to the predicted corner point; and determine the corner point from the predicted corner points according to the response value of the predicted corner point.

[0183] Clause 10. A computer-readable storage medium having a computer program stored thereon, a first computing unit 200, wherein when the computer program is executed by a processor, the steps of the method described in any one of Clauses 1 to 8 are implemented.

[0184] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0185] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for detecting corner points of an image, the method comprising: Reading a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distributing the plurality of surrounding point pixels to a plurality of first computing units, wherein the surrounding points are distributed around the center point; The multiple first operation units respectively perform subtraction operations using corresponding center point pixels and surrounding point pixels to obtain multiple difference values; If the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point, wherein the target result is a first preset number of consecutive difference values ​​that meet the preset conditions; Calculate the response value of the predicted corner point according to the target result corresponding to the predicted corner point; Determining a corner point from the predicted corner points according to a response value of the predicted corner point; The calculating the response value of the predicted corner point according to the target result corresponding to the predicted corner point includes: A first pooling operation is performed on each target result corresponding to a certain predicted corner point to obtain a minimum difference in each target result corresponding to the certain predicted corner point; and a maximum value among the minimum differences in each target result corresponding to the certain predicted corner point is used as a response value of the certain predicted corner point.

2. The method according to claim 1, characterized in that The target result includes a first preset number of consecutive difference values ​​greater than a positive threshold, or includes a first preset number of consecutive difference values ​​less than a negative threshold.

3. The method according to claim 2, characterized in that If the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point, including: Obtaining a difference matrix according to the multiple differences and a preset rule, wherein the preset rule is that the difference corresponding to each midpoint is arranged in the same row or column of the difference matrix; Reading a plurality of difference values ​​corresponding to a certain central point from the difference matrix, and distributing the plurality of difference values ​​to a plurality of first operation units; The plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix; It is determined whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix.

4. The method according to claim 3, characterized in that The step of obtaining a difference matrix according to the plurality of differences and a preset rule includes: Arranging the multiple differences according to a preset rule to obtain an original difference matrix; Reading a second preset number of difference values ​​from the rows or columns of the difference values ​​corresponding to each center point of the original difference matrix, wherein the second preset number is 1 less than the first preset number; The second preset number of difference values ​​before reading is written into the end of the row or column of the difference value corresponding to each center point of the original difference matrix to obtain a difference matrix.

5. The method according to claim 3 or 4, characterized in that: The plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix; Judging whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix includes: Each of the first operation units compares the received difference value with the positive threshold in parallel; If the difference is greater than the positive threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0; Obtaining a result matrix according to the comparison results of the respective differences; Performing a convolution operation using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*a first preset number, and 1 in the convolution kernel is a weight; Whether the difference corresponding to each center point includes the target result is determined according to whether the result of the convolution operation is equal to the first preset number.

6. The method according to claim 3 or 4, characterized in that: The plurality of first operation units compare the received difference values ​​with the positive threshold or the negative threshold in parallel to obtain comparison results of the difference values ​​in the difference matrix; Judging whether the difference corresponding to each center point contains the target result according to the comparison result of each difference in the difference matrix includes: Each of the first operation units compares the received difference value with a negative threshold in parallel; If the difference is less than the negative threshold, the comparison result of the corresponding difference is counted as 1, otherwise it is counted as 0; Obtaining a result matrix according to the comparison results of the respective differences; Performing a convolution operation using each comparison result in the result matrix, wherein a convolution kernel of the convolution operation has a shape of 1*first preset number, and 1 in the convolution kernel is a weight; Whether the difference corresponding to each center point includes the target result is determined according to whether the result of the convolution operation is equal to the opposite number of the first preset number.

7. The method according to claim 1, characterized in that Determining a corner point from the predicted corner points according to the response value of the predicted corner point includes: Taking each of the predicted corner points as the center, using the response values ​​of each of the predicted corner points to perform a second pooling operation to obtain a maximum response value; The predicted corner point corresponding to the maximum response value is determined as the corner point.

8. A computing device, characterized in that: The device comprises: a read / write circuit, a second operation unit and a plurality of first operation units, wherein the read / write circuit is connected to the plurality of first operation units, and the plurality of first operation units are connected to the second operation unit. The read / write circuit is used to read a plurality of surrounding point pixels from the surrounding points of a plurality of center points in the original image, and distribute the plurality of surrounding point pixels to a plurality of first operation units, wherein the surrounding points are distributed around the center point; The multiple first operation units respectively use the corresponding center point pixels and the surrounding point pixels to perform subtraction operations to obtain multiple differences; if the difference corresponding to a certain center point meets the target result, the certain center point is used as a predicted corner point; A second operation unit is used to calculate a response value of the predicted corner point according to a target result corresponding to the predicted corner point; and determine a corner point from the predicted corner points according to the response value of the predicted corner point; The second operation unit is specifically used to: perform a first pooling operation on each target result corresponding to a certain predicted corner point to obtain the minimum difference in each target result corresponding to the certain predicted corner point; and use the maximum value of the minimum difference in each target result corresponding to the certain predicted corner point as the response value of the certain predicted corner point.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.