Round target detection positioning method and system fused with color space enhancement

By integrating Lab and YUV color space enhancement processing and multiple image segmentation weighted calculations, the problems of false detection of non-coded targets in natural scenes and high resolution limitations of coded targets are solved, achieving high-precision target localization, which is suitable for UAV navigation, structural monitoring and industrial vision measurement.

CN121962274AActive Publication Date: 2026-05-01GUANGZHOU URBAN PLANNING & DESIGN SURVEY RES INST
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU URBAN PLANNING & DESIGN SURVEY RES INST
Filing Date
2026-04-03
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing non-coding targets are prone to false detection in natural scenes, while coded targets have limited application scope under high resolution requirements, and existing methods are difficult to achieve high-precision positioning under different lighting and background conditions.

Method used

The circular target is enhanced by using a fusion of Lab and YUV color spaces. The precise center coordinates of the target are obtained through multiple image segmentations and weighted calculations of the circularity index.

Benefits of technology

It significantly improves the robustness and positioning accuracy of target detection, reduces the requirements for target size and imaging distance, enhances adaptability under different lighting and background conditions, and reduces false detections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121962274A_ABST
    Figure CN121962274A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vision measurement, and particularly provides a circular target detection positioning method and system fused with color space enhancement, and the method comprises the steps: obtaining an original image of a circular target containing a preset color; performing enhancement processing on the original image to generate an enhanced image; segmenting the enhanced image for multiple times based on a preset image segmentation threshold to obtain a plurality of target segmentation images; calculating the center-of-mass coordinates of each target segmented image to obtain a plurality of target initial center coordinates; calculating the circularity of the circular target in the target segmentation image, and determining the weight of the initial center coordinate of each target based on the circularity; and performing weighted calculation on the initial center coordinates of the plurality of targets to obtain accurate center coordinates of the targets. By adopting the method provided by the invention, the robustness and the positioning precision of target detection can be remarkably improved, false detection is reduced, and the detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of visual measurement technology, and in particular to a method and system for detecting and locating circular targets by incorporating color space enhancement. Background Technology

[0002] Combining artificial targets with corresponding detection and localization algorithms can effectively improve the reliability and robustness of image-based visual displacement measurement methods. Based on whether they carry distinguishable coded information, artificial targets can be divided into coded targets (CMs) and non-coded targets (NCMs). Non-coded targets only contain image features used for target detection and localization, and cannot distinguish between targets; most existing non-coded targets are designed based on black-and-white features, which are ubiquitous in natural scenes, easily leading to numerous false detections and thus reducing overall detection efficiency.

[0003] In addition to the features required for detection and localization, coded targets contain additional image coding information, giving each target a unique identifier and enabling rapid matching of the same target in different images. However, coding designs based on binary image features increase image complexity, and the target needs sufficiently high resolution in the image to accurately identify the coded information. In practical engineering applications, this requirement is often met by increasing the target size or shortening the shooting distance, which limits its application scope to some extent.

[0004] Therefore, it is necessary to provide a circular target detection and localization method and system that integrates color space enhancement to solve the above-mentioned technical problems. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for detecting and locating circular targets by incorporating color space enhancement. The specific technical solution is as follows: A method for detecting and locating circular targets using color space enhancement includes the following steps: S1. Obtain the original image of a circular target containing a preset color; S2. Enhance the original image to generate an enhanced image; wherein the enhancement process is based on at least two different color spaces; S3. Segment the enhanced image multiple times based on a preset image segmentation threshold to obtain multiple target segmentation images; S4. Calculate the centroid coordinates of each target segmentation image to obtain the initial center coordinates of multiple targets; S5. Calculate the circularity of the circular targets in the target segmentation image, and determine the weight of the initial center coordinates of each target based on the circularity. S6. Perform a weighted calculation on the initial center coordinates of multiple targets to obtain the precise center coordinates of the targets.

[0006] Furthermore, the circular target is a circular pattern with a single color; the color of the circular pattern is set to (R:255, G:0, B:255).

[0007] Furthermore, step S2 specifically involves: The original image was converted to Lab color space and YUV color space respectively; extract aisle, aisle, passage and Image information of the channel; Based on the above aisle, aisle, passage and The image information from each channel is fused and calculated to generate an enhanced image.

[0008] Furthermore, based on the above aisle, aisle, passage and The formula for fusing image information from different channels is as follows: ; in: The enhanced image is obtained by enhancing the original image of the circular target. Represents the YUV color space Channel image, Represents the YUV color space Channel image, and These are the colors in the Lab color space. Channel images and Channel image.

[0009] Furthermore, the enhanced image is segmented multiple times based on a preset image segmentation threshold, with the following segmentation rules: ; in, Represents image coordinates grayscale value at that location This represents the preset image segmentation threshold.

[0010] Furthermore, the specific steps for calculating the centroid coordinates of each target segmentation image are as follows: ; in: Indicates the centroid coordinates. Represents the zeroth-order spatial moment of the image. and It represents the first-order spatial moment of the image.

[0011] Furthermore, the formula for calculating the roundness of a circular target in a target segmentation image is as follows: ; in: Indicates roundness. Represents the area of ​​a circle. Represents the circumference of a circle. It is pi (π).

[0012] Furthermore, the weights determined based on roundness are: ; in: Indicates the first Precision weights of initial center coordinates, , , Indicates the number of initial center coordinates; Indicates the first The roundness of the circular target in the target segmentation image corresponding to the initial center coordinates.

[0013] Furthermore, the precise center coordinates of the target for: ; in: Indicates the first An initial center coordinate.

[0014] A circular target detection and localization system incorporating color space enhancement, for implementing the method described above, includes: The image acquisition module is used to acquire the original image of a circular target containing a preset color; The image enhancement module is used to enhance the original image and generate an enhanced image; The image segmentation module is used to segment the enhanced image multiple times based on a preset image segmentation threshold to obtain multiple target segmentation images; The target positioning module is used to accurately locate the center of a circular target and obtain the precise center coordinates of the circular target.

[0015] The application of the technical solution of the present invention has at least the following beneficial effects: This invention enhances the original image by fusing Lab and YUV color spaces, effectively amplifying the grayscale difference between the circular target and the background, significantly suppressing environmental interference, and laying the foundation for high-precision positioning. Based on this, a multi-image segmentation strategy is employed to obtain multiple target segmentation images, and the initial center coordinates are weighted and fused using a circularity index, ultimately yielding more accurate target center coordinates. The method of this invention not only significantly improves the robustness and positioning accuracy of target detection but also reduces the requirements for target size and imaging distance, enhancing adaptability under different lighting and background conditions. Furthermore, the target employs a color design rarely seen in natural environments, further reducing false detections and improving detection efficiency, making it widely applicable in fields such as UAV navigation, structural monitoring, and industrial vision measurement.

[0016] In addition to the objectives, features, and advantages described above, the present invention has other objectives, features, and advantages. The invention will now be described in further detail with reference to the figures. Attached Figure Description

[0017] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is a flowchart illustrating the circular target detection and localization method incorporating color space enhancement in an embodiment of the present invention. Figure 2 This is a schematic diagram of a circular target in an embodiment of the present invention; Figure 3 This is the original image of the circular target in the embodiment of the present invention; Figure 4 This is a three-dimensional view of the original grayscale distribution of the circular target in an embodiment of the present invention; Figure 5 The original image in Lab color space Channel image; Figure 6 The original image in Lab color space Channel image; Figure 7 It is the original image in the YUV color space Channel image; Figure 8 It is the original image in the YUV color space Channel image; Figure 9 This is the enhanced image obtained after enhancing the original image; Figure 10 To enhance the three-dimensional view of image grayscale distribution; Figure 11 The target segmentation image is obtained by segmenting the enhanced image, where: (a) represents the original image, and (b) represents... The segmented image at time (c) represents The segmented image at time (d) represents The segmented image at time (e) represents The segmented image at time (f) represents Segmented image at time. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0019] Example: See Figure 1 This invention proposes a method for detecting and locating circular targets by incorporating color space enhancement, comprising the following steps: S1. Obtain the original image of a circular target containing a preset color; see [link / reference] Figure 2 In this embodiment, the circular target is a circular pattern with a single color; preferably, the color of the circular pattern is set to (R:255, G:0, B:255), which is relatively rare in artificial structure environments and helps to significantly reduce the interference of environmental background on target detection.

[0020] S2. Enhance the original image to generate an enhanced image; wherein the enhancement process is based on at least two different color spaces; specifically: The original image was converted to Lab color space and YUV color space respectively; extract aisle, aisle, passage and Image information of the channel; Based on the above aisle, aisle, passage and The image information from each channel is fused and calculated to generate an enhanced image. The calculation formula is as follows: ; Formula 1) in: The enhanced image is obtained by enhancing the original image of the circular target. Represents the YUV color space Channel image, Represents the YUV color space Channel image, and These are the colors in the Lab color space. Channel images and Channel image.

[0021] Taking the circular target used in this embodiment as an example, for obtaining its original image from a distance, see [link to example]. Figure 3 See the 3D view of the grayscale distribution of the original image. Figure 4 The original image was converted to Lab and YUV color spaces respectively, and then extracted. aisle, aisle, passage and See channel image information Figures 5-8 Enhancement processing is performed using formula 1), resulting in the enhanced image (see [reference]). Figure 9 See also the enhanced 3D view of the grayscale distribution of the image. Figure 10 As can be seen from the figure, the target imaging is most significant after enhancement, and the concentration of grayscale distribution is improved after enhancement, indicating that the background is effectively suppressed and the target positioning accuracy can be improved.

[0022] S3. Segment the enhanced image multiple times based on a preset image segmentation threshold to obtain multiple target segmentation images; First, preset the image segmentation threshold. Because multiple segmentations are required, the threshold needs to be set as a threshold range. Generally, a median threshold is set first, followed by a range variation step and upper and lower limits to complete the threshold setting. Since the difference between the target grayscale value and the background grayscale value is greatly amplified after image enhancement (the target grayscale value is brighter and the background grayscale value is darker), the median threshold is generally set to the median of the image grayscale value range [0, 255], which is 128 pixels. The range variation step is generally set to 5~10 pixels, and the variation range of the upper and lower limits is generally ±10~±30 pixels.

[0023] The enhanced image is segmented multiple times based on the preset image segmentation threshold, with the following segmentation rules: ; Formula 2) in, Represents image coordinates grayscale value at that location This represents the preset image segmentation threshold.

[0024] The enhanced image is segmented using formula 2), which amplifies the grayscale value of the bright circular target portion to 255, while the grayscale value of the darker target background is uniformly set to 0, thus facilitating the centroid positioning of the circular target.

[0025] S4. Calculate the centroid coordinates of each target segmentation image to obtain the initial center coordinates of multiple targets; In this embodiment, the centroid coordinates of each target segmentation image are calculated based on image spatial moments. The calculation formula is as follows: ; Formula 3) in: Image coordinates Pixel value at that location, Indicates the number of rows in the image. Indicates the number of columns in the image; As can be seen from Formula 3), the spatial moments of an image are related not only to the pixel value but also to the pixel position. At that time, there were: ;Formula 4) in: This is called the zeroth-order spatial moment of the image; as can be seen from Equation 4), the zeroth-order spatial moment of the image is actually the sum of all pixel values, and the value of the zeroth-order spatial moment is independent of the position of the pixel.

[0026] when , or , hour, , This is called the first spatial moment of the image. The first spatial moment of the image depends only on the row or column number of the pixel in terms of spatial location.

[0027] Based on the zeroth-order and first-order spatial moments of the image, the formula for calculating the centroid coordinates of each target segmentation image is defined as follows: ; Formula 5) in: Indicates the centroid coordinates. Represents the zeroth-order spatial moment of the image. and It represents the first-order spatial moment of the image.

[0028] Since the background pixel value of the circular target image is greatly reduced after enhancement, while the pixel value of the target itself is effectively enhanced, the centroid of the image calculated by formula 5) is exactly equal to the center point of the circular target within a certain image range; the calculated centroid coordinates are used as the initial center coordinates of the target.

[0029] S5. Calculate the circularity of the circular targets in the target segmentation image, and determine the weight of the initial center coordinates of each target based on the circularity. The formula for calculating roundness is as follows: ;Formula 6) in: Indicates roundness. Represents the area of ​​a circle. Represents the circumference of a circle. It is pi (π).

[0030] when When the value is 1, the shape represents a perfect circle; when... When the value approaches 0, the shape represents a polygon or rectangle that is close to a straight line.

[0031] In visual measurement, cameras generally approximate orthophotos of circular targets. Therefore, a higher circularity of the target indicates higher imaging or segmentation quality, and consequently, higher positioning accuracy. Consequently, it should have a higher weight in coordinate calculations. Based on this, the weights determined by circularity are: ;Formula 7) in: Indicates the first Precision weights of initial center coordinates, , , Indicates the number of initial center coordinates; Indicates the first The roundness of the circular target in the target segmentation image corresponding to the initial center coordinates.

[0032] S6. Perform a weighted calculation on the initial center coordinates of multiple targets to obtain the precise center coordinates of the targets; Precise center coordinates of the target for: ;Formula 8) in: Indicates the first An initial center coordinate.

[0033] In this embodiment, a preset image segmentation threshold is used. The image segmentation threshold is set with a grayscale value of 108 (image grayscale value 0~255) as the lower limit and a grayscale value of 148 as the upper limit. Due to image segmentation threshold It is a set of interval values. In this invention, the interval step size is set to 10, that is... Image segmentation is performed according to formula 2). The enhanced image of each circular target yields five image segmentation results. See [link / reference]. Figure 11 (b)-(f) in the middle.

[0034] The initial center coordinates of the five targets can be calculated using formula 5), ​​which are as follows: , , , and ; according to Figure 11 The circularity of the five image segmentation results is shown in Table 1. Table 1. Circularity corresponding to the segmentation results Weights are calculated based on roundness. , And calculate the precise center coordinates of the target. : .

[0035] The center coordinates of the circular target are calculated using the method described above in this invention, and compared with the coordinates calculated by the conventional method (through one centroid positioning) and the true coordinates of the circular target, as shown in Table 2. Table 2 Comparison of Circular Target Localization Results As can be seen from the comparison results in Table 2, the center coordinates of the circular target obtained by the method of the present invention are closer to the true coordinate values, which proves the effectiveness of the method of the present invention.

[0036] The present invention also provides a circular target detection and localization system that integrates color space enhancement, for implementing the method described above, comprising: The image acquisition module is used to acquire the original image of a circular target containing a preset color; The image enhancement module is used to enhance the original image and generate an enhanced image; The image segmentation module is used to segment the enhanced image multiple times based on a preset image segmentation threshold to obtain multiple target segmentation images; The target positioning module is used to accurately locate the center of a circular target and obtain the precise center coordinates of the circular target.

[0037] The above description is only a preferred embodiment of the present invention and does not limit the scope of the present invention. All equivalent structural transformations made under the inventive concept of the present invention using the contents of the present invention specification and drawings, or direct / indirect applications in other related technical fields, are included within the protection scope of the present invention.

Claims

1. A method for detecting and locating circular targets by incorporating color space enhancement, characterized in that, Includes the following steps: S1. Obtain the original image of a circular target containing a preset color; S2. Enhance the original image to generate an enhanced image; wherein the enhancement process is based on at least two different color spaces; S3. Segment the enhanced image multiple times based on a preset image segmentation threshold to obtain multiple target segmentation images; S4. Calculate the centroid coordinates of each target segmentation image to obtain the initial center coordinates of multiple targets; S5. Calculate the circularity of the circular targets in the target segmentation image, and determine the weight of the initial center coordinates of each target based on the circularity. S6. Perform a weighted calculation on the initial center coordinates of multiple targets to obtain the precise center coordinates of the targets.

2. The circular target detection and localization method with color space enhancement as described in claim 1, characterized in that, The circular target is a circular pattern with a single color; the color of the circular pattern is set to (R:255, G:0, B:255).

3. The method for detecting and locating a circular target using color space enhancement as described in claim 1, characterized in that, Step S2 is as follows: The original image was converted to Lab color space and YUV color space respectively; extract aisle, aisle, passage and Image information of the channel; Based on the above aisle, aisle, passage and The image information from each channel is fused and calculated to generate an enhanced image.

4. The circular target detection and localization method with color space enhancement as described in claim 3, characterized in that, Based on the above aisle, aisle, passage and The formula for fusing image information from different channels is as follows: ; in: The enhanced image is obtained by enhancing the original image of the circular target. Represents the YUV color space Channel image, Represents the YUV color space Channel image, and These are the colors in the Lab color space. Channel images and Channel image.

5. The method for detecting and locating a circular target using color space enhancement as described in claim 1, characterized in that, The enhanced image is segmented multiple times based on a preset image segmentation threshold, with the following segmentation rules: ; in, Represents image coordinates grayscale value at that location This represents the preset image segmentation threshold.

6. The method for detecting and locating a circular target using color space enhancement as described in claim 5, characterized in that, The specific steps for calculating the centroid coordinates of each target segmentation image are as follows: ; in: Indicates the centroid coordinates. Represents the zeroth-order spatial moment of the image. and It represents the first-order spatial moment of the image.

7. The circular target detection and localization method with color space enhancement as described in claim 6, characterized in that, The formula for calculating the roundness of a circular target in a target segmentation image is as follows: ; in: Indicates roundness. Represents the area of ​​a circle. Represents the circumference of a circle. It is pi (π).

8. The method for detecting and locating a circular target using color space enhancement as described in claim 7, characterized in that, The weights determined based on roundness are: ; in: Indicates the first Precision weights of initial center coordinates, , , Indicates the number of initial center coordinates; Indicates the first The roundness of the circular target in the target segmentation image corresponding to the initial center coordinates.

9. The method for detecting and locating a circular target using color space enhancement as described in claim 8, characterized in that, Precise center coordinates of the target for: ; in: Indicates the first An initial center coordinate.

10. A circular target detection and positioning system incorporating color space enhancement, used to implement the method as described in any one of claims 1-9, characterized in that, include: The image acquisition module is used to acquire the original image of a circular target containing a preset color; The image enhancement module is used to enhance the original image and generate an enhanced image; The image segmentation module is used to segment the enhanced image multiple times based on a preset image segmentation threshold to obtain multiple target segmentation images; The target positioning module is used to accurately locate the center of a circular target and obtain the precise center coordinates of the circular target.

Citation Information

Patent Citations

  • Multi-color space differential fusion image matching method

    CN107609603A

  • Circular marker-based object detecting and positioning method

    CN107993224A

  • Image center positioning optimization method

    CN114638882A

  • Target image detection method, device and equipment, vehicle and storage medium

    CN115049740A

  • Cylinder roll angle vision measurement algorithm based on full-surrounding target

    CN119573606A