Intelligent adjustment method for production line parameters of illumination tracking transmission shaft

By acquiring axial images of the drive shaft, identifying the bearing diameter of the drive bearing, dynamically adjusting the illumination area, identifying abnormal areas, selecting tracking devices, and stitching together feedback images, the problem of the inability to dynamically adjust the illumination intensity and range in drive shaft illumination detection is solved, achieving efficient detection and resource optimization.

CN120953239APending Publication Date: 2025-11-14江苏震业新材料股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511112630.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-09
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

In optical inspection of drive shafts, the intensity and range of light cannot be dynamically adjusted, resulting in insufficient ability to capture minute defects, difficulty in controlling the defect rate, and low inspection efficiency.

Method used

By controlling the acquisition device to obtain axial images of the drive shaft, identifying the bearing diameter, dynamically adjusting the illumination area, identifying abnormal areas, selecting tracking devices, and stitching together feedback images, adaptive adjustment and accurate identification of illumination resources can be achieved.

Benefits of technology

It improves detection efficiency, reduces the defect inspection area, enhances the utilization rate of light resources, provides intuitive feedback information, facilitates timely handling of anomalies, and reduces energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120953239A_ABST
    Figure CN120953239A_ABST
Patent Text Reader

Abstract

The invention provides a production line parameter intelligent adjustment method for an illumination tracking transmission shaft, and relates to a data processing technology. An acquisition device is controlled to acquire an axial image of a transmission shaft at a production line, and the bearing diameter of the transmission shaft at each annular illumination device in the axial image is acquired; determining the coverage number of each annular illumination device based on the diameter of the bearing; determining illumination equipment in the annular illumination device as irradiation equipment based on the coverage number, and identifying an abnormal area at the transmission shaft in the axial image; and determining the corresponding irradiation equipment as tracking equipment based on the abnormal area, collecting the illumination area of the tracking equipment, splicing the illumination area, obtaining a spliced feedback graph, and sending the spliced feedback graph to a management end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to data processing technology, and more particularly to a method for intelligent adjustment of production line parameters for a light-tracking drive shaft. Background Technology

[0002] In modern mechanical manufacturing, drive shafts, as core components for transmitting power, directly affect the operational stability and safety of mechanical equipment. Optical tracking drive shaft technology, which involves optically inspecting the drive shaft surface and using image acquisition and analysis to identify potential defects, has become an important technical means to ensure the production quality of drive shafts.

[0003] Currently, even after performing a uniform, comprehensive light scan on the drive shaft, personnel still need to identify defects in the overall image. This process is not only time-consuming and energy-intensive, but also suffers from insufficient ability to detect minor defects and localized anomalies because the light intensity and range cannot be dynamically adjusted according to the actual defects on the drive shaft. Furthermore, it fails to provide intuitive and valuable feedback for production management, reducing the defect inspection area and making it difficult to control the defect rate during production.

[0004] Therefore, how to dynamically adjust the illumination area based on the abnormal conditions of the drive shaft, so as to focus on the defective parts, reduce the defect inspection area, and improve the inspection efficiency, has become an urgent problem to be solved. Summary of the Invention

[0005] This invention provides an intelligent adjustment method for production line parameters of a light-tracking drive shaft. The method can dynamically adjust the illumination area according to the abnormal conditions of the drive shaft, thereby focusing on defective parts, reducing the defect inspection area, and improving detection efficiency.

[0006] A first aspect of this invention provides a method for intelligent adjustment of production line parameters for a light-tracking drive shaft, comprising:

[0007] The control acquisition device acquires axial images of the drive shaft at the production line, obtains the bearing diameter of the drive shaft at each annular lighting device in the axial image, and determines the coverage quantity at each annular lighting device based on the bearing diameter.

[0008] Based on the coverage quantity, the lighting device in the annular lighting device is determined as the illumination device, and abnormal areas at the drive shaft in the axial image are identified.

[0009] Based on the abnormal area, the corresponding irradiation device is determined as the tracking device, the irradiation area of ​​the tracking device is collected and stitched together, and the stitched feedback image is sent to the management terminal.

[0010] Optionally, in one possible implementation of the first aspect, obtaining the bearing diameter of the drive shaft at each annular illumination device in the axial image, and determining the coverage quantity at each annular illumination device based on the bearing diameter, includes:

[0011] Obtain the image diameter of the drive shaft at each annular illumination device in the axial image, and obtain the bearing diameter of the drive shaft corresponding to each annular illumination device based on the product of the image diameter and the preset conversion ratio.

[0012] Retrieve the reference diameter and the corresponding reference quantity, and obtain the diameter ratio based on the ratio of the bearing diameter to the reference diameter;

[0013] The coverage quantity at each annular illumination device is calculated based on the diameter ratio and the baseline quantity.

[0014] Optionally, in one possible implementation of the first aspect, the calculation of the coverage quantity at each annular illumination device based on the diameter ratio and the reference quantity includes:

[0015] The quantity is calculated by multiplying the diameter ratio and the baseline quantity, and the coverage quantity at each annular illumination device is obtained by multiplying the quantity calculated value and the quantity weight value.

[0016] The coverage amount can be obtained using the following formula.

[0017]

[0018] in, For coverage quantity, For the bearing diameter, As the reference diameter, As the baseline quantity, This represents the quantity weight value.

[0019] Optionally, in one possible implementation of the first aspect, it also includes:

[0020] Receive adjustment information on the coverage quantity from the management terminal to obtain the adjustment quantity;

[0021] When it is determined that the adjustment quantity is greater than the coverage quantity, an increased adjustment value is obtained based on the difference between the adjustment quantity and the coverage quantity. The quantity weight value is then trained based on the increased adjustment value to obtain the increased quantity weight value.

[0022] The increased weight values ​​after training can be obtained using the following formula.

[0023]

[0024] in, To adjust the quantity, To increase the numerical weight values ​​after training, To increase the adjustment factor;

[0025] When it is determined that the adjustment quantity is less than the coverage quantity, a reduced adjustment value is obtained based on the difference between the coverage quantity and the adjustment quantity. The quantity weight value is then trained to reduce the adjustment value to obtain the quantity weight value after the reduction training.

[0026] The reduced weight values ​​after training can be obtained using the following formula.

[0027]

[0028] in, To reduce the number of weight values ​​after training, To reduce the adjustment factor;

[0029] Based on the increase and decrease of the training quantity weight value, the training quantity weight value is obtained, and the training quantity weight value is replaced with the training quantity weight value.

[0030] Optionally, in one possible implementation of the first aspect, determining the lighting device in the annular lighting device as an illumination device based on the coverage quantity includes:

[0031] The center and circumferential angles of the annular illumination device are retrieved, and the positioning angle is obtained based on the ratio of the circumferential angle to the coverage quantity;

[0032] The ring-shaped illumination device is segmented based on the positioning angle to obtain the division area corresponding to each positioning angle.

[0033] By sequentially selecting any one of the lighting devices in the divided region as the reference device, and connecting the center of the circle and the reference device, a rotational connection is obtained;

[0034] Based on the positioning angle and coverage quantity, the rotating connection line is continuously rotated to obtain multiple positioning connection lines. The lighting device at the intersection of the positioning connection line and the ring lighting device is selected as the selected device, and the selected devices are counted to obtain multiple selection sets corresponding to the ring lighting device.

[0035] The illumination devices are selected based on the operating status of the selected devices in each selected set to obtain the illumination devices.

[0036] Optionally, in one possible implementation of the first aspect, selecting the illumination device based on the operating status of the selected devices within each selected set to obtain the illumination device includes:

[0037] Obtain the operating status of the selected devices within each of the selected sets, where the operating status includes normal status and damaged status;

[0038] When it is determined that all selected devices in the selected set are in normal operating status, the selected device in the corresponding selected set is used as the irradiation device;

[0039] When it is determined that there are selected devices in the selected sets whose operating state is damaged, the selected devices in the damaged state are regarded as abnormal devices, and the remaining selected devices are regarded as normal devices, and the selected set in which the abnormal devices are located is regarded as an abnormal set.

[0040] Obtain the number of abnormal devices in the abnormal set, and select the abnormal set corresponding to the smallest number of abnormal devices as the selection set;

[0041] Select normal devices adjacent to abnormal devices in the selection set to obtain supplementary lighting devices. Based on the supplementary lighting devices and the normal devices in the selection set, obtain an irradiation device.

[0042] Optionally, in one possible implementation of the first aspect, selecting normal devices adjacent to abnormal devices in the selection set to obtain supplementary lighting devices includes:

[0043] Determine the abnormal position of the abnormal device in the ring illumination device within the selected set;

[0044] Half of the positioning angle is obtained to get the candidate angle. The candidate distance is obtained by multiplying the candidate angle and the radius of the ring illumination device.

[0045] Based on the abnormal location, two candidate locations are determined according to the candidate distance in clockwise and counterclockwise directions, respectively;

[0046] If it is determined that all the lighting devices at the candidate locations are in a damaged state, the corresponding lighting devices are designated as the current faulty devices, and the candidate angle is designated as the current positioning angle. The above steps for obtaining candidate locations are repeated until all the lighting devices at the candidate locations are in a normal state. Then, the lighting devices at the candidate locations are designated as supplementary lighting devices.

[0047] Optionally, in one possible implementation of the first aspect, identifying abnormal regions at the drive shaft in the axial image includes:

[0048] Retrieve abnormal pixel values, and determine abnormal pixel points in the recognition axis image based on the abnormal pixel values;

[0049] The adjacent abnormal pixels are counted to obtain an abnormal pixel set. The shape of the abnormal pixel set is identified based on OpenCV to obtain the abnormal region in the image.

[0050] Optionally, in one possible implementation of the first aspect, the step of determining the corresponding illumination device as a tracking device based on the abnormal region, collecting and stitching the illumination area of ​​the tracking device, and sending the stitched feedback image to the management terminal includes:

[0051] Based on the abnormal area, the corresponding irradiation device is identified as a tracking device, and the remaining irradiation devices are identified as non-tracking devices, and the non-tracking devices are turned off.

[0052] The illumination area of ​​the tracking device is collected to obtain an illumination image. The illumination image is then stitched together to obtain a stitched feedback image corresponding to the drive shaft, which is then sent to the management terminal.

[0053] Optionally, in one possible implementation of the first aspect, the step of stitching the illumination image to obtain a stitched feedback image corresponding to the drive shaft and sending it to the management terminal includes:

[0054] Based on a preset order, the illumination areas of the irradiation devices corresponding to each annular illumination device are obtained sequentially, and the illumination areas of the irradiation devices are spliced ​​together sequentially to obtain the illumination splicing area corresponding to the body and the transmission shaft.

