Weighted light spot center positioning circuit and application thereof
By adopting weighted processing technology in the spot center positioning circuit, the problems of low accuracy, poor anti-interference ability and poor real-time performance in the traditional spot center positioning method are solved, and higher positioning accuracy and anti-interference ability are achieved.
Patent Information
- Application Number
- CN202411713805.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-25
AI Technical Summary
The traditional spot center positioning method has problems such as low accuracy, poor anti-interference ability and poor real-time performance. Especially when the spot edges are blurred or noise interference exist, the positioning error will increase.
The weighted spot center positioning circuit is adopted to collect image data through the data acquisition module. The PS-side controls the data acquisition module to generate CMOS data, and blocks and grey weights the data through the PL-side to calculate the parameter data corresponding to each data block, and finally sums the spot center at the PS-side to determine.
By weighting the grayscale value, the range of effective thresholds is broadened, the positioning accuracy and anti-interference ability are improved, and the stable positioning performance can be maintained in different application scenarios, significantly improving the overall accuracy.
Smart Images

Figure CN119693444A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of semiconductor integrated circuits, and in particular to a weighted light spot center positioning circuit and application thereof. Background Art
[0002] The center positioning of the light spot plays a key role in many fields, such as laser triangulation, optical measurement, machine vision and automatic control systems. The core lies in accurately and efficiently identifying and locating the center position of the light spot in the image, which is crucial to improving the measurement accuracy and response speed of the system.
[0003] Traditional methods for locating the center of a light spot usually rely on simple pixel grayscale value sorting or threshold segmentation technology. Although these methods can achieve basic positioning of the light spot to a certain extent, they still have many shortcomings: 1) Low accuracy: Since they are only sorted based on grayscale values or simple threshold judgments, complex features such as the shape of the light spot and brightness distribution are ignored, resulting in positioning results that are often not accurate enough. Especially when the edge of the light spot is blurred or there is noise interference, the positioning error will increase further; 2) Poor anti-interference ability: Traditional methods lack effective response strategies when facing challenges such as complex backgrounds, lighting changes, and irregular light spot shapes. These interference factors often lead to misjudgments, causing the positioning results to deviate from the true center of the light spot; 3) Poor real-time performance: With the improvement of image resolution and the increase in data processing requirements, traditional methods are difficult to handle large amounts of data. The increase in algorithm complexity and calculation time makes the real-time positioning effect poor. Summary of the invention
[0004] In order to solve the above-mentioned shortcomings of the traditional light spot center positioning method, the present invention provides a weighted light spot center positioning circuit and its application.
[0005] In a first aspect, an embodiment of the present invention provides a weighted spot center positioning circuit, including: a data acquisition module, a PS terminal and a PL terminal;
[0006] Wherein, the input end of the data acquisition module is connected to the PS end, the output end of the data acquisition module is connected to the PL end, and the data acquisition module is used to acquire image data of the target object;
[0007] The PS terminal is connected to the PL terminal, and the PS terminal is used to control the data acquisition module to generate CMOS data based on the image data, wherein the CMOS data includes Bayer data, pixel clock, line signal and field signal;
[0008] The data acquisition module is also used to transmit the CMOS data to the PL end;
[0009] The PL terminal is used to divide the CMOS data into blocks and grayscale weighted, and transmit the obtained parameter data corresponding to each data block to the PS terminal, wherein the parameter data includes the coordinate position of the pixel whose grayscale value exceeds the threshold, the total number of pixels whose grayscale value exceeds the threshold, and the weighted grayscale value of the pixel whose grayscale value exceeds the threshold;
[0010] The PS end is also used to sum the parameter data corresponding to each data block, and represent the data and the largest data block as the light spot center.
[0011] Preferably, the data acquisition module is a camera.
[0012] Preferably, the data acquisition module is a CMOS camera.
[0013] Preferably, the PS end is connected to the PL end via a connector.
[0014] Preferably, the PS terminal is connected to the PL terminal via a bus connector.
[0015] Preferably, the PS end comprises a configuration unit, wherein the configuration unit is used to configure the data acquisition module to control the data acquisition module to generate CMOS data based on the image data.
[0016] Preferably, the PL terminal is a CMOS data processing circuit.
[0017] Preferably, the PL end includes a data conversion unit, a data division unit and a weighted processing unit;
[0018] The data conversion unit is used to convert the Bayer data into RGB data;
[0019] The data division unit is used to perform individual statistics on the RGB data through the pixel clock, perform row statistics on each obtained RGB data through the row signal, perform frame statistics on each obtained row of RGB data through the field signal, and divide each obtained frame of RGB data into blocks to obtain multiple data blocks;
[0020] The weighted processing unit is used to perform grayscale weighting on each of the data blocks to obtain the coordinate position of the pixel whose grayscale value exceeds the threshold, the total number of pixels whose grayscale value exceeds the threshold, and the weighted grayscale value of the pixel whose grayscale value exceeds the threshold corresponding to each of the data blocks, wherein the weighted grayscale value is the grayscale value minus the threshold.
[0021] Preferably, the PS end includes a light spot center determination unit, wherein the light spot center determination unit is used to sum the coordinate positions of the pixels whose grayscale values exceed the threshold, the total number of pixels whose grayscale values exceed the threshold, and the weighted grayscale values of the pixels whose grayscale values exceed the threshold corresponding to each data block, and represent the data and the largest data block as the light spot center.
[0022] In a second aspect, an embodiment of the present invention provides a semiconductor chip, comprising the weighted spot center positioning circuit as described above.
[0023] Compared with the prior art, the weighted spot center positioning circuit and its application in the embodiment of the present invention have the following beneficial effects: by weighting the grayscale value to position the spot center, the effective threshold range is actually broadened, and it is no longer limited to a fixed grayscale value limit, and stable positioning performance can be maintained in different application scenarios. This flexibility and adaptability significantly improves the overall accuracy of the spot center positioning circuit, and reliable positioning results can be achieved even in harsh environments, effectively improving the anti-interference ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a structural schematic diagram of a weighted spot center positioning circuit according to an embodiment of the present invention;
[0025] Figure 2 is another structural schematic diagram of a weighted spot center positioning circuit according to an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of the structure of the PS end of an embodiment of the present invention;
[0027] Figure 4 is a schematic structural diagram of the PL end of an embodiment of the present invention;
[0028] Figure 5 It is a schematic structural diagram of a semiconductor chip according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0030] like Figure 1 As shown, an embodiment of the present invention provides a weighted spot center positioning circuit, including: a data acquisition module 1, a PS terminal 2 and a PL terminal 3.
[0031] The input end of the data acquisition module 1 is connected to the PS end 2, and the output end of the data acquisition module 1 is connected to the PL end 3. The data acquisition module 1 is used to collect image data of the target object. Specifically, the data acquisition module is a camera. Further, the data acquisition module is a CMOS camera.
[0032] The PS terminal 2 is connected to the PL terminal 3, and the PS terminal 2 is used to control the data acquisition module to generate CMOS data based on the image data, wherein the CMOS data includes Bayer data, pixel clock, line signal and field signal.
[0033] like Figure 2 As shown, the PS end 2 is connected to the input end of the PL end 3 through a connector 4. Specifically, the PS end is connected to the input end of the PL end through a bus connector. The bus connector of this embodiment is an AXI bus connector, which is a high-performance, high-bandwidth, low-latency connector designed based on the AXI bus protocol, and can be used for device connection and data transmission in a system on chip. It can be understood that in the field of semiconductor circuits, the PS end has a specific meaning, which is usually related to the architecture in the chip. The PS end is the Processing System end, which is the part of the chip responsible for processing and control, similar to a microprocessor or microcontroller. The PS end usually includes one or more processor cores, a memory controller, a peripheral interface, etc., which are used to execute operating systems, run applications, process data, and other tasks. In the development and application of chips, the PS end provides a wealth of interfaces and resources, so that developers can easily implement various complex control and processing functions.
[0034] like Figure 3 As shown, the PS terminal 2 includes a configuration unit 21. The configuration unit 21 is used to configure the data acquisition module to control the data acquisition module to generate CMOS data based on the image data. The CMOS data includes Bayer data, pixel clock, row signal and field signal. Specifically, the configuration unit of this embodiment configures the relevant registers of the camera to control the camera to generate Bayer data in the form of 8-bit digital signals, pixel clock in the form of 1-bit digital signals, row signal in the form of 1-bit digital signals and field signal in the form of 1-bit digital signals based on the image data.
[0035] The data acquisition module 1 is also used to transmit CMOS data to the PL end. The PL end 3 is used to divide the CMOS data into blocks and grayscale weighted, and transmit the parameter data corresponding to each data block to the PS end. Among them, the parameter data includes the coordinate position of the pixel whose grayscale value exceeds the threshold, the total number of pixels whose grayscale value exceeds the threshold, and the weighted grayscale value of the pixel whose grayscale value exceeds the threshold. Specifically, the PL end is a CMOS data processing circuit. It can be understood that in the field of semiconductor circuits, the PL end has a specific meaning, which is usually related to the architecture in the chip. The PL end is the Programmable Logic end, which is the part of the chip used to implement user-defined logic. The PL end is composed of a large number of programmable logic units and interconnection resources, allowing developers to configure and program according to their own needs. By programming the PL end, developers can implement various complex digital circuits, algorithms and signal processing functions.
[0036] like Figure 4 As shown, the PL terminal 3 includes a data conversion unit 31, a data division unit 32 and a weighted processing unit 33. The data conversion unit 31 is used to convert the Bayer data into RGB data. The data division unit 32 is used to perform individual statistics on the RGB data through the pixel clock, and perform row statistics on each obtained RGB data through the row signal, and perform frame statistics on each obtained row of RGB data through the field signal, and divide each obtained frame of RGB data into blocks to obtain multiple data blocks. Specifically, in this embodiment, the size of each frame of RGB data is 1200*1200, and each frame of RGB data is divided into blocks of 20*20 size, that is, the size of each data block in this embodiment is 20*20.
[0037] The weighted processing unit 33 is used to perform grayscale weighting on each data block to obtain the coordinate position of the pixel whose grayscale value exceeds the threshold, the total number of pixels whose grayscale value exceeds the threshold and the weighted grayscale value of the pixel whose grayscale value exceeds the threshold corresponding to each data block. Specifically, the weighted grayscale value is the grayscale value minus the threshold. The grayscale weighting process of the weighted processing unit 33 is specifically described below: the coordinate position (horizontal and vertical coordinates) and the total number of pixels whose grayscale value exceeds the threshold in each data block are counted, and each pixel whose grayscale value exceeds the threshold is grayscale weighted, that is, the grayscale value minus the threshold, to obtain the weighted grayscale value of each pixel whose grayscale value exceeds the threshold. It should be noted that the threshold can be determined according to the relevant technical information of the data acquisition module and a large number of experiments. In this embodiment, considering that the grayscale value range of the image collected by the camera is between 145 and 245, the preferred threshold is 155. Of course, the threshold can be dynamically adjusted according to the actual situation.
[0038] PS terminal 2 is also used to sum the parameter data corresponding to each data block, and represent the data and the largest data block as the center of the light spot. Figure 3As shown, the PS end 2 includes a light spot center determination unit 22. The light spot center determination unit 22 is used to sum the coordinate positions of the pixels whose grayscale values exceed the threshold, the total number of pixels whose grayscale values exceed the threshold, and the weighted grayscale values of the pixels whose grayscale values exceed the threshold corresponding to each data block, and characterize the data and the largest data block as the light spot center.
[0039] Combine the following Figure 1 The working principle of a weighted spot center positioning circuit according to an embodiment of the present invention is specifically described:
[0040] The data acquisition module collects the image data of the target object. The PS end configures the data acquisition module so that the data acquisition module generates CMOS data based on the image data and transmits the CMOS data to the PL end. The PL end divides the CMOS data into blocks and grayscale weights, and transmits the parameter data corresponding to each data block to the PS end. The PS end sums the parameter data corresponding to each data block, and represents the data and the largest data block as the center of the light spot, thereby realizing the positioning of the center of the light spot.
[0041] The weighted spot center positioning circuit of the embodiment of the present invention performs weighted processing on the grayscale value to perform spot center positioning, which actually broadens the range of the effective threshold and is no longer limited to a fixed grayscale value limit, and can maintain stable positioning performance in different application scenarios. This flexibility and adaptability significantly improves the overall accuracy of the spot center positioning circuit, and can achieve reliable positioning results even in harsh environments, effectively improving the anti-interference ability.
[0042] like Figure 5 As shown, an embodiment of the present invention provides a semiconductor chip, including the weighted spot center positioning circuit as described above.
[0043] In a specific embodiment, the weighted spot center positioning circuit is implemented on a ZYNQ chip and is connected to a CMOS camera board. The CMOS camera board is embedded with a camera and IO pins connected to the outside, and is connected to the IO interface corresponding to the ZYNQ chip through a flexible circuit board. The image data is output through the weighted spot center positioning circuit to output the spot center position information.
[0044] The semiconductor chip provided in this embodiment has the same beneficial effects as the weighted light spot center positioning circuit provided in the previous embodiment of the weighted light spot center positioning circuit, which will not be described in detail here.
[0045] In summary, the weighted spot center positioning circuit and its application in the embodiment of the present invention performs weighted processing on the grayscale value to position the spot center, which actually broadens the range of the effective threshold and is no longer limited to a fixed grayscale value limit, and can maintain stable positioning performance in different application scenarios. This flexibility and adaptability significantly improves the overall accuracy of the spot center positioning circuit, and can achieve reliable positioning results even in harsh environments, effectively improving the anti-interference ability.
[0046] Each embodiment in this specification is described in a progressive manner. The same or similar parts of each embodiment can be directly referred to each other. Each embodiment focuses on the differences from other embodiments. It should be noted that 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.
[0047] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.
Claims
1. A weighted spot center positioning circuit, characterized in that: include: Data acquisition module, PS end and PL end; Wherein, the input end of the data acquisition module is connected to the PS end, the output end of the data acquisition module is connected to the PL end, and the data acquisition module is used to acquire image data of the target object; The PS terminal is connected to the PL terminal, and the PS terminal is used to control the data acquisition module to generate CMOS data based on the image data, wherein the CMOS data includes Bayer data, pixel clock, line signal and field signal; The data acquisition module is also used to transmit the CMOS data to the PL end; The PL terminal is used to divide the CMOS data into blocks and grayscale weighted, and transmit the obtained parameter data corresponding to each data block to the PS terminal, wherein the parameter data includes the coordinate position of the pixel whose grayscale value exceeds the threshold, the total number of pixels whose grayscale value exceeds the threshold, and the weighted grayscale value of the pixel whose grayscale value exceeds the threshold; The PS end is also used to sum the parameter data corresponding to each data block, and represent the data and the largest data block as the light spot center.
2. The weighted spot center positioning circuit according to claim 1, characterized in that: The data acquisition module is a camera.
3. The weighted spot center positioning circuit according to claim 2, characterized in that: The data acquisition module is a CMOS camera.
4. The weighted spot center positioning circuit according to claim 1, characterized in that: The PS end is connected to the PL end through a connector.
5. The weighted spot center positioning circuit according to claim 4, characterized in that: The PS terminal is connected to the PL terminal via a bus connector.
6. The weighted spot center positioning circuit according to claim 1, characterized in that: The PS end includes a configuration unit, wherein the configuration unit is used to configure the data acquisition module to control the data acquisition module to generate CMOS data based on the image data.
7. The weighted spot center positioning circuit according to claim 1, characterized in that: The PL terminal is a CMOS data processing circuit.
8. The weighted spot center positioning circuit according to claim 1 or 7, characterized in that: The PL end includes a data conversion unit, a data division unit and a weighted processing unit; The data conversion unit is used to convert the Bayer data into RGB data; The data division unit is used to perform individual statistics on the RGB data through the pixel clock, perform row statistics on each obtained RGB data through the row signal, perform frame statistics on each obtained row of RGB data through the field signal, and divide each obtained frame of RGB data into blocks to obtain multiple data blocks; The weighted processing unit is used to perform grayscale weighting on each of the data blocks to obtain the coordinate position of the pixel whose grayscale value exceeds the threshold, the total number of pixels whose grayscale value exceeds the threshold, and the weighted grayscale value of the pixel whose grayscale value exceeds the threshold corresponding to each of the data blocks, wherein the weighted grayscale value is the grayscale value minus the threshold.
9. The weighted spot center positioning circuit according to claim 1, characterized in that: The PS end includes a light spot center determination unit, wherein the light spot center determination unit is used to sum the coordinate positions of the pixels whose grayscale values exceed the threshold, the total number of pixels whose grayscale values exceed the threshold, and the weighted grayscale values of the pixels whose grayscale values exceed the threshold corresponding to each data block, and represent the data and the largest data block as the light spot center.
10. A semiconductor chip, characterized in that: It comprises a weighted spot center positioning circuit as described in any one of claims 1 to 9.