Illumination module light cone generation method and electronic equipment

By configuring multiple light screens in the lighting module analysis system, and automatically determining the optical boundary line to generate module light cones is solved, the problems of frequent manual operations and low accuracy in the prior art are solved, and efficient and accurate module light cone generation is achieved.

CN120379098APending Publication Date: 2025-07-25MIND ELECTRONICS APPLIANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510419568.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The generation process of light cone in existing lighting modules requires manual participation, and the operation is frequent, the accuracy is low and time-consuming, which affects the generation efficiency and accuracy.

Method used

By configuring multiple light screens in the lighting module analysis system, using light sensors to obtain light-type images, automatically determine the light-type boundary line, and generate the module light cone to avoid manual operation.

Benefits of technology

It improves the generation efficiency and accuracy of the module light cone, and improves the accuracy and efficiency of lighting module adaptability analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120379098A_ABST
    Figure CN120379098A_ABST
Patent Text Reader

Abstract

The invention relates to an illumination module light cone generation method and electronic equipment, the illumination module light cone generation method is applied to an illumination module analysis system, the system is provided with a plurality of light screens, the light screens are sequentially arranged at intervals in the light emitting direction of an illumination module, and therefore a structural foundation is laid for obtaining the module light cone. During implementation, a light cone generation instruction can be responded to, and light pattern images of light emitted by a lighting module on a plurality of light screens are obtained; determining the boundary line of the light pattern in each light pattern image; and generating a module light cone of the illumination module based on the boundary line of each light pattern. Therefore, the module light cone can be automatically generated without manual operation, the generation efficiency of the module light cone is improved, and the accuracy of the module light cone is greatly improved by utilizing the light types of the light screens projected by the illumination module at different positions in the light emitting direction and determining the boundary lines of the light cones at the positions of the light screens. And a foundation is laid for improving the accuracy and efficiency of adaptability analysis of the illumination module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting technology, and particularly to a method for generating a light cone of a lighting module and an electronic device. Background Art

[0002] With the rapid development of intelligent transportation systems, the safety and reliability of vehicles have received more and more extensive attention. Among them, as an important component to ensure the safety and reliability of vehicles, the compatibility analysis between the lighting module and the vehicle is particularly important. And generating the light cone of the lighting module is an important step in the compatibility analysis. Improving the accuracy and efficiency of its generation is of great significance for improving the accuracy and efficiency of the compatibility analysis of the lighting module. Summary of the Invention

[0003] In view of this, this application is committed to providing a method for generating a light cone of a lighting module and an electronic device, which can effectively improve the accuracy and efficiency of the module light cone, thus laying a foundation for improving the accuracy and efficiency of the compatibility analysis of the lighting module.

[0004] The first aspect of this application provides a method for generating a light cone of a lighting module, which is applied to a lighting module analysis system. The lighting module analysis system is configured with a plurality of light screens, and the plurality of light screens are arranged at intervals in the light emitting direction of the lighting module; the method includes:

[0005] In response to a light cone generation instruction, obtain the light pattern images of the light emitted by the lighting module on the plurality of light screens;

[0006] Determine the boundary lines of the light patterns in each of the light pattern images;

[0007] Generate the module light cone of the lighting module based on the boundary lines of each of the light patterns.

[0008] Optionally, the light screen is configured with a light sensor;

[0009] The obtaining the light pattern images of the light emitted by the lighting module on the plurality of light screens includes:

[0010] Use each of the light sensors to obtain the light information on the corresponding light screen;

[0011] Generate the light pattern image on the light screen based on the light information.

[0012] Optionally, the determining the boundary lines of the light patterns in each of the light pattern images includes:

[0013] For each of the light screens, determine the center point of the light screen, and based on a preset coordinate system and a preset boundary value range, determine a first boundary point and a second boundary point of the light pattern in the X-axis direction, and a third boundary point and a fourth boundary point in the Y-axis direction; the preset coordinate system uses the plane where the light screen is located as the coordinate plane and the center point as the coordinate origin;

[0014] Based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, determine all boundary points of the light pattern, and connect all the determined boundary points in sequence end to end to obtain the boundary line of the light pattern on each of the light screens.

[0015] Optionally, the determining all boundary points of the light pattern based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point includes:

[0016] Determine a point-finding step value according to the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point;

[0017] Based on the preset boundary value range and the point-finding step value, with any one of the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point as the starting boundary point, determine each boundary point of the light pattern from the starting boundary point along the target direction to obtain all boundary points of the light pattern; the target direction includes the clockwise direction or the counterclockwise direction.

[0018] Optionally, the determining each boundary point of the light pattern from the starting boundary point along the target direction based on the preset boundary value range and the point-finding step value includes:

[0019] With the point-finding step value as the interval, determine a first first detection point of the starting boundary point in the first direction, and based on the first first detection point and the preset boundary value range, perform boundary point detection to determine a first target point; the first direction is the direction of the target direction at the starting boundary point;

[0020] With the point-finding step value as the interval, determine a second first detection point of the first target point in the second direction, and based on the second first detection point and the preset boundary value range, perform the boundary point detection to determine a second target point; the second direction is the direction from the previous target point to the current target point;

[0021] Taking the point finding step value as the interval, determine the third first detection point of the second target point in the second direction, and based on the third first detection point and the preset boundary value range, perform the boundary point detection to determine the third target point, and detect whether the distance between the third target point and the starting boundary point is less than the point finding step value; if the distance between the third target point and the starting boundary point is greater than or equal to the point finding step value, continue to take the point finding step value as the interval, determine the fourth first detection point of the third target point in the second direction, and based on the fourth first detection point and the preset boundary value range, perform the boundary point detection to determine the fourth target point until the distance between the current target point and the starting boundary point is less than the point finding step value; each of the target points is a point that satisfies the preset boundary value range.

[0022] Determine all the determined target points as the boundary points of the light pattern along the target direction from the starting boundary point.

[0023] Optionally, the process of the boundary point detection includes:

[0024] The current detection point is the nth detection point. If the illuminance value of the nth detection point is within the preset boundary value range, determine the nth detection point as the current target point; if the illuminance value of the nth detection point is higher than the preset boundary value range, determine the first target arc, and determine the midpoint of the first target arc as the (n + 1)th detection point; the first target arc is a quarter circle arc determined with the nth detection point as the arc starting point and the point finding step value as the radius in the direction away from the center point; if the illuminance value of the nth detection point is lower than the preset boundary value range, determine the second target arc, and determine the midpoint of the second target arc as the (n + 1)th detection point, the second target arc is a quarter circle arc determined with the starting boundary point as the center and the point finding step value as the radius in the direction pointing to the center point; take the (n + 1)th detection point as the current detection point and continue the boundary point detection until the illuminance value of the current detection point is within the preset boundary value range, and determine the current detection point as the current target point.

[0025] Optionally, the determination of the first target arc includes:

