CN117774816B - Automobile light adjusting method, system, equipment and medium - Google Patents
Automobile light adjusting method, system, equipment and medium Download PDFInfo
- Publication number
- CN117774816B CN117774816B CN202410200071.XA CN202410200071A CN117774816B CN 117774816 B CN117774816 B CN 117774816B CN 202410200071 A CN202410200071 A CN 202410200071A CN 117774816 B CN117774816 B CN 117774816B
- Authority
- CN
- China
- Prior art keywords
- angle
- lamp
- vehicle
- car
- compensation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012937 correction Methods 0.000 claims description 44
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 17
- 230000007704 transition Effects 0.000 claims description 9
- 230000001105 regulatory effect Effects 0.000 claims 2
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Lighting Device Outwards From Vehicle And Optical Signal (AREA)
Abstract
The invention provides an automobile light adjusting method, an automobile light adjusting system, automobile light adjusting equipment and an automobile light adjusting medium, and relates to the technical field of automobile safety, wherein the automobile light adjusting method comprises the following steps: when the lamp of the vehicle is started and a person is in the vehicle, acquiring the lamp angle of the vehicle; judging whether the angle of the car light meets the set angle range, if not, acquiring a first set, wherein the first set at least comprises the total weight of the front seat support and the total weight of the back seat support in the car; calculating a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support; calling a first calibration database according to the angle of the car lamp and a first reference value to obtain a first compensation angle; and compensating the angle of the car lamp according to the first compensation angle so that the angle of the car lamp meets the preset angle range. The method provided by the invention can accurately and effectively automatically adjust the automobile light, prevent the problem of lower brightness in a unit area caused by too high inclination angle of the automobile light, and simultaneously avoid influencing the sight of an opposite automobile driver.
Description
Technical Field
The invention relates to the technical field of vehicle safety, in particular to an automobile light adjusting method, an automobile light adjusting system, automobile light adjusting equipment and an automobile light adjusting medium.
Background
With the development of automobile intellectualization, the angle adjustment of the illumination of the automobile lamp also needs to be intelligent, so that an intelligent control algorithm is particularly important. The automobile can realize the accurate and rapid adjustment of the height of the automobile lamp by a reliable control method.
Usually, the angle of the dipped headlight on the vehicle is fixed, and although manual adjustment can be supported, the adjusted angle is completely determined subjectively by a driver, and the lamp can not be ensured to be at an objective proper angle; the light of the car lamp can not be ensured to meet the condition that the driver of the car can normally observe the road surface, and meanwhile, the sight of the driver of the opposite car is not influenced; and the existing car lamp angle can not be automatically adjusted according to the environment where the car is located.
Disclosure of Invention
In view of the foregoing drawbacks or shortcomings of the prior art, it is desirable to provide an automotive light adjustment method, system, apparatus and medium to address the foregoing problems.
The first aspect of the invention provides an automobile light adjusting method, which comprises the following steps:
When the lamp of the vehicle is started and a person is in the vehicle, acquiring the lamp angle of the vehicle, wherein the lamp angle is an included angle between the light of the lamp and the ground on which the vehicle is positioned;
Judging whether the angle of the car lamp meets a set angle range, if not, acquiring a first set, wherein the first set at least comprises the total weight of the front seat support in the car and the total weight of the back seat support;
calculating a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support;
Invoking a first calibration database according to the car light angle and the first reference value to obtain a first compensation angle, wherein the first calibration database comprises: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and a first compensation angle corresponding to the first reference values of each group;
and compensating the car lamp angle according to the first compensation angle so that the car lamp angle meets a preset angle range.
According to the technical scheme provided by the invention, the first set further comprises the total weight of the trunk bearing of the vehicle:
invoking a first calibration database according to the first reference value to obtain a first compensation angle, and specifically comprising the following steps:
and summing the first reference value and the total weight of the trunk bearing to correct the first reference value, and calling a first calibration database according to the first reference value to obtain a first compensation angle.
According to the technical scheme provided by the invention, after the first set is acquired, the method further comprises the following steps:
calculating a first reference weight, wherein the first reference weight is the sum of the total weight of the back row seat support and the total weight of the trunk support;
Comparing the first reference weight to a first weight threshold;
The calculating the first reference value specifically includes the following steps:
the first reference value is calculated when the first reference weight is greater than or equal to the first weight threshold.
According to the technical scheme provided by the invention, after the first calibration database is called according to the car lamp angle and the first reference value to obtain the first compensation angle, the method further comprises the following steps:
Judging whether an obstacle exists in a set distance of the front side of the vehicle,
If no obstacle exists in the set distance of the front side of the vehicle, acquiring a first distance, wherein the first distance is the distance between the position of light-dark transition on the ground of the vehicle and the front end of the vehicle;
the car lamp angle is compensated according to the first compensation angle, and specifically comprises the following steps:
And when the first distance meets a first distance range, compensating the angle of the car lamp according to the first compensation angle.
According to the technical scheme provided by the invention, the car lamp angle is compensated according to the first compensation angle, and the method specifically further comprises the following steps:
When the first distance does not meet the first distance range, a second calibration database is called according to the first distance to obtain a first correction value; the second calibration data base includes: a plurality of groups of first distances, and a first correction value corresponding to each group of first distances;
Correcting the first compensation angle according to the first correction value; and compensating the angle of the car lamp according to the first compensation angle.
According to the technical scheme provided by the invention, the method further comprises the following steps:
If an obstacle exists in the set distance of the front side of the vehicle, acquiring a second distance and a first height, wherein the second distance is the distance between the obstacle and the front end of the vehicle, and the first height is the distance between the light and shade transition position on the obstacle and the ground where the vehicle is located;
Calling a third calibration database according to the second distance and the first height to obtain a second correction value; the third calibration data base includes: a plurality of groups of second distances, a plurality of groups of first heights corresponding to each group of second distances, and a second correction value corresponding to each group of first heights;
The car lamp angle is compensated according to the first compensation angle, and the method specifically further comprises the following steps:
Correcting the first compensation angle according to the second correction value; and compensating the angle of the car lamp according to the first compensation angle.
According to the technical scheme provided by the invention, the method further comprises the following steps:
When the first reference weight is smaller than the first weight threshold value, obtaining the maximum value and the minimum value of the preset angle range; calculating an average of the maximum value and the minimum value;
calculating a second compensation angle, wherein the second compensation angle is the absolute value of the difference value between the average value and the angle of the car lamp;
And compensating the car lamp angle according to the second compensation angle so that the car lamp angle meets a preset angle range.
A second aspect of the present invention provides an automotive light adjustment system comprising:
the system comprises an angle acquisition module, a control module and a control module, wherein the angle acquisition module is configured to acquire a lamp angle of a vehicle when a lamp of the vehicle is started and a person is in the vehicle, and the lamp angle is an included angle between a lamp light and the ground where the vehicle is located;
The first processing module is configured to judge whether the angle of the car lamp meets a set angle range, if not, a first set is obtained, and the first set at least comprises the total weight of the front seat support and the total weight of the back seat support in the car;
The second processing module is configured to calculate a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support;
The calling module is configured to call a first calibration database according to the car lamp angle and the first reference value to obtain a first compensation angle, and the first calibration database comprises: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and a first compensation angle corresponding to the first reference values of each group;
And the compensation module is configured to compensate the car lamp angle according to the first compensation angle so that the car lamp angle meets a preset angle range.
Optionally, the calling module is specifically configured to sum the first reference value and the total weight of the trunk support to correct the first reference value, and call a first calibration database according to the first reference value to obtain a first compensation angle.
Optionally, the first processing module is specifically configured to calculate a first reference weight, where the first reference weight is a sum of a total weight of the back-row seat support and a total weight of the trunk support;
The first processing module is further configured to compare the first reference weight to a first weight threshold;
The second processing module is specifically configured to calculate the first reference value when the first reference weight is greater than or equal to the first weight threshold.
Optionally, the compensation module is specifically configured to determine whether there is an obstacle within a set distance from the front side of the vehicle,
If no obstacle exists in the set distance of the front side of the vehicle, acquiring a first distance, wherein the first distance is the distance between the position of light-dark transition on the ground of the vehicle and the front end of the vehicle;
The compensation module is further used for compensating the car lamp angle according to the first compensation angle when the first distance meets a first distance range.
Optionally, the compensation module is further configured to call a second calibration database according to the first distance to obtain a first correction value when the first distance does not meet the first distance range; the second calibration data base includes: a plurality of groups of first distances, and a first correction value corresponding to each group of first distances;
The compensation module is also used for correcting the first compensation angle according to the first correction value; and compensating the angle of the car lamp according to the first compensation angle.
Optionally, the compensation module is further configured to obtain a second distance and a first height if an obstacle is in a set distance from the front side of the vehicle, where the second distance is a distance between the obstacle and the front end of the vehicle, and the first height is a distance between a light-dark transition position on the obstacle and a ground where the vehicle is located;
The compensation module is further used for calling a third calibration database according to the second distance and the first height to obtain a second correction value; the third calibration data base includes: a plurality of groups of second distances, a plurality of groups of first heights corresponding to each group of second distances, and a second correction value corresponding to each group of first heights;
The compensation module is also used for correcting the first compensation angle according to the second correction value; and compensating the angle of the car lamp according to the first compensation angle.
Optionally, the second processing module is further configured to obtain a maximum value and a minimum value of the preset angle range when the first reference weight is less than the first weight threshold; calculating an average of the maximum value and the minimum value;
calculating a second compensation angle, wherein the second compensation angle is the absolute value of the difference value between the average value and the angle of the car lamp;
The compensation module is further used for compensating the car lamp angle according to the second compensation angle so that the car lamp angle meets a preset angle range.
A third aspect of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and operable on the processor, the processor implementing the steps of the vehicle light adjustment method as described above when the computer program is executed.
A fourth aspect of the invention provides a computer-readable storage medium having a computer program which, when executed by a processor, implements the steps of the vehicle light adjustment method as described above.
Compared with the prior art, the invention has the beneficial effects that: judging whether the angle of the lamp meets the set angle range or not when the lamp of the vehicle is started and a person is in the vehicle, so that whether the lamp can ensure that the driver can normally run or not and the sight to the driver of the vehicle is not influenced when the vehicle runs at the angle of the lamp can be determined; when the car light angle does not meet the set angle range, a first reference value is calculated according to the total weight of the front seat support and the total weight of the back seat support, and the first compensation angle is obtained according to the car light angle and the first reference value, so that when the car light angle is compensated by the car light compensation angle, the situation that the light angle is higher due to the fact that the front end of a car is upwarp when the weight of the back seat support in the car is heavier can be overcome, the brightness in a unit area is prevented from being reduced, the problem that a driver cannot see road conditions clearly due to lower brightness is avoided, and meanwhile, the influence on the sight of the driver of the opposite car due to the fact that the height of the car light is too high is avoided.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart illustrating steps of a method for adjusting light of an automobile according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of an automotive light adjusting system according to embodiment 5 of the present invention;
Fig. 3 is a schematic diagram of a computer system of a terminal device according to embodiment 6 of the present invention.
Reference numerals: 100. a computer system; 101. a CPU; 102. a ROM; 103. a RAM; 104. a bus; 105. an I/O interface; 106. an input section; 107. an output section; 108. a storage section; 109. a communication section; 110. a driver; 111. a removable medium; 201. an angle acquisition module; 202. a first processing module; 203. a second processing module; 204. calling a module; 205. and a compensation module.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the invention are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
The common dipped headlight angle is fixed, although manual adjustment can be supported, when the rear row of the vehicle is relatively large in the middle, for example, three heavier people sit on the rear row, the rear end of the vehicle can incline downwards by a certain extent, and the front end can naturally rise by a certain angle, so that the angle of the light is higher; under the condition that the brightness of the car lamp is certain, the angle of the lamp light is higher, the larger the range of the lamp light is, the lower the brightness in the unit area is, the safety problem is caused, and the sight to a driver of the car is affected. Based on this situation, it is desirable to provide an automobile light adjusting method for solving the above problems.
Example 1
Referring to fig. 1, the present embodiment provides a method for adjusting light of an automobile, including the following steps:
S100, when a lamp of a vehicle is started and a person is in the vehicle, acquiring a lamp angle of the vehicle, wherein the lamp angle is an included angle between a lamp light and the ground of the vehicle;
s200, judging whether the angle of the car lamp meets a set angle range, if not, acquiring a first set, wherein the first set at least comprises the total weight of the front seat support and the total weight of the back seat support in the car;
S300, calculating a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support;
S400, calling a first calibration database according to the car lamp angle and the first reference value to obtain a first compensation angle, wherein the first calibration database comprises: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and the first compensation angles corresponding to the first reference values of each group;
s500, compensating the car lamp angle according to the first compensation angle so that the car lamp angle meets a preset angle range.
Further, the first set further comprises a trunk support total weight of the vehicle:
invoking a first calibration database according to the first reference value to obtain a first compensation angle, and specifically comprising the following steps:
and summing the first reference value and the total weight of the trunk bearing to correct the first reference value, and calling a first calibration database according to the first reference value to obtain a first compensation angle.
Further, after the first set is obtained, the method further includes the following steps:
calculating a first reference weight, wherein the first reference weight is the sum of the total weight of the back row seat support and the total weight of the trunk support;
Comparing the first reference weight to a first weight threshold;
The calculating the first reference value specifically includes the following steps:
the first reference value is calculated when the first reference weight is greater than or equal to the first weight threshold.
Specifically, at least weight sensors are installed on each seat and in the trunk of the vehicle, and are respectively used for detecting the total weight of the front-row seat support, the total weight of the rear-row seat support and the total weight of the trunk support. By installing a weight sensor on a seat of the vehicle, whether a person is in the vehicle can be judged; when a person exists in the vehicle and the vehicle lamp is started, acquiring the corresponding vehicle lamp angle of the vehicle at the moment, judging whether the vehicle lamp angle meets a set angle range, and when the vehicle lamp angle meets the set angle range, indicating that the vehicle runs at the vehicle lamp angle, the light emitted by the vehicle lamp can meet the normal running of a driver of the vehicle and does not influence the driver of the opposite vehicle; when the car light angle does not meet the set angle range, acquiring the first set, namely respectively detecting the total weight of the front seat support, the total weight of the rear seat support and the total weight of the trunk support through a weight sensor; summing the total weight of the back row seat support and the total weight of the trunk support to obtain the first reference weight, comparing the first reference weight with the first weight threshold, and when the first reference weight is greater than or equal to the first weight threshold, indicating that the vehicle lamp angle does not meet the preset angle range is caused by the overweight total weight of the back row seat support and the trunk support, and subtracting the total weight of the front row seat support from the total weight of the back row seat support to obtain the first reference value; after the first reference value is calculated, summing the first reference value with the total weight of the trunk support, and correcting the first reference value; calling a first calibration database according to the corrected first reference value and the lamp angles to obtain the first compensation angles, wherein when each lamp angle in the first calibration database corresponds to one first reference value, one first compensation angle can be obtained; the first calibration data base is shown in table 1 below:
Table 1 first calibration data base
After the first compensation angle is obtained, the car lamp angle is compensated according to the first compensation angle, and the specific method comprises the following steps:
If the car light angle is smaller than the minimum value of the preset angle range, adding the car light angle and the first compensation angle to obtain a new car light angle;
and if the car light angle is larger than the maximum value of the preset angle range, subtracting the first compensation angle from the car light angle to obtain a new car light angle.
The new car light angle obtained after compensation meets the preset angle range, so that the situation that the normal driving of a driver of the car is influenced due to the fact that the inclination angle of the car light is too high or too low when the car runs at the car light angle after compensation is avoided, and meanwhile the sight of the driver facing the car is prevented from being influenced.
Example 2
In this embodiment, another method for adjusting the light of an automobile is provided, and the method for compensating the angle of the automobile lamp is different from embodiment 1; adapted for use in the case where the first reference weight is less than the first weight threshold after the comparing the first reference weight to the first weight threshold, the method further comprises the steps of:
When the first reference weight is smaller than the first weight threshold value, obtaining the maximum value and the minimum value of the preset angle range; calculating an average of the maximum value and the minimum value;
calculating a second compensation angle, wherein the second compensation angle is the absolute value of the difference value between the average value and the angle of the car lamp;
And compensating the car lamp angle according to the second compensation angle so that the car lamp angle meets a preset angle range.
Specifically, when the first reference weight is smaller than the first weight threshold, it is indicated that the vehicle lamp angle does not meet the preset angle range and is not caused by the fact that the sum of the rear-row load bearing of the vehicle and the load bearing of the trunk is overweight, and then the maximum value and the minimum value of the preset angle range are obtained, and the average value of the maximum value and the minimum value is obtained; then subtracting the average value from the angle of the car lamp to obtain a difference value, and taking the absolute value of the difference value as the second compensation angle; and finally compensating the angle of the car lamp according to the second compensation angle, wherein the specific method comprises the following steps:
If the car light angle is smaller than the minimum value of the preset angle range, adding the car light angle and the second compensation angle to obtain a new car light angle;
And if the car light angle is larger than the maximum value of the preset angle range, subtracting the second compensation angle from the car light angle to obtain a new car light angle.
Example 3
On the basis of the above embodiment 1, the present embodiment provides another method for adjusting light of an automobile, specifically, after the calling a first calibration database according to the angle of the automobile lamp and the first reference value to obtain a first compensation angle, the method further includes the following steps:
Judging whether an obstacle exists in a set distance of the front side of the vehicle,
If no obstacle exists in the set distance of the front side of the vehicle, acquiring a first distance, wherein the first distance is the distance between the position of light-dark transition on the ground of the vehicle and the front end of the vehicle;
the car lamp angle is compensated according to the first compensation angle, and specifically comprises the following steps:
And when the first distance meets a first distance range, compensating the angle of the car lamp according to the first compensation angle.
Further, the compensating the lamp angle according to the first compensating angle specifically further includes the following steps:
When the first distance does not meet the first distance range, a second calibration database is called according to the first distance to obtain a first correction value; the second calibration data base includes: a plurality of groups of first distances, and a first correction value corresponding to each group of first distances;
Correcting the first compensation angle according to the first correction value; and compensating the angle of the car lamp according to the first compensation angle.
Specifically, in order to make the compensation of the first compensation angle to the lamp angle more accurate, after the first compensation angle is obtained, the first compensation angle needs to be corrected according to the actual position of the lamp light of the vehicle, and the specific method includes:
Firstly, judging whether an obstacle exists in a set distance of the front side of a vehicle, and correcting the first compensation angle when the obstacle exists and the correction method when the obstacle does not exist in the set distance of the front side of the vehicle is different; if no obstacle exists in the set distance of the front side of the vehicle, the light rays can be directly emitted to the front side of the vehicle and irradiated to the ground after the vehicle lamp is started, and the length of the position of the light ray light-dark transition on the ground, which is the length of the front end of the vehicle, is acquired, namely the first distance (the furthest distance for irradiating the light rays of the vehicle lamp); judging whether the first distance meets a first distance range or not specifically comprises the following steps:
When the first distance meets the first distance range, the fact that the irradiation distance of the car light is normal is indicated, the phase change indicates that the car light cannot influence the forward driving of the driver of the car, the opposite direction driver cannot be influenced, namely, correction of the first compensation angle is not needed, and finally compensation of the car light angle is carried out according to the first compensation angle.
When the first distance does not meet the first distance range, indicating that the irradiation distance of the car light is too short or too long, at the moment, calling a second calibration database according to the obtained first distance to obtain a first correction value, wherein each first distance in the second calibration database corresponds to one first correction value; the second calibration data base is shown in table 2 below:
Table 2 second calibration data base
After the first correction value is obtained, correcting the first compensation angle according to the first correction value, wherein the specific method comprises the following steps:
Adding the first compensation angle and the first correction value to obtain a new first compensation angle; the first correction value is far smaller than the first compensation angle, and the first correction value is used for fine adjustment of the first compensation angle;
and finally, compensating the angle of the car lamp according to the first compensation angle corrected by the first correction value.
The furthest distance of the irradiation of the light rays of the vehicle lamp is obtained when no obstacle exists on the front side of the vehicle, the corresponding first correction value is obtained according to the furthest distance, and finally the first compensation angle is finely adjusted through the first correction value, so that the angle of the vehicle lamp can be adjusted according to the furthest distance of the rear-row bearing of the vehicle, the bearing of the trunk and the irradiation of the light rays of the vehicle lamp, and the effectiveness of the angle adjustment of the vehicle lamp is further improved.
Example 4
On the basis of the above embodiment 3, the present embodiment provides another method for adjusting light of an automobile, which is applicable to a situation that after the first calibration database is called according to the lamp angle and the first reference value to obtain a first compensation angle, and an obstacle is located in a set distance from the front side of the automobile, the method further includes the following steps:
If an obstacle exists in the set distance of the front side of the vehicle, acquiring a second distance and a first height, wherein the second distance is the distance between the obstacle and the front end of the vehicle, and the first height is the distance between the light and shade transition position on the obstacle and the ground where the vehicle is located;
Calling a third calibration database according to the second distance and the first height to obtain a second correction value; the third calibration data base includes: a plurality of groups of second distances, a plurality of groups of first heights corresponding to each group of second distances, and a second correction value corresponding to each group of first heights;
The car lamp angle is compensated according to the first compensation angle, and the method specifically further comprises the following steps:
Correcting the first compensation angle according to the second correction value; and compensating the angle of the car lamp according to the first compensation angle.
Specifically, if an obstacle exists in the set distance of the front side of the vehicle, light cannot irradiate on the ground of the front side of the vehicle after the vehicle lamp is started, but irradiates on the obstacle, at the moment, the distance between the obstacle and the front end of the vehicle, namely the second distance, is acquired, and meanwhile, the position of the highest point of the light when the light of the vehicle lamp irradiates on the obstacle, namely the first height, is acquired; then, according to the second distance and the first height, a third calibration database is called to obtain a second correction value, and when each second distance in the third calibration database corresponds to one first height, one second correction value can be obtained; the third calibration data base is shown in table 3 below:
TABLE 3 third calibration data base
After the second correction value is obtained, correcting the first compensation angle according to the first correction value, wherein the specific method comprises the following steps:
Adding the first compensation angle and the second correction value to obtain a new first compensation angle; the second correction value is far smaller than the second compensation angle, and the second correction value is used for fine adjustment of the first compensation angle;
And finally, compensating the angle of the car lamp according to the first compensation angle corrected by the second correction value.
Example 5
Referring to fig. 2, the present embodiment provides an automobile light adjusting system, including:
The angle acquisition module 201 is configured to acquire a lamp angle of a vehicle when a lamp of the vehicle is turned on and a person is in the vehicle, wherein the lamp angle is an included angle between a lamp light and the ground on which the vehicle is located;
The first processing module 202 is configured to determine whether the vehicle lamp angle meets a set angle range, and if not, obtain a first set, where the first set at least includes a total weight of front seat bearings and a total weight of back seat bearings in the vehicle;
A second processing module 203, the second processing module 203 being configured to calculate a first reference value, the first reference value being a difference between the total weight of the back row seat support and the total weight of the front row seat support;
And a calling module 204, where the calling module 204 is configured to call a first calibration database according to the lamp angle and the first reference value to obtain a first compensation angle, and the first calibration database includes: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and a first compensation angle corresponding to the first reference values of each group;
The compensation module 205 is configured to compensate the lamp angle according to the first compensation angle, so that the lamp angle meets a preset angle range.
Specifically, the automobile light adjusting system provided in this embodiment is used to implement the steps of the automobile light adjusting method described in the foregoing embodiments 1 to 4.
Example 6
Referring to fig. 3, the present embodiment provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the steps of the method for adjusting light of an automobile according to any one of embodiments 1 to 4 are implemented when the processor executes the computer program.
Specifically, the computer system 100 of the terminal device includes a CPU101 that can perform various appropriate actions and processes according to a program stored in a ROM102 or a program loaded from a storage section 108 into a RAM 103. In the RAM103, various programs and data required for system operation are also stored. The CPU101, ROM102, and RAM103 are connected to each other through a bus 104. An I/O interface 105 is also connected to bus 104. The following components are connected to the I/O interface 105: an input section 106 including a keyboard, a mouse, and the like; an output section 107 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 108 including a hard disk or the like; and a communication section 109 including a network interface card such as a LAN card, a modem, and the like. The communication section 109 performs communication processing via a network such as the internet. The drives are also connected to the I/O interface 105 as needed. A removable medium 111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 110 as needed, so that a computer program read out therefrom is installed into the storage section 108 as needed.
In particular, the process described above with reference to flowchart 1 may be implemented as a computer software program according to an embodiment of the invention. For example, embodiment 6 of the present invention includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowchart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. When the computer program is executed by the CPU101, the above-described functions defined in the present computer system 100 are performed.
Example 7
The present embodiment provides a computer-readable storage medium having a computer program which, when executed by a processor, implements the steps of the vehicle light adjustment method according to any one of embodiments 1 to 4.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases. The described units or modules may also be provided in a processor, for example, as: a processor includes an angle acquisition module 201, a first processing module 202, a second processing module 203, a calling module 204, and a compensation module 205. The names of these units or modules do not limit the units or modules themselves in some cases, and for example, the angle acquisition module 201 may also be described as "for acquiring a lamp angle of a vehicle when the lamp of the vehicle is on and there is a person in the vehicle".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by one of the electronic devices, cause the electronic device to implement the vehicle light adjustment method as described in the above embodiments.
For example, the electronic device may implement the method as shown in fig. 1: s100, when a lamp of a vehicle is started and a person is in the vehicle, acquiring a lamp angle of the vehicle, wherein the lamp angle is an included angle between a lamp light and the ground of the vehicle; s200, judging whether the angle of the car lamp meets a set angle range, if not, acquiring a first set, wherein the first set at least comprises the total weight of the front seat support and the total weight of the back seat support in the car; s300, calculating a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support; s400, calling a first calibration database according to the car lamp angle and the first reference value to obtain a first compensation angle, wherein the first calibration database comprises: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and a first compensation angle corresponding to the first reference values of each group; s500, compensating the car lamp angle according to the first compensation angle so that the car lamp angle meets a preset angle range.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with the disclosed embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods of the present invention are depicted in the accompanying drawings in a particular order, this is not required to or suggested that the steps must be performed in this particular order or that all of the steps shown be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware.
The above description is only illustrative of the preferred embodiments of the present invention and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the invention referred to in the present invention is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept. Such as the above-mentioned features and the technical features disclosed in the present invention (but not limited to) having similar functions are replaced with each other.
Claims (8)
1. The automobile light adjusting method is characterized by comprising the following steps of:
When the lamp of the vehicle is started and a person is in the vehicle, acquiring the lamp angle of the vehicle, wherein the lamp angle is an included angle between the light of the lamp and the ground on which the vehicle is positioned;
Judging whether the car light angle meets a set angle range, if not, acquiring a first set, wherein the first set comprises the total weight of the front seat support, the total weight of the back seat support and the total weight of the trunk support in the car;
calculating a first reference weight, wherein the first reference weight is the sum of the total weight of the back row seat support and the total weight of the trunk support;
Comparing the first reference weight to a first weight threshold;
when the first reference weight is greater than or equal to the first weight threshold, calculating a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support;
summing the first reference value with the total weight of the trunk support to correct the first reference value;
calling a first calibration database according to the car lamp angle and the corrected first reference value to obtain a first compensation angle, wherein the first calibration database comprises: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and a first compensation angle corresponding to the first reference values of each group;
And compensating the car lamp angle according to the first compensation angle so that the car lamp angle meets a set angle range.
2. The method for adjusting the lamp light of the automobile according to claim 1, wherein after the first calibration database is called according to the angle of the automobile lamp and the corrected first reference value to obtain a first compensation angle, the method further comprises the following steps:
Judging whether an obstacle exists in a set distance of the front side of the vehicle,
If no obstacle exists in the set distance of the front side of the vehicle, acquiring a first distance, wherein the first distance is the distance between the position of light-dark transition on the ground of the vehicle and the front end of the vehicle;
the car lamp angle is compensated according to the first compensation angle, and specifically comprises the following steps:
And when the first distance meets a first distance range, compensating the angle of the car lamp according to the first compensation angle.
3. The method for adjusting the lamp angle of the automobile according to claim 2, wherein the compensating the lamp angle according to the first compensating angle comprises the following steps:
When the first distance does not meet the first distance range, a second calibration database is called according to the first distance to obtain a first correction value; the second calibration data base includes: a plurality of groups of first distances, and a first correction value corresponding to each group of first distances;
correcting the first compensation angle according to the first correction value; and compensating the car lamp angle according to the corrected first compensation angle.
4. A method of adjusting the light of an automobile as claimed in claim 3, further comprising the steps of:
If an obstacle exists in the set distance of the front side of the vehicle, acquiring a second distance and a first height, wherein the second distance is the distance between the obstacle and the front end of the vehicle, and the first height is the distance between the light and shade transition position on the obstacle and the ground where the vehicle is located;
Calling a third calibration database according to the second distance and the first height to obtain a second correction value; the third calibration data base includes: a plurality of groups of second distances, a plurality of groups of first heights corresponding to each group of second distances, and a second correction value corresponding to each group of first heights;
The car lamp angle is compensated according to the first compensation angle, and the method specifically further comprises the following steps:
Correcting the first compensation angle according to the second correction value; and compensating the car lamp angle according to the corrected first compensation angle.
5. A method of adjusting a vehicle light as defined in any one of claims 1-4, further comprising the steps of:
when the first reference weight is smaller than the first weight threshold value, obtaining the maximum value and the minimum value of the set angle range; calculating an average of the maximum value and the minimum value;
calculating a second compensation angle, wherein the second compensation angle is the absolute value of the difference value between the average value and the angle of the car lamp;
and compensating the car lamp angle according to the second compensation angle so that the car lamp angle meets a set angle range.
6. An automotive light regulating system, comprising:
the system comprises an angle acquisition module (201), wherein the angle acquisition module (201) is configured to acquire a lamp angle of a vehicle when a lamp of the vehicle is started and a person is in the vehicle, and the lamp angle is an included angle between a lamp light and the ground on which the vehicle is positioned;
The first processing module (202) is configured to judge whether the angle of the car lamp meets a set angle range, if not, a first set is obtained, and the first set comprises the total weight of the front seat support, the total weight of the rear seat support and the total weight of the trunk support in the car;
-a second processing module (203), the second processing module (203) being configured to calculate a first reference weight, the first reference weight being the sum of the total weight of the rear seat supports and the total weight of the trunk supports; comparing the first reference weight to a first weight threshold; when the first reference weight is greater than or equal to the first weight threshold, calculating a first reference value, wherein the first reference value is the difference between the total weight of the back row seat support and the total weight of the front row seat support; summing the first reference value with the total weight of the trunk support to correct the first reference value;
-a calling module (204), the calling module (204) being configured to call a first calibration database according to the lamp angle and the corrected first reference value to obtain a first compensation angle, the first calibration database comprising: the plurality of groups of the car light angles, a plurality of groups of the first reference values corresponding to the car light angles of each group, and a first compensation angle corresponding to the first reference values of each group;
-a compensation module (205), the compensation module (205) being configured to compensate the lamp angle according to the first compensation angle such that the lamp angle meets a set angle range.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the vehicle light regulating method according to any one of claims 1-5 when the computer program is executed.
8. A computer-readable storage medium having a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the vehicle light regulation method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410200071.XA CN117774816B (en) | 2024-02-23 | 2024-02-23 | Automobile light adjusting method, system, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410200071.XA CN117774816B (en) | 2024-02-23 | 2024-02-23 | Automobile light adjusting method, system, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117774816A CN117774816A (en) | 2024-03-29 |
CN117774816B true CN117774816B (en) | 2024-05-17 |
Family
ID=90382038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410200071.XA Active CN117774816B (en) | 2024-02-23 | 2024-02-23 | Automobile light adjusting method, system, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117774816B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6278912B1 (en) * | 1998-02-02 | 2001-08-21 | Nissan Motor Co., Ltd. | Pitch angle calculating device for vehicle |
CN1602260A (en) * | 2001-12-10 | 2005-03-30 | 金泰克斯公司 | Headlamp control to prevent glare |
KR100818485B1 (en) * | 2007-08-09 | 2008-04-02 | 송재근 | Auto-leveling apparatus for headlamp of vehicles |
JP2011084150A (en) * | 2009-10-15 | 2011-04-28 | Koito Mfg Co Ltd | Auto-leveling device of head lamp for vehicle |
JP2011098578A (en) * | 2009-11-04 | 2011-05-19 | Koito Mfg Co Ltd | Head lamp system for motorcycle |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9527430B2 (en) * | 2014-08-11 | 2016-12-27 | Toyota Motor Engineering & Manufacturing North America, Inc. | Vehicle headlight leveling control |
-
2024
- 2024-02-23 CN CN202410200071.XA patent/CN117774816B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6278912B1 (en) * | 1998-02-02 | 2001-08-21 | Nissan Motor Co., Ltd. | Pitch angle calculating device for vehicle |
CN1602260A (en) * | 2001-12-10 | 2005-03-30 | 金泰克斯公司 | Headlamp control to prevent glare |
KR100818485B1 (en) * | 2007-08-09 | 2008-04-02 | 송재근 | Auto-leveling apparatus for headlamp of vehicles |
JP2011084150A (en) * | 2009-10-15 | 2011-04-28 | Koito Mfg Co Ltd | Auto-leveling device of head lamp for vehicle |
JP2011098578A (en) * | 2009-11-04 | 2011-05-19 | Koito Mfg Co Ltd | Head lamp system for motorcycle |
Also Published As
Publication number | Publication date |
---|---|
CN117774816A (en) | 2024-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8768576B2 (en) | Undazzled-area map product, and system for determining whether to dazzle person using the same | |
US9146015B2 (en) | Method and a device for testing a lighting driving assistance system | |
US10286833B2 (en) | Control device for vehicular lamp and vehicle lighting system | |
CN105026209B (en) | Control system, device and the method for the car light of vehicle | |
CN117774816B (en) | Automobile light adjusting method, system, equipment and medium | |
CN109649361B (en) | Automobile electronic control brake gain adjusting method, system, equipment and storage medium | |
US20040125608A1 (en) | Irradiating direction control apparatus of headlamp for vehicle | |
CN113602198B (en) | Vehicle rearview mirror adjusting method and device, storage medium and computer equipment | |
US20080114518A1 (en) | System for the dynamic correction of the orientation of a light source on a vehicle and the associated method | |
US10596954B2 (en) | Control device for vehicular lamp and vehicle lighting system | |
US10300839B2 (en) | Control device for vehicular lamp and vehicle lighting system | |
KR101526425B1 (en) | Gesture Recognizing Apparatus and Gesture Recognizing Method | |
KR20190123874A (en) | Apparatus for controlling low beam of vehicle and method thereof | |
CN116456550A (en) | Distributed stage lighting control method and distributed stage lighting control platform | |
CN116558461A (en) | Altitude sensor calibration method, altitude sensor calibration device, altitude sensor calibration equipment and readable storage medium | |
US20230251162A1 (en) | Adas calibration system for calibrating at least one headlamp of a vehicle | |
CN115683570A (en) | Automobile light detection method, system, storage medium and intelligent terminal | |
CN108928291A (en) | The control device and lamp system for vehicle of lamps apparatus for vehicle | |
JP3931495B2 (en) | Vehicle pitch angle calculation device | |
JPH02164628A (en) | Headlump device for vehicle | |
JP4086184B2 (en) | Irradiation direction control device for vehicular lamp | |
CN116503481B (en) | Automatic parking position and orientation detecting system based on image visual guidance | |
CN115046617B (en) | Vehicle load measuring method, controller, storage medium and automobile | |
CN118046739A (en) | Sun shield adjusting method, sun shield adjusting device, electronic equipment and storage medium | |
CN116847519A (en) | Integrated dimming device and vehicle-mounted display device comprising same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |