Light source detection method, light source detection device, and storage medium

By using optical fibers and condensers in the light source detection device to converge and conduct light from the light source to be measured to the light sensor, the brightness detection deviation problem in light source detection in the prior art is solved, and higher detection accuracy is achieved.

CN119198017APending Publication Date: 2024-12-27SHENZHEN GOERTEK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411392327.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the existing light source detection methods, since the ambient light sensor is placed directly in the product environment, it causes light scattering and interference, affecting the accuracy of light source detection, and there is a deviation between the brightness detection result and the actual brightness.

Method used

Optical fibers and condenser are used to converge the light from the light source to be measured and conduct it to the light sensor to reduce light refraction and interference and improve detection accuracy.

Benefits of technology

It effectively reduces the deviation between the brightness detected by the light sensor and the actual luminous brightness, accurately determines whether the light source to be measured is qualified, and improves the accuracy of light source detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119198017A_ABST
    Figure CN119198017A_ABST
Patent Text Reader

Abstract

The invention discloses a light source detection method, a light source detection device and a storage medium, and relates to the technical field of electrical appliances, the light source detection device comprises an optical fiber, a light sensor and a collecting lens, the collecting lens is used for converging light of a light source to be detected and emitting the light to the optical fiber, the optical fiber is used for conducting incident light to the optical sensor. The method comprises the following steps: acquiring actual brightness detected by the optical sensor; and determining whether the light source to be detected is qualified or not according to the relationship between the actual brightness and the standard brightness. The invention aims to improve the accuracy of light source detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a light source detection method, a light source detection device and a storage medium. Background Art

[0002] Many electronic products require the use of various light sources such as LEDs as status prompts. Due to differences in process, materials, etc., different light sources will have different brightness under the same control parameters. The brightness of the product light source needs to be tested during the production process.

[0003] At present, the ambient light sensor is generally placed directly in the environment where the product is located during the process of emitting light from the light source on the product. The ambient light detected by the ambient light sensor is used as the actual brightness data of the light source. Different shapes and sizes of products and different positions of light sources or different relative positions between the sensor and the light source will cause light scattering and interference, resulting in a deviation between the brightness detected by the ambient light sensor and the actual brightness of the light source, affecting the accuracy of light source detection. Summary of the invention

[0004] The main purpose of the present application is to provide a light source detection method, a light source detection device and a storage medium, aiming to improve the accuracy of light source detection.

[0005] To achieve the above object, the present application proposes a light source detection method, which is applied to a light source detection device, wherein the light source detection device includes an optical fiber, a light sensor, and a condenser, wherein the condenser is used to converge the light of the light source to be measured and make it incident on the optical fiber, and the optical fiber is used to transmit the incident light to the light sensor, and the method includes:

[0006] Acquire the actual brightness detected by the light sensor;

[0007] Whether the light source to be tested is qualified is determined according to the relationship between the actual brightness and the standard brightness.

[0008] In one embodiment, the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness includes:

[0009] When the deviation value between the actual brightness and the standard brightness is less than or equal to a first preset deviation, it is determined that the light source to be tested is qualified.

[0010] In one embodiment, the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness further includes:

[0011] When the deviation between the actual brightness and the standard brightness is greater than a first preset deviation, adjusting the brightness control parameter of the light source to be measured so that the brightness of the light source to be measured changes toward the standard brightness;

[0012] When the number of times the brightness control parameter of the light source to be tested is adjusted is greater than a preset number of times, determining that the light source to be tested is unqualified;

[0013] When the number of times the brightness control parameter of the light source to be measured is adjusted is less than or equal to the preset number of times, the method returns to the step of obtaining the actual brightness detected by the light sensor.

[0014] In one embodiment, the step of adjusting the brightness control parameter of the light source to be measured so that the brightness of the light source to be measured changes toward the standard brightness includes:

[0015] When the actual brightness is greater than the standard brightness, adjusting the brightness control parameter to reduce the brightness of the light source to be measured;

[0016] When the actual brightness is less than the standard brightness, the brightness control parameter is adjusted to increase the brightness of the light source to be measured.

[0017] In one embodiment, the light source to be tested includes an LED lamp, and the brightness control parameter includes a duty cycle of a pulse modulation signal of the LED lamp;

[0018] The step of adjusting the brightness control parameter to reduce the brightness of the light source to be measured comprises: reducing the duty cycle;

[0019] The step of adjusting the brightness control parameter to increase the brightness of the light source to be measured includes: increasing the duty cycle.