[0055] The illumination area corresponding to the tracking device is used as the tracking area. The illumination image of the corresponding tracking device is updated to the tracking area in the illumination splicing area, and the splicing feedback image corresponding to the drive shaft is obtained and sent to the management terminal.

[0056] A second aspect of the present invention provides a storage medium storing a computer program, which, when executed by a processor, is used to implement the first aspect of the present invention and various methods possibly involved in the first aspect.

[0057] The beneficial effects of this invention are as follows:

[0058] 1. This invention proposes a method to acquire axial images using a controlled acquisition device, obtain the bearing diameter and determine the coverage quantity, determine the irradiation equipment based on the coverage quantity, identify abnormal areas, determine the tracking equipment, and stitch together a feedback image. This solution can dynamically adjust the illumination area according to the abnormal conditions of the drive shaft, focus on defective parts, reduce the defect inspection area, effectively improve detection efficiency, and solve the problems of traditional methods where the illumination intensity and range cannot be dynamically adjusted and the ability to capture minute defects is insufficient.

[0059] 2. This invention acquires the image diameter and converts it into a bearing diameter. The coverage quantity is calculated using the diameter ratio and a baseline quantity. It can also receive adjustment information from the management end to train the quantity weight values. This scheme enables the coverage quantity to adaptively adjust according to the bearing diameter, improving the utilization rate of lighting resources. Furthermore, the training mechanism enhances the system's adaptability to different production scenarios, making lighting coverage more accurate and reducing energy waste and detection errors.

[0060] 3. This invention determines the positioning angle by retrieving the center and circumferential angles, segments the annular illumination device and selects a reference device, selects the illumination device based on the operating status, identifies abnormal areas using OpenCV, determines the tracking device based on the abnormal areas, and stitches together a feedback map. This scheme ensures the reasonable selection and normal operation of the illumination device, accurately identifies abnormal areas, and stitches the illumination areas of the tracking devices into a feedback map, sending it to the management terminal. This provides intuitive and valuable feedback information for production management, facilitating timely handling of anomalies, while simultaneously shutting down non-tracking devices to reduce energy consumption. Attached Figure Description

[0061] Figure 1 A flowchart of a production line parameter intelligent adjustment method for a light-tracking drive shaft provided by the present invention;

[0062] Figure 2 This is a schematic diagram of a ring-shaped illumination device provided by the present invention. Detailed Implementation

[0063] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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 some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0064] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein.

[0065] It should be understood that in the various embodiments of the present invention, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0066] It should be understood that in this invention, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.

[0067] It should be understood that in this invention, "multiple" refers to two or more. "And / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "Contains A, B, and C", "Contains A, B, and C" means that all three A, B, and C are contained; "Contains A, B, or C" means that one of A, B, and C is contained; "Contains A, B, and / or C" means that any one, two, or three of A, B, and C are contained.

[0068] It should be understood that in this invention, "B corresponding to A", "B corresponding to A", "A and B correspond", or "B and A correspond" means that B is associated with A, and B can be determined based on A. Determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information. Matching A and B is defined as a similarity between A and B that is greater than or equal to a preset threshold.

[0069] Depending on the context, "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection."

[0070] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0071] This invention provides a method for intelligent adjustment of production line parameters for a light-tracking drive shaft, such as... Figure 1 As shown, it includes S1-S3:

[0072] S1, control the acquisition device to acquire axial images of the drive shaft at the production line, obtain the bearing diameter of the drive shaft at each annular lighting device in the axial image, and determine the coverage quantity at each annular lighting device based on the bearing diameter.

[0073] It should be noted that in traditional optical inspection of drive shaft production lines, the fixed illumination coverage mode cannot adapt to the inspection requirements of bearings with different diameters, thus increasing the defect missed rate. This step achieves adaptive adjustment of the amount of illumination coverage by dynamically acquiring axial images and calculating the bearing diameter. This resolves the contradiction between wasted light resources and insufficient inspection accuracy in traditional methods, ensuring that the illumination coverage range is precisely matched with the bearing diameter, thereby improving the reliability of anomaly detection on the production line.

[0074] The acquisition device refers to an industrial camera or image sensor installed on the production line to capture axial images of the drive shaft in real time. It can capture images around the drive shaft. The axial image refers to a two-dimensional projected image acquired along the axis of the drive shaft, reflecting the geometric features of the bearing surface. The annular lighting device refers to a ring-shaped lighting assembly arranged around the drive shaft, consisting of several independent lighting devices within its circular area. For example, see [link to example]. Figure 2 The annular illumination device contains multiple illumination devices to cover the entire drive shaft, facilitating subsequent anomaly identification; the bearing diameter refers to the actual physical diameter of the drive shaft bearing, obtained through image recognition and proportional conversion; the coverage quantity refers to the number of activated illumination devices in the annular illumination device, used to adjust the range and intensity of the illumination coverage.

[0075] By controlling the acquisition device to acquire the axial image of the drive shaft in real time, the bearing pixel diameter of the corresponding area of ​​each annular lighting device is extracted using image recognition technology. Combined with the preset conversion ratio, it is converted into the actual physical diameter. Then, based on the ratio relationship between the bearing diameter and the reference diameter, the number of lighting devices required to cover each annular lighting device is derived.