[0026] Detect whether the central angle of the first target arc is less than the preset angle; if the central angle of the first target arc is greater than or equal to the preset angle, continue to execute the step of determining the midpoint of the first target arc as the (n + 1)th detection point; if the central angle of the first target arc is less than the preset angle, adjust the current arc radius R to m*R, and re - execute the step of determining the first target arc; m is a positive number less than 1.

[0027] The step of determining the second target arc comprises:

[0028] Check whether the center angle of the second target arc is less than a preset angle; if the center angle of the second target arc is greater than or equal to the preset angle, continue to execute the step of determining the midpoint of the second target arc as the n+1th detection point; if the center angle of the second target arc is less than the preset angle, adjust the current arc radius R to m*R, and re-execute the step of determining the second target arc.

[0029] Optionally, the step of connecting all the determined boundary points end to end in order to obtain the boundary line of the light pattern on the light screen comprises:

[0030] Connect all the determined boundary points end to end in order to obtain the initial boundary line of the light type;

[0031] The initial boundary line is smoothed to obtain the boundary line.

[0032] Optionally, the step of connecting all the determined boundary points end to end in order to obtain the boundary line of the light pattern on the light screen comprises:

[0033] Based on the target direction, the spacing judgment optimization is performed on each boundary point of the light type in turn, and each boundary point of the light type remaining after the optimization is connected end to end according to the target direction to obtain the boundary line of the light type on the light screen; the target direction includes a clockwise direction or a counterclockwise direction;

[0034] The process of optimizing the spacing judgment includes:

[0035] Determine that the current boundary point is the tth boundary point, and determine whether there is a target boundary point whose distance from the tth boundary point is less than or equal to a preset distance; the target boundary point is a boundary point whose number of boundary points between the target boundary point and the tth boundary point is greater than or equal to a preset number; the preset distance includes the product of the point search step value and 1 / 2 of the preset number;

[0036] If there is a distance between the target boundary point and the tth boundary point that is less than or equal to the preset distance, the target boundary point whose distance to the tth boundary point is less than or equal to the preset distance is determined as a problem boundary point, and all boundary points of the light pattern in the target direction between the tth boundary point and the problem boundary point are eliminated, and the remaining boundary points of the light pattern are retained.

[0037] A second aspect of the present application provides an electronic device, including:

[0038] A processor and a memory connected to the processor;

[0039] The memory is used to store a computer program;

[0040] The processor is used to call and execute the computer program in the memory to execute the method for generating the light cone of the lighting module as described in the first aspect of the present application.

[0041] The third aspect of the present application provides a lighting module analysis system, including the electronic device as described in the second aspect of the present application.

[0042] In the solution of the present application, the lighting module analysis system is configured with a plurality of light screens, and the plurality of light screens are arranged at intervals in the light emitting direction of the lighting module, thus laying a structural foundation for obtaining the module light cone. During implementation, in response to a light cone generation instruction, the light pattern images of the light emitted by the lighting module on the plurality of light screens can be obtained; then, the boundary lines of the light patterns in each light pattern image can be determined; based on the boundary lines of each light pattern, the module light cone of the lighting module can be generated. In this way, the module light cone can be automatically generated without manual operation, improving the generation efficiency of the module light cone. Moreover, by using the light patterns of the lighting module projected on the light screens at different positions in the light emitting direction to determine the boundary lines of the light cone at the positions of the light screens, the accuracy of the module light cone is greatly improved, thereby laying a foundation for improving the accuracy and efficiency of the lighting module adaptability analysis. Description of the Drawings

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0044] Figure 1 It is a schematic structural diagram of a lighting module analysis system provided by an embodiment of the present application.

[0045] Figure 2 It is a schematic flowchart of a method for generating a light cone of a lighting module provided by an embodiment of the present application.

[0046] Figure 3 It is a schematic diagram of a process for generating a light cone of a lighting module provided by an embodiment of the present application.

[0047] Figure 4 It is a schematic flowchart of a method for generating a light cone of a lighting module provided by another embodiment of the present application.

[0048] Figure 5It is a schematic diagram of a light type image provided by an embodiment of the present application.

[0049] Figure 6 It is a schematic diagram of the light patterns of high beam and low beam provided by an embodiment of the present application.

[0050] Figure 7 It is a schematic diagram of the process of determining a target point in a method for generating a light cone of an illumination module provided by an embodiment of the present application.

[0051] Figure 8 It is a schematic diagram of the process of reducing the arc radius in a method for generating a light cone of an illumination module provided by an embodiment of the present application.

[0052] Figure 9 It is a schematic diagram of the shapes of a depression and a convex tip provided by an embodiment of the present application.

[0053] Figure 10 It is a schematic diagram of the process of optimizing the pitch judgment in a method for generating a light cone of an illumination module provided by an embodiment of the present application.

[0054] Figure 11 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0055] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0056] Currently, in automotive combination headlamps, light-emitting diode (LED) high and low beam illumination modules are increasingly widely used. To improve product competitiveness and reduce R & D, design, and manufacturing costs, the standardization of illumination modules has received more and more attention and promotion. Conducting a compatibility analysis of the illumination module is an important means to achieve the standardization of the illumination module.

[0057] In practical applications, when conducting a compatibility analysis of the illumination module, it is necessary to perform module light interference analysis on the illumination module during the overall lamp styling design stage. However, it takes a long time to generate module light for the illumination module, and it takes too much time to perform module light interference analysis. Therefore, the module light cone can be generated to replace the module light for preliminary interference analysis to reduce the analysis time and improve the analysis efficiency.

[0058] However, the inventor's research found that in the process of generating the light cone of the existing lighting module, manual participation is still required in the generation process, such as manually adjusting the angle, manually defining the light pattern boundary value, and manually selecting the range, etc. This not only involves frequent operations, low accuracy, but also consumes a long time, affecting the generation efficiency and accuracy of the light cone of the lighting module.

[0059] For this reason, the embodiments of the present application provide a method for generating a light cone of a lighting module. This method can be applied to a lighting module analysis system, such as Figure 1 As shown, the lighting module analysis system is configured with a plurality of light screens P, and the plurality of light screens P are arranged at intervals in sequence in the light output direction F of the lighting module T.

[0060] The lighting module may include a lens module. When arranging the light screens, the center point of the outer surface of the outer lens of the lens module can be used as the starting point, and along the light output direction F, light screens can be created at positions with different distances from the center point respectively, thus laying a structural foundation for obtaining the boundary lines of the module light cones at the corresponding positions.

[0061] In implementation, the number of light screens can be 9. Along the light output direction F, light screens can be created at positions 3mm, 40mm, 80mm, 120mm, 160mm, 200mm, 240mm, 280mm, and 320mm away from the center point respectively, so as to obtain 9 light screens arranged at intervals in sequence in the light output direction F, laying a structural foundation for obtaining the boundary lines of the 9 module light cones located at the positions where the light screens are located.