[0020] In one embodiment, before the step of adjusting the brightness control parameter of the light source to be measured so that the brightness of the light source to be measured changes toward the standard brightness, the step further includes:

[0021] In the case where the deviation value is greater than the first preset deviation, a brightness adjustment parameter is determined according to the standard brightness, and the brightness change value of the light quantity to be measured corresponding to the brightness adjustment parameter is positively correlated with the standard brightness;

[0022] The brightness control parameter of the light source to be measured is adjusted according to the brightness adjustment parameter so that the brightness of the light source to be measured changes toward the standard brightness.

[0023] In one embodiment, after the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness, the method further includes:

[0024] When the light source to be tested is qualified, the target device where the light source to be tested is located is controlled to save the current brightness control parameters of the light source to be tested to form target control parameters, so that the target device controls the light source to be tested to reach the standard brightness according to the target control parameters.

[0025] In one embodiment, after the step of obtaining the actual brightness detected by the light sensor, the method further includes:

[0026] When the deviation between the actual brightness and the standard brightness is greater than a second preset deviation, determining that the type of the light source to be measured is inconsistent with the preset light source type corresponding to the standard brightness;

[0027] When the deviation value between the actual brightness and the standard brightness is less than or equal to the second preset deviation, the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness is performed.

[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a light source detection device, the light source detection device comprising:

[0029] Light sensor;

[0030] An optical fiber, the optical fiber being used to transmit incident light to the optical sensor;

[0031] A condenser, which is used to converge the light from the light source to be measured and make it incident on the optical fiber;

[0032] A control device, the light sensor is connected to the control device, the control device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program is configured to implement the steps of the light source detection method as described above.

[0033] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the light source detection method described above are implemented.

[0034] One or more technical solutions proposed in the present application have at least the following technical effects: the solution adds an optical fiber and a condenser in the light source detection device, and the light emitted by the light source to be measured is converged by the condenser and transmitted to the light sensor through the optical fiber. Compared with the method of directly placing the light sensor in the environment where the light source to be measured is located, it can effectively reduce light refraction and interference, and effectively reduce the deviation between the brightness detected by the light sensor and the actual luminous brightness of the light source to be measured, so as to ensure that the relationship between the actual brightness detected by the light sensor and the standard brightness can be used to accurately determine whether the light source to be measured is qualified, thereby effectively improving the accuracy of light source detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 This is a structural schematic diagram of an embodiment of a light source detection device of the present application;

[0038] Figure 2 A schematic diagram of the device structure of the hardware operating environment involved in the light source detection method in the embodiment of the present application;

[0039] Figure 3 A schematic diagram of a process flow provided for Embodiment 1 of the light source detection method of the present application;

[0040] Figure 4 A schematic diagram of the flow chart provided for the second embodiment of the light source detection method of the present application.

[0041] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0044] The main solution of the embodiment of the present application is: a light source detection method is proposed based on a light source detection device, the light source detection device includes an optical fiber, a light sensor and a condenser, the condenser is used to converge the light of the light source to be tested and incident on the optical fiber, the optical fiber is used to transmit the incident light to the light sensor, the method includes: obtaining the actual brightness detected by the light sensor; determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness.

[0045] In this embodiment, for the convenience of description, the light source detection device is used as the execution subject for explanation below.

[0046] In the prior art, generally, an ambient light sensor is placed directly in the environment where the product is located during the process of emitting light from the light source on the product, and the ambient light detected by the ambient light sensor is obtained as the actual brightness data of the light source. Different shapes and sizes of products and different positions of light sources or different relative positions between the sensor and the light source will cause light scattering and interference, resulting in a deviation between the brightness detected by the ambient light sensor and the actual brightness of the light source, thereby affecting the accuracy of light source detection.

[0047] The present application provides the above-mentioned solution, by adding an optical fiber and a condenser to the light source detection device, and converging the light emitted by the light source to be measured through the condenser and transmitting it to the light sensor through the optical fiber. Compared with the method of directly placing the light sensor in the environment where the light source to be measured is located, it can effectively reduce light refraction and interference, and effectively reduce the deviation between the brightness detected by the light sensor and the actual luminous brightness of the light source to be measured, thereby ensuring that the relationship between the actual brightness detected by the light sensor and the standard brightness can accurately determine whether the light source to be measured is qualified, thereby effectively improving the accuracy of light source detection.