[0076] In some embodiments, step S1 (obtaining the bearing diameter of the drive shaft at each annular illumination device in the axial image, and determining the coverage amount at each annular illumination device based on the bearing diameter) includes S11-S13:

[0077] S11, obtain the image diameter of the transmission shaft at each annular illumination device in the axial image, and obtain the bearing diameter of the corresponding transmission shaft of each annular illumination device based on the product of the image diameter and the preset conversion ratio.

[0078] The preset conversion ratio is the distance conversion ratio in the axial image, which can be set according to the actual acquisition device. Subsequently, the image diameter can be directly multiplied by the preset conversion ratio to obtain the bearing diameter of the drive shaft.

[0079] It is understandable that by using image recognition technology to locate the bearing contours corresponding to each annular lighting device in the axial image, calculating its pixel-level image diameter, and then multiplying it by a preset conversion ratio, the pixel size in the image space is mapped to the bearing diameter in the actual physical space, providing an accurate physical quantity basis for subsequent dynamic adjustment of the amount of lighting coverage based on the diameter.

[0080] S12, retrieve the reference diameter and the reference quantity corresponding to the reference diameter, and obtain the diameter ratio based on the ratio of the bearing diameter to the reference diameter.

[0081] Among them, the reference diameter refers to the standard bearing diameter used for comparison, which can be set in advance by humans. This reference diameter has a corresponding reference quantity; the reference quantity refers to the standard illumination coverage quantity (such as a lighting device) corresponding to the reference diameter; it reflects the change range of the current bearing diameter relative to the reference diameter (such as the ratio of a diameter of 50mm to a reference diameter of 40mm is 1.25).

[0082] Understandably, this step retrieves the reference diameter and corresponding reference quantity from the preset database, divides the actual calculated bearing diameter by the reference diameter, and obtains the diameter ratio. This quantifies the difference between the current bearing diameter and the standard specification, providing a mathematical basis for deriving the coverage quantity through the proportional relationship.

[0083] S13, calculate the coverage quantity at each annular illumination device based on the diameter ratio and the reference quantity.

[0084] The coverage quantity refers to the number of activated lighting devices in the ring-shaped lighting device. The coverage quantity is calculated as: coverage quantity = reference quantity × diameter ratio. For example, when the reference quantity is 6 and the diameter ratio is 1.25, the coverage quantity = 6 × 1.25 = 7.5, which is usually rounded up to 8.

[0085] In some embodiments, step S13 (calculating the coverage quantity at each annular illumination device based on the diameter ratio and the reference quantity) includes S131:

[0086] S131, based on the product of the diameter ratio and the reference quantity, a quantity calculation value is obtained, and based on the product of the quantity calculation value and the quantity weight value, the coverage quantity at each annular illumination device is obtained.

[0087] The coverage amount can be obtained using the following formula.

[0088]

[0089] in, For coverage quantity, For the bearing diameter, As the reference diameter, As the baseline quantity, For quantity weight values, This is the diameter ratio. Quantity calculation value, quantity weight value It can be pre-set based on the actual situation, and can then be trained autonomously based on the input values ​​of the personnel.

[0090] It should be noted that traditional diameter and coverage quantity do not take into account the personalized needs of different production scenarios. This invention will determine the coverage quantity according to the different diameters of the drive shaft.

[0091] It is not difficult to understand that the bearing diameter With coverage The coverage is directly proportional to the bearing diameter. The larger the bearing diameter, the greater the coverage quantity, and the smaller the bearing diameter, the smaller the coverage quantity. The larger the bearing diameter corresponding to the ring-shaped illumination device, the more illumination equipment is needed to meet the bearing coverage illumination requirements.

[0092] Based on the above embodiments, A1-A4 are also included:

[0093] A1 receives adjustment information from the management terminal regarding the coverage quantity and obtains the adjusted quantity.

[0094] A2, when it is determined that the adjustment quantity is greater than the coverage quantity, an increase adjustment value is obtained based on the difference between the adjustment quantity and the coverage quantity, and the quantity weight value is increased and trained based on the increase adjustment value to obtain the increased quantity weight value.

[0095] The increased weight values ​​after training can be obtained using the following formula.

[0096]

[0097] in, To adjust the quantity, To increase the numerical weight values ​​after training, To increase the adjustment factor, it can be preset according to the actual situation. To increase the adjustment value.

[0098] It's not hard to understand that increasing the adjustment value... Increase the number of weights after training It is proportional to the actual coverage quantity. That is, when the manager finds that the actual coverage quantity is too small to cover the drive shaft corresponding to the diameter, he will actively input the adjustment quantity, conduct autonomous training on the quantity weight value, increase the weight value during training and replacement, so that when processing drive shafts with the same or larger diameters in the future, the final output coverage quantity meets the requirements.

[0099] A3, when it is determined that the adjustment quantity is less than the coverage quantity, a reduced adjustment value is obtained based on the difference between the coverage quantity and the adjustment quantity, and the quantity weight value is trained to reduce the adjustment value to obtain the quantity weight value after reduction training.

[0100] The reduced weight values ​​after training can be obtained using the following formula.

[0101]

[0102] in, To reduce the number of weight values ​​after training, To reduce the adjustment factor, it can be preset according to the actual situation. To reduce the adjustment value.