[0062] It should be noted that in the embodiments of the present application, only the case where the number of light screens can be 9 is taken as an example for illustration, but the present application is not limited to this. In some other implementation manners, the number of light screens can also be other numbers, such as 7, 12, etc., which can be specifically set according to actual needs.

[0063] Specifically, as Figure 2 shown, the method for generating a light cone of a lighting module may at least include the following implementation steps:

[0064] S201. In response to a light cone generation instruction, obtain the light pattern images of the light emitted by the lighting module on a plurality of light screens.

[0065] The light cone generation instruction can be an instruction issued by the user based on the analysis requirement to generate the light cone of the lighting module. During implementation, taking the execution on the electronic device side as an example, the user can send the light cone generation instruction to the electronic device side through the client according to the analysis requirement, or the user can issue the light cone generation instruction based on the interactive interface on the electronic device side. Correspondingly, after obtaining the light cone generation instruction, the electronic device side can detect whether the lighting module is already turned on. If the lighting module is in the on state, it can directly obtain the light pattern images of the light emitted by the lighting module on multiple light screens; if the lighting module is not in the on state, it can turn on the lighting module to make it in the on state and then obtain the light pattern images of the light emitted by the lighting module on multiple light screens.

[0066] It should be understood that in the light pattern image, the boundary line of the light pattern is the boundary line of the module light cone at the corresponding position on the light screen.

[0067] Obtaining the light pattern images of the light emitted by the lighting module on multiple light screens provides a basis for subsequently obtaining the boundary line of the module light cone at the corresponding position.

[0068] S202. Determine the boundary lines of the light patterns in each light pattern image.

[0069] Among them, the boundary lines of the light patterns in each light pattern image can be extracted to obtain the boundary lines of each light pattern, that is, the boundary lines of the module light cone at the corresponding position on the light screen, which further provides a basis for obtaining the module light cone of the lighting module.

[0070] When extracting the boundary lines of the light patterns, the boundary lines of the light patterns in each light pattern image can be obtained by using image processing methods, such as edge detection methods, deep learning methods, etc.

[0071] S203. Generate the module light cone of the lighting module based on the boundary lines of each light pattern.