[0048] The present application proposes a light source detection device. In this embodiment, the light source detection device is used to detect LED lights installed on electronic devices. In other embodiments, the light source detection device can also detect other light sources besides LED lights, such as tungsten filament lamps.

[0049] In this embodiment, refer to Figure 1 and Figure 2 The light source detection device includes a control device 100, an optical fiber 200, a light sensor 300 and a condenser 400. The condenser 400 is used to converge the light of the light source 600 to be measured and make it incident on the optical fiber 200, and the optical fiber 200 is used to transmit the incident light to the light sensor 300.

[0050] In this embodiment, the condenser 400 is a convex lens, the incident end of the optical fiber 200 is arranged at the focus of one side of the convex lens, and the light source 600 to be measured can be placed on the other side of the convex lens, and the object distance is greater than the focal length of the convex lens. In other embodiments, the condenser 400 can also be other optical devices with a focusing function.

[0051] In this embodiment, the emission end of the optical fiber 200 is arranged toward the photosensitive area on the optical sensor 300 .

[0052] Among them, refer to Figure 1 The light source detection device may further include a shell 500, in which a receiving cavity is provided. The control device 100, the optical fiber 200, the optical sensor 300 and the condenser 400 are all provided in the receiving cavity. The receiving cavity is used to receive the light source 600 to be tested and the electronic device on which it is located. During the test process, the receiving cavity is isolated from the outside to prevent the external ambient light from affecting the test result of the light source 600 to be tested.

[0053] A light source detection device proposed in this embodiment adds an optical fiber and a condenser on the basis of setting a light sensor. The light emitted by the light source 600 to be tested is converged by the condenser and transmitted to the light sensor through the optical fiber. Compared with the method of directly placing the light sensor in the environment where the light source 600 to be tested is located, it can effectively reduce light refraction and interference, and effectively reduce the deviation between the brightness detected by the light sensor and the actual luminous brightness of the light source 600 to be tested, and ensure that the relationship between the actual brightness detected by the light sensor and the standard brightness can accurately determine whether the light source 600 to be tested is qualified, thereby effectively improving the accuracy of light source detection.

[0054] Reference Figure 2 , the control device 100 is connected in communication with the light sensor 300, and the control device 100 can obtain the data detected by the light sensor 300. The control device 100 includes: at least one processor 1001; and a memory 1002 connected in communication with the at least one processor 1001, and a timer 1003, etc.; wherein the memory 1002 stores instructions that can be executed by the at least one processor 1001, and the instructions are executed by the at least one processor 1001, so that the at least one processor 1001 can execute the light source detection method in the following embodiment.

[0055] Reference below Figure 2, which shows a schematic diagram of the structure of the control device 100 suitable for implementing the embodiment of the present application. The light source detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 2 The control device 100 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0056] like Figure 2 As shown, the control device 100 may include a processor 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the memory 1002, where the program in the memory 1002 may be a program in a read-only memory (ROM) or a program loaded from a storage device to a random access memory (RAM). In the RAM, various programs and data required for the operation of the control device 100 are also stored. The processor 1001 and the memory 1002 (ROM and RAM) are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus. Generally, the following systems can be connected to the I / O interface: input devices such as a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices such as a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices such as a tape, a hard disk, etc.; and communication devices. The communication device can allow the control device 100 to communicate with other devices wirelessly or by wire to exchange data. Although the control device 100 is shown with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.

[0057] In particular, according to the embodiments disclosed in the present application, the method flow described in the following embodiments can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from the memory 1002. When the computer program is executed by the processor 1001, the above functions defined in the light source detection method of the embodiment disclosed in the present application are executed.

[0058] The light source detection device provided by the present application adopts the light source detection method in the following embodiment, which can solve the technical problem of how to improve the accuracy of light source detection. Compared with the prior art, the beneficial effects of the light source detection device provided by the present application are the same as the beneficial effects of the light source detection method provided in the following embodiment, and other technical features in the light source detection device are the same as the features disclosed in the following embodiment method, which will not be repeated here.

[0059] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a light source detection device, etc. The following takes the light source detection device as an example to illustrate this embodiment and the following embodiments.

[0060] Based on this, the present application embodiment provides a light source detection method, referring to Figure 3 , Figure 3 This is a flow chart of the first embodiment of the light source detection method of the present application.

[0061] In this embodiment, the light source detection method includes steps S10 to S20:

[0062] Step S10, obtaining the actual brightness detected by the light sensor;

