Ultra-long atmosphere lamp detection method and system

By using multiple moving cameras to collect data in the ultra-long ambient light detection system, and performing brightness averaging and optical contrast compensation, the problem of detection inaccuracy caused by camera differences is solved, achieving full-area coverage and efficient detection.

CN122016262APending Publication Date: 2026-05-12GUANGZHOU ANTONGLIN LAMPS CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU ANTONGLIN LAMPS CO LTD
Filing Date
2026-04-16
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In the detection of ultra-long ambient lights, slight differences in the same camera model lead to non-uniform pixel response, resulting in differences in pixel values ​​at the same location in the image. This affects the accuracy of brightness and color detection. At the same time, wide-angle lighting causes brightness distortion, reducing detection accuracy.

Method used

Multiple cameras are used to capture brightness values ​​and image data by moving from both ends of the ambient light towards the center. The data processing module performs brightness averaging and uniformity calculations and optical contrast compensation, and uses preset sample data from the testing system for image compensation.

Benefits of technology

It achieves full-area coverage detection of ultra-long ambient lights, improving detection accuracy and efficiency, and reducing errors caused by individual camera differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122016262A_ABST
    Figure CN122016262A_ABST
Patent Text Reader

Abstract

The invention discloses a super-long atmosphere lamp detection method and system, and the method comprises the steps: controlling a plurality of clamping mechanisms to clamp an atmosphere lamp when the atmosphere lamp to be detected is placed on a corresponding atmosphere lamp tool; a plurality of acquisition cameras are controlled to move from the two ends of the atmosphere lamp to the middle of the atmosphere lamp at the same time, and brightness value data and image data of a light emitting area of the atmosphere lamp are captured in the moving process; the plurality of acquisition cameras send brightness value data and image data of the light-emitting area of the atmosphere lamp to the data processing module, and the data processing module processes the image data and the brightness value data of the light-emitting area of the atmosphere lamp; and the data processing module sends the processed data to the test system, and the test system performs optical contrast compensation on the processed data according to sample data of a test sample preset in the test system. According to the invention, full-area coverage detection of the ultra-long atmosphere lamp can be realized, and the detection accuracy and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ambient light testing technology, specifically to a method and system for testing ultra-long ambient lights. Background Technology

[0002] Currently, when testing extra-long ambient lights, multiple cameras are required to collect data. However, even though the camera models are the same, each sensor may have slight differences in the manufacturing process, resulting in different pixel response uniformity. This can lead to differences in pixel values ​​at the same location in images captured by different cameras under the same lighting conditions, thus affecting the detection of parameters such as brightness and color of the long ambient light. Furthermore, since the extra-long ambient light to be tested emits light from the entire product, when performing optical measurements, if the light-receiving angle is too large (i.e., when testing the product's luminous area that is far from the direct position of the camera), the brightness will be distorted, leading to a decrease in the accuracy of the test. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings of the prior art. This invention provides a method and system for detecting ultra-long ambient lights, which can achieve full-area coverage detection of ultra-long ambient lights, thereby improving the accuracy and efficiency of detection.

[0004] This invention provides a method for detecting ultra-long ambient lights. When the ambient light to be tested is placed on the corresponding ambient light fixture, multiple clamping mechanisms are controlled to clamp the ambient light. Control multiple cameras to move simultaneously from both ends of the ambient light towards the center, and capture brightness data and image data of the luminous area of ​​the ambient light during the movement; The multiple acquisition cameras send the brightness value data and image data of the ambient light emitting area to the data processing module, and the data processing module processes the image data and brightness value data of the ambient light emitting area. The data processing module sends the processed data to the testing system, and the testing system performs optical contrast compensation on the processed data based on the sample data of the test sample pre-set in the testing system.

[0005] Preferably, the data processing module processes the brightness value data of the ambient light emitting area by including: Perform an average brightness calculation on the brightness values ​​obtained from the ambient light's luminous area; Perform a brightness uniformity calculation on the brightness values ​​obtained from the ambient light emission area; Perform a brightness variation ratio calculation on the brightness values ​​obtained from the ambient light emission area.

[0006] Preferably, the formula used by the data processing module to calculate the average brightness is:

[0007] Where exp is the natural exponential function; N represents the total number of pixels in the image; Lum(x,y) represents the brightness value of the pixel at coordinates (x,y) in the image; and δ is a small constant used to avoid negative infinity when calculating the logarithm.

[0008] Preferably, the optical contrast compensation performed by the testing system on the processed data based on sample data of test samples pre-set in the testing system includes: S141: Convert the obtained image data into a two-dimensional light intensity matrix, and calculate the key uniformity index based on the two-dimensional light intensity matrix; S142: The model for calculating the compensation amount is called according to the key uniformity index. Based on the required compensation amount calculated by the model, the test system drives the compensator to perform a preset compensation amount on the obtained image. S143: The test system will compare, stitch and combine the images after compensation to form a larger overall image.

[0009] The present invention also proposes an ultra-long ambient light detection system, which is used to perform the above-mentioned ultra-long ambient light detection method; The extra-long ambient light detection system includes: a workbench, a mounting bracket set on the workbench, a detection mechanism, and a fixing mechanism; The testing mechanism is installed on the top of the mounting bracket, the fixing mechanism is installed on the workbench, and the testing mechanism is located directly above the fixing mechanism; The detection mechanism includes multiple acquisition cameras and multiple moving components, with the multiple moving components connected end to end, and one acquisition camera being movably mounted on one of the moving components; The acquisition end of any of the acquisition cameras faces the fixed mechanism, and the acquisition camera is driven by the moving component to move back and forth along the length direction of the moving component to achieve the acquisition range covering the fixed mechanism.

[0010] Preferably, the moving component includes: a movable slider, a mounting housing, and a first drive motor. The movable slider is movably mounted on the mounting housing, and the movable slider is connected to a lead screw provided at the output end of the first drive motor. Any of the acquisition cameras is mounted on the movable slider. The camera is driven by the first drive motor to move back and forth along the length of the lead screw.

[0011] Preferably, the fixing mechanism includes: a mounting base and an ambient light fixture disposed on the mounting base; The ambient light fixture includes multiple clamping blocks and multiple LED strip clamping mechanisms, with the multiple clamping blocks and multiple LED strip clamping mechanisms being distributed alternately. The upper end face of each clamping block is recessed to form a mounting groove for accommodating an ambient light.

[0012] Preferably, any of the aforementioned light strip clamping mechanisms includes: a clamping base, a first gripper, a second gripper, and a second drive cylinder; The root of the first gripper is fixed on the clamping base, the second drive cylinder is embedded in the clamping base, and the root of the second gripper is fixedly connected to the output end of the second drive cylinder. The second gripper is driven by the second drive cylinder to move closer to or away from the first gripper.

[0013] Preferably, the ambient light fixture is further provided with a lamp head clamping mechanism, which includes: a clamping swing arm, a clamping push block and a clamping push rod; The clamping block is driven by the third driving cylinder to move closer to or away from the corresponding clamping base, the clamping push rod is driven by the fourth driving cylinder to move closer to or away from the corresponding clamping base, and the clamping swing arm is driven by the fifth driving cylinder to move closer to or away from the corresponding clamping base.

[0014] Preferably, the mounting bracket is provided with multiple light-blocking plates, which are distributed around and on top of the detection mechanism; The multiple light-blocking plates and the worktable work together to form a detection space.

[0015] The beneficial effects of this invention are: This invention employs multiple cameras in an ultra-long ambient light detection system. These cameras completely cover the length of the ambient light to be detected. The multiple acquisition cameras move from both ends of the ultra-long ambient light towards its center. Two of the acquisition cameras convert the captured image data into electrical signals and send them to the corresponding testing system. The testing system automatically compensates for the image data acquired by the multiple acquisition cameras, minimizing the differences in image data obtained from the multiple acquisition cameras and improving the accuracy and efficiency of the detection. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a first structural schematic diagram of the ultra-long ambient light detection system in an embodiment of the present invention; Figure 2 This is a schematic diagram of the second structure of the ultra-long ambient light detection system in an embodiment of the present invention; Figure 3 This is a schematic diagram of the third structure of the ultra-long ambient light detection system in this embodiment of the invention; Figure 4 This is a schematic diagram of the detection mechanism in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of the ambient light fixture in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of the LED strip clamping mechanism in an embodiment of the present invention; Figure 7 This is a schematic diagram of the first structure of the lamp head clamping mechanism in an embodiment of the present invention; Figure 8 This is a schematic diagram of the second structure of the lamp head clamping mechanism in an embodiment of the present invention; Figure 9 This is a schematic diagram of the third structure of the lamp holder clamping mechanism in an embodiment of the present invention; Figure 10 This is a flowchart of the ultra-long ambient light detection method in an embodiment of the present invention; Figure 11 This is a flowchart of optical contrast compensation in an embodiment of the present invention.

[0018] In the attached diagram: 1. Workbench; 2. Mounting bracket; 21. Light-blocking plate; 3. Detection mechanism; 31. Acquisition camera; 32. Moving component; 321. Moving slider; 322. First drive motor; 323. Mounting housing; 4. Fixing mechanism; 41. Mounting base; 42. Ambient light fixture; 421. Clamping block; 422. Light strip clamping mechanism; 4221. Clamping base; 4222. First gripper; 4223. Second gripper; 4224. Second drive cylinder; 423. Lamp head clamping mechanism; 4231. Clamping swing arm; 4232. Clamping push block; 4233. Clamping push rod. Detailed Implementation

[0019] 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.

[0020] Figure 1 This shows a first structural schematic diagram of the ultra-long ambient light detection system in an embodiment of the present invention. Figure 2 This diagram illustrates the second structure of the ultra-long ambient light detection system in an embodiment of the present invention. Figure 3 This diagram shows a third structural schematic of the ultra-long ambient light detection system in an embodiment of the present invention. Figure 4 A schematic diagram of the detection mechanism in an embodiment of the present invention is shown. Figure 5 A schematic diagram of the ambient light fixture in an embodiment of the present invention is shown. Figure 6 A schematic diagram of the LED strip clamping mechanism in an embodiment of the present invention is shown. Figure 7 This shows a first structural schematic diagram of the lamp head clamping mechanism in an embodiment of the present invention. Figure 8 This shows a schematic diagram of the second structure of the lamp head clamping mechanism in an embodiment of the present invention. Figure 9 This shows a schematic diagram of the third structure of the lamp head clamping mechanism in an embodiment of the present invention. Figure 10 A flowchart of the ultra-long ambient light detection method in an embodiment of the present invention is shown. Figure 11 A flowchart of optical contrast compensation in an embodiment of the present invention is shown. The ultra-long ambient light detection system includes: a workbench 1, a mounting bracket 2 disposed on the workbench 1, a detection mechanism 3, and a fixing mechanism 4. The detection mechanism 3 is mounted on top of the mounting bracket 2, and the fixing mechanism 4 is mounted on the workbench 1, with the detection mechanism 3 located directly above the fixing mechanism 4. The detection mechanism 3 includes multiple acquisition cameras 31 and multiple moving components 32, with the multiple moving components 32 connected end-to-end. One acquisition camera is movably mounted on one of the moving components 32. The acquisition end of any acquisition camera 31 faces the fixing mechanism 4, and the acquisition camera 31 is driven by the moving component 32 to move back and forth along the length direction of the moving component 32 to achieve a acquisition range covering the fixing mechanism 4. In this embodiment, the detection mechanism 3 includes two acquisition cameras 31 and two moving components 32, with the two moving components 32 connected end-to-end and located on the same straight line. One of the two acquisition cameras 31 is correspondingly disposed in one of the two moving components 32, and the acquisition camera 31 moves back and forth along the length direction of the moving component 32, so that the acquisition range of the two acquisition cameras 31 can completely cover the length of the ambient light to be detected. That is, the two acquisition cameras 31 are each responsible for half of the area of ​​the extra-long ambient light. The two acquisition cameras 31 move from both ends of the extra-long ambient light towards the center of the extra-long ambient light. The two acquisition cameras 31 convert the acquired image data into electrical signals and send them to the corresponding testing system. The testing system automatically compensates for the shooting effect of the two cameras, so as to minimize the difference in the image data obtained by the two acquisition cameras 31, and improve the accuracy and efficiency of the detection.

[0021] It should be noted that the acquisition camera 31 is a wide-angle, high-resolution, and high-sensitivity industrial camera, capable of clearly capturing the illumination of ultra-long ambient lights. The resolution of the acquisition camera 31 can be selected according to actual testing requirements. Furthermore, the acquisition camera 31 uses a wide-angle lens to capture light source details at smaller angles, excluding the frontal view, for optical testing.

[0022] Furthermore, the moving component 32 includes: a moving slider 321, a mounting housing 323, and a first drive motor 322. The moving slider 321 is connected to a lead screw at the output end of the first drive motor 322. Any of the acquisition cameras 31 is movably mounted on the first drive motor 322 based on the moving slider 321. The acquisition camera 31 is driven by the first drive motor 322 to move back and forth along the length of the lead screw. In this embodiment, the mounting housing 323 is sleeved on the output end of the first drive motor 322, and a groove is provided on one side wall of the mounting housing 323. The moving slider 321 is movably mounted on the mounting housing 323 with the groove, and the connecting end face of the moving slider 321 is connected to the lead screw based on a threaded connecting block. When the first drive motor 322 outputs power, the drive screw rotates in the forward direction. Simultaneously, the connecting block moves along the length of the screw, thereby driving the movable slider 321 to move along the side wall of the mounting housing 323. This ultimately moves the acquisition camera 31, allowing it to move back and forth above the extra-long ambient light that needs to be inspected. During this movement, the acquisition camera 31 continuously captures images of the surface of the extra-long ambient light and transmits the captured image data to the control unit of the detection system. Conversely, when the first drive motor 322 outputs power, the drive screw rotates in the reverse direction, driving the movable slider 321 to move in the opposite direction. The acquisition camera 31 also moves in the opposite direction, again capturing images of the surface of the extra-long ambient light. This allows the acquisition camera 31 to move back and forth above the extra-long ambient light, ensuring comprehensive inspection of all parts of the ambient light and facilitating the collection of necessary data.

[0023] Specifically, different movement modes can be selected according to the length of the ambient light. When capturing images of an extra-long ambient light, the first drive motor 322 outputs power, and the moving slider 321 moves under the drive of the first drive motor 322, thereby moving the acquisition camera 31. This allows the acquisition camera 31 to move back and forth above the extra-long ambient light to be detected. During the movement, the acquisition camera 31 continuously captures images of the surface of the extra-long ambient light and transmits the captured image data to the control unit of the detection system. When capturing images of a normal-length ambient light, the first drive motor 322 outputs power, and the moving slider 321 moves under the drive of the first drive motor 322, moving the acquisition camera 31 to the middle area. The acquisition range of the two acquisition cameras 31 is sufficient to cover the ambient light to be detected. The acquisition camera 31 stops in the middle area to continuously capture images of the surface of the ambient light and transmits the captured image data to the control unit of the detection system.

[0024] Furthermore, the fixing mechanism 4 includes: a mounting base 41 and an ambient light fixture 42 disposed on the mounting base 41; the ambient light fixture 42 includes multiple clamping blocks 421 and multiple light strip clamping mechanisms 422, the multiple clamping blocks 421 and the multiple light strip clamping mechanisms 422 being staggered; the upper end face of each clamping block 421 is recessed to form a mounting groove for accommodating the ambient light. In this embodiment, the ambient light fixture 42 includes eight clamping blocks 421 and three light strip clamping mechanisms 422, the eight clamping blocks 421 being distributed according to the contour of the ambient light, and the three light strip clamping mechanisms 422 being respectively located between any two adjacent clamping blocks 421 among the eight clamping blocks 421. This layout can ensure clamping at multiple key positions of the ambient light, improving the stability of the fixation. Each clamping block 421 has a recessed upper surface that forms a mounting groove for accommodating the ambient light. The mounting groove extends through the entire clamping block 421. The eight clamping blocks 421 are distributed sequentially according to the shape of the ambient light, so that the mounting grooves on the eight clamping blocks 421 form a mounting area that is identical in shape to the ambient light. This achieves effective fixation of the ambient light from all directions, reduces the deviation of the data collected by the detection camera caused by the ambient light shaking during the detection process, and helps to improve the accuracy of the data collected by the detection camera.

[0025] Further, any of the aforementioned light strip clamping mechanisms 422 includes: a clamping base 4221, a first gripper 4222, a second gripper 4223, and a second driving cylinder 4224; the root of the first gripper 4222 is fixed to the clamping base 4221, the second driving cylinder 4224 is embedded in the clamping base 4221, and the root of the second gripper 4223 is fixedly connected to the output end of the second driving cylinder 4224; the second gripper 4223 is driven by the second driving cylinder 4224 to move closer to or away from the first gripper 4222. In this embodiment, when the second gripper 4223 is driven by the second driving cylinder 4224 to move closer to the first gripper 4222, it is in a clamping state, that is, it can clamp the corresponding ambient light strip; conversely, when the second gripper 4223 is driven by the second driving cylinder 4224 to move away from the first gripper 4222, it is in a releasing state, that is, it releases the corresponding ambient light strip. When the ambient light strip is installed on the fixing mechanism 4, the ambient light strip abuts against the mounting groove of the clamping block 421 and against the first gripper 4222. Then, the second drive cylinder 4224 outputs power to drive the second gripper 4223 to move towards the first gripper 4222, and then the second gripper 4223 abuts against the surface of the ambient light strip. At this time, the first gripper 4222 and the second gripper 4223 simultaneously output force from two directions to clamp the ambient light strip, avoiding the risk of the ambient light swinging on its own during the testing process, which would lead to inaccurate test results.

[0026] Furthermore, the ambient light fixture 42 is also equipped with a lamp head clamping mechanism 423, which includes: a clamping swing arm 4231, a clamping push block 4232, and a clamping push rod 4233; the clamping push block 4232 is driven by a third driving cylinder to move closer to or further away from the corresponding clamping base 4221 to clamp or release the lamp head; the clamping push rod 4233 is driven by a fourth driving cylinder to move closer to or further away from the corresponding clamping base 4221 to clamp or release the lamp head; the clamping swing arm 4231 is driven by a fifth driving cylinder to move closer to or further away from the corresponding clamping base 4221 to clamp or release the lamp head. In this embodiment, the clamping push block 4232 is mounted on the third driving cylinder, and the clamping push block 4232 is driven by the third driving cylinder to move along the length direction of the third driving cylinder, so that the clamping push block 4232 is driven by the third driving cylinder to approach the corresponding clamping base 4221 until the clamping push block 4232 abuts against one side of the ambient light head, and the clamping push block 4232 clamps the ambient light head on the side wall of the clamping push block 4232 and the corresponding clamping base 4221; conversely, the clamping push block 4232 is driven by the third driving cylinder to move away from the corresponding clamping base 4221, and the clamping push block 4232 does not contact the ambient light strip, making it convenient for the staff to remove the ambient light from the corresponding position.

[0027] The clamping push rod 4233 is mounted on the fourth drive cylinder, and the clamping push rod 4233 is driven by the fourth drive cylinder to move along the length direction of the fourth drive cylinder, so that the clamping push rod 4233 is driven by the fourth drive cylinder to approach the corresponding clamping base 4221 until the clamping push rod 4233 abuts against one side of the ambient light lamp head, and the clamping push rod 4233 clamps the ambient light lamp head on the side wall of the clamping push rod 4233 and the corresponding clamping base 4221; conversely, the clamping push rod 4233 is driven by the fourth drive cylinder to move away from the corresponding clamping base 4221, and the clamping push block 4232 has no contact with the ambient light lamp head, making it convenient for the staff to remove the ambient light from the corresponding position.

[0028] One end of the clamping swing arm 4231 is mounted on the fifth drive cylinder, and the clamping swing arm 4231 is driven by the fifth drive cylinder to swing toward the corresponding clamping base 4221 until the other end of the clamping swing arm 4231 presses against the ambient light lamp head, and outputs force from above to press the ambient light lamp head into the mounting groove; conversely, the clamping swing arm 4231 is driven by the fifth drive cylinder to move away from the corresponding clamping base 4221, and the clamping swing arm 4231 does not contact the ambient light lamp head, making it convenient for the staff to remove the ambient light from the corresponding position.

[0029] It should be noted that the clamping block 421, the clamping swing arm 4231, and the clamping push rod 4233 are used to clamp the ambient light head portion. That is, the lamp head clamping mechanism 423 with the clamping push block 4232 and the lamp head clamping mechanism 423 with the clamping push rod 4233 are located on opposite sides of the ambient light head, while the lamp head clamping mechanism 423 with the clamping swing arm 4231 is on the other side, and the clamping swing arm 4231 is located above the corresponding lamp head.

[0030] Specifically, when the ambient light is installed on the ambient light fixture 42, the third, fourth, and fifth drive cylinders simultaneously output power, driving the clamping block 421, the clamping push rod 4233, and the clamping swing arm 4231 to approach the corresponding clamping base 4221, thus fixing the ambient light on the ambient light fixture 42. After processing or inspection is completed, the third, fourth, and fifth drive cylinders simultaneously cut off the air supply, and the piston rods of each cylinder retract under the action of spring force, driving the clamping push block 4232, the clamping push rod 4233, and the clamping swing arm 4231 away from the clamping base 4221, releasing the ambient light. This multi-component collaborative and independently driven clamping method can stably clamp the ambient light from multiple directions and angles, effectively overcoming the problems of insufficient clamping force or poor adaptability that may exist in a single fixing method. Specifically, the clamping push block 4232 and the clamping push rod 4233 provide basic planar clamping, while the clamping swing arm 4231 can flexibly conform to the irregular or curved parts of the ambient light, ensuring that the ambient light remains in a precise and stable position throughout the entire inspection process. Therefore, the acquisition camera 31 in the inspection mechanism 3 can continuously and stably capture brightness value data and image data of the ambient light's luminous area, avoiding deviations in inspection data caused by displacement or loosening of the ambient light, thereby significantly improving the overall accuracy and reliability of the ultra-long ambient light inspection system.

[0031] Furthermore, the mounting bracket 2 is provided with multiple light-blocking plates 21, which are distributed around and on the top of the detection mechanism 3. These light-blocking plates 21, together with the worktable 1, form a detection space. In this embodiment, the mounting bracket 2 is provided with nearly thirty light-blocking plates 21, located on the four side walls and top of the mounting bracket 2. Each side wall is covered with six light-blocking plates 21, and the top is provided with four light-blocking plates 21, with the four top plates located at the four apex corners. The light-blocking plates 21 on both the side walls and top of the mounting bracket 2 absorb external light, thus completely covering the mounting bracket 2 except for the bottom, reducing the amount of external light entering the detection space and affecting the data collected by the acquisition camera 31. This reduces the impact of light interference on the data collected by the acquisition camera 31, thereby improving the accuracy of the detection. The workbench 1 serves as the basic support surface for the detection system. Its surface fits tightly with the lower edge of the light-blocking plate 21, together enclosing a relatively enclosed internal space. This detection space completely isolates the detection area from external ambient light, providing a stable and controllable darkroom environment for the detection of ambient lights. This ensures that the acquisition camera 31 can acquire image data under stable and controlled lighting conditions, thereby eliminating the impact of external light fluctuations on the detection accuracy of parameters such as image brightness and color.

[0032] Specifically, once the extra-long ambient light to be tested is precisely placed and clamped onto the fixing mechanism 4, multiple acquisition cameras 31 in the detection mechanism 3 begin to move synchronously and collect data. This mobile acquisition method allows each camera to cover its assigned area and form a certain overlap with adjacent cameras. Compared with traditional segmented acquisition by multiple fixed cameras, this system can acquire more continuous and comprehensive image and brightness data through camera movement. Even if there are slight non-uniformities in pixel response between individual cameras, the subsequent data processing module can use this continuous and overlapping data for more accurate calibration and compensation, thereby effectively reducing detection errors caused by individual camera differences.

[0033] This invention also proposes a method for detecting ultra-long ambient lights, using the aforementioned ultra-long ambient light system, comprising the following steps: S11: When placing the ambient light to be tested on the corresponding ambient light fixture, control multiple clamping mechanisms to clamp the ambient light.

[0034] Furthermore, in the step of placing the ambient light to be tested on the corresponding ambient light fixture 42 and controlling multiple clamping mechanisms to clamp the ambient light to be tested, this step aims to provide a stable and accurate positioning environment for the testing of the ambient light, ensuring that the ambient light remains fixed throughout the testing process, thereby ensuring that the collected data is consistent and comparable.

[0035] Specifically, the ambient light fixture 42 is provided with a staggered arrangement of multiple clamping blocks 421 and multiple light strip clamping mechanisms 422, which ensures that the ambient light receives uniform and multi-point support and clamping along its entire length, effectively avoiding the problem of light strip movement or deformation caused by uneven local force that may occur in traditional fixing methods. Furthermore, a lamp head clamping mechanism 423 is provided, consisting of a clamping swing arm 4231, clamping blocks 421, and clamping push rods 4233. The clamping blocks 421 provide basic planar clamping, the clamping push rods 4233 provide deep pressing fixation, and the clamping swing arm 4231 can flexibly conform to the irregular or curved parts of the ambient light, ensuring that the ambient light remains in a precise and stable position throughout the entire testing process.

[0036] S12: Control multiple acquisition cameras to move simultaneously from both ends of the ambient light towards the middle of the ambient light, and capture brightness value data and image data of the ambient light emitting area during the movement.

[0037] Furthermore, in the step of controlling multiple acquisition cameras 31 in the detection mechanism 3 to move simultaneously from both ends of the ambient light towards the middle of the ambient light and capture the brightness value data and image data of the ambient light emitting area, this step is the core of data acquisition. Through the coordinated work of multiple acquisition cameras 31, the full coverage and data acquisition of the entire emitting area of ​​the ultra-long ambient light can be achieved, and the simultaneous movement ensures the efficiency and continuity of the acquisition process.

[0038] S13: The multiple acquisition cameras 31 respectively send the image data of the ambient light emitting area to the data processing module, and the data processing module processes the image data of the ambient light emitting area.

[0039] Furthermore, in the step where the multiple acquisition cameras 31 respectively send the brightness value data and image data of the ambient light emitting area to the data processing module, and the data processing module processes the image data of the ambient light emitting area, this step emphasizes the independence of data transmission and preliminary processing. The data acquired by each acquisition camera 31 is transmitted independently and preliminarily processed by the data processing module, laying the foundation for subsequent compensation and analysis.

[0040] S14: The data processing module sends the processed data to the testing system, and the testing system performs optical contrast compensation on the processed data based on the sample data of the test sample preset in the testing system.

[0041] Furthermore, in the step where the data processing module sends the processed data to the testing system, and the testing system performs optical comparison compensation between the received data and the data obtained from the test sample, this step is crucial for resolving data inconsistencies caused by camera differences. By comparing and compensating the processed data with pre-calibrated test sample data, acquisition differences between different cameras can be eliminated or reduced. Optical comparison compensation is performed directly within the data processing module by calling a preset compensation function or algorithm library; that is, the test sample data is stored in a database as a benchmark for compensation.

[0042] Furthermore, the data processing module processes the brightness value data of the ambient light emitting area by: calculating the average brightness value of the ambient light emitting area; calculating the brightness uniformity of the ambient light emitting area; and calculating the brightness variation ratio of the ambient light emitting area. In this embodiment, calculating the average brightness value of the acquired brightness values ​​of the ambient light emitting area aims to quantify the overall brightness level of the ambient light emitting area, providing a benchmark value for subsequent analysis, and effectively smoothing local brightness fluctuations caused by camera differences or environmental noise. One implementation is that the data processing module can perform an arithmetic mean of the brightness values ​​of all acquired pixels, that is, simply add all brightness values ​​and divide by the total number of pixels. Another implementation is that the data processing module can use a geometric mean calculation method, for example, by averaging the logarithm of the brightness value of each pixel and then taking the exponent. This method can better reflect the human eye's perception of brightness and is not sensitive to extreme values, thus providing a more robust average brightness assessment. Performing brightness uniformity calculations on the brightness values ​​acquired from the ambient light's luminous area is used to assess the consistency of brightness distribution within that area, identifying areas that are excessively bright or dark. This is crucial for detecting manufacturing defects in the ambient light or non-uniformity in camera response. One implementation involves the data processing module calculating the standard deviation or variance of the brightness values ​​within the luminous area; a smaller standard deviation indicates better brightness uniformity. Another implementation involves calculating the ratio between the maximum and minimum brightness values ​​within the luminous area; a ratio closer to 1 indicates better uniformity. Calculating the brightness variation ratio on the acquired brightness values ​​from the ambient light's luminous area aims to detect abnormal brightness abrupt changes or significant local differences within the luminous area. These variations may indicate defects in the ambient light (such as dead LEDs or light leakage) or transient anomalies during camera acquisition. One implementation involves the data processing module calculating local contrast, i.e., calculating the ratio of maximum to minimum brightness within a small area (e.g., a 3×3 or 5×5 pixel window) to highlight areas with drastic brightness variations. Another approach is for the data processing module to calculate the brightness gradient and quantify the severity of brightness changes using edge detection algorithms (such as the Sobel operator). A larger gradient value indicates a more pronounced brightness change. Furthermore, pixels that significantly deviate from the local average can be identified by comparing the brightness value of each pixel with the average brightness value of its neighboring pixels.

[0043] Furthermore, the formula for calculating the average brightness value by the data processing module is as follows:

[0044] Here, exp typically refers to the natural exponential function, an exponential function with the natural constant e (approximately 2.71828) as its base. Its function is to transform the logarithmic average back to the original brightness scale to preserve the physical meaning of the result. N represents the total number of pixels in the image, ensuring the calculation covers the entire image area. Lum(x,y) represents the brightness value of the pixel at coordinates (x,y) in the image, which is the original input data. δ is a small constant used to avoid negative infinity when calculating the logarithm. Its key role is to ensure that the input to the ln function is always positive, thus avoiding mathematical errors such as undefined logarithms or negative infinity when the pixel brightness value is extremely low or zero, improving the stability and robustness of the calculation. ln(δ+Lum(x,y)) represents a logarithmic transformation of the brightness value of each pixel. This transformation helps to convert multiplicative noise and sensor differences into an additive form, making subsequent averaging operations more effective. ∑ln(δ+Lum(x,y)) sums the logarithmically transformed values ​​of all pixels. 1 / N ∑ln(δ+Lum(x,y)) calculates the arithmetic mean of these transformed values ​​in the logarithmic domain, which essentially realizes the geometric mean of the original brightness values.

[0045] The data processing module employs a geometric mean mathematical model when calculating the average brightness of the ambient light's luminous area. Specifically, by performing a logarithmic transformation (ln(δ+Lum(x,y)) on the brightness value Lum(x,y) of each pixel, logarithmic errors caused by excessively low or zero brightness values ​​are effectively avoided, thus improving the mathematical stability and accuracy of the calculation. Furthermore, compared to the traditional arithmetic mean, the geometric mean is more robust to pixel response non-uniformity and multiplicative noise present in image sensors. This means that even with slight individual differences among the multiple acquisition cameras 31, this method can more accurately reflect the true brightness level of the ambient light, reducing measurement errors introduced by camera differences. This more accurate calculation of the average brightness provides more reliable basic data for subsequent evaluation of indicators such as brightness uniformity and brightness variation ratio (as described in the steps of the data processing module for processing brightness value data). This enables the testing system (as described in the ultra-long ambient light detection method above) to more effectively reduce the acquisition differences between multiple acquisition cameras 31 when performing optical contrast compensation, ultimately improving the overall detection accuracy and consistency of the ultra-long ambient light detection system.

[0046] Furthermore, the testing system performs optical comparison compensation between the received data and the data obtained from the test sample, including: S141: Convert the obtained image data into a two-dimensional light intensity matrix, and calculate the relevant key uniformity indicators based on the two-dimensional light intensity matrix.

[0047] Specifically, this conversion process interprets each pixel value in the image as a corresponding light intensity measurement. For example, for a color image, its RGB values ​​can be converted into a single luminance value, or, when absolute light intensity is required, pixel values ​​can be mapped to physical light units through radiometric calibration. This matrix form provides a structured data foundation for subsequent quantitative analysis. Based on this two-dimensional light intensity matrix, relevant key uniformity indicators are calculated. These indicators are measures of the uniformity of light distribution, and may include, for example, average luminance, luminance standard deviation, minimum to maximum luminance ratio, maximum luminance ratio, or a specific percentile luminance ratio. Through these indicators, the brightness consistency of the ambient light emission area can be objectively evaluated, and potential non-uniform areas can be identified.

[0048] S142: Based on the key uniformity index, the model for calculating the compensation amount is invoked. Based on the required compensation amount calculated by the model, the test system drives the compensator to perform a preset compensation amount on the obtained image.

[0049] S143: The test system will compare, stitch and combine the images after compensation to form a larger overall image.

[0050] Specifically, based on the calculated key uniformity indicators, a model for calculating compensation amounts is invoked. This model can be an algorithmic model or a mathematical model, and its function is to determine the amount of compensation to be performed based on the currently detected uniformity status. That is, if the brightness of a certain area is too low, the model for calculating compensation amounts will instruct to increase the brightness compensation of that area, and then drive the compensator to execute the preset compensation amount. The compensator is usually a software module that achieves compensation by adjusting the pixel values ​​of the image data (such as brightness, contrast, color balance, etc.). These preset compensation amounts are determined during the system calibration phase, with the aim of standardizing the output data of different acquisition cameras 31 to a consistent level.

[0051] Furthermore, after compensation processing, the brightness, color, and other optical characteristics of the image data acquired by each of the acquisition cameras 31 become more consistent, allowing for seamless comparison or fusion. For cameras with overlapping fields of view, the compensated images can be stitched or fused to form a larger, more continuous, and optically consistent overall image. This facilitates obtaining more consistent, accurate, and reliable data, greatly improving the overall performance of the detection system and the accuracy of the detection results.

[0052] It should be noted that by converting the image data into a two-dimensional light intensity matrix and calculating key uniformity indicators, a quantitative evaluation of the image's optical characteristics is achieved. Based on this, by calling the model and driving the compensator to execute preset compensation amounts, the data from each acquisition camera 31 can be specifically corrected, thereby significantly reducing the acquisition differences between multiple acquisition cameras 31. This enables more consistent, accurate, and reliable data to be obtained when detecting parameters such as brightness and color of ultra-long ambient lights, greatly improving the overall performance of the detection system and the accuracy of the detection results.

[0053] In summary, this invention employs multiple cameras in an ultra-long ambient light detection system. These cameras completely cover the length of the ambient light to be detected. The multiple acquisition cameras move from both ends of the ultra-long ambient light towards its center. Two of the acquisition cameras convert the captured image data into electrical signals and send them to the corresponding testing system. The testing system automatically compensates for the image data acquired by the multiple acquisition cameras, minimizing the differences in image data obtained from the multiple acquisition cameras and improving the accuracy and efficiency of the detection.

[0054] Furthermore, the above provides a detailed description of the ultra-long ambient light detection method and system provided by the embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for detecting an ultra-long ambient light, characterized in that, The method for detecting ultra-long ambient lights includes: When placing the ambient light to be tested on the corresponding ambient light fixture, control multiple clamping mechanisms to clamp the ambient light; Control multiple cameras to move simultaneously from both ends of the ambient light towards the center, and capture brightness data and image data of the luminous area of ​​the ambient light during the movement; The multiple acquisition cameras send the brightness value data and image data of the ambient light emitting area to the data processing module, and the data processing module processes the image data and brightness value data of the ambient light emitting area. The data processing module sends the processed data to the testing system, and the testing system performs optical contrast compensation on the processed data based on the sample data of the test sample pre-set in the testing system.

2. The method for detecting ultra-long ambient lights as described in claim 1, characterized in that, The data processing module processes the brightness value data of the ambient light's luminous area, including: Perform an average brightness calculation on the brightness values ​​obtained from the ambient light's luminous area; Perform a brightness uniformity calculation on the brightness values ​​obtained from the ambient light emission area; Perform a brightness variation ratio calculation on the brightness values ​​obtained from the ambient light emission area.

3. The method for detecting ultra-long ambient lights as described in claim 2, characterized in that, The formula used by the data processing module to calculate the average brightness is: Where exp is the natural exponential function; N represents the total number of pixels in the image; Lum(x,y) represents the brightness value of the pixel at coordinates (x,y) in the image; and δ is a constant.

4. The method for detecting ultra-long ambient lights as described in claim 1, characterized in that, The testing system performs optical contrast compensation on the processed data based on sample data of test samples pre-set in the testing system, including: S141: Convert the obtained image data into a two-dimensional light intensity matrix, and calculate the key uniformity index based on the two-dimensional light intensity matrix; S142: The model for calculating the compensation amount is called according to the key uniformity index. Based on the required compensation amount calculated by the model, the test system drives the compensator to perform a preset compensation amount on the obtained image. S143: The test system will compare, stitch and combine the images after compensation to form a larger overall image.

5. A detection system for an ultra-long ambient light, characterized in that, The ultra-long ambient light detection system is used to perform the ultra-long ambient light detection method as described in any one of claims 1-4; The extra-long ambient light detection system includes: a workbench, a mounting bracket set on the workbench, a detection mechanism, and a fixing mechanism; The testing mechanism is installed on the top of the mounting bracket, the fixing mechanism is installed on the workbench, and the testing mechanism is located directly above the fixing mechanism; The detection mechanism includes multiple acquisition cameras and multiple moving components, with the multiple moving components connected end to end, and one acquisition camera being movably mounted on one of the moving components; The acquisition end of any of the acquisition cameras faces the fixed mechanism, and the acquisition camera is driven by the moving component to move back and forth along the length direction of the moving component to achieve the acquisition range covering the fixed mechanism.

6. The extra-long ambient light detection system as described in claim 5, characterized in that, The moving component includes: a movable slider, a mounting housing, and a first drive motor. The movable slider is movably mounted on the mounting housing, and the movable slider is connected to a lead screw provided at the output end of the first drive motor. Any of the acquisition cameras is mounted on the movable slider. The camera is driven by the first drive motor to move back and forth along the length of the lead screw.

7. The ultra-long ambient light detection system as described in claim 6, characterized in that, The fixing mechanism includes: a mounting base and an ambient light fixture disposed on the mounting base; The ambient light fixture includes multiple clamping blocks and multiple LED strip clamping mechanisms, with the multiple clamping blocks and multiple LED strip clamping mechanisms being distributed alternately. The upper end face of each clamping block is recessed to form a mounting groove for accommodating an ambient light.

8. The ultra-long ambient light detection system as described in claim 7, characterized in that, Any of the aforementioned light strip clamping mechanisms includes: a clamping base, a first gripper, a second gripper, and a second drive cylinder; The root of the first gripper is fixed on the clamping base, the second drive cylinder is embedded in the clamping base, and the root of the second gripper is fixedly connected to the output end of the second drive cylinder. The second gripper is driven by the second drive cylinder to move closer to or away from the first gripper.

9. The ultra-long ambient light detection system as described in claim 8, characterized in that, The ambient light fixture is also equipped with a lamp head clamping mechanism, which includes: a clamping swing arm, a clamping push block and a clamping push rod. The clamping block is driven by the third driving cylinder to move closer to or away from the corresponding clamping base, the clamping push rod is driven by the fourth driving cylinder to move closer to or away from the corresponding clamping base, and the clamping swing arm is driven by the fifth driving cylinder to move closer to or away from the corresponding clamping base.

10. The ultra-long ambient light detection system as described in claim 5, characterized in that, The mounting bracket is equipped with multiple light-blocking plates, which are distributed around and on top of the detection mechanism. The multiple light-blocking plates and the worktable work together to form a detection space.