[0072] When generating the module light cone of the lighting module based on the boundary lines of each light pattern, as Figure 3 shown, the plane where the light screen is located can be used as the coordinate plane, and the center point of the light screen can be used as the coordinate origin to construct a plane coordinate system, and the intersection points of the plane coordinate system and the boundary lines J of each light pattern are determined. Among them, there are 4 intersection points of the boundary line of each light pattern and the plane coordinate system, which are respectively located on the positive X-axis direction, negative X-axis direction, positive Y-axis direction, and negative Y-axis direction of the plane coordinate system. Based on this, for the intersection points of each light pattern located on the positive X-axis direction, they can be sequentially connected based on the light emission direction F to obtain the first guiding line ( Figure 3 shown as J1); similarly, for the intersection points on the negative X-axis direction, positive Y-axis direction, and negative Y-axis direction, they can be sequentially connected based on the light emission direction to obtain the second guiding line ( Figure 3 shown as J2), the third guiding line (Figure 3 The third guiding line (not shown) and the fourth guiding line. In this way, by bridging with 4 guiding lines and multiple boundary lines, a module light cone can be generated.

[0073] For example, Figure 3 As shown, when the number of light screens is 9, 4 guiding lines and 9 boundary lines can be obtained, and then the 4 guiding lines and 9 boundary lines can be bridged to generate a module light cone.

[0074] In this embodiment, the illumination module analysis system is configured with multiple light screens, and the multiple light screens are arranged at intervals in the light-emitting direction of the illumination module, thus laying a structural foundation for obtaining the module light cone. During implementation, in response to a light cone generation instruction, the light pattern images of the light emitted by the illumination module on the multiple light screens can be obtained; then, the boundary lines of the light patterns in each light pattern image can be determined; based on the boundary lines of each light pattern, the module light cone of the illumination module can be generated. In this way, the module light cone can be automatically generated without manual operation, improving the generation efficiency of the module light cone. Moreover, by using the light patterns of the illumination module projected on the light screens at different positions in the light-emitting direction to determine the boundary lines of the light cone at the positions of the light screens, the accuracy of the generated module light cone is greatly improved, thereby laying a foundation for improving the accuracy and efficiency of the illumination module adaptability analysis.

[0075] In some embodiments, in order to obtain accurate light pattern images, the light screens can be configured with light sensors; correspondingly, when obtaining the light pattern images of the light emitted by the illumination module on the multiple light screens, the light information on the corresponding light screens can be obtained by using each light sensor; based on the light information, the light pattern images on the light screens can be generated.

[0076] Among them, the light information can include brightness, RGB (red, green, blue) values, wavelength, etc. During implementation, the position of the light sensor can be set according to actual needs, and no specific limitation is made here.

[0077] When generating the light pattern images on the light screens based on the light information, the light information can be stored in a file in a preset format to obtain the light pattern images. Specifically, the preset format can be the XMP file format. The light pattern images stored in the XMP file format can be convenient for reading, thus providing convenience for subsequent determination of the boundary lines of the light patterns.

[0078] In some embodiments, when determining the boundary lines of the light patterns in each light pattern image, as Figure 4 shown, it can at least include the following steps:

[0079] S2021. For each light screen, determine the center point of the light screen, and based on a preset coordinate system and a preset boundary value range, determine the first boundary point and the second boundary point of the light pattern in the X-axis direction, and the third boundary point and the fourth boundary point in the Y-axis direction; the preset coordinate system takes the plane where the light screen is located as the coordinate plane and the center point as the coordinate origin.

[0080] Among them, the preset boundary value range refers to the boundary value range of the light pattern at each light screen. Correspondingly, the preset boundary value range is different when the distance between the light screen and the lighting module is different.

[0081] During implementation, different preset boundary value ranges can be set for the light screens at different positions, that is, the corresponding relationship between the preset boundary value range and the light screens at different positions is constructed in advance.

[0082] When the lighting module generates the module light cone, considering the referability of the module light cone, the boundary limit value of the module light cone of the lighting module can be defined as 0.1 lx (that is, the illuminance value when the lighting module projects to 25 m as shown in Figure 1 ), because the distances between the light screens and the lighting module are different, so the boundary values of the light patterns on different light screens are different. The illuminance value of 0.1 lx and the distance of 25 m are converted to the luminous intensity I = 0.1 * 25 2 = 62.5 cd, and the luminous intensity at the boundary of the module light cone is consistent, that is, the luminous intensity at the boundary of the light pattern on different light screens is consistent. It can be seen that the luminous intensity has nothing to do with the distance. Therefore, based on the same luminous intensity of 62.5 cd, the corresponding light pattern boundary values (i.e., illuminance) on 9 light screens can be determined. Specifically, the corresponding relationship of different light pattern boundary values is shown in Table 1.

[0083] Table 1 Corresponding relationship table of different light pattern boundary values

[0084]

[0085] It can be seen from Table 1 that M1 = 6944444 lx, M2 = 39062 lx, M3 = 9765 lx, M4 = 4340 lx, M5 = 1898 lx, M6 = 1562 lx, M7 = 1085 lx, M8 = 797 lx, M9 = 610 lx.

[0086] Furthermore, the preset boundary value range can be determined according to the light pattern boundary value. Specifically, the preset boundary value range can be (M - Δx, M + Δx), where M is the light pattern boundary value corresponding to the preset boundary value range, and Δx is the error value. The error value can be set according to actual needs and is not specifically limited here. For example, the error value can be 2% * M.

[0087] Taking the high beam light pattern as an example, when determining the first boundary point and the second boundary point of the light pattern in the X-axis direction, and the third boundary point and the fourth boundary point in the Y-axis direction based on the preset coordinate system and the preset boundary value range, as Figure 5As shown, in the light pattern image, the center point A of the light pattern image (i.e., the light screen) can be extracted, and point A is the coordinate origin of the preset coordinate system. Starting from point A, the boundary points X1 (the first boundary point), X2 (the second boundary point), Y1 (the third boundary point), and Y2 (the fourth boundary point) of the light pattern are searched along the four directions of X+, X-, Y+, and Y- respectively.

[0088] Specifically, for the X+ direction, starting from point A and with a step value of 1 mm, two limit points are searched, namely the point X1.1 greater than the light pattern boundary value M (such as M1 of the first light screen in Table 1) and the point X1.2 less than the light pattern boundary value M. After finding X1.1 and X1.2, starting from X1.1 and with a step value of 0.1 mm, the first point that satisfies the preset boundary value range (M*98% - M*102%) is searched and defined as X1. Using the same method, the points are searched for the X-, Y+, and Y- directions respectively to obtain X2, Y1, and Y2, and finally the four boundary points X2, Y1, and Y2 are generated, that is, the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point.

[0089] By determining the first boundary point and the second boundary point of the light pattern in the X-axis direction, and the third boundary point and the fourth boundary point in the Y-axis direction, the main light pattern of the lighting module can be determined. At the same time, the stray light outside the main light pattern (such as Figure 6 the stray light beside the main light pattern of the high beam and the main light pattern of the low beam shown) can be automatically filtered out, avoiding the interference of stray light and improving the accuracy of the module light cone.

[0090] S2022. Based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, all the boundary points of the light pattern are determined, and all the determined boundary points are connected end to end in sequence to obtain the boundary line of the light pattern on each light screen.

[0091] After obtaining the first boundary point and the second boundary point of the light pattern in the X-axis direction, and the third boundary point and the fourth boundary point in the Y-axis direction, the boundary point detection can be performed on the area between adjacent boundary points to obtain all the boundary points.

[0092] When connecting all the boundary points end to end in sequence, all the boundary points can be connected end to end in the target direction, and the target direction includes the counterclockwise direction or the clockwise direction.

[0093] Further, when determining all the boundary points of the light pattern based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, the current light pattern boundary length can be determined first according to the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point; then based on the corresponding relationship between the preset light pattern boundary length and the point search step value, the point search step value corresponding to the current light pattern boundary length is determined.

[0094] Specifically, after obtaining the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, the entire light pattern boundary length can be determined using the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point. Among them, the light pattern boundary length L = 1.7 * (|X1| + |X2| + |Y1| + |Y2|).

[0095] The correspondence between the light pattern boundary length and the point-finding step value is as follows:

[0096]

[0097] Among them, N is the point-finding step value corresponding to the light pattern boundary length L.

[0098] It should be noted that L = 1.7 * (|X1| + |X2| + |Y1| + |Y2|) is approximately the boundary length of the entire light pattern (determined based on historical experience). The point-finding step value is defined according to the light pattern boundary length. The longer the light pattern boundary length, the larger the light pattern, and the larger the point-finding step value; the shorter the light pattern boundary length, the smaller the light pattern, and the smaller the point-finding step value.

[0099] Determining the point-finding step value through the light pattern boundary length can not only avoid the too small point-finding step value resulting in too low generation efficiency of the illumination module's light cone, but also avoid the reduction of the accuracy of the illumination module's light cone due to the too large point-finding step value. That is to say, the point-finding step value determined by the above method takes into account both the light pattern size and the efficiency of finding boundary points, effectively improving the generation efficiency and accuracy of the illumination module's light cone.

[0100] After determining the point-finding step value, based on the preset boundary value range and the point-finding step value, taking any one of the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point as the starting boundary point, the boundary points of the light pattern along the target direction starting from the starting boundary point can be determined to obtain all the boundary points of the light pattern; the target direction can include the clockwise direction or the counterclockwise direction.

[0101] During implementation, with the target direction as the step direction, based on the point-finding step value and the starting boundary point, the points that meet the preset boundary value range in the step direction can be searched to obtain the boundary points of the light pattern along the target direction starting from the starting boundary point. In this way, the automatic search for each boundary point is realized, laying a foundation for obtaining an accurate light pattern boundary line.

[0102] Specifically, when determining the boundary points of the light pattern along the target direction starting from any one of the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point based on the preset boundary value range and the point-finding step value, first, with the point-finding step value as the interval, determine the first first detection point of the starting boundary point in the first direction, and based on the first first detection point and the preset boundary value range, perform boundary point detection to determine the first target point; the first direction is the direction of the target direction at the starting boundary point. Then, with the point-finding step value as the interval, determine the second first detection point of the first target point in the second direction, and based on the second first detection point and the preset boundary value range, perform boundary point detection to determine the second target point; the second direction is the direction from the previous target point to the current target point. Next, with the point-finding step value as the interval, determine the third first detection point of the second target point in the second direction, and based on the third first detection point and the preset boundary value range, perform boundary point detection to determine the third target point, and detect whether the distance between the third target point and the starting boundary point is less than the point-finding step value; if the distance between the third target point and the starting boundary point is greater than or equal to the point-finding step value, continue to determine the fourth first detection point of the third target point in the second direction with the point-finding step value as the interval, and based on the fourth first detection point and the preset boundary value range, perform boundary point detection to determine the fourth target point until the distance between the current target point and the starting boundary point is less than the point-finding step value; where each target point is a point that satisfies the preset boundary value range. Finally, determine all the determined target points as the boundary points of the light pattern along the target direction starting from the starting boundary point.

[0103] Among them, the process of boundary point detection may include: the current detection point is the nth detection point. If the illuminance value of the nth detection point is within the preset boundary value range, determine the nth detection point as the current target point; if the illuminance value of the nth detection point is higher than the preset boundary value range, determine the first target arc, and determine the midpoint of the first target arc as the (n + 1)th detection point; the first target arc is an arc of a 1 / 4n circle determined with the nth detection point as the starting point of the arc and the point-finding step value as the radius in the direction away from the center point; if the illuminance value of the nth detection point is lower than the preset boundary value range, determine the second target arc, and determine the midpoint of the second target arc as the (n + 1)th detection point. The second target arc is an arc of a 1 / 4n circle determined with the starting boundary point as the center and the point-finding step value as the radius in the direction towards the center point; use the (n + 1)th detection point as the current detection point and continue with the boundary point detection until the illuminance value of the current detection point is within the preset boundary value range, and determine the current detection point as the current target point.

[0104] Next, taking the target direction as the clockwise direction and the Y2 point as the starting boundary point as an example, the specific process of determining the boundary points of the light pattern along the target direction starting from the starting boundary point will be elaborated in detail:

[0105] As Figure 7 shown, point Y2 is the starting boundary point, and the first direction is the negative X-axis direction (X-direction). Then, the first first detection point C1 at a distance of the point finding step value N from point Y2 can be constructed along the X-direction, and it is determined whether the illuminance value of point C1 is within the preset boundary value range W. If the illuminance value of point C1 is within the preset boundary value range W, then point C1 can be determined as the first target point; if the illuminance value of point C1 is higher than the preset boundary value range (i.e., C1 > W), then with point Y2 as the center, the line connecting point Y2 and point C1 as the starting position of the arc, and N as the radius, draw a 1 / 4 circle arc (the first target arc corresponding to the first first detection point) in the direction away from the center point of the light screen, and take the midpoint of the 1 / 4 circle arc as point C2. If the illuminance value of point C1 is lower than the preset boundary value range, then with point Y2 as the center, the line connecting point Y2 and point C1 as the starting position of the arc, and N as the radius, draw a 1 / 4 circle arc (the second target arc corresponding to the first first detection point) in the direction towards the center point of the light screen, and take the midpoint of the 1 / 4 circle arc as point C2.

[0106] Determine point C2 as the first second detection point, and determine whether the illuminance value of point C2 is within the preset boundary value range; if the illuminance value of point C2 is within the preset boundary value range, then point C2 can be determined as the first target point; if the illuminance value of point C2 is higher than the preset boundary value range, then with point Y2 as the center, the line connecting point Y2 and point C2 as the starting position of the arc, and N as the radius, draw a 1 / 8 circle arc (the first target arc corresponding to the first second detection point) in the direction away from the center point of the light screen, and take the midpoint of the 1 / 8 circle arc as point C2; if the illuminance value of point C2 is lower than the preset boundary value range, then with point Y2 as the center, the line connecting point Y2 and point C2 as the starting position of the arc, and N as the radius, draw a 1 / 8 circle arc (the second target arc corresponding to the first second detection point) in the direction towards the center point of the light screen, and take the midpoint of the 1 / 8 circle arc as point C3.

[0107] Determine point C3 as the first third detection point, and continue to determine whether the illuminance value of point C3 is within the preset boundary value range with reference to the above method until the first target point T1 is found. This process is one point finding process of the arc halving method.

[0108] After the first target point T1 is found, the second first detection point E1 at a distance of N from point T1 can be determined along the direction from point Y2 to point T1, and it is determined whether the illuminance value of point E1 is within the preset boundary value range. If the illuminance value of point E1 is within the preset boundary value range, then point E1 can be determined as the second target point; if the illuminance value of point E1 is not within the preset boundary value range, then the second target point T2, the third target point T3... the nth target point (end point) Tn can be determined in turn by referring to the method of determining the first target point T1 as described above.

[0109] After the third target point T3 is determined in the same way, it can be judged whether the distance between point T3 and point Y2 is less than the search point step value N. If the distance between point T3 and point Y2 is less than N, the search for the boundary point can be stopped, and point T3 can be determined as the end point; if the distance between point T3 and point Y2 is greater than or equal to N, the subsequent target points can be continuously searched until the distance between the current target point Tn and point Y2 is less than N.

[0110] In this way, all the obtained target points can be determined as the boundary points of the light pattern along the target direction from the starting boundary point, greatly improving the accuracy of the determined boundary points, that is, ensuring the accuracy of the light cone of the lighting module.

[0111] Furthermore, affected by factors such as the lighting environment and process, there may be depressions and / or convex tips on the boundary line of the light pattern. Correspondingly, when using the arc halving method to determine the target point, due to the existence of depressions and / or convex tips, there may be no intersection between the target arc (including the first target arc and the second target arc) and the actual light pattern boundary during the arc halving process, resulting in the situation where the target point cannot be found. Therefore, when determining the first target arc, it can be detected whether the central angle of the first target arc is less than the preset angle; if the central angle of the first target arc is greater than or equal to the preset angle, the step of determining the midpoint of the first target arc as the (n + 1)-th detection point is continued; if the central angle of the first target arc is less than the preset angle, the current arc radius R is adjusted to m*R, and the step of determining the first target arc is re-executed; m is a positive number less than 1.

[0112] Similarly, when determining the second target arc, it can be detected whether the central angle of the second target arc is less than the preset angle; if the central angle of the second target arc is greater than or equal to the preset angle, the step of determining the midpoint of the second target arc as the (n + 1)-th detection point is continued; if the central angle of the second target arc is less than the preset angle, the current arc radius R is adjusted to m*R, and the step of determining the second target arc is re-executed.

[0113] Among them, the specific values of m and the preset angle can both be set according to actual needs and are not specifically limited here. For example, m can be 0.2 and the preset angle can be 0.1°.

[0114] As Figure 8 shown, m is 0.2, starting from T n+1 as the starting point, T n -T n+1Taking the direction as [direction value] and the radius as N, make a 180° semi-circle. There is no intersection between the arc and the actual light pattern boundary line. At this time, no target point that meets the preset boundary value range can be read. If the halved angle of the arc is less than 0.1°, and still no target point that meets the preset boundary value range is read, stop finding points, adjust the arc radius to 0.2*N, continue to make a 180° semi-circle, and look for point T n+2 If there is still no matching point, multiply the current arc radius by 0.2 and execute like this until point T is found n+2 point. It can be seen that when the central angle of the arc is less than the preset angle and no target point that meets the preset boundary value range is found, reducing the arc radius can avoid the problem of not being able to find the target point caused by dents or protrusions

[0115] In this way, interference from light pattern dents and / or protrusions can be avoided during the process of determining the target point (i.e., the boundary point), further improving the accuracy of the module light cone

[0116] After obtaining all the boundary points, due to factors such as the illumination environment and process, there may be relatively long and narrow dents and protrusions at the boundary line of the light pattern on the light screen (as shown in Figure 9 ), which will affect the subsequent generation of the module light cone and reduce the accuracy of the module light cone. In some embodiments, when connecting all the determined boundary points in sequence end to end to obtain the boundary line of the light pattern on the light screen, all the determined boundary points can be connected in sequence end to end to obtain the initial boundary line of the light pattern; then perform smoothing processing on the initial boundary line to obtain the boundary line

[0117] Performing smoothing processing on the initial boundary line can eliminate relatively long and narrow dents and protrusions, thus laying a foundation for the subsequent generation of an accurate module light cone

[0118] Among them, when performing smoothing processing on the initial boundary line, the smoothing method can be selected according to actual needs, as long as it can eliminate relatively long and narrow dents and protrusions on the boundary line. For example, the smoothing method can adopt the B-spline curve reconstruction method or the deep learning repair method, etc

[0119] In some embodiments, in order to obtain a smoother light pattern boundary line, when connecting all the determined boundary points in sequence end to end to obtain the boundary line of the light pattern on the light screen, it is also possible to perform spacing judgment optimization on each boundary point of the light pattern in sequence based on the target direction, and connect the remaining boundary points of the light pattern after optimization in sequence according to the target direction to obtain the boundary line of the light pattern on the light screen; the target direction includes the clockwise direction or the counterclockwise direction

[0120] Among them, the process of optimizing the spacing judgment includes: determining that the current boundary point is the t-th boundary point, and judging whether there is a target boundary point whose distance from the t-th boundary point is less than or equal to a preset distance; the target boundary point is a boundary point whose number of boundary points separated from the t-th boundary point is greater than or equal to a preset number; the preset distance includes the product of the point-finding step value and 1 / 2 of the preset number; if there is a target boundary point whose distance from the t-th boundary point is less than or equal to the preset distance, then determine the target boundary point whose distance from the t-th boundary point is less than or equal to the preset distance as the problem boundary point, and in the target direction, eliminate all boundary points of the light pattern between the t-th boundary point and the problem boundary point, and retain the remaining boundary points of the light pattern.

[0121] During implementation, the preset number can be set according to actual needs, and no specific limitation is made here.

[0122] For example, the preset number can be 4, and the point-finding step value is 2mm. After obtaining all boundary points, the number of boundary points is 100, then the preset distance is 4mm. Taking Y2 as the starting boundary point, defining the number as No. 1, and in the clockwise direction, define boundary points No. 2, No. 3... until the last boundary point No. 100. First, for No. 1, its corresponding target boundary points include No. 6, No. 7... No. 96. Determine the connection lengths between No. 1 and each target boundary point: the connection length between No. 1 and No. 6, the connection length between No. 1 and No. 7... the connection length between No. 1 and No. 96, and compare the sizes of each connection length with 4mm. If only the connection length between No. 1 and No. 15 is less than 4mm, it means that No. 15 is the problem boundary point, then the boundary points between No. 1 and No. 15 can be eliminated, and the remaining boundary points of the light pattern No. 15, No. 16... No. 100, No. 1 are retained. At this time, it should be noted that since No. 1 - No. 15 has been eliminated, therefore, the original No. 15 is updated to No. 2, and the last boundary point is updated to No. 87. After sequentially updating the defined numbers of the remaining boundary points, the spacing judgment optimization based on No. 1 is completed. Then, similarly, perform the spacing judgment optimization based on No. 2, obtain the remaining boundary points and update the defined numbers again, and so on, until the spacing judgment optimization based on the last boundary point is completed, and the finally remaining boundary points of the light pattern are obtained.

[0123] As Figure 10 shown, the preset number is 4, and the point-finding step value is N. Among boundary points No. 7, No. 8, No. 9, No. 10, No. 11, and No. 12, the connection length between No. 7 and No. 12 is less than 2N, then No. 8, No. 9, No. 10, and No. 11 between No. 7 and No. 12 can be eliminated. In this way, connecting No. 7 and No. 12 can eliminate the obvious depression on the boundary line.

[0124] Through the optimization of the spacing judgment, the obvious depressions and convex tips on the boundary line of the light pattern can be eliminated, which further lays a foundation for obtaining a more accurate module light cone.

[0125] As another alternative implementation of the disclosure of the present application, an embodiment of the present application further provides a device for generating a light cone of an illumination module. This device can be applied to an illumination module analysis system, which is configured with multiple light screens that are arranged at intervals in sequence in the light-emitting direction of the illumination module. Specifically, the device for generating a light cone of an illumination module may include: an acquisition module, configured to obtain the light pattern images of the light emitted by the illumination module on the multiple light screens in response to a light cone generation instruction; a determination module, configured to determine the boundary lines of the light patterns in each light pattern image; and a generation module, configured to generate the module light cone of the illumination module based on the boundary lines of each light pattern.

[0126] Optionally, the light screen is configured with a light sensor; when obtaining the light pattern images of the light emitted by the illumination module on the multiple light screens, the acquisition module may specifically be configured to: use each light sensor to obtain the light information on the corresponding light screen; and generate the light pattern images on the light screen based on the light information.

[0127] Optionally, when determining the boundary lines of the light patterns in each light pattern image, the determination module may specifically be configured to: for each light screen, determine the center point of the light screen, and based on a preset coordinate system and a preset boundary value range, determine the first boundary point and the second boundary point of the light pattern in the X-axis direction, and the third boundary point and the fourth boundary point of the light pattern in the Y-axis direction; the preset coordinate system uses the plane where the light screen is located as the coordinate plane and the center point as the coordinate origin; based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, determine all the boundary points of the light pattern, and connect the determined all boundary points end to end in sequence to obtain the boundary lines of the light patterns on each light screen.

[0128] Optionally, when determining all the boundary points of the light pattern based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, the determination module may specifically be configured to: determine a point-finding step value according to the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point; based on the preset boundary value range and the point-finding step value, using any one of the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point as the starting boundary point, determine each boundary point of the light pattern along the target direction starting from the starting boundary point to obtain all the boundary points of the light pattern; the target direction includes the clockwise direction or the counterclockwise direction.

[0129] Optionally, when determining each boundary point of the light pattern from the starting boundary point along the target direction based on the preset boundary value range and the point-finding step value, with any one of the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point as the starting boundary point, the determining module may specifically be configured to: determine the first first detection point of the starting boundary point in the first direction at the point-finding step value interval, and perform boundary point detection based on the first first detection point and the preset boundary value range to determine the first target point; the first direction is the direction of the target direction at the starting boundary point; determine the second first detection point of the first target point in the second direction at the point-finding step value interval, and perform boundary point detection based on the second first detection point and the preset boundary value range to determine the second target point; the second direction is the direction from the previous target point to the current target point; determine the third first detection point of the second target point in the second direction at the point-finding step value interval, and perform boundary point detection based on the third first detection point and the preset boundary value range to determine the third target point, and detect whether the distance between the third target point and the starting boundary point is less than the point-finding step value; if the distance between the third target point and the starting boundary point is greater than or equal to the point-finding step value, continue to determine the fourth first detection point of the third target point in the second direction at the point-finding step value interval, and perform boundary point detection based on the fourth first detection point and the preset boundary value range to determine the fourth target point until the distance between the current target point and the starting boundary point is less than the point-finding step value; each of the target points is a point that satisfies the preset boundary value range; determine all the determined target points as each boundary point of the light pattern from the starting boundary point along the target direction.

[0130] Optionally, the generating device of the illumination module light cone may further include a detection module, and the detection module may specifically be configured to: when the current detection point is the nth detection point, if the illuminance value of the nth detection point is within the preset boundary value range, determine the nth detection point as the current target point; if the illuminance value of the nth detection point is higher than the preset boundary value range, determine the first target arc, and determine the midpoint of the first target arc as the (n + 1)th detection point; the first target arc is an arc of a 1 / 4n circle determined with the nth detection point as the arc starting point and the point-finding step value as the radius in the direction away from the center point; if the illuminance value of the nth detection point is lower than the preset boundary value range, determine the second target arc, and determine the midpoint of the second target arc as the (n + 1)th detection point, and the second target arc is an arc of a 1 / 4n circle determined with the starting boundary point as the center and the point-finding step value as the radius in the direction pointing to the center point; use the (n + 1)th detection point as the current detection point and continue to perform boundary point detection until the illuminance value of the current detection point is within the preset boundary value range, and determine the current detection point as the current target point.

[0131] Optionally, when determining the first target arc, the detection module can be specifically used to: detect whether the center angle of the first target arc is less than a preset angle; if the center angle of the first target arc is greater than or equal to the preset angle, continue to execute the step of determining the midpoint of the first target arc as the n+1th detection point; if the center angle of the first target arc is less than the preset angle, adjust the current arc radius R to m*R, and re-execute the step of determining the first target arc; m is a positive number less than 1; accordingly, when determining the second target arc, the detection module can be specifically used to: detect whether the center angle of the second target arc is less than the preset angle; if the center angle of the second target arc is greater than or equal to the preset angle, continue to execute the step of determining the midpoint of the second target arc as the n+1th detection point; if the center angle of the second target arc is less than the preset angle, adjust the current arc radius R to m*R, and re-execute the step of determining the second target arc.

[0132] Optionally, when all the determined boundary points are connected end to end in sequence to obtain the boundary line of the light type on the light screen, the determination module can be specifically used to: connect all the determined boundary points end to end in sequence to obtain the initial boundary line of the light type; smooth the initial boundary line to obtain the boundary line.

[0133] Optionally, when all the determined boundary points are connected end to end in sequence to obtain the boundary line of the light type on the light screen, the determination module can also be used to: based on the target direction, optimize the spacing judgment of each boundary point in turn, and connect the boundary points of the light type remaining after the optimization end to end in the target direction to obtain the boundary line of the light type on the light screen; the target direction includes a clockwise direction or a counterclockwise direction; wherein the spacing judgment optimization process includes: determining that the current boundary point is the t-th boundary point, and judging whether there is a target boundary point and the distance between the t-th boundary point is less than or equal to a preset distance; the target boundary point is a boundary point with a number of boundary points greater than or equal to a preset number between the target boundary point and the t-th boundary point; the preset distance includes the product of a point search step value and 1 / 2 of a preset number; if there is a target boundary point and the distance between the t-th boundary point and the t-th boundary point is less than or equal to the preset distance, then the target boundary point with a distance between the t-th boundary point and the preset distance is determined as a problem boundary point, and all boundary points of the light type between the t-th boundary point and the problem boundary point in the target direction are eliminated, and the remaining boundary points of the light type are retained.

[0134] The specific implementation of the device for generating a light cone of an illumination module provided in the embodiment of the present application may refer to the implementation of the method for generating a light cone of an illumination module described in any of the above embodiments, which will not be described in detail here.

[0135] As another optional implementation of the content disclosed in this application, an embodiment of this application further provides an electronic device, such as Figure 11As shown, the electronic device may include: a memory 1101 and a processor 1102; wherein, the memory 1101 is connected to the processor 1102 and is used for storing programs; the processor 1102 is used for implementing the method for generating the light cone of the lighting module disclosed in any of the above embodiments by running the programs stored in the memory 1101.

[0136] Specifically, the above electronic device may further include: a bus, a communication interface 1103, an input device 1104, and an output device 1105.

[0137] The processor 1102, the memory 1101, the communication interface 1103, the input device 1104, and the output device 1105 are interconnected through the bus. Among them:

[0138] The bus may include a path for transmitting information between various components of the computer system.

[0139] The processor 1102 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the solution of the present application. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0140] The processor 1102 may include a main processor, and may also include a baseband chip, a modem, etc.