[0063] When the light source to be tested is located at the target test position, the light source to be tested can be controlled to emit light according to the preset brightness control parameters. The light emission control of the light source to be tested can be controlled by the light source detection device by sending a signal to the electronic device where the light source to be tested is located, or by the light source detection device directly connecting to the light source to be tested and sending a control signal for control.

[0064] When the light source to be tested is located at the target test position and is in a light-emitting state, the data detected by the light sensor can be obtained to obtain the actual brightness here. The actual brightness detected by the light sensor can be considered as the current light-emitting brightness of the light source to be tested.

[0065] In this embodiment, the light source to be tested is an LED lamp. In other embodiments, the light source to be tested may also be other types of light sources, such as a tungsten filament lamp.

[0066] Step S20, determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness.

[0067] The standard brightness is a preset target brightness that needs to be achieved when the light source to be tested emits light. It can be a preset fixed parameter, or it can be determined by obtaining the light source type of the light source to be tested, the installation position on the electronic device, and the prompt function.

[0068] Determine whether the light source to be tested is qualified based on the size relationship or quantitative relationship (difference or ratio, etc.) between the actual brightness and the standard brightness.

[0069] In one implementation, when the deviation value between the actual brightness and the standard brightness is less than or equal to the first preset deviation, the light source to be tested is determined to be qualified; when the deviation value between the actual brightness and the standard brightness is greater than the first preset deviation, the light source to be tested is determined to be unqualified. The deviation value here is the absolute value of the difference between the actual brightness and the standard brightness. Based on this, it is ensured that the actual luminous brightness of the qualified light source to be tested can accurately match the standard brightness.

[0070] In another implementation, when the actual brightness is greater than or equal to the standard brightness, the light source to be tested is determined to be qualified; when the actual brightness is less than the standard brightness, the light source to be tested is determined to be unqualified. Based on this, it can be ensured that the actual luminous brightness of the qualified light source to be tested will not be too dim and can reach above the standard brightness.

[0071] This embodiment provides a light source detection method based on the above light source detection device, and determines whether the light source to be tested is qualified by the relationship between the actual brightness detected by the above light source detection device and the standard brightness, thereby effectively improving the accuracy of the test of the light source to be tested.

[0072] Based on any of the above embodiments, in the second embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 4 , step S20 further includes:

[0073] Step S21, determining whether a deviation value between the actual brightness and the standard brightness is less than or equal to a first preset deviation;

[0074] When the deviation between the actual brightness and the standard brightness is less than or equal to the first preset deviation, step S22 is performed; when the deviation between the actual brightness and the standard brightness is greater than the first preset deviation, steps S23 and S24 are performed;

[0075] Step S22, determining whether the light source to be tested is qualified;

[0076] Step S23, adjusting the brightness control parameters of the light source to be tested so that the brightness of the light source to be tested changes toward the standard brightness;

[0077] When the actual brightness is greater than the standard brightness, the brightness control parameter is adjusted to reduce the brightness of the light source to be measured; when the actual brightness is less than the standard brightness, the brightness control parameter is adjusted to increase the brightness of the light source to be measured.

[0078] When adjusting the brightness control parameter, the adjustment parameter may be a preset fixed parameter, or a parameter determined according to an actual test state. For example, the adjustment parameter may be determined according to a deviation value between the actual brightness and the standard brightness.

[0079] In this embodiment, the light source to be tested is an LED lamp, and the brightness control parameter includes the duty cycle of the pulse modulation signal of the LED lamp. When the actual brightness is greater than the standard brightness, the duty cycle is reduced; when the actual brightness is less than the standard brightness, the duty cycle is increased.

[0080] Step S24, determining whether the number of times the brightness control parameter of the light source to be tested is adjusted is greater than a preset number;

[0081] When the adjustment times of the brightness control parameter of the light source to be measured is greater than the preset times, step S25 is executed; when the adjustment times of the brightness control parameter of the light source to be measured is less than or equal to the preset times, the process returns to step S10.

[0082] The preset number of times may be a preset fixed number of times, or may be determined according to the type of the light source to be measured and the installation position of the light source to be measured on the target device where the light source is located.

[0083] Step S25, determining that the light source to be tested is unqualified.

[0084] In this embodiment, when the actual brightness of the light source to be tested deviates greatly from the standard brightness, the light source is not directly judged as unqualified. Instead, the brightness of the light source is adjusted by adjusting the brightness control parameters to see whether the actual brightness can reach the standard brightness by adjusting the control parameters within a certain adjustment number range. If it can, it is judged as qualified, and if not, it is judged as unqualified. Based on this, the influence of individual differences in process, materials, etc. on the test results is effectively avoided, which is conducive to further improving the accuracy of light source testing.

