Headlamp visibility score acquisition method and electronic device
By automatically calculating the headlight visibility score method, the problem of low efficiency and error prone in the prior art is solved, and efficient and reliable output of C-IASI score results is achieved.
Patent Information
- Application Number
- CN202411086125.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing automotive lighting design software cannot directly output C-IASI results, resulting in low manual calculation efficiency and prone to errors, especially in various dimming states, the processing volume is large.
Provide a method for obtaining headlight visibility scores, which receives position information and optical files through the parameter input interface, automatically calculates the scoring key points, and refer to the visibility scoring rules to output scoring results.
Automatically calculate visibility scores, improve efficiency, avoid manual errors, ensure the reliability and consistency of results, and meet the requirements of scoring rules.
Smart Images

Figure CN119063969B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical design technology, and in particular to a method for obtaining a headlamp visibility score, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of automotive product and service consumption, the automotive consumer market is experiencing new demands under new circumstances. Take the China Insurance Automotive Safety Index (C-IASI) as an example. It is an evaluation system developed jointly by the China Automotive Engineering Research Institute Co., Ltd. and the China Insurance Research Institute for Automotive Technology and Research Co., Ltd. under the guidance of the China Insurance Association. 9 This system draws on established international experience, particularly the US Insurance Institute for Highway Safety (IIHS) standards, and incorporates the current state of auto insurance and vehicle safety technology in China. This system aims to promote the development of automotive safety technology, provide consumers with safer vehicle choices, and provide insurance companies with a reference for vehicle pricing. In headlight light distribution design, some clients have requested a dimming impact analysis based on the C-IASI, including statistical analysis of the headlights under 5,000 different light patterns.
[0003] However, existing automotive lighting design software cannot directly output C-IASI results and can only rely on manual calculation and analysis to obtain the scoring results under a certain dimming state. The processing efficiency is low, especially when faced with data calculations under multiple dimming states. Not only is the workload and manpower investment large, but errors are also prone to occur in the large amount of manual calculations. Summary of the Invention
[0004] In order to improve the calculation efficiency of headlamp visibility scoring and reduce dependence on manpower, embodiments of the present application provide a method for obtaining headlamp visibility scoring, an electronic device, and a computer-readable storage medium.
[0005] Specifically, the method for obtaining the headlamp visibility score provided in the embodiment of the present application includes the following steps: in response to a user's scoring request, providing a parameter input interface for receiving the position information, dimming angle and light pattern file corresponding to the headlamp; in response to a calculation request submitted by the user based on the parameter input interface, determining the scoring key points at the dimming angle based on the position information and the light pattern file, and determining the visibility score corresponding to the scoring key points with reference to the visibility scoring rules as the visibility score of the headlamp at the dimming angle; and outputting the visibility score.
[0006] Based on the above technical solution, users only need to enter the corresponding parameters to obtain the corresponding visibility score results without performing any calculations. This not only improves scoring efficiency but also avoids manual calculation errors and ensures the reliability of the calculation results. In addition, in the embodiments of the present application, by first finding the scoring key points and then performing the scoring calculation, the scoring results can be guaranteed to be accurate and meet the requirements of the scoring rules. The scoring key points are determined based on the light type file, and the calculation basis is objective data without any subjective factors, which can ensure the reliability and consistency of the calculation results.
[0007] In one embodiment, the determining of the scoring key point at the dimming angle based on the position information and the light pattern file includes: calculating the calculation coordinates corresponding to the current measurement point based on the position information and the measurement distance; determining the illuminance value corresponding to the calculation coordinates according to the light pattern file; when the illuminance value is less than a preset standard, determining the measurement point as the scoring key point; when the illuminance value is not less than the preset standard, enlarging the measurement distance and returning to execute the step of calculating the calculation coordinates corresponding to the current measurement point.
[0008] Based on the above technical solution, the scoring key points are determined based on the gradual adjustment of the measurement distance, which can ensure the accuracy of the coordinate range of the scoring key points.
[0009] In one implementation, the calculating the coordinates (x, y) corresponding to the current measurement point based on the position information and the measured distance includes calculating based on the formula:
[0010]
[0011] Wherein, S is 1 / 2 of the distance between the left and right headlights in the position information; H is the headlight installation height in the position information; h is the height of the visibility detector, and d is the measurement distance.
[0012] In one implementation, determining the illumination value corresponding to the calculated coordinates according to the light pattern file includes: determining the light intensity corresponding to the calculated coordinates according to the light pattern file; and calculating the illumination value based on the light intensity and the measured distance.
[0013] In one implementation, amplifying the measured distance includes summing the measured distance and a preset step size.
[0014] Based on the above technical solution, the preset step size can be set according to actual needs, so that the coordinate range of the scoring key points obtained based on the measured distance can be controlled to meet different data accuracy requirements.
[0015] In one implementation, after amplifying the measured distance, the method further includes: determining whether the measured distance exceeds a maximum measured distance, and if so, setting the measured distance to the maximum measured distance.
[0016] Based on the above technical solution, the calculation range can be controlled, thereby saving computing resources and improving computing efficiency.
[0017] In one implementation, determining the visibility score corresponding to the scoring key point by referring to the visibility scoring rule includes: determining the measurement distance used when calculating the scoring key point as the visibility distance, and matching the visibility scoring rule based on the visibility distance to obtain the visibility score corresponding to the scoring key point.
[0018] In one implementation, outputting the visibility scores includes batch outputting all visibility scores within a preset dimming range.
[0019] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the above method when executed by the processor.
[0020] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which implements the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings that constitute a part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application.
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] Figure 1 A flow chart of a method for obtaining a headlamp visibility score provided in an embodiment of the present application is shown.
[0024] Figure 2 A schematic diagram of a parameter input interface provided in an embodiment of the present application is shown.
[0025] Figure 3 A flow chart of the scoring calculation method provided in an embodiment of the present application is shown.
[0026] Figure 4A flow chart of a method for determining scoring key points in an embodiment of the present application is shown.
[0027] Figure 5 A schematic diagram of the straight road visibility test model is shown.
[0028] Figure 6 A light pattern diagram corresponding to the light pattern file of the low beam of a headlamp in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0029] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0030] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
[0031] The features, structures, or characteristics of this application may be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the order of the sequence numbers of the processes does not necessarily indicate the order of execution. The order of execution of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation of the embodiments of this application.
[0032] Some optional features in the embodiments of the present application can be implemented independently in some scenarios without relying on other features to solve corresponding technical problems and achieve corresponding effects. They can also be combined with other features in some scenarios according to needs.
[0033] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In the various embodiments of this application, unless otherwise specified and there is no logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. The implementation methods of this application do not constitute a limitation on the scope of protection of this application.
[0034] The technical solutions provided in the embodiments of this application leverage the computing power of computers to automatically calculate visibility scores, providing a data foundation for headlamp light distribution design. Specifically, a set of headlamp visibility scoring software is implemented, allowing designers to obtain headlamp visibility scores in batches through simple software operations. This scoring software can be installed on various intelligent electronic devices with computing capabilities, such as mobile phones, tablets, and computers, and users can access it directly locally. It is understood that this scoring software can also be installed on a server or cloud service and accessed via a webpage or client.
[0035] The following describes the embodiments of the present application in detail with reference to the accompanying drawings.
[0036] Please refer to Figure 1 , Figure 1 A flow chart of a method for obtaining a headlamp visibility score provided in an embodiment of the present application is shown. The method specifically includes the following steps:
[0037] S110 , in response to the user's rating request, providing a parameter input interface.
[0038] Specifically, in one example, the headlamp visibility scoring software is pre-installed on the user's smart terminal. The user opens the visibility scoring function of the software to request the visibility scoring of the headlamp. When the smart terminal receives the scoring request, it displays a parameter input interface to the user. The parameter input interface is used to receive the position information, dimming angle and light pattern file corresponding to the dimming angle of the headlamp. For details, please refer to Figure 2 In the example shown, the parameter input interface primarily includes input boxes for headlamp type, installation location, scoring range, and dimming range, as well as interfaces for uploading various light pattern files. Users can enter the corresponding parameters and light pattern files based on their actual calculation needs.
[0039] S120 , calculating a visibility score of the headlights in response to a calculation request submitted by the user based on the parameter input interface.
[0040] When the user completes the parameter input, he can click the calculate button. Figure 2 Click the calculation button displayed in the , submit the parameters to request calculation.
[0041] When the smart terminal receives the calculation request, it first obtains the parameter information submitted by the user and verifies it. After confirming the completeness and compliance of each parameter, it starts to calculate the score based on the dimming range.
[0042] Taking C-IASI visibility score as an example, please refer to Figure 3 In step S120, the scoring calculation method includes:
[0043] S310: Determine scoring key points under the dimming angle based on the position information and the light pattern file.
[0044] Specifically, the scoring key points under the dimming angle, that is, the detection points that can be used to evaluate the visibility of the headlights under the user-specified dimming angle. In a test example, according to the requirements of C-IASI, the visibility evaluation uses the 5lux visibility distance as an evaluation index. The test vehicle starts at a position 10m away from the detector and drives away from the detector. During the driving process, the illuminance value E at the visibility measurement point (i.e., the detector) is continuously detected. When the illuminance value is less than 5lux, the vehicle's driving distance at this time is the 5lux visibility distance, which will be used for visibility score calculation. Based on this, the software provided by this application determines the scoring key points and the detection points with a visibility of 5lux by continuously simulating the vehicle driving process in the test.
[0045] Please refer to Figure 4 , Figure 4 A flow chart of a method for determining key scoring points in an embodiment of the present application is shown. As shown in the figure, the method includes:
[0046] S410: Calculate the coordinates corresponding to the current measurement point based on the position information and the measurement distance.
[0047] Position information includes the distance between the left and right headlights, the height of the headlights installed on the vehicle, and the height of the visibility detector. Figure 2 In the example shown, the headlight spacing and mounting height are both input by the user, and the visibility detector height is a preset fixed value that is related to the specific requirements of the test experiment and is relatively fixed. It can be written through the software background, thereby reducing the user's operating pressure.
[0048] The measurement distance is the distance between the vehicle headlights and the detector.
[0049] In the embodiment provided in the present application, a geometric model corresponding to the test environment can be established, and the coordinates of the detector position under a certain position information and measurement distance, that is, the coordinates of the current measurement point, can be calculated with the vehicle coordinates as the origin.
[0050] In one example, see Figure 5 , Figure 5 The figure is a schematic diagram of the straight visibility test model. Based on this model, the calculation formula corresponding to the calculated coordinates (x, y) of the current measurement point can be calculated as follows:
[0051]
[0052] Where S is half of the distance between the left and right headlights in the position information; H is the headlight installation height in the position information; h is the visibility detector height, and d is the measurement distance.
[0053] S420: Determine the illumination value corresponding to the calculated coordinates according to the light type file.
[0054] In the embodiment of the present application, the light type file is a file containing photometric data, such as an IES file, which is an Illuminating Engineering Society (IES) light distribution file, which records the photometric characteristics of the lamp, including information such as beam angle and light distribution curve. By locating the calculated coordinates in the IES file of the headlight, the light intensity corresponding to the calculated coordinates can be determined. Please refer to Figure 6 Example, Figure 6 The light pattern diagram corresponding to the light pattern file of the low beam of the headlamp is shown. Based on the light pattern diagram, the light intensity value I at the calculated coordinate can be determined. For example, the light intensity value at the coordinate (2.8, -1) in the figure is 30600c.
[0055] Since the visibility score needs to be based on the illuminance value E (unit: lux), the light intensity value needs to be converted. Specifically, it can be converted using the following formula:
[0056]
[0057] Based on this, the illumination value corresponding to the calculated coordinates can be obtained.
[0058] S430, determining the relationship between the illumination value and a preset standard. When the illumination value is less than the preset standard, executing step S441; otherwise, executing step S442.
[0059] The preset standard is the illuminance threshold determined based on the scoring rules. In the visibility scoring rules of the C-IASI standard document, the preset standard is 5 lux. It is understood that the preset standard can be adjusted as the scoring rules are updated. This allows it to adapt to different scoring requirements and meet the needs of various customers.
[0060] S441: Determine the measurement point as a key point for scoring.
[0061] S442: Amplify the measured distance and return to step S410.
[0062] In one specific example, amplifying the measured distance includes summing the measured distance with a preset step size Δd, i.e., d = d + Δd, where d is initially set to the test start distance and the vehicle is traveling away from the detector during the test. The preset step size can be a fixed value set by default or can be set by the user.
[0063] In a preferred example, the preset step size can be automatically determined based on the ies file used for calculation. Specifically, the preset step size can be determined by determining the range of change of the light intensity value and the calculation accuracy in the ies file. For example, when the calculation accuracy is 1 decimal place, the coordinate average corresponding to a 0.1c change in the light intensity value can be determined based on the ies file, and this distance can be used as the preset step size. Based on this, the adjustment span of the measurement distance can be guaranteed to be reasonable, thereby accurately locating the key points.
[0064] Furthermore, in specific implementations, to avoid unnecessary computation and conserve computing resources, a maximum measurement distance dmax can be pre-set to force an exit from the loop calculation process. The value of dmax can be determined based on the specific scoring criteria file being used. For example, in the C-IASI scoring rules, the maximum evaluation distance for all lighting scoring criteria is 70m. This means that the highest score is achieved when the visibility distance is greater than or equal to 70m. Therefore, dmax can be set to 70m. Accordingly, after amplifying the measured distance, the process also includes determining whether the amplified measured distance exceeds the maximum measurement distance dmax. If so, the measured distance is set to dmax. After the calculated coordinates are calculated based on step S410, the measurement point corresponding to the calculated coordinates is directly determined as the scoring key point.
[0065] In another embodiment, the test method can also be that the initial distance between the vehicle and the detector is dmax. During the test, if the vehicle moves in a direction closer to the detector, then in step S442, the test distance is reduced accordingly, that is, d = dmax - Δd*i, where i is the cumulative number of reductions and is initially 0. In this way, when d is less than or equal to 0, the calculation can be forced to stop.
[0066] S320: Determine the visibility score corresponding to the scoring key point by referring to the visibility scoring rule.
[0067] The step of determining the visibility score corresponding to the scoring key point by referring to the visibility scoring rule includes:
[0068] The measured distance used when calculating the scoring key point is determined as the visibility distance, and the visibility scoring rule is matched based on the visibility distance to obtain the visibility score corresponding to the scoring key point.
[0069] S330: Using the visibility score corresponding to the scoring key point as the visibility score of the headlamp at the dimming angle.
[0070] Based on the above method, the visibility score of a headlamp at a certain dimming angle can be calculated. Figure 2As can be seen from the parameter input interface shown, the user can request to calculate the visibility scores of multiple headlights at different dimming angles at one time. Accordingly, the smart terminal can determine the calculation range based on the parameters input by the user, and calculate the scores of each headlight at the corresponding dimming angle based on the above method, thereby realizing batch calculation.
[0071] In one implementation, the smart terminal can perform calculations based on the parameters entered in the dimming range item on the parameter input interface and the dimming angle corresponding to the uploaded ies file. For example, when the horizontal angle range entered in the dimming range item is 0 to 0.1 with a step size of 0.05, and the vertical angle range is 0 to 0.2 with a step size of 0.1, based on this, the dimming angles to be calculated can be determined to be (0, 0), (0, 0.1), (0, 0.2), (0.05, 0), (0.05, 0.1), (0.05, 0.2), (0.1, 0), (0.1, 0.1), (0.1, 0.2), and the corresponding files are matched from the uploaded ies file in sequence and calculated. Based on this, the user can set the dimming range according to the calculation requirements to obtain the scoring results within the corresponding range.
[0072] Accordingly, the smart terminal can retain the parameter input interface record, so that after obtaining an output once, the user can modify the dimming range and request to calculate the score under different dimming ranges again to meet different calculation needs and reduce the user's parameter input tasks, thereby improving the user experience.
[0073] Please return Figure 1 After calculating the visibility score, the smart terminal also includes the following steps:
[0074] S130: Output visibility score.
[0075] Specifically, the methods of outputting visibility scores include directly outputting based on the interface to intuitively display it to the user, or outputting documents that record relevant score information, such as files in Excel, Word, PDF and other formats.
[0076] When the calculated visibility score is batch data, the output of the visibility score includes batch output of all visibility scores within the preset dimming range. Preferably, in order to facilitate further editing by the user, the calculation results can be batch output in the form of an Excel table.
[0077] Based on this technical solution, users only need to enter the corresponding parameters to directly obtain the visibility score results of the headlights, without relying on manual input. Batch calculation results can also be directly obtained by setting the dimming range. This not only simplifies the operation but also improves the efficiency of obtaining visibility scores, thereby providing a reliable data foundation for lighting design work.
[0078] Furthermore, during the software development process, the software's reliability was analyzed. Seven dimming angles were randomly selected, and corresponding C-IASI scores were obtained based on the software provided by this application and Lucidshape's internal program. These scores were then compared. The results are shown in Table 1. As can be seen from the data in Table 1, the scores between the two methods are consistent, ranging from 0.06% to 0.92%. Therefore, the C-IASI scoring software provided by this application is reliable. Furthermore, the C-IASI scoring software provided by this application can batch-output multiple results, which can be exported to Excel spreadsheets. This fully meets customer needs while improving the efficiency and accuracy of lighting design.
[0079] It's worth noting that Lucidshape is a powerful 3D software used for computer-aided design of lighting and optical products, and is widely used and recognized by the industry. However, the Lucidshape software's internal program cannot directly output C-IASI results. Manual analysis and calculation of the data using Excel are required to determine the results under a specific dimming state. Batch processing of C-IASI scores is not possible. Therefore, the data in Table 1 is based on Lucidshape's internal program combined with manual calculations.
[0080] (H,V) Lucidshape This application Deviation value (0,0) 15.21 15.35 0.92% (-1,0.05) 16.15 16.08 0.43% (0.25,0.1) 16.16 16.15 0.06% (0.25,-0.1) 12.25 12.15 0.81% (0.4,0.8) 16.64 16.51 0.78% (0.7,0.2) 16.18 16.13 0.30% (0,-0.74) 1.39 1.38 0.71%
[0081] Table 1
[0082] The following will describe the method of light distribution design based on the software provided in this application in conjunction with specific test examples.
[0083] First, set up the test environment, including setting up the headlights according to the actual loading height and spacing, connecting the dimming equipment, and installing the IES file generation equipment.
[0084] Then, while eliminating ambient light interference, the headlights are adjusted to the dimming angle required for scoring by controlling the dimming device, and the ies file generation device is used to collect light data information and generate an ies file under the dimming angle.
[0085] After collecting IES files at various dimming angles, users can use the aforementioned method and a smart terminal to complete visibility scores for each headlamp at each dimming angle. Based on the visibility scores, users can then determine whether to adjust the headlamp light distribution.
[0086] As can be seen, users only need to collect the IES files of each headlamp at each dimming angle in the early stages to calculate the score. It is understandable that the IES files used for calculation can also be provided directly by the manufacturer. Users can calculate scores based on both the self-collected IES files and the manufacturer-provided IES files. Based on the differences in the calculated results, the two IES files can be compared and analyzed to provide data support for lighting design or lamp acceptance. For example, if the calculated score results are the same, the manufacturer-provided IES files can be confirmed to be authentic and valid. If the calculated results are different, further validity analysis of the manufacturer-provided IES files should be conducted to ensure the validity of the IES files used in the lighting design process.
[0087] In addition, an embodiment of the present application also provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and runnable on the processor, wherein the program or instruction, when executed by the processor, implements a method as in any one of the implementation methods in the embodiments of the present application; wherein the processor can adopt a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the method in any one of the implementation methods in the embodiments of the present application.
[0088] The processor may also be an integrated circuit electronic device with signal processing capabilities. In the implementation process, each step of the method in any one of the implementation methods in the embodiments of the present application may be completed by hardware integrated logic circuits in the processor or software instructions.
[0089] The above-mentioned processor can also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor.
[0090] The software module can be located in a storage medium well-established in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the functions required to be performed by the units included in the data processing apparatus of the embodiments of the present application, or executes the method of any implementation method of the embodiments of the present application.
[0091] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program, which implements the above-mentioned embodiment when executed by a processor.
[0092] Those skilled in the art will appreciate that all or part of the steps in the above-described embodiments can be accomplished by instructing related hardware through a program stored in a storage medium, which includes a number of instructions for causing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0093] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.
Claims
1. A method for obtaining a headlamp visibility score, characterized in that: Including steps: In response to a user's rating request, a parameter input interface is provided for receiving position information of the headlamp, a dimming angle, and a light pattern file corresponding to the dimming angle; wherein the light pattern file is an IES file, which is generated by collecting light data information in a test environment using an IES file generation device; In response to a calculation request submitted by a user through the parameter input interface, determining a scoring key point at the dimming angle based on the position information and the light pattern file, and determining a visibility score corresponding to the scoring key point with reference to a visibility scoring rule as the visibility score of the headlamp at the dimming angle; Outputting the visibility score, including batch outputting all visibility scores within a preset dimming range; wherein, The position information and the light pattern file determine the scoring key point at the dimming angle, including calculating the calculated coordinates corresponding to the current measurement point based on the position information and the measurement distance; determining the illuminance value corresponding to the calculated coordinates according to the light pattern file; if the illuminance value is less than a preset standard, determining the measurement point as the scoring key point; if the illuminance value is not less than the preset standard, enlarging the measurement distance, and returning to execute the step of calculating the calculated coordinates corresponding to the current measurement point.
2. The method for obtaining headlamp visibility score according to claim 1, characterized in that: The method further comprises: Based on the parameters passed in by the dimming range item on the parameter input interface, determine the multiple dimming angles that need to be calculated, match the ies files corresponding to each dimming angle within the dimming range from the uploaded ies files in turn, and perform calculations to obtain the scoring results within the dimming range.
3. The method for obtaining headlamp visibility score according to claim 1, characterized in that: Calculating the coordinates (x, y) corresponding to the current measurement point based on the position information and the measured distance includes calculating the coordinates (x, y) based on the formula: Wherein, S is 1 / 2 of the distance between the left and right headlights in the position information; H is the headlight installation height in the position information; h is the height of the visibility detector, and d is the measurement distance.
4. The method for obtaining headlamp visibility score according to claim 1, wherein: Determining the illumination value corresponding to the calculated coordinate according to the light type file includes: Determining the light intensity corresponding to the calculated coordinates according to the light pattern file; The illumination value is calculated based on the light intensity and the measured distance.
5. The method for obtaining headlamp visibility score according to claim 1, wherein: The amplifying the measured distance includes summing the measured distance and a preset step length, wherein the preset step length is automatically determined based on a variation range and calculation accuracy of the light intensity value determined in the ies file.
6. The method for obtaining headlamp visibility score according to claim 1 or 5, characterized in that: After amplifying the measured distance, the method further includes: Determine whether the measured distance exceeds a maximum measured distance, and if so, set the measured distance to the maximum measured distance.
7. The method for obtaining headlamp visibility score according to claim 1, characterized in that: The step of determining the visibility score corresponding to the scoring key point by referring to the visibility scoring rule includes: The measured distance used when calculating the scoring key point is determined as the visibility distance, and the visibility scoring rule is matched based on the visibility distance to obtain the visibility score corresponding to the scoring key point.
8. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the method according to any one of claims 1 to 7 when executed by the processor.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.