Method for extracting target by multiple circuit modules based on turntable
By initializing position calibration and comparison screening in turntable products, the problem of target delay error in multi-module collaborative processing is solved, accurate extraction and comparison of targets is achieved, and engineering applications are simplified.
Patent Information
- Application Number
- CN202410767985.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
AI Technical Summary
In turntable products, when multiple circuit modules work together to process targets, due to target processing and transmission delays, the positions of the targets between different modules are inconsistent, resulting in output errors. Especially in image target extraction systems, the center of the previous and next frames The points are not in the same position.
Through system power-on initialization and turntable position calibration, ensure that the positions of each unit are consistent. Target processing unit 1 and target processing unit 2 are used to extract and latch the target coordinates respectively, save the target sets of the previous and subsequent frame image processing, compare and filter, and eliminate The error caused by transmission delay ensures that the target is on the same basis.
It achieves precise comparison and screening of targets during multi-module collaborative processing, ensuring that the extracted targets are more accurate and simplifying engineering applications.
Smart Images

Figure CN118736007A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-module target extraction, and in particular to a method for extracting targets from multiple circuit modules based on a turntable. Background Art
[0002] Some turntable products with multiple functions often contain circuit modules with different functions. These circuit modules have their own functions and missions. They are independent of each other but also interrelated. In some application scenarios, certain functions require two or more modules to work together to complete. In static conditions or scenarios where latency requirements are not high, after one module completes processing, it may meet performance requirements by handing it over to another module for processing. However, for turntable products, during the scanning or rotation of the turntable, if there is no corresponding target latching method for this processing, the target that is finally output and reported may have a large error. This is because there is a certain delay in target processing and transmission. When the first module processes and the subsequent module processes again, the turntable position has changed. For some image target extraction and reporting systems, it is obvious that the previous and next frames are not at the same center point. Summary of the invention
[0003] To solve the above technical defects, the purpose of the present invention is to provide a method for extracting targets based on multiple circuit modules of a turntable type, which can ensure that the targets processed by each module are on the same benchmark, and then perform effective comparison and screening to make the extracted targets more accurate.
[0004] To achieve the above object, the technical solution adopted by the present invention is: a method for extracting a target based on multiple circuit modules of a turntable type, comprising the following steps: S1, the system is powered on and initialized, the turntable position returns to the absolute zero position or relative zero position, at this time the turntable control unit sends a position calibration to the target processing unit 1 and the target processing unit 2, the position signal counts of the three units are calibrated at the same point, so that the position starting points of each unit are consistent; S2, target processing unit 1 extracts the target coordinates (x, y) by processing the video 1 input (the origin is the center of the video, here the three axes of the turntable control unit, target processing unit 1, and target processing unit 2 are consistent, that is, the position angle of the turntable control unit is consistent with the center position of video 1 and video 2), and the pixel size u of video 1 is obtained. x1 ×u y1 and focal length f1, the horizontal angle of a single pixel in video 1 is arctan(u x1 / f1, the vertical angle is arctan(u y1 / f1, at this time, the target angle coordinates (x* arctan (u x1 / f1), y*arctan(uy1 / f1)); S3, when processing the current frame in step S2, latch the turntable position signal of the current target processing unit 1 and count the horizontal direction n x1 , vertical direction n y1 , the turntable position signal accuracy is N (the number of counts required when the turntable rotates one circle, and the same accuracy is used in the horizontal and vertical directions). At this time, the target processing unit video 1 center position angle (q x1 ,q y1 ) is (360*n x1 / N,360*n y1 / N), then the spatial angle coordinate of the target is (q x1 + x*arctan(u x1 / f1), q y1 + y*arctan(u y1 / f1)) Thus, the spatial angle target set {m1, m2, ..., mn} can be obtained by processing the target processing unit 1; S4, the spatial angle target set {m1', m2', ..., mn'} obtained by the target processing unit 2 can be obtained by steps S2 and S3. The target processing unit 2 will save the target sets processed by the previous and next frames of images to solve the target transmission delay between the target processing unit 1 and the target processing unit 2 (the spatial coordinates of each target are unique, and the target processing unit 1 does not affect the target screening by comparing multiple groups of target processing units 2, and can solve the delay caused by the target transmission between the two); S5. The target obtained by target processing unit 1 is dominant, and the target obtained by target processing unit 2 is used to assist target processing unit 1. The target set obtained in step S4 is used to compare the target set obtained in step S3. If a target in step S3 exists in the target set of step S4, the target is eliminated or picked out. When all targets in step S3 are compared with the target set of step S4, a new target set {p1, p2, ...pm} can be obtained. This target set is output by target processing unit 2 to the turntable control unit and reported to the host computer. The host computer can directly turn the turntable to the corresponding angle according to the angle of the reported target.
[0005] The beneficial effect of the present invention is that when the present invention processes and extracts targets in a multi-module collaborative manner, it can ensure that the targets processed by each module are on the same basis, thereby performing effective comparison and screening to make the extracted targets more accurate. The method of the present invention is simple, easy to implement, and convenient for engineering application. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0007] Figure 1It is a schematic diagram of the block principle of the method provided by the present invention.
[0008] Figure 2 Schematic diagram of system connection according to an embodiment of the present invention. DETAILED DESCRIPTION
[0009] See attached Figure 1 As shown, a method for extracting targets from multiple circuit modules based on a turntable class is described in detail: S1. The system is powered on and initialized. The turntable position returns to absolute zero or relative zero. At this time, the turntable control unit sends a position calibration to the target processing unit 1 and the target processing unit 2. The position signal counts of the three units are calibrated at the same point to make the position starting points of each unit consistent.
[0010] S2, target processing unit 1 extracts the target coordinates (x, y) by processing the video 1 input (the origin is the center of the video, here the three axes of the turntable control unit, target processing unit 1, and target processing unit 2 are consistent, that is, the position angle of the turntable control unit is consistent with the center position of video 1 and video 2), and the pixel size u of video 1 is obtained. x1 ×u y1 and focal length f1, the horizontal angle of a single pixel in video 1 is arctan(u x1 / f1, the vertical angle is arctan(u y1 / f1, at this time, the target angle coordinates (x* arctan (u x1 / f1), y*arctan(u y1 / f1)).
[0011] S3, when processing the current frame in step S2, latch the turntable position signal of the current target processing unit 1 and count the horizontal direction n x1 , vertical direction n y1 , the turntable position signal accuracy is N (the number of counts required when the turntable rotates one circle, and the same accuracy is used in the horizontal and vertical directions). At this time, the target processing unit video 1 center position angle (q x1 ,q y1 ) is (360*n x1 / N,360*n y1 / N), then the spatial angle coordinate of the target is (q x1 + x*arctan(u x1 / f1), q y1 + y*arctan(u y1 / f1)) Thus, the spatial angle target set {m1, m2,…, mn} processed by the target processing 1 unit can be obtained.
[0012] S4. The spatial angle target set {m1', m2', ..., mn'} obtained by the target processing unit 2 can be obtained from steps S2 and S3. The target processing unit 2 will save the target sets processed by the previous and next frames of images to solve the target transmission delay between the target processing unit 1 and the target processing unit 2 (the spatial coordinates of each target are unique, and the target processing unit 1 compares multiple groups of target processing units 2 without affecting the screening of the targets, and can solve the delay caused by the target transmission between the two).
[0013] S5. The target obtained by target processing unit 1 is dominant, and the target obtained by target processing unit 2 is used to assist target processing unit 1. The target set obtained in step S4 is used to compare the target set obtained in step S3. If a target in step S3 exists in the target set of step S4, the target is eliminated or picked out. When all targets in step S3 are compared with the target set of step S4, a new target set {p1, p2, ...pm} can be obtained. This target set is output by target processing unit 2 to the turntable control unit and reported to the host computer. The host computer can directly turn the turntable to the corresponding angle according to the angle of the reported target.
[0014] like Figure 2 The figure shows an embodiment of the present invention, in which the servo control unit collects orthogonal photoelectric coding signals for controlling the relevant functions of the turntable, communicates with the host computer through CAN, reports the target position, and receives execution instructions; communicates with the target detection unit through RS422, and after the system is powered on, the servo control unit controls the turntable to return to the absolute zero position or records the current coding signal position information and sends it to the target detection unit through RS422, so that the starting position counts of the two are consistent; communicates with the AI recognition unit through RS232, and after the system is powered on, the servo control unit controls the turntable to return to the absolute zero position or records the current coding signal position information and sends it to the AI recognition unit through RS232, so that the starting position counts of the two are consistent, and the target output processed by the AI recognition unit is received at the same time; the target detection unit communicates with the AI recognition unit through RS232, which is mainly used for the AI recognition unit to receive the target output by the target detection unit.
[0015] The target detection unit uses the special effect of laser irradiation on a specific object to extract the target. This method can extract the desired target very well, but it will also produce similar effects on some special objects at a close distance, so that the target detection unit detects false targets. The AI recognition unit can identify these specific false targets at a close distance and can accurately perform secondary screening on the targets obtained by the target detection unit. First, the target detection unit and the AI recognition unit can obtain their corresponding target sets T through steps S2 and S3 of this method. 探测 and T AI , using T AI To T 探测After secondary screening, an accurate target set can be obtained. 探测 The AI recognition unit stores the target set T processed in the previous frames. AI1 、T AI2 ,…,T AIn , the target set T 探测 Respectively with T AI1 、T AI2 ,…,T AIn By comparison and screening, an accurate target set (the spatial angle coordinates of the targets are consistent) is finally obtained, and the error caused by transmission delay is eliminated. The present invention has engineering practical value.
Claims
1. A method for extracting targets from multiple circuit modules based on a turntable, characterized in that The following steps are involved: S1, the system is powered on and initialized, the turntable position returns to the absolute zero position or relative zero position, at this time the turntable control unit sends a position calibration to the target processing unit 1 and the target processing unit 2, the position signal counts of the three units are calibrated at the same point, so that the position starting points of each unit are consistent; S2, target processing unit 1 extracts the target coordinates (x, y) by processing the video 1 input (the origin is the center of the video, here the three axes of the turntable control unit, target processing unit 1, and target processing unit 2 are consistent, that is, the position angle of the turntable control unit is consistent with the center position of video 1 and video 2), and the pixel size u of video 1 is obtained. x1 ×u y1 and focal length f1, the horizontal angle of a single pixel in video 1 is arctan(u x1 / f1, the vertical angle is arctan(u y1 / f1, at this time, the target angle coordinates (x* arctan (u x1 / f1), y* arctan(u y1 / f1)); S3, when processing the current frame in step S2, latch the turntable position signal of the current target processing unit 1 and count the horizontal direction n x1 , vertical direction n y1 , the turntable position signal accuracy is N (the number of counts required when the turntable rotates one circle, and the same accuracy is used in the horizontal and vertical directions). At this time, the target processing unit video 1 center position angle (q x1 ,q y1 ) is (360*n x1 / N,360*n y1 / N), then the spatial angle coordinate of the target is (q x1 + x*arctan(u x1 / f1), q y1 + y*arctan(u y1 / f1)) Thus, the spatial angle target set {m1, m2, ..., mn} can be obtained by processing the target processing unit 1; S4, the spatial angle target set {m1', m2', ..., mn'} obtained by the target processing unit 2 can be obtained by steps S2 and S3. The target processing unit 2 will save the target sets processed by the previous and next frames of images to solve the target transmission delay between the target processing unit 1 and the target processing unit 2 (the spatial coordinates of each target are unique, and the target processing unit 1 does not affect the target screening by comparing multiple groups of target processing units 2, and can solve the delay caused by the target transmission between the two); S5. The target obtained by target processing unit 1 is dominant, and the target obtained by target processing unit 2 is used to assist target processing unit 1. The target set obtained in step S4 is used to compare the target set obtained in step S3. If a target in step S3 exists in the target set of step S4, the target is eliminated or picked out. When all targets in step S3 are compared with the target set of step S4, a new target set {p1, p2, ...pm} can be obtained. This target set is output by target processing unit 2 to the turntable control unit and reported to the host computer. The host computer can directly turn the turntable to the corresponding angle according to the angle of the reported target.