[0085] In other embodiments, the light source to be tested includes a tungsten filament lamp, etc., and the brightness control parameter may include voltage and / or resistance, etc.

[0086] In a feasible implementation, before the step of adjusting the brightness control parameters of the light source to be measured so that the brightness of the light source to be measured changes toward the standard brightness, it also includes: when the deviation value is greater than the first preset deviation, determining a brightness adjustment parameter according to the standard brightness, the brightness change value of the light quantity to be measured corresponding to the brightness adjustment parameter is positively correlated with the standard brightness; adjusting the brightness control parameters of the light source to be measured according to the brightness adjustment parameter so that the brightness of the light source to be measured changes toward the standard brightness.

[0087] The brightness adjustment parameter is the adjustment amplitude when increasing or decreasing the brightness control parameter.

[0088] In this embodiment, the greater the standard brightness, the greater the brightness change value corresponding to the brightness adjustment parameter; and the smaller the standard brightness, the smaller the brightness change value corresponding to the brightness adjustment parameter.

[0089] The brightness adjustment parameter is determined according to the interval in which the standard brightness is located, or the brightness adjustment parameter is calculated by substituting the standard brightness into a formula.

[0090] The brightness adjustment parameter may include the adjustment value of the duty cycle corresponding to the above-mentioned LED light. For example, when the standard brightness is in the first brightness range, the brightness control parameter of the light source to be tested is adjusted with the first brightness adjustment parameter; when the standard brightness is in the second brightness range, the brightness control parameter of the light source to be tested is adjusted with the second brightness adjustment parameter, and the brightness in the first brightness range is greater than the brightness in the second brightness range, then the brightness change value corresponding to the first brightness adjustment parameter is greater than the brightness change value corresponding to the second brightness adjustment parameter.

[0091] In this embodiment, the above method is helpful to adapt to the actual lighting requirements of the light source to be tested for brightness calibration, ensuring that originally qualified products will not fail the test results due to excessive brightness adjustment. Based on this, it is helpful to further improve the accuracy of light source testing.

[0092] Based on any of the above embodiments, in this embodiment, after the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness, it also includes: when the light source to be tested is qualified, controlling the target device where the light source to be tested is located to save the current brightness control parameters of the light source to be tested to form target control parameters, so that the target device controls the light source to be tested to achieve the standard brightness when it is lit according to the target control parameters.

[0093] The step of controlling the target device where the light source to be tested is located to save the current brightness control parameters of the light source to be tested to form target control parameters includes: sending qualified information corresponding to the light source to be tested to the target device, so that after the target device receives the qualified information, it saves the current brightness control parameters of the light source to be tested to a preset area to form target control parameters, and when the target device needs to light up the light source to be tested subsequently, it can control the light source to be tested to emit light according to the target control parameters, and the brightness of the light source to be tested can reach the standard brightness.

[0094] In this embodiment, the above method can ensure that the brightness of the light source to be tested after test and calibration can accurately reach the standard brightness when emitting light, and accurately meet the product use requirements of the target device.

[0095] Based on any of the above embodiments, in this embodiment, after the step of obtaining the actual brightness detected by the light sensor, it also includes: when the deviation value between the actual brightness and the standard brightness is greater than a second preset deviation, determining that the type of the light source to be tested is inconsistent with the preset light source type corresponding to the standard brightness; when the deviation value between the actual brightness and the standard brightness is less than or equal to the second preset deviation, executing the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness.

[0096] The second preset deviation is greater than the first preset deviation.

[0097] For example, when the preset light source type is LED light, but the actual light source to be tested is tungsten filament lamp, the deviation between the brightness actually detected by the light sensor and the standard brightness will be abnormally large. At this time, it can be considered that the current light source to be tested is not the light source required for testing.

[0098] In this embodiment, through the above method, it is possible to preliminarily identify whether the type of the light source to be tested is the type of light source that needs to be tested, thereby reducing the abnormality of the detection results caused by the inconsistency between the type of the light source to be tested and the preset light source type corresponding to the standard brightness, which is conducive to further improving the accuracy of the light source test.

[0099] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the light source detection method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0100] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the light source detection method in the above-mentioned embodiment.

[0101] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0102] The computer-readable storage medium may be included in the light source detection device; or may exist independently without being assembled into the light source detection device.

