WO2023124233A1 - 一种圆查找方法、装置、电子设备及存储介质 - Google Patents
一种圆查找方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023124233A1 WO2023124233A1 PCT/CN2022/118332 CN2022118332W WO2023124233A1 WO 2023124233 A1 WO2023124233 A1 WO 2023124233A1 CN 2022118332 W CN2022118332 W CN 2022118332W WO 2023124233 A1 WO2023124233 A1 WO 2023124233A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- circle
- point
- edge
- area
- identified
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
- G06T7/75—Determining position or orientation of objects or cameras using feature-based methods involving models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
- G06V10/235—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on user input or interaction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/248—Aligning, centring, orientation detection or correction of the image by interactive preprocessing or interactive shape modelling, e.g. feature points assigned by a user
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V10/443—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/46—Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
- G06V10/469—Contour-based spatial representations, e.g. vector-coding
- G06V10/471—Contour-based spatial representations, e.g. vector-coding using approximation functions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/7715—Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20076—Probabilistic image processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20092—Interactive image processing based on input by user
- G06T2207/20101—Interactive definition of point of interest, landmark or seed
Definitions
- the present application relates to the field of information technology, in particular to a circle search method, device, electronic equipment and storage medium.
- the coordinate position of the object to be recognized is determined by taking the center of the circle pattern on the recognized object to be recognized as a reference point.
- the user when recognizing circular patterns, the user often needs to make multiple inputs. For example, the user inputs the position of the center of the circle and the radius of the circular pattern by dragging the mouse to calculate the circular area to be recognized. Then, the recognition of the circular pattern is carried out in the area to be recognized, and the operation is complicated.
- the purpose of the embodiments of the present application is to provide a circle search method, device, electronic equipment and storage medium, so as to solve the problem of complicated operation in the circle pattern recognition process.
- the specific technical scheme is as follows:
- the first aspect of the implementation of the present application firstly provides a circle search method, including:
- a circle is fitted according to the at least three target edge points to obtain a fitted circle.
- the second aspect of the implementation of the present application provides a circle search device, including:
- a reference point acquisition module configured to acquire a target reference point in the image to be recognized, wherein the image to be recognized contains a circular pattern, and the target reference point is configured within a preset range of sides of the circular pattern;
- An edge point selection module configured to perform edge extraction based on the target reference point to obtain at least three target edge points
- a circle fitting module configured to perform circle fitting according to the at least three target edge points to obtain a fitted circle.
- an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
- the processor is used for implementing the steps of any one of the above-mentioned circle search methods when executing the program stored in the memory.
- Another aspect of the implementation of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the above-mentioned circle search methods are implemented.
- Another aspect of the implementation of the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the steps of any one of the above-mentioned circle search methods.
- a circle search method, device, electronic device, and storage medium provided in the embodiments of the present application can acquire target reference points in an image to be recognized, wherein the image to be recognized contains a circular pattern, and the target reference point configuration Within the preset range of the sides of the circular pattern; edge extraction is performed based on the target reference point to obtain at least three target edge points; and circle fitting is performed according to the at least three target edge points to obtain The fitted circle. Therefore, the circle search can be realized only by the user inputting a point near the edge of a circular pattern, thereby simplifying the user's operation process.
- FIG. 1 is a schematic flow chart of a circle search method provided in an embodiment of the present application
- FIG. 2 is a schematic flow chart of a circle search method provided in an embodiment of the present application.
- FIG. 3 is an example diagram of a circle search method provided in an embodiment of the present application.
- Fig. 4 is a schematic flow chart of generating an area to be identified provided by the embodiment of the present application.
- FIG. 5 is another example diagram of the circle search method provided by the embodiment of the present application.
- FIG. 6 is a schematic structural diagram of a circle search device provided in an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- Find the circle Locate the specific position of the circle, and give the center position and radius length of the circle.
- ROI region of interest: A defined area in which the algorithm performs operations.
- Find point The point near the circumference given by the user is used to find the circle.
- Checkerboard distance the maximum value of the absolute value of the difference between the abscissa and ordinate of two pixels.
- RANSAC Random Sample Consensus, Random Sampling Consensus Algorithm
- the first aspect of the embodiments of the present application provides a circle search method, including:
- the target reference point in the image to be recognized contains a circular pattern, and the target reference point is arranged within a preset range of the side of the circular pattern (ie, the circumference of the circular pattern);
- a circle is fitted according to at least three target edge points to obtain a fitted circle.
- FIG. 1 is a schematic flowchart of a circle search method provided in an embodiment of the present application, including:
- Step S11 acquiring target reference points in the image to be recognized.
- the image to be recognized in the embodiment of the present application is an image including a circular pattern
- the target reference point is a single point, which can be a manually input point. Specifically, it can be marked in the image to be recognized by manual touch or mouse click
- a point is used as a reference point, and the coordinate position of the reference point can also be input through the keyboard.
- the target reference point may also be selected manually through a touch screen or the like. In actual use, the user only needs to input a point near the side of a circular pattern as the target reference point. Specifically, the point may or may not be a point on the side.
- the target reference point can be set on the edge of the circular pattern that needs to be recognized, or can be set within a preset range of the edge of the circular pattern that needs to be recognized.
- the preset range may be preset, specifically, the preset range may include the target reference point and points on the edge of the circular pattern at the same time.
- the method in the embodiment of the present application is applied to a smart terminal, and can be implemented through a smart terminal.
- the smart terminal can be a computer, a mobile phone, a server, or a smart camera.
- step S12 edge extraction is performed based on the target reference point to obtain at least three target edge points.
- the image to be recognized includes a circular pattern
- the target reference point is arranged within a preset range of a side of the circular pattern (ie, a circumference of the circular pattern).
- the preset range may be a first preset range.
- edge extraction is performed based on the target reference point to obtain at least three target edge points, including: performing pixel gradient recognition on each pixel point within a first preset range around the target reference point in the image to be recognized to obtain the first Edge points, wherein the pixel gradient of the first edge point is greater than the preset gradient threshold; pixel gradient identification is performed on each pixel point in the second preset range around the first edge point to obtain a plurality of second edge points; from the first At least three target edge points are selected from the edge point and the plurality of second edge points.
- edge extraction is performed based on the target reference point to obtain at least three target edge points, including: receiving information on the area to be identified by the user, wherein the information on the area to be identified includes the size and position of the area to be identified input by the user;
- the target reference point is used as a benchmark, and edge extraction is performed in the area to be recognized to obtain at least three target edge points.
- the preset detection algorithm may be any edge point detection algorithm, such as the canny algorithm (an edge detection algorithm).
- the pixel gradient recognition is performed on each pixel point within the first preset range around the target reference point in the image to be recognized, and the pixel points with a checkerboard distance of 0, 1, 2... from the target reference point can be searched in turn, and it is judged whether is the edge point until the first edge point is obtained.
- the first edge point may include multiple pixel points.
- the size of the first preset range can be set according to actual conditions.
- the smaller the range of circles to be identified the smaller the first preset range should be, and the larger the range of circles to be identified, the larger the first preset range should be.
- the range of the image to be recognized is relatively large, but the range of the circular pattern to be recognized is relatively small, only points within a small range around the target reference point can be recognized by setting the first preset range. Therefore, not only can the search of edge points be accelerated, but also the working memory and calculation amount can be reduced. And when the range of the circular pattern to be recognized is relatively large, a relatively large range around the target reference point should be recognized.
- performing pixel gradient recognition on each pixel point within a first preset range around the target reference point in the image to be recognized to obtain the first edge point including: within the first preset range around the target reference point in the image to be recognized, Each pixel point in multiple preset directions is identified by pixel gradient to obtain the first edge point.
- pixel gradient recognition is performed on each pixel point in multiple preset directions to obtain the first edge point, including: the target reference point in the image to be recognized Within the first preset range around, select a direction according to the preset reference direction every preset angle span to obtain multiple target directions; perform pixel gradient recognition on each pixel point in the preset reference direction and multiple target directions, and obtain first edge point.
- the preset direction may refer to four directions of the target reference point, up, down, left, and right, and four directions with a 45° interval between two adjacent directions, and one or more directions in total of eight directions.
- the size of the second preset range may be the same as or different from that of the first preset range.
- the first edge point can be used as a starting point to search for other edge points on the circumference contour, and when searching, all edge points can be searched, In order to make the edge points cover all positions of the circle.
- the pixel gradient identification of each pixel point within the second preset range around the first edge point may be performed by any of the above-mentioned edge point detection algorithms, such as the canny algorithm.
- pixel gradient identification is performed on each pixel point within a second preset range around the first edge point to obtain a plurality of second edge points, including: within a second preset range around the first edge point, for the second edge point
- Each pixel point in the clockwise direction and counterclockwise direction of an edge point is identified by pixel gradient to obtain a plurality of second edge points.
- At least three target edge points are selected from the first edge point and the plurality of second edge points. Since at least three edge points are required to perform circle fitting when performing circle fitting, after obtaining the first edge point and multiple edge points, three edge points need to be selected for circle fitting.
- the selected at least three target edge points can be a first edge point and a plurality of second edge points, or at least three edge points in the second edge points. Wherein, in selecting at least three target edge points from the first edge point and a plurality of second edge points, three edge points can be selected from the first edge point and a plurality of second edge points as Target edge point.
- Step S13 performing circle fitting according to at least three target edge points to obtain a fitted circle.
- the fitting of the circle according to at least three target edge points can be performed by a variety of preset circle fitting methods, for example, the least squares method, or the least squares method based on RANSAC for fitting, to obtain the fitting
- the parameters of the circle and the fitting circle such as radius and center coordinates, etc.
- the parameter of the fitted circle is used as the parameter of the circular pattern in the image to be recognized.
- At least three edge points from the first edge point and a plurality of second edge points can be selected from the first edge point and the plurality of second edge points by downsampling.
- the edge point is used as the target edge point.
- selecting at least three target edge points from the first edge point and the plurality of second edge points includes: downsampling the plurality of second edge points to obtain at least three third sampling edge points; according to at least Performing circle fitting on three target edge points to obtain a fitted circle includes: performing circle fitting according to at least three third sampling edge points to obtain a fitted circle. Because the number of the third edge points after downsampling is smaller than the number of the second edge points.
- down-sampling may be performed according to the distance between the third edge points, so that the third edge points obtained by sampling may be evenly distributed on the fitting circle as much as possible. Therefore, the number of second edge points that need to be calculated and saved can be reduced by downsampling, thereby reducing memory consumption and subsequent calculation, and improving fitting efficiency.
- the first edge point and multiple second edge points can be automatically identified only by the user inputting a target reference point, so that the circle can be defined by identifying the first edge point and the second edge point. Fitting to obtain the parameters of the circle in the image to be recognized, thereby simplifying the user's operation process.
- the parameters of the fitted circle include the position coordinates of the fitted circle, and the circle is fitted according to at least three target edge points.
- the above method further includes:
- Step S21 generating an area to be identified according to the position coordinates of the fitted circle
- step S22 the circle is recognized in the area to be recognized, and a recognition result is obtained, wherein the recognition result includes parameters of the recognized circle.
- the position coordinates of the fitted circle include the center coordinates of the fitted circle and the radius of the fitted circle
- the region to be identified is generated according to the position coordinates of the fitted circle, including: calculation based on the radius of the fitted circle
- the region to be recognized with the preset shape to be generated may include the entire fitted circle, for example, when the preset shape is a circle, the radius of the circle corresponding to the area to be recognized in the preset shape is greater than the radius of the fitted circle.
- the calculated area to be recognized in the preset shape The corresponding circle can be 5.
- the length and width of the rectangle corresponding to the area to be recognized in the calculated preset shape are both greater than twice the radius of the fitting circle, for example, when the radius of the fitting circle is At 4 o'clock, the length and width of the rectangle corresponding to the region to be recognized in the preset shape can be 9 and 10 respectively.
- the aforementioned area to be identified may be an area of various shapes, for example, the area to be identified may be a circle, a ring, a square, a rectangle, and the like.
- the range of the region to be recognized should include the range of the circular pattern in the image to be recognized.
- identify the circle in the area to be identified and obtain the identification result, including: comparing the size of the area of the area to be identified with the fitted circle; when the ratio of the area to be identified to the area of the fitted circle is greater than the preset
- an updated to-be-recognized area is generated according to the size of the target reference point and the preset area; circles are identified in the updated to-be-identified area to obtain a recognition result.
- the smaller the range of circles to be identified the smaller the first preset range should be, and the larger the range of circles to be identified, the larger the first preset range.
- the range of the image to be recognized is large, but the range of the circular pattern to be recognized is small, only points within a small range around the target reference point can be recognized by setting the first preset range. Therefore, not only can the search of edge points be accelerated, but also the working memory and calculation amount can be reduced. And when the range of the circular pattern to be recognized is relatively large, a relatively large range around the target reference point should be recognized.
- the above preset recognition method may be various methods for image recognition, for example, RANSAC and the like.
- a higher-precision circle search can be performed in the ROI.
- the region to be recognized can be generated according to the position coordinates of the fitted circle, and then the circle is recognized in the region to be recognized, and the recognition result is obtained, so that by performing circular pattern in the region to be recognized
- the recognition can not only obtain the recognition result, improve the accuracy of the recognized circle parameters, but also find the circle in the area to be recognized by selecting the recognition area, without searching in the entire image, thereby reducing the amount of calculation , to improve computational efficiency.
- the position coordinates of the fitted circle include the center coordinates of the fitted circle and the radius of the fitted circle, and the region to be identified is generated according to the position coordinates of the fitted circle, including:
- Step S211 according to the coordinates of the center of the fitted circle and the radius of the fitted circle, calculate the inner diameter and outer diameter of the ring-shaped area to be identified;
- Step S212 according to the characteristic parameters, with the center coordinates of the fitted circle as the center, and according to the inner diameter and outer diameter of the annular area to be identified, generate an annular area to be identified;
- Step S22 performs circle recognition in the area to be recognized, and obtains the recognition result, including:
- step S221 the circle is recognized in the ring-shaped area to be recognized, and the recognition result is obtained.
- the inner and outer diameters of the ring-shaped area to be recognized are calculated, including: calculating the sum of the radius of the fitted circle and the width of the preset annular area , to obtain the outer diameter of the area to be identified; calculate the difference between the radius of the fitted circle and the width of the preset annular area, and obtain the inner diameter of the area to be identified.
- the inner diameter and outer diameter of the circular area to be generated can be calculated, and the inner diameter of the circular area to be generated can be obtained by subtracting a preset value from the radius of the circular pattern. Add the preset value to the radius of the pattern to get the outer diameter of the circular area to be generated.
- the preset value can be set according to the actual situation. In one example, the size of the preset value corresponds to the radius of the circle. The larger the radius of the circle, the larger the preset value can be. Smaller, the preset value can be smaller. Then, centering on the coordinates of the center of the fitted circle, an annular area to be identified is generated according to the inner and outer diameters of the area to be identified.
- the generated circular area includes all edge points of the circular pattern.
- the circle is recognized in the ring-shaped area to be identified to obtain a recognition result
- the recognition result can be obtained by performing recognition of a circular pattern in the ring-shaped area to be identified by the above-mentioned preset recognition method.
- the recognition of the circular pattern can be carried out in the circular to-be-recognized area by image recognition methods such as the above-mentioned RANSAC.
- the recognition result may include parameters such as the radius of the circle and the coordinates of the center of the circle. Since the circular area includes all edge points of the circular pattern, and the area of the circular area is small, the area to be recognized is small, so the recognition efficiency is higher.
- the inner diameter and outer diameter of the ring-shaped area to be recognized can be calculated according to the center coordinates of the fitted circle and the radius of the fitted circle, centered on the center coordinates of the fitted circle, According to the inner diameter and outer diameter of the ring-shaped area to be identified, a ring-shaped area to be identified is generated, and a circle is recognized in the ring-shaped area to be identified to obtain a recognition result, thereby reducing the area to be identified and improving the efficiency of identification.
- FIG. 5 is another example diagram of the circle search method provided by the embodiment of the present application, including:
- Image edge extraction when the image to be detected is large, and the diameter of the circle to be searched is relatively small, which only occupies a small part of the entire image area, only the area near the search point set by the user can be extracted to reduce the working memory and Calculations.
- the second aspect of the embodiment of the present application provides a circle search device, see Figure 6, including:
- the reference point acquisition module 601 is configured to acquire a target reference point in the image to be recognized, wherein the image to be recognized contains a circular pattern, and the target reference point is arranged within a preset range of a side of the circular pattern;
- the edge point selection module 602 is used to extract the edge based on the target reference point to obtain at least three target edge points;
- the circle fitting module 603 is configured to perform circle fitting according to at least three target edge points to obtain a fitted circle.
- the edge point selection module 602 includes:
- the first edge point detection module is configured to perform pixel gradient identification on each pixel point in the first preset range around the target reference point in the image to be recognized to obtain the first edge point, wherein the pixel gradient of the first edge point is greater than the preset gradient threshold;
- the second edge point detection module is used to perform pixel gradient identification on each pixel point within a second preset range around the first edge point to obtain a plurality of second edge points;
- a target edge point acquisition module configured to select at least three target edge points from the first edge point and the plurality of second edge points.
- the parameters of the fitted circle include the position coordinates of the fitted circle, and the above device also includes:
- An area to be identified generation module used for generating an area to be identified according to the position coordinates of the fitted circle
- the area to be identified identification module is configured to identify circles in the area to be identified to obtain an identification result, wherein the identification result includes parameters of the identified circle.
- the position coordinates of the fitted circle include the center coordinates of the fitted circle and the radius of the fitted circle
- the region-to-be-recognized generation module includes:
- the characteristic parameter calculation module is used to calculate the characteristic parameters of the region to be recognized in the preset shape to be generated according to the radius of the fitted circle, wherein the preset shape is a circle or a rectangle, and the characteristic parameter is the radius of a circle or a rectangle Length and width;
- the characteristic parameter generation module is used to generate the region to be recognized based on the characteristic parameters, with the coordinates of the center of the fitted circle as the center of the region to be recognized.
- the position coordinates of the fitted circle include the center coordinates of the fitted circle and the radius of the fitted circle
- the region-to-be-recognized generation module includes:
- the inner and outer diameter calculation sub-module is used to calculate the inner diameter and outer diameter of the ring-shaped area to be identified according to the center coordinates of the fitted circle and the radius of the fitted circle;
- the ring-shaped area generation submodule is used to generate the ring-shaped area to be identified according to the inner diameter and outer diameter of the ring-shaped area to be identified with the center coordinates of the fitted circle as the center;
- the area to be identified identification module is specifically used to identify circles in the annular area to be identified to obtain identification results.
- the inner and outer diameter calculation sub-module is specifically used to calculate the sum of the radius of the fitted circle and the width of the preset annular area to obtain the outer diameter of the area to be identified; calculate the radius of the fitted circle and the preset annular area The difference between the area widths, to obtain the inner diameter of the area to be identified;
- the second edge point detection module is specifically configured to perform pixel gradient identification on each pixel point in the clockwise and counterclockwise directions of the first edge point within a second preset range around the first edge point, to obtain multiple second edge points.
- the first edge point detection module is specifically configured to perform pixel gradient recognition on each pixel point in multiple preset directions within a first preset range around the target reference point in the image to be recognized to obtain the first edge point.
- the first edge point detection module includes:
- the direction selection sub-module is used to select a direction according to the preset reference direction at intervals of a preset angle span within the first preset range around the target reference point in the image to be recognized, so as to obtain multiple target directions;
- the pixel recognition sub-module is used to perform pixel gradient recognition on each pixel point in the preset reference direction and multiple target directions to obtain the first edge point.
- the target edge point acquisition module is specifically configured to down-sample a plurality of second edge points to obtain at least three third sampled edge points;
- the circle fitting module is specifically configured to perform circle fitting according to at least three third sampling edge points to obtain a fitted circle.
- the area identification module to be identified includes:
- the area comparison sub-module is used to compare the size of the area of the area to be identified and the fitted circle;
- the area update submodule is used to generate an updated area to be identified according to the target reference point and the size of the preset area when the ratio of the area of the area to be identified to the area of the fitted circle is greater than a preset threshold;
- the update area recognition sub-module is used to perform circle recognition in the updated to-be-recognized area to obtain a recognition result.
- the edge point selection module 602 includes:
- the area information receiving sub-module is used to receive the information of the area to be identified by the user, wherein the information of the area to be identified includes the size and position of the area to be identified input by the user;
- the area edge extraction sub-module is used for performing edge extraction in the area to be identified based on the target reference point to obtain at least three target edge points.
- the user only needs to input a point near the side of a circular pattern to realize the circle search, thereby simplifying the user's operation process.
- the embodiment of the present application also provides an electronic device, as shown in FIG. complete the mutual communication,
- Memory 703 used to store computer programs
- the image to be recognized contains a circular pattern, and the target reference point is a point whose distance from the side of the circular pattern is less than a preset distance threshold;
- a circle is fitted according to at least three target edge points to obtain a fitted circle.
- the communication bus mentioned above for the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the electronic device and other devices.
- the memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one magnetic disk memory.
- RAM Random Access Memory
- NVM non-Volatile Memory
- the memory may also be at least one storage device located far away from the aforementioned processor.
- the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- CPU Central Processing Unit
- NP Network Processor
- DSP Digital Signal Processor
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned circle search methods is implemented. A step of.
- a computer program product including instructions is also provided, and when it is run on a computer, it causes the computer to execute any of the circle search methods in the above embodiments.
- all or part of them may be implemented by software, hardware, firmware or any combination thereof.
- software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
- the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
- the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
- SSD Solid State Disk
- each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments.
- the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Image Analysis (AREA)
- User Interface Of Digital Computer (AREA)
- Collating Specific Patterns (AREA)
Abstract
Description
Claims (15)
- 一种圆查找方法,包括:获取待识别图像中的目标参照点,其中,所述待识别图像中包含圆形图案,所述目标参照点配置在所述圆形图案的边的预设范围内;以所述目标参照点为基准进行边缘提取,得到至少三个目标边缘点;根据所述至少三个目标边缘点进行圆的拟合,得到拟合的圆。
- 根据权利要求1所述的方法,其中,所述以所述目标参照点为基准进行边缘提取,得到至少三个目标边缘点,包括:对所述待识别图像中目标参照点周围第一预设范围内的各像素点进行像素梯度识别,得到第一边缘点,其中,所述第一边缘点的像素梯度大于预设梯度阈值;对所述第一边缘点周围第二预设范围内的各像素点进行像素梯度识别,得到多个第二边缘点;从所述第一边缘点和所述多个第二边缘点中选取至少三个目标边缘点。
- 根据权利要求2所述的方法,其中,所述拟合的圆的参数包括所述拟合的圆的位置坐标,所述根据所述至少三个目标边缘点进行圆的拟合,得到拟合的圆之后,所述方法还包括:根据所述拟合的圆的位置坐标生成待识别区域;在所述待识别区域中进行圆的识别,得到识别结果,其中,所述识别结果包括识别到的圆的参数。
- 根据权利要求3所述的方法,其中,所述拟合的圆的位置坐标包括所述拟合的圆的圆心坐标和拟合的圆的半径,所述根据所述拟合的圆的位置坐标生成待识别区域,包括:根据所述拟合的圆的半径计算得到待生成的预设形状的待识别区域的特征参数,其中,所述预设形状为圆形或矩形,所述特征参数为圆的半径或矩形的长和宽;根据所述特征参数,以所述拟合的圆的圆心坐标为待生成的待识别区域的中心,生成待识别区域。
- 根据权利要求3所述的方法,其中,所述拟合的圆的位置坐标包括所述拟合的圆的圆心坐标和拟合的圆的半径,所述根据所述拟合的圆的位置坐标生成待识别区域,包括:根据所述拟合的圆的圆心坐标和拟合的圆的半径,计算得到环形待识别区域的内径和外径;以所述拟合的圆的圆心坐标为中心,根据所述环形待识别区域的内径和外径,生成环形待识别区域;所述在所述待识别区域中进行圆的识别,得到识别结果,包括:在所述环形待识别区域中进行圆的识别,得到识别结果。
- 根据权利要求5所述的方法,其中,所述根据所述拟合的圆的圆心坐标和拟合的圆的半径,计算得到环形待识别区域的内径和外径,包括:计算所述拟合的圆的半径和预设环状区域宽度之和,得到待识别区域的外径;计算所述拟合的圆的半径和预设环状区域宽度之差,得到待识别区域的内径。
- 根据权利要求2所述的方法,其中,所述对所述第一边缘点周围第二预设范围内的各像素点进行像素梯度识别,得到多个第二边缘点,包括:在所述第一边缘点周围第二预设范围内,对所述第一边缘点的顺时针和逆时针方向上的各像素点进行像素梯度识别,得到所述多个第二边缘点。
- 根据权利要求2所述的方法,其中,所述对所述待识别图像中目标参照点周围第一预设范围内的各像素点进行像素梯度识别,得到第一边缘点,包括:对所述待识别图像中目标参照点周围第一预设范围内,多个预设方向上的各像素点进行像素梯度识别,得到第一边缘点。
- 根据权利要求8所述的方法,其中,所述对所述待识别图像中目标参照 点周围第一预设范围内,多个预设方向上的各像素点进行像素梯度识别,得到第一边缘点,包括:在所述待识别图像中目标参照点周围第一预设范围内,根据预设基准方向每间隔预设角度跨度选取一个方向,得到多个目标方向;对所述预设基准方向和所述多个目标方向上的各像素点进行像素梯度识别,得到第一边缘点。
- 根据权利要求2所述的方法,其中,所述从所述第一边缘点和所述多个第二边缘点中选取至少三个目标边缘点,包括:对所述多个第二边缘点进行下采样,得到至少三个第三采样边缘点;所述根据所述至少三个目标边缘点进行圆的拟合,得到拟合的圆,包括:根据所述至少三个第三采样边缘点进行圆的拟合,得到所述拟合的圆。
- 根据权利要求3所述的方法,其中,所述在所述待识别区域中进行圆的识别,得到识别结果,包括:对比所述待识别区域和所述拟合的圆的面积的大小;当所述待识别区域与所述拟合的圆的面积的比例大于预设阈值时,根据所述目标参照点和预设区域的大小生成更新后的待识别区域;在所述更新后的待识别区域中进行圆的识别,得到识别结果。
- 根据权利要求1所述的方法,其中,所述以所述目标参照点为基准进行边缘提取,得到至少三个目标边缘点,包括:接收用户待识别区域信息,其中,所述待识别区域信息包括用户输入的待识别区域的大小和位置;以所述目标参照点为基准,在所述待识别区域中进行边缘提取,得到至少三个目标边缘点。
- 一种圆查找装置,包括:参照点获取模块,用于获取待识别图像中的目标参照点,其中,所述待 识别图像中包含圆形图案,所述目标参照点配置在所述圆形图案的边的预设范围内;第一边缘点检测模块,用于对所述待识别图像中目标参照点周围第一预设范围内的各像素点进行像素梯度识别,得到第一边缘点,其中,所述第一边缘点的像素梯度大于预设梯度阈值;第二边缘点检测模块,用于对所述第一边缘点周围第二预设范围内的各像素点进行像素梯度识别,得到多个第二边缘点;目标边缘点获取模块,用于从所述第一边缘点和所述多个第二边缘点中选取至少三个目标边缘点;圆形拟合模块,用于根据所述至少三个目标边缘点进行圆的拟合,得到拟合的圆。
- 一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序时,实现权利要求1-12任一所述的方法步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-12任一所述的方法步骤。
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP22913502.5A EP4459564A4 (en) | 2021-12-31 | 2022-09-13 | Circle search method and device, electronic device and storage medium |
| JP2024539659A JP7776654B2 (ja) | 2021-12-31 | 2022-09-13 | 円検出方法、装置、電子機器および記憶媒体 |
| KR1020247025137A KR20240122562A (ko) | 2021-12-31 | 2022-09-13 | 원 검색 방법, 디바이스, 전자 기기 및 저장 매체 |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111683480.2 | 2021-12-31 | ||
| CN202111683480.2A CN114359548B (zh) | 2021-12-31 | 2021-12-31 | 一种圆查找方法、装置、电子设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023124233A1 true WO2023124233A1 (zh) | 2023-07-06 |
Family
ID=81104978
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/118332 Ceased WO2023124233A1 (zh) | 2021-12-31 | 2022-09-13 | 一种圆查找方法、装置、电子设备及存储介质 |
Country Status (5)
| Country | Link |
|---|---|
| EP (1) | EP4459564A4 (zh) |
| JP (1) | JP7776654B2 (zh) |
| KR (1) | KR20240122562A (zh) |
| CN (1) | CN114359548B (zh) |
| WO (1) | WO2023124233A1 (zh) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116977642A (zh) * | 2023-08-03 | 2023-10-31 | 江苏军尚智能科技有限公司 | 一种无序堆叠运动的圆形工件的识别、分拣方法和装置 |
| CN118196171A (zh) * | 2024-05-20 | 2024-06-14 | 法奥意威(苏州)机器人系统有限公司 | 一种检测圆的方法、装置、存储介质及电子设备 |
| CN118297940A (zh) * | 2024-05-30 | 2024-07-05 | 泰山石膏(宜宾)有限公司 | 一种石膏板生产线质量管控方法、装置、设备及介质 |
| CN118354010A (zh) * | 2024-06-17 | 2024-07-16 | 北京蓝耘科技股份有限公司 | 一种gpu输出数据加密方法、系统及存储介质 |
| CN118424149A (zh) * | 2024-07-05 | 2024-08-02 | 东华隆(广州)表面改质技术有限公司 | 一种压延辊轮廓检测的方法及系统 |
| CN118799350A (zh) * | 2024-09-13 | 2024-10-18 | 昆山华恒工程技术中心有限公司 | 一种管板焊接中管孔识别方法 |
| CN118941711A (zh) * | 2024-07-15 | 2024-11-12 | 杭州云甲数字技术有限公司 | 特征方向信息获取方法及装置、计算机程序产品 |
| CN119394228A (zh) * | 2024-10-17 | 2025-02-07 | 赛力斯汽车有限公司 | 孔类信息提取方法、系统、电子设备及存储介质 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114359548B (zh) * | 2021-12-31 | 2025-11-04 | 杭州海康机器人股份有限公司 | 一种圆查找方法、装置、电子设备及存储介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100067805A1 (en) * | 2006-12-18 | 2010-03-18 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Device, method and computer program for identifying a traffic sign in an image |
| CN102236894A (zh) * | 2010-04-30 | 2011-11-09 | 西门子公司 | 圆检测方法及装置 |
| CN106251352A (zh) * | 2016-07-29 | 2016-12-21 | 武汉大学 | 一种基于图像处理的罐盖缺陷检测方法 |
| CN106447683A (zh) * | 2016-08-09 | 2017-02-22 | 上海柏楚电子科技有限公司 | 一种圆的特征提取算法 |
| CN109815822A (zh) * | 2018-12-27 | 2019-05-28 | 北京航天福道高技术股份有限公司 | 基于广义Hough变换的巡检图零部件目标识别方法 |
| CN114359548A (zh) * | 2021-12-31 | 2022-04-15 | 杭州海康机器人技术有限公司 | 一种圆查找方法、装置、电子设备及存储介质 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005333116A (ja) * | 2004-04-21 | 2005-12-02 | Nikon Corp | 位置検出装置及び方法、位置調整装置及び方法、並びに露光装置及び方法 |
| JP2011227748A (ja) | 2010-04-21 | 2011-11-10 | Seiko Epson Corp | 画像処理装置、画像処理方法、画像処理プログラム、及び欠陥検出装置 |
| WO2016133924A1 (en) * | 2015-02-18 | 2016-08-25 | Siemens Healthcare Diagnostics Inc. | Image-based tube slot circle detection for a vision system |
| CN106503704B (zh) * | 2016-10-21 | 2018-03-23 | 河南大学 | 一种自然场景中圆形交通标志定位方法 |
| CN112534469B (zh) * | 2019-06-27 | 2024-07-19 | 京东方科技集团股份有限公司 | 图像检测方法、图像检测装置、图像检测设备及介质 |
| JP2021096652A (ja) | 2019-12-17 | 2021-06-24 | 富士通株式会社 | 画像識別装置、方法、及びプログラム |
| CN112508009A (zh) * | 2020-11-23 | 2021-03-16 | 北京配天技术有限公司 | 圆形特征检测方法、装置及存储装置 |
| CN113712665B (zh) * | 2021-11-01 | 2022-04-22 | 北京柏惠维康科技有限公司 | 基于定位标志物的定位方法、装置及计算机存储介质 |
-
2021
- 2021-12-31 CN CN202111683480.2A patent/CN114359548B/zh active Active
-
2022
- 2022-09-13 WO PCT/CN2022/118332 patent/WO2023124233A1/zh not_active Ceased
- 2022-09-13 EP EP22913502.5A patent/EP4459564A4/en active Pending
- 2022-09-13 KR KR1020247025137A patent/KR20240122562A/ko active Pending
- 2022-09-13 JP JP2024539659A patent/JP7776654B2/ja active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100067805A1 (en) * | 2006-12-18 | 2010-03-18 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Device, method and computer program for identifying a traffic sign in an image |
| CN102236894A (zh) * | 2010-04-30 | 2011-11-09 | 西门子公司 | 圆检测方法及装置 |
| CN106251352A (zh) * | 2016-07-29 | 2016-12-21 | 武汉大学 | 一种基于图像处理的罐盖缺陷检测方法 |
| CN106447683A (zh) * | 2016-08-09 | 2017-02-22 | 上海柏楚电子科技有限公司 | 一种圆的特征提取算法 |
| CN109815822A (zh) * | 2018-12-27 | 2019-05-28 | 北京航天福道高技术股份有限公司 | 基于广义Hough变换的巡检图零部件目标识别方法 |
| CN114359548A (zh) * | 2021-12-31 | 2022-04-15 | 杭州海康机器人技术有限公司 | 一种圆查找方法、装置、电子设备及存储介质 |
Non-Patent Citations (2)
| Title |
|---|
| GUO, CHENGCHENG ET AL.: "Effective Extraction Method of Oval Objects in Image", ELECTRONIC MEASUREMENT TECHNOLOGY, no. 04, 15 April 2017 (2017-04-15), XP009547539 * |
| See also references of EP4459564A4 |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116977642A (zh) * | 2023-08-03 | 2023-10-31 | 江苏军尚智能科技有限公司 | 一种无序堆叠运动的圆形工件的识别、分拣方法和装置 |
| CN118196171A (zh) * | 2024-05-20 | 2024-06-14 | 法奥意威(苏州)机器人系统有限公司 | 一种检测圆的方法、装置、存储介质及电子设备 |
| CN118297940A (zh) * | 2024-05-30 | 2024-07-05 | 泰山石膏(宜宾)有限公司 | 一种石膏板生产线质量管控方法、装置、设备及介质 |
| CN118354010A (zh) * | 2024-06-17 | 2024-07-16 | 北京蓝耘科技股份有限公司 | 一种gpu输出数据加密方法、系统及存储介质 |
| CN118424149A (zh) * | 2024-07-05 | 2024-08-02 | 东华隆(广州)表面改质技术有限公司 | 一种压延辊轮廓检测的方法及系统 |
| CN118941711A (zh) * | 2024-07-15 | 2024-11-12 | 杭州云甲数字技术有限公司 | 特征方向信息获取方法及装置、计算机程序产品 |
| CN118799350A (zh) * | 2024-09-13 | 2024-10-18 | 昆山华恒工程技术中心有限公司 | 一种管板焊接中管孔识别方法 |
| CN119394228A (zh) * | 2024-10-17 | 2025-02-07 | 赛力斯汽车有限公司 | 孔类信息提取方法、系统、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4459564A4 (en) | 2025-04-16 |
| KR20240122562A (ko) | 2024-08-12 |
| CN114359548B (zh) | 2025-11-04 |
| JP7776654B2 (ja) | 2025-11-26 |
| EP4459564A1 (en) | 2024-11-06 |
| JP2024547167A (ja) | 2024-12-26 |
| CN114359548A (zh) | 2022-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2023124233A1 (zh) | 一种圆查找方法、装置、电子设备及存储介质 | |
| WO2020114320A1 (zh) | 点云聚类方法、图像处理设备及具有存储功能的装置 | |
| CN103645890B (zh) | 一种用于在图形用户界面中定位控件的方法和装置 | |
| WO2021196698A1 (zh) | 待侦测物体储量确定方法、装置、设备及介质 | |
| CN109165657A (zh) | 一种基于改进sift的图像特征检测方法及装置 | |
| CN113344994B (zh) | 图像配准方法、装置、电子设备及存储介质 | |
| CN103077528A (zh) | 基于DCCD-Laplace和SIFT描述符的快速影像匹配方法 | |
| CN111565356A (zh) | 一种基站位置检测方法及装置 | |
| CN113689526B (zh) | 地图中无效区域的划分方法及装置、电子设备 | |
| CN108229583B (zh) | 一种基于主方向差分特征的快速模板匹配的方法及装置 | |
| CN115631229A (zh) | 一种电池片定位方法、装置、电子设备及存储介质 | |
| CN111813984A (zh) | 一种利用单应矩阵实现室内定位的方法、装置及电子设备 | |
| CN108648156A (zh) | 点云数据中杂散点标记方法、装置、电子设备及存储介质 | |
| CN115115857A (zh) | 一种图像匹配方法、装置及计算机设备 | |
| CN111880776A (zh) | 一种层级关系获得方法、装置及电子设备 | |
| CN108133206B (zh) | 静态手势识别方法、装置及可读存储介质 | |
| CN112508009A (zh) | 圆形特征检测方法、装置及存储装置 | |
| CN117218100B (zh) | 工件圆拟合方法、装置、视觉检测系统及电子设备 | |
| CN111880721A (zh) | 数据处理方法及装置、电子设备、存储介质 | |
| CN111951349A (zh) | 一种图形顶点类型的调整方法、装置及电子设备 | |
| CN113627143B (zh) | 一种表格创建方法、装置、电子设备及存储介质 | |
| CN117739809B (zh) | 一种瓶口尺寸测量方法、计算机设备及介质 | |
| CN113096182A (zh) | 一种移动对象的定位方法、装置、电子设备及存储介质 | |
| CN111814869B (zh) | 一种同步定位与建图的方法、装置、电子设备及存储介质 | |
| CN110399892B (zh) | 环境特征提取方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22913502 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2024539659 Country of ref document: JP |
|
| ENP | Entry into the national phase |
Ref document number: 20247025137 Country of ref document: KR Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2022913502 Country of ref document: EP Effective date: 20240731 |