[0141] The memory 1101 stores programs for implementing the technical solution of the present application, and may also store an operating system and other key services. Specifically, the program may include program code, and the program code includes computer operation instructions. More specifically, the memory 1101 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk memory, a flash memory, etc.

[0142] The input device 1104 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor, etc.

[0143] The output device 1105 may include a device for allowing information to be output to a user, such as a display screen, a printer, a speaker, etc.

[0144] The communication interface 1103 may include a device such as any transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0145] The processor 1102 executes the program stored in the memory 1101 and calls other devices, which can be used to implement each step of the method for generating the light cone of the lighting module provided in the above embodiments of the present application.

[0146] An embodiment of the present application also provides an illumination module analysis system, including a plurality of light screens and an electronic device as described in any of the above embodiments. Among them, as Figure 1 shown, the plurality of light screens are arranged at intervals in sequence in the light-emitting direction of the illumination module.

[0147] During implementation, the above electronic device is configured for the illumination module analysis system, and the automatic generation of the light cone of the illumination module can be realized without human participation, which provides great convenience for the module envelope and module light interference analysis of the illumination module, and effectively improves the analysis efficiency and accuracy.

[0148] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the computer, the computer executes the method for generating the light cone of the illumination module in any of the above embodiments.

[0149] An embodiment of the present application also provides a computer program product containing instructions. When the instructions are executed by the computer, the computer executes the method for generating the light cone of the illumination module described in any of the above embodiments.