[0103] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the light source detection device, the light source detection device executes the following process: obtaining the actual brightness detected by the light sensor; and determining whether the light source to be tested is qualified based on the relationship between the actual brightness and the standard brightness.

[0104] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0105] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned light source detection method, and can solve the technical problem of how to improve the accuracy of light source detection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the light source detection method provided by the above-mentioned embodiment, and will not be repeated here.

[0106] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0107] It should be understood that the various parts disclosed in the present application can be implemented by hardware, software, firmware or a combination thereof. The modules described in the embodiments of the present application can be implemented by software or by hardware. The name of the module does not constitute a limitation on the unit itself under certain circumstances. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0108] The above description is only part of the embodiments of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A light source detection method, characterized in that: Applied to a light source detection device, the light source detection device includes an optical fiber, a light sensor and a condenser, the condenser is used to converge the light of the light source to be measured and make it incident on the optical fiber, and the optical fiber is used to transmit the incident light to the light sensor, the method includes: Acquire the actual brightness detected by the light sensor; Whether the light source to be tested is qualified is determined according to the relationship between the actual brightness and the standard brightness.

2. The method according to claim 1, characterized in that The step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness comprises: When the deviation value between the actual brightness and the standard brightness is less than or equal to a first preset deviation, it is determined that the light source to be tested is qualified.

3. The method according to claim 1, characterized in that The step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness also includes: When the deviation between the actual brightness and the standard brightness is greater than a first preset deviation, adjusting the brightness control parameter of the light source to be measured so that the brightness of the light source to be measured changes toward the standard brightness; When the number of times the brightness control parameter of the light source to be tested is adjusted is greater than a preset number of times, determining that the light source to be tested is unqualified; When the number of times the brightness control parameter of the light source to be measured is adjusted is less than or equal to the preset number of times, the method returns to the step of obtaining the actual brightness detected by the light sensor.

4. The method according to claim 3, characterized in that The step of adjusting the brightness control parameter of the light source to be tested so that the brightness of the light source to be tested changes toward the standard brightness comprises: When the actual brightness is greater than the standard brightness, adjusting the brightness control parameter to reduce the brightness of the light source to be measured; When the actual brightness is less than the standard brightness, the brightness control parameter is adjusted to increase the brightness of the light source to be measured.

5. The method according to claim 4, characterized in that The light source to be tested includes an LED lamp, and the brightness control parameter includes a duty cycle of a pulse modulation signal of the LED lamp; The step of adjusting the brightness control parameter to reduce the brightness of the light source to be measured comprises: reducing the duty cycle; The step of adjusting the brightness control parameter to increase the brightness of the light source to be measured includes: increasing the duty cycle.

6. The method according to claim 3, characterized in that Before the step of adjusting the brightness control parameter of the light source to be tested so that the brightness of the light source to be tested changes toward the standard brightness, the step further includes: In the case where the deviation value is greater than the first preset deviation, a brightness adjustment parameter is determined according to the standard brightness, and the brightness change value of the light quantity to be measured corresponding to the brightness adjustment parameter is positively correlated with the standard brightness; The brightness control parameter of the light source to be measured is adjusted according to the brightness adjustment parameter so that the brightness of the light source to be measured changes toward the standard brightness.

7. The method according to any one of claims 1 to 6, characterized in that After the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness, the method further includes: When the light source to be tested is qualified, the target device where the light source to be tested is located is controlled to save the current brightness control parameters of the light source to be tested to form target control parameters, so that the target device controls the light source to be tested to reach the standard brightness according to the target control parameters.

8. The method according to any one of claims 1 to 6, characterized in that After the step of obtaining the actual brightness detected by the light sensor, the method further includes: When the deviation between the actual brightness and the standard brightness is greater than a second preset deviation, determining that the type of the light source to be measured is inconsistent with the preset light source type corresponding to the standard brightness; When the deviation value between the actual brightness and the standard brightness is less than or equal to the second preset deviation, the step of determining whether the light source to be tested is qualified according to the relationship between the actual brightness and the standard brightness is performed.

9. A light source detection device, characterized in that: The light source detection device comprises: Light sensor; An optical fiber, the optical fiber being used to transmit incident light to the optical sensor; A condenser, which is used to converge the light from the light source to be measured and make it incident on the optical fiber; A control device, the light sensor is connected to the control device, the control device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program is configured to implement the steps of the light source detection method as described in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the light source detection method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Sapphire diaphragm light transmission detection data processing method

    CN119492714A

  • Pipeline calibration system and pipeline calibration method

    CN120927255A