[0103] It's not hard to understand that reducing the adjustment value... Compared to reducing the number of weights after training Inversely proportional, when managers find that the actual coverage quantity is too large and wastes energy, they will actively input an adjustment quantity, autonomously train the quantity weight value, reduce the weight value during training, and replace it so that the final output coverage quantity meets the requirements.

[0104] A4. Based on the increase and decrease of the training quantity weight value, the training quantity weight value is obtained, and the training quantity weight value is replaced with the training quantity weight value.

[0105] Through the above implementation methods, the present invention can autonomously and intelligently train the quantity weight values ​​continuously, so that the trained quantity weight values ​​meet the requirements.

[0106] S2, based on the coverage quantity, determine the lighting device in the annular lighting device as the illumination device, and identify the abnormal area at the drive shaft in the axial image.

[0107] In some embodiments, step S2 (determining the lighting device in the annular lighting device as the irradiation device based on the coverage quantity) includes S21-S25:

[0108] S21, retrieve the center and circumferential angles of the annular illumination device, and obtain the positioning angle based on the ratio of the circumferential angles to the coverage quantity.

[0109] Understandably, the first step is to obtain the center coordinates and circumferential angles of the ring-shaped device. Then, the circumferential angles are divided by the coverage quantity to obtain the positioning angles of adjacent devices. This provides an angular reference for the subsequent segmentation of the ring-shaped device and the positioning of the devices, ensuring that the lighting devices are evenly distributed on the circumference according to the coverage quantity.

[0110] Among them, the center of the ring-shaped lighting device refers to the geometric center of the ring-shaped lighting component; the circumferential angle is the circumferential angle of the ring-shaped device (usually 360°); the positioning angle refers to the interval angle between adjacent lighting devices.

[0111] S22, the ring-shaped illumination device is segmented based on the positioning angle to obtain the division area corresponding to each positioning angle.

[0112] It is understandable that, using the positioning angle as the unit, the circumference of the annular device is divided into multiple equiangular sector areas starting from the center. Each sector corresponds to the theoretical installation position of a lighting device, providing a spatial division basis for subsequent selection of reference equipment and rotation positioning.

[0113] S23, select any one of the lighting devices in the divided area as the reference device, and connect the center of the circle and the reference device to obtain the rotation connection.

[0114] The reference device refers to any one of the lighting devices selected from the divided area, which serves as the starting point for the positioning rotation; the rotation line refers to the line connecting the center of the circle and the reference device, which serves as the reference axis for the subsequent positioning line rotation.

[0115] Understandably, any lighting device can be selected from the divided area as a reference, and a rotating line can be formed by connecting the center of the circle. Subsequent positioning lines will be generated by rotating gradually according to the positioning angle, starting from this line, to ensure that all positioning lines are evenly distributed on the circumference with reference to the reference device.

[0116] S24, based on the positioning angle and coverage quantity, the rotating connection line is continuously rotated to obtain multiple positioning connection lines. The lighting device at the intersection of the positioning connection line and the ring lighting device is selected as the selected device, and the selected devices are counted to obtain multiple selection sets corresponding to the ring lighting device.

[0117] Among them, the positioning connection line refers to the multiple axes formed by continuously rotating the rotation connection line according to the positioning angle (e.g., if the positioning angle is 45°, the rotation connection line starts from 0° and rotates 45°, 90°... to generate 8 positioning connections line); the selected device refers to the lighting device at the intersection of the positioning connection line and the ring device; the selected set refers to the set of devices grouped according to the positioning angle.

[0118] It is understandable that, starting from the rotation line, the entire circumference is covered by rotating sequentially according to the positioning angle, generating multiple positioning lines. The device at the intersection of each line and the ring device is the selected device. These devices are grouped according to the positioning order to form multiple selected sets, ensuring that the devices in each set are evenly distributed on the circumference.

[0119] S25, select the illumination device according to the operating status of the selected device in each selected set, and obtain the illumination device.

[0120] Understandably, the operating status of each selected set of devices is checked one by one: if all devices in a set are normal, then that set is selected as the illumination device; if all sets have damaged devices, for example, one set has 1 damaged device and another has multiple damaged devices, then the set with the fewest damaged devices is selected, and adjacent normal devices are used to supplement the light, so as to ensure that the final selected illumination device can both cover the required number of devices and ensure normal working status.

[0121] In some embodiments, step S25 (selecting illumination devices based on the operating status of selected devices within each selected set to obtain illumination devices) includes S251-S255:

[0122] S251, obtain the operating status of the selected devices in each of the selected sets, the operating status including normal status and damaged status.

[0123] The operating status refers to the real-time working status of the lighting equipment, which is obtained through the built-in sensors or external detection circuits of the equipment; the normal status means that the equipment's brightness, color temperature and other parameters meet the preset standards; the damaged status means that the equipment's parameters do not meet the standards, which may be that it cannot light up or that the light dims, etc., and is not limited here.

[0124] Understandably, this step iterates through each device in each selected set, reads the device status or detects feedback signals from the circuit to determine whether the device is working properly, marks the result as normal, and marks it as abnormal otherwise.

[0125] S252, when it is determined that the operating status of all selected devices in the selected set is normal, the selected device in the corresponding selected set is used as the irradiation device.

[0126] Understandably, if the device status of any selected set is found to be normal, then that set can be directly used as the illumination device without the need for subsequent supplementary lighting operations, thus ensuring the stability and consistency of illumination parameters during the detection process.

[0127] That is, if all devices in the set are functioning normally, then the normally functioning device will be selected first.