[0150] It can be understood that the specific examples in this article are only to help those skilled in the art better understand the embodiments of this specification, rather than limiting the scope of the present invention.

[0151] It can be understood that in various embodiments of this specification, the magnitudes of the sequence numbers of each process do not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this specification.

[0152] It can be understood that the various embodiments described in this specification can be implemented alone or in combination, and this specification does not limit this.

[0153] Unless otherwise specified, all technical and scientific terms used in the embodiments of this specification have the same meanings as those commonly understood by those skilled in the technical field of this specification. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the scope of this specification. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items. The singular forms of "a", "above-mentioned", and "the" used in the embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0154] It can be understood that the processor in the embodiments of this specification can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiments can be completed by the integrated logic circuit in the hardware of the processor or instructions in software form. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this specification. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of this specification can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.

[0155] It can be understood that the memory in the embodiments of this specification can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0156] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled professionals may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this specification.

[0157] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0158] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0159] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] In addition, in each embodiment of this specification, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0161] When the above-described functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this specification, in essence, or the part that contributes to the prior art or a part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this specification. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0162] As described above, the foregoing are only specific implementation manners of this specification, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in this specification can easily think of changes or substitutions, which should all be covered by the protection scope of this specification. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for generating a light cone of an illumination module, characterized in that, Applied to an illumination module analysis system, the illumination module analysis system is configured with a plurality of light screens, and the plurality of light screens are arranged at intervals in the light-emitting direction of the illumination module; the method includes: In response to a light cone generation instruction, obtain the light pattern images of the light emitted by the illumination module on the plurality of light screens; Determine the boundary lines of the light patterns in each of the light pattern images; Generate a module light cone of the illumination module based on the boundary lines of each of the light patterns.

2. The method according to claim 1, wherein The light screen is configured with a light sensor; The obtaining the light pattern images of the light emitted by the illumination module on the plurality of light screens includes: Use each of the light sensors to obtain the light information on the corresponding light screen; Generate the light pattern images on the light screens based on the light information.

3. The method according to claim 1, wherein The determining the boundary lines of the light patterns in each of the light pattern images includes: For each of the light screens, determine the center point of the light screen, and based on a preset coordinate system and a preset boundary value range, determine a first boundary point and a second boundary point of the light pattern in the X-axis direction, and a third boundary point and a fourth boundary point of the light pattern in the Y-axis direction; the preset coordinate system takes the plane where the light screen is located as the coordinate plane and the center point as the coordinate origin; Based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point, determine all the boundary points of the light pattern, and connect all the determined boundary points end to end in sequence to obtain the boundary lines of the light pattern on each of the light screens.

4. The method according to claim 3, wherein The determining all the boundary points of the light pattern based on the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point includes: Determine a point-finding step value according to the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point; Based on the preset boundary value range and the point-finding step value, taking any one of the first boundary point, the second boundary point, the third boundary point, and the fourth boundary point as a starting boundary point, determine each boundary point of the light pattern from the starting boundary point along a target direction to obtain all the boundary points of the light pattern; the target direction includes the clockwise direction or the counterclockwise direction.

5. The method according to claim 4, wherein The determining each boundary point of the light pattern from the starting boundary point along the target direction based on the preset boundary value range and the point-finding step value includes: Taking the point-finding step value as the spacing, determine a first first detection point of the starting boundary point in a first direction, and based on the first first detection point and the preset boundary value range, perform boundary point detection to determine a first target point; the first direction is the direction of the target direction at the starting boundary point; Taking the point-finding step value as the spacing, determine a second first detection point of the first target point in a second direction, and based on the second first detection point and the preset boundary value range, perform the boundary point detection to determine a second target point; the second direction is the direction from the previous target point to the current target point; Taking the point-finding step value as the interval, determine the third first detection point of the second target point in the second direction, and based on the third first detection point and the preset boundary value range, perform the boundary point detection to determine the third target point, and detect whether the distance between the third target point and the starting boundary point is less than the point-finding step value; if the distance between the third target point and the starting boundary point is greater than or equal to the point-finding step value, continue to take the point-finding step value as the interval, determine the fourth first detection point of the third target point in the second direction, and based on the fourth first detection point and the preset boundary value range, perform the boundary point detection to determine the fourth target point until the distance between the current target point and the starting boundary point is less than the point-finding step value; each of the target points is a point that satisfies the preset boundary value range. Determine all the determined target points as the boundary points of the light pattern along the target direction from the starting boundary point.

6. The method according to claim 5, characterized in that, The process of the boundary point detection includes: The current detection point is the nth detection point. If the illuminance value of the nth detection point is within the preset boundary value range, determine the nth detection point as the current target point; if the illuminance value of the nth detection point is higher than the preset boundary value range, determine the first target arc, and determine the midpoint of the first target arc as the (n + 1)th detection point; the first target arc is a quarter circle arc determined with the nth detection point as the arc starting point and the point-finding step value as the radius in the direction away from the center point; if the illuminance value of the nth detection point is lower than the preset boundary value range, determine the second target arc, and determine the midpoint of the second target arc as the (n + 1)th detection point, the second target arc is a quarter circle arc determined with the starting boundary point as the center and the point-finding step value as the radius in the direction pointing to the center point; take the (n + 1)th detection point as the current detection point and continue the boundary point detection until the illuminance value of the current detection point is within the preset boundary value range, and determine the current detection point as the current target point.

7. The method according to claim 6, characterized in that The determination of the first target arc includes: Detect whether the central angle of the first target arc is less than the preset angle; if the central angle of the first target arc is greater than or equal to the preset angle, continue to execute the step of determining the midpoint of the first target arc as the (n + 1)th detection point; if the central angle of the first target arc is less than the preset angle, adjust the current arc radius R to m*R, and re-execute the step of determining the first target arc; m is a positive number less than 1. The determination of the second target arc includes: Check whether the center angle of the second target arc is less than a preset angle; if the center angle of the second target arc is greater than or equal to the preset angle, continue to execute the step of determining the midpoint of the second target arc as the n+1th detection point; if the center angle of the second target arc is less than the preset angle, adjust the current arc radius R to m*R, and re-execute the step of determining the second target arc.

8. The method according to claim 3, wherein The step of connecting all the determined boundary points end to end in sequence to obtain the boundary line of the light pattern on the light screen comprises: Connect all the determined boundary points end to end in order to obtain the initial boundary line of the light type; The initial boundary line is smoothed to obtain the boundary line.

9. The method according to claim 3, characterized in that, The step of connecting all the determined boundary points end to end in sequence to obtain the boundary line of the light pattern on the light screen comprises: Based on the target direction, the spacing judgment optimization is performed on each boundary point of the light type in turn, and each boundary point of the light type remaining after the optimization is connected end to end according to the target direction to obtain the boundary line of the light type on the light screen; the target direction includes a clockwise direction or a counterclockwise direction; The process of optimizing the spacing judgment includes: Determine that the current boundary point is the tth boundary point, and determine whether there is a target boundary point whose distance from the tth boundary point is less than or equal to a preset distance; the target boundary point is a boundary point whose number of boundary points between the target boundary point and the tth boundary point is greater than or equal to a preset number; the preset distance includes the product of the point search step value and 1 / 2 of the preset number; If there is a distance between the target boundary point and the tth boundary point that is less than or equal to the preset distance, the target boundary point whose distance to the tth boundary point is less than or equal to the preset distance is determined as a problem boundary point, and all boundary points of the light pattern in the target direction between the tth boundary point and the problem boundary point are eliminated, and the remaining boundary points of the light pattern are retained.

10. An electronic device, characterized in that, include: A processor, and a memory connected to the processor; The memory is used to store computer programs; The processor is used to call and execute the computer program in the memory to perform the method for generating a light cone of a lighting module according to any one of claims 1-9.