[0128] S253, when it is determined that there are selected devices in the selected sets whose operating state is damaged, the selected devices in the damaged state are regarded as abnormal devices, and the remaining selected devices are regarded as normal devices, and the selected set in which the abnormal devices are located is regarded as an abnormal set.

[0129] Understandably, after confirming that all selected sets contain damaged devices, this step iterates through the status list of each set, classifies the devices marked as damaged as abnormal devices, and the rest in the set as normal devices. The set containing abnormal devices is then marked as an abnormal set, in preparation for subsequent filtering by the number of abnormal devices.

[0130] S254, obtain the number of abnormal devices in the abnormal set, and select the abnormal set corresponding to the smallest number of abnormal devices as the selection set.

[0131] Understandably, the method involves counting the number of abnormal devices in each abnormal set, comparing the number of abnormal devices in each set, and selecting the set with the smallest number as the selection set. If multiple sets have the same number of abnormal devices, one is randomly selected to ensure that the proportion of normal devices in the selection set is maximized, thereby reducing the need for supplemental lighting.

[0132] S255, select normal devices adjacent to abnormal devices in the selection set to obtain supplementary lighting devices, and obtain irradiation devices based on the supplementary lighting devices and the normal devices in the selection set.

[0133] Understandably, the abnormal devices in the selection set are iterated through, and for each abnormal device, its left and right adjacent normal devices are selected as supplementary lighting devices (if the adjacent devices are also abnormal, they are skipped). These supplementary lighting devices are then combined with the normal devices in the selection set to form the final illumination device group, ensuring that the abnormal area is effectively covered.

[0134] In some embodiments, step S255 (selecting normal devices adjacent to abnormal devices in the selection set to obtain supplementary lighting devices) includes S2551-S2554:

[0135] S2551, determine the abnormal position of the abnormal device in the ring illumination device in the selected set.

[0136] Among them, abnormal position refers to the angular coordinates of the abnormal equipment on the circumference of the ring-shaped illumination device, such as 30°, 180°, etc.

[0137] S2552, obtain half of the positioning angle to obtain the candidate angle, and obtain the candidate distance based on the product of the candidate angle and the radius of the ring illumination device.

[0138] It's easy to understand that the illumination distance of lighting equipment is relatively fixed, so it's preferable to select an adjacent, normally functioning device located at the middle angle for supplemental lighting.

[0139] Therefore, half of the positioning angle is first calculated as a candidate angle. After converting the angle unit to radians, it is multiplied by the device radius to obtain the candidate distance, thereby determining the initial search range centered on the abnormal location.

[0140] S2553, using the abnormal position as a reference, determine two candidate positions based on the candidate distance in clockwise and counterclockwise directions respectively.

[0141] It is understandable that, starting from the angular coordinates of the abnormal position, the arc lengths corresponding to the candidate angles are shifted in the clockwise and counterclockwise directions respectively, and the angular coordinates of the two candidate positions are calculated to form a symmetrical search point, ensuring that the adjacent area of ​​the abnormal device is covered (e.g., if the abnormal position is 90° and the candidate angle is 22.5°, then the devices at the positions of 67.5° and 112.5° are searched).

[0142] S2554, when it is determined that all the lighting devices at the candidate positions are in a damaged state, the corresponding lighting devices are designated as the current faulty devices, and the candidate angle is designated as the current positioning angle. The above steps for obtaining candidate positions are repeated until all the lighting devices at the candidate positions are in a normal state, and then the lighting devices at the candidate positions are designated as supplementary lighting devices.

[0143] Understandably, the device status at the candidate location is checked first: if all are normal, the device is selected as the supplementary lighting device; if it is damaged, the candidate angle is updated to the current positioning angle (e.g., the initial candidate angle is 22.5°, the positioning angle is 45°, and if the device is damaged, the candidate angle becomes 45°), the candidate distance and position are recalculated, and the search is repeated until a normal device is found, forming a closed-loop iterative mechanism.

[0144] In some embodiments, step S2 (identifying abnormal regions at the drive shaft in the axial image) includes S26-S27:

[0145] S26, retrieve abnormal pixel values, and determine abnormal pixel points in the recognition axis image based on the abnormal pixel values.

[0146] Understandably, the upper and lower limits of abnormal pixel values ​​are retrieved from a preset database, such as red pixels corresponding to rust, and each pixel in the axial image is traversed. Points whose pixel values ​​fall within the abnormal range are marked as abnormal pixels, providing basic data points for the shape recognition of abnormal areas in the future.

[0147] S27, count the adjacent abnormal pixels to obtain a set of abnormal pixels, and identify the shape of the abnormal pixel set based on OpenCV to obtain the abnormal region in the image.

[0148] Understandably, adjacent abnormal pixels are aggregated into multiple sets, and then OpenCV is used to extract the contour and analyze the shape of each set. Based on the contour features (such as aspect ratio and area), the abnormality type (crack, wear, etc.) is determined, and finally the location and shape of the abnormal area are determined.

[0149] S3, based on the abnormal area, determine the corresponding irradiation device as the tracking device, collect the irradiation area of ​​the tracking device and stitch it together to obtain a stitched feedback image and send it to the management terminal.

[0150] In some embodiments, step S3 (determining the corresponding illumination device as a tracking device based on the abnormal area, collecting the illumination area of ​​the tracking device and stitching it together to obtain a stitched feedback image and sending it to the management terminal) includes:

[0151] S31, based on the abnormal area, determine the corresponding irradiation device as a tracking device, and the remaining irradiation devices as non-tracking devices, and turn off the non-tracking devices.

[0152] Understandably, the system first matches the corresponding ring-shaped lighting devices and equipment based on the location coordinates of the abnormal area, marks the lighting devices covering the abnormal area as tracking devices, and sets the rest as non-tracking devices and sends a shutdown command.

[0153] In this way, the system achieves dynamic redistribution of lighting resources, ensuring that abnormal areas receive enhanced lighting and that unnecessary areas are kept out of light, thereby reducing energy consumption while improving the anomaly detection effect.

[0154] S32, collect the illumination area of ​​the tracking device to obtain an illumination image, stitch the illumination image together to obtain a stitched feedback image corresponding to the drive shaft and send it to the management terminal.

[0155] Understandably, the control acquisition device first sequentially acquires illumination images of each tracking device, then stitches these local images together along the drive shaft axis to form a complete stitched feedback image. Abnormal areas are highlighted in the image, and the defect type (such as cracks or wear) is labeled. Finally, the image is transmitted to the management terminal via the network, providing operators with intuitive detection results.

[0156] In some embodiments, step S32 (stitching the illumination image to obtain a stitched feedback image corresponding to the drive shaft and sending it to the management terminal) includes S321-S322:

[0157] S321, based on a preset order, obtain the illumination area of ​​each annular illumination device corresponding to the illumination device, and then splice the illumination areas of the illumination devices in sequence to obtain the illumination splicing area corresponding to the body and the transmission shaft.

[0158] Among them, the preset sequence refers to the arrangement order of the ring-shaped lighting devices according to the layout of the production line equipment (such as ring 1, ring 2... ring n in sequence from the inlet to the outlet according to the transmission shaft conveying direction); the lighting splicing area refers to the complete axial image of the transmission shaft formed by splicing the lighting images of each ring-shaped device in the preset sequence, which is used to show the lighting coverage of the entire shaft.

[0159] Understandably, the process involves first retrieving a pre-defined list of annular devices, then sequentially acquiring images of the illumination areas of each device's corresponding illumination equipment, aligning the overlapping areas of adjacent annular devices' images, and finally stitching them together to form a continuous illumination stitching area corresponding to the axis of the drive shaft.

[0160] S322, the illumination area corresponding to the tracking device is taken as the tracking area, the illumination image of the corresponding tracking device is updated to the tracking area in the illumination splicing area, and the splicing feedback image corresponding to the drive shaft is sent to the management terminal.

[0161] Understandably, the tracking area is located within the illumination stitching area, and the illumination image of the tracking device is updated to the corresponding position. At the same time, the stitched image is adapted to the drive shaft, making it convenient for managers to directly locate abnormal positions through the stitching feedback image.

[0162] The present invention also provides a readable storage medium storing a computer program, which, when executed by a processor, is used to implement the methods provided in the various embodiments described above.

[0163] The readable storage medium can be a computer storage medium or a communication medium. A communication medium includes any medium that facilitates the transfer of computer programs from one location to another. A computer storage medium can be any available medium accessible to a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application-Specific Integrated Circuit (ASIC). Alternatively, the ASIC can be located in a user equipment. Of course, the processor and the readable storage medium can also exist as discrete components in a communication device. The readable storage medium can be a read-only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0164] The present invention also provides a program product including executable instructions stored in a readable storage medium. At least one processor of the device can read the executable instructions from the readable storage medium, and the at least one processor executes the executable instructions to cause the device to implement the methods provided in the various embodiments described above.

[0165] In the embodiments of the above-described device, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for intelligent adjustment of production line parameters for a light-tracking drive shaft, characterized in that, include: The control acquisition device acquires axial images of the drive shaft at the production line, obtains the bearing diameter of the drive shaft at each annular lighting device in the axial image, and determines the coverage quantity at each annular lighting device based on the bearing diameter. Based on the coverage quantity, the lighting device in the annular lighting device is determined as the illumination device, and abnormal areas at the drive shaft in the axial image are identified. Based on the abnormal area, the corresponding irradiation device is determined as the tracking device, the irradiation area of ​​the tracking device is collected and stitched together, and the stitched feedback image is sent to the management terminal.

2. The method according to claim 1, characterized in that, The step of obtaining the bearing diameter of the drive shaft at each annular illumination device in the axial image, and determining the coverage quantity at each annular illumination device based on the bearing diameter, includes: Obtain the image diameter of the drive shaft at each annular illumination device in the axial image, and obtain the bearing diameter of the drive shaft corresponding to each annular illumination device based on the product of the image diameter and the preset conversion ratio. Retrieve the reference diameter and the corresponding reference quantity, and obtain the diameter ratio based on the ratio of the bearing diameter to the reference diameter; The coverage quantity at each annular illumination device is calculated based on the diameter ratio and the baseline quantity.

3. The method according to claim 2, characterized in that, The calculation of the coverage quantity at each annular illumination device based on the diameter ratio and the reference quantity includes: The quantity is calculated by multiplying the diameter ratio and the baseline quantity, and the coverage quantity at each annular illumination device is obtained by multiplying the quantity calculated value and the quantity weight value. The coverage amount can be obtained using the following formula. , in, For coverage quantity, For the bearing diameter, As the reference diameter, As the baseline quantity, This represents the quantity weight value.

4. The method according to claim 3, characterized in that, Also includes: Receive adjustment information on the coverage quantity from the management terminal to obtain the adjustment quantity; When it is determined that the adjustment quantity is greater than the coverage quantity, an increased adjustment value is obtained based on the difference between the adjustment quantity and the coverage quantity. The quantity weight value is then trained based on the increased adjustment value to obtain the increased quantity weight value. The increased weight values ​​after training can be obtained using the following formula. , in, To adjust the quantity, To increase the numerical weight values ​​after training, To increase the adjustment factor; When it is determined that the adjustment quantity is less than the coverage quantity, a reduced adjustment value is obtained based on the difference between the coverage quantity and the adjustment quantity. The quantity weight value is then trained to reduce the adjustment value to obtain the quantity weight value after the reduction training. The reduced weight values ​​after training can be obtained using the following formula. , in, To reduce the number of weight values ​​after training, To reduce the adjustment factor; Based on the increase and decrease of the training quantity weight value, the training quantity weight value is obtained, and the training quantity weight value is replaced with the training quantity weight value.

5. The method according to claim 1, characterized in that, The determination of the lighting devices in the annular lighting device as irradiation devices based on the coverage quantity includes: The center and circumferential angles of the annular illumination device are retrieved, and the positioning angle is obtained based on the ratio of the circumferential angle to the coverage quantity; The ring-shaped illumination device is segmented based on the positioning angle to obtain the division area corresponding to each positioning angle. By sequentially selecting any one of the lighting devices in the divided region as the reference device, and connecting the center of the circle and the reference device, a rotational connection is obtained; Based on the positioning angle and coverage quantity, the rotating connection line is continuously rotated to obtain multiple positioning connection lines. The lighting device at the intersection of the positioning connection line and the ring lighting device is selected as the selected device, and the selected devices are counted to obtain multiple selection sets corresponding to the ring lighting device. The illumination devices are selected based on the operating status of the selected devices in each selected set to obtain the illumination devices.

6. The method according to claim 5, characterized in that, The step of selecting lighting devices based on the operating status of selected devices within each selected set to obtain illumination devices includes: Obtain the operating status of the selected devices within each of the selected sets, where the operating status includes normal status and damaged status; When it is determined that all selected devices in the selected set are in normal operating status, the selected device in the corresponding selected set is used as the irradiation device; When it is determined that there are selected devices in the selected sets whose operating state is damaged, the selected devices in the damaged state are regarded as abnormal devices, and the remaining selected devices are regarded as normal devices, and the selected set in which the abnormal devices are located is regarded as an abnormal set. Obtain the number of abnormal devices in the abnormal set, and select the abnormal set corresponding to the smallest number of abnormal devices as the selection set; Select normal devices adjacent to abnormal devices in the selection set to obtain supplementary lighting devices. Based on the supplementary lighting devices and the normal devices in the selection set, obtain an irradiation device.

7. The method according to claim 6, characterized in that, The step of selecting normal devices adjacent to abnormal devices in the selection set to obtain supplementary lighting devices includes: Determine the abnormal position of the abnormal device in the ring illumination device within the selected set; Half of the positioning angle is obtained to get the candidate angle. The candidate distance is obtained by multiplying the candidate angle and the radius of the ring illumination device. Based on the abnormal location, two candidate locations are determined according to the candidate distance in clockwise and counterclockwise directions, respectively; If it is determined that all the lighting devices at the candidate locations are in a damaged state, the corresponding lighting devices are designated as the current faulty devices, and the candidate angle is designated as the current positioning angle. The above steps for obtaining candidate locations are repeated until all the lighting devices at the candidate locations are in a normal state. Then, the lighting devices at the candidate locations are designated as supplementary lighting devices.

8. The method according to claim 1, characterized in that, The identification of abnormal regions at the drive shaft in the axial image includes: Retrieve abnormal pixel values, and determine abnormal pixel points in the recognition axis image based on the abnormal pixel values; The adjacent abnormal pixels are counted to obtain an abnormal pixel set. The shape of the abnormal pixel set is identified based on OpenCV to obtain the abnormal region in the image.

9. The method according to claim 8, characterized in that, The process of determining the corresponding illumination device as a tracking device based on the abnormal region, collecting and stitching the illumination area of ​​the tracking device to obtain a stitched feedback image, and sending it to the management terminal includes: Based on the abnormal area, the corresponding irradiation device is identified as a tracking device, and the remaining irradiation devices are identified as non-tracking devices, and the non-tracking devices are turned off. The illumination area of ​​the tracking device is collected to obtain an illumination image. The illumination image is then stitched together to obtain a stitched feedback image corresponding to the drive shaft, which is then sent to the management terminal.

10. The method according to claim 9, characterized in that, The step of stitching the illumination image to obtain a stitched feedback image corresponding to the drive shaft and sending it to the management terminal includes: Based on a preset order, the illumination areas of the irradiation devices corresponding to each annular illumination device are obtained sequentially, and the illumination areas of the irradiation devices are spliced ​​together sequentially to obtain the illumination splicing area corresponding to the body and the transmission shaft. The illumination area corresponding to the tracking device is used as the tracking area. The illumination image of the corresponding tracking device is updated to the tracking area in the illumination splicing area, and the splicing feedback image corresponding to the drive shaft is obtained and sent to the management terminal.