A bicycle lamp lighting method, system, storage medium and intelligent terminal
By combining vehicle operation and ambient light intensity, the bicycle lighting system dynamically adjusts the lighting status and angle, solving the problem of the single function of bicycle headlights, realizing multifunctionality and automated control, and improving riding safety and user-friendliness.
Patent Information
- Application Number
- CN202510204334.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2045-02-24
AI Technical Summary
Existing bicycle headlights are too limited in function, serving only as illumination and lacking multifunctionality and automated control.
By acquiring data on headlight button operations, vehicle operation, and ambient light intensity, and combining this with light intensity sensors and facial image analysis, the system dynamically adjusts the lighting status, angle, and movement to achieve a multi-functional effect similar to car headlights.
It achieves multi-functionality and automated control of bicycle lights, improving riding safety and user-friendliness, and adapting to different lighting environments and riding conditions.
Smart Images

Figure CN119767489B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of bicycle lighting control systems, and more particularly to a bicycle lighting method, system, storage medium, and smart terminal. Background Technology
[0002] Bicycle lights are devices used to illuminate and improve visibility while cycling. They are essential for safety when riding in low-light conditions, such as at dawn, dusk, or night.
[0003] In related technologies, bicycle lights are generally divided into two types: headlights and taillights. Headlights: Installed at the front of the bicycle, they illuminate the road ahead, helping the rider see the road conditions and making the rider visible to others. Headlight brightness ranges from a few lumens to thousands of lumens, with different brightness levels chosen depending on the usage scenario. Taillights: Installed at the rear of the bicycle, they primarily serve a warning function, alerting vehicles and pedestrians behind to give way. Taillights are generally red and have both flashing and constant-on modes to increase visibility. Some lights can be directly clipped onto the bicycle, while others require screws for mounting. The mounting point is usually on the wheel swivel at the front of the frame, directly in front of the wheel.
[0004] The existing technology has the following problems: the headlights only serve the purpose of illumination and cannot produce any other functions. Their functionality is too limited and there is still room for improvement. Summary of the Invention
[0005] To address the issue that headlights only serve an illumination function and cannot perform any other functions, resulting in overly limited functionality, this application provides a bicycle headlight illumination method, system, storage medium, and smart terminal.
[0006] Firstly, this application provides a method for illuminating a bicycle lamp, employing the following technical solution:
[0007] A bicycle lamp illumination method includes:
[0008] The operation of the bicycle light button is obtained. The bicycle includes a frame and handlebars. The handlebars are located on the frame and both ends of the handlebars are equipped with lights.
[0009] The corresponding lighting status is retrieved from a preset lighting database based on the operation of the vehicle headlight button. The lighting status includes low beam status, high beam status, flashing light status, or no light status.
[0010] Control the lights to illuminate according to the lighting status;
[0011] The vehicle operation and ambient light intensity on the bicycle are obtained, wherein the vehicle operation includes left turn operation and right turn operation;
[0012] The corresponding actual lighting status is retrieved from the lighting database based on the ambient light intensity.
[0013] Based on vehicle operation, the corresponding lighting angle and lighting action are retrieved from a preset action database;
[0014] The system controls the lighting to adjust the lighting status according to the actual lighting conditions, and operates the lighting according to the lighting angle and lighting action.
[0015] By adopting the above technical solution, the required state, angle, and action of the bicycle lights can be determined by human control and vehicle movement, thereby achieving a multi-functional function similar to that of car lights and improving the multi-functionality and automation of bicycle lighting.
[0016] Optionally, a method for verifying ambient light intensity may also be included, the method comprising:
[0017] Obtain the light intensity sensor number and reception duration that generate the light intensity value;
[0018] The light intensity sensor number is removed when the reception duration is less than the preset stable reception duration;
[0019] The number of the unreceived sensor is determined based on the light intensity sensor number and the preset total sensor number.
[0020] When the sensor number is not received or the corresponding number is less than the preset local threshold number, the corresponding light intensity is received based on the light intensity sensor number.
[0021] The light intensity with the highest number of selections is used as the ambient light intensity for output.
[0022] When the number of unreceived sensor numbers exceeds the local critical number, the preset zero light intensity will be output as the ambient light intensity.
[0023] By adopting the above technical solution, the ambient light intensity is checked by sensors from multiple angles. On the one hand, this prevents the influence of sudden full-screen illumination, and on the other hand, it prevents the influence of unilateral illumination, thus improving the accuracy of ambient light intensity.
[0024] Optional, also includes:
[0025] When the ambient light intensity is zero, the corresponding angle receiving sensor number is retrieved from a preset number database based on vehicle operation.
[0026] When the light intensity sensor number and the angle receiving sensor number match, a facial image captured on the helmet is obtained;
[0027] The system identifies successfully matched closed-eye images based on facial images and preset closed-eye features.
[0028] Output the lighting status when the closed-eye image is not available;
[0029] When a closed-eye image is present, the lighting state is modified to the preset flashing light state and high beam state.
[0030] By adopting the above technical solution, when the environment is obviously dark and there is obvious light in front or at the corner, it means that there may be strong light in front. In order to distinguish whether the strong light will affect the cyclist, the facial state is observed. When the eyes on the face are closed, it means that strong light has been generated, and the lighting state is changed to flashing light state.
[0031] Optionally, methods for determining successfully matched closed-eye images based on facial images and preset closed-eye features include:
[0032] Facial illumination intensity is obtained based on preset facial sensor numbers;
[0033] Matching is not performed when the facial illumination intensity is zero.
[0034] When the light intensity of the face and the light intensity corresponding to the angle receiving sensor number are the same, the light color difference is analyzed based on the face image and the preset standard face image;
[0035] The closed-eye features are modified based on the color difference of illumination to obtain the actual closed-eye features;
[0036] Successfully matched closed-eye images are determined based on facial images and actual closed-eye features.
[0037] By adopting the above technical solution, since some high beams are white light and some are black light, the light shining on a person's face is different. By identifying the light intensity changes in most areas of the face, the color of the closed-eye feature in the image library is adjusted to restore the closed-eye feature matched under the light intensity, thereby improving the accuracy of the closed-eye feature output.
[0038] Optionally, methods for not performing matching when facial illumination intensity is zero include:
[0039] The gripping force on the two handles was obtained when the facial illumination intensity was zero.
[0040] When at least one of the gripping forces on the two handles is equal to zero, the preset soft light on the helmet is turned on, and then the facial image is re-acquired;
[0041] Matching will not be performed if the grip force on both handles is greater than zero.
[0042] By adopting the above technical solution, when the light intensity on the face is zero, it may be that the person's hand is blocking the light. In this case, it is necessary to determine the grip strength of the person's hand on the handle. It is also dangerous when the person's hand is removed. Therefore, it is still necessary to flash the strong light as soon as possible to make the other party turn off the strong light so that the rider can put his hand down and drive safely, thus improving the accuracy of strong light recognition.
[0043] Optionally, methods for adjusting the lighting status according to the actual lighting conditions include:
[0044] When the headlight button is not activated, control the headlights to illuminate according to the actual lighting conditions;
[0045] A preset alarm signal is issued when the headlight button is operated, and the headlight button operation is defined as a historical button operation;
[0046] Upon receiving the headlight button operation again, define the headlight button operation as a confirmed headlight button operation;
[0047] When it is confirmed that the operation of the headlight button is consistent with the historical button operation, the headlights are controlled to illuminate according to the lighting status;
[0048] When the confirmed headlight button operation is inconsistent with the historical button operation, the corresponding confirmed lighting status is retrieved from the lighting database based on the confirmed headlight button operation.
[0049] When the lighting status is confirmed to be consistent with the actual lighting status, the lights are controlled to illuminate according to the actual lighting status;
[0050] If the confirmed lighting status is inconsistent with the actual lighting status, the operation of the headlight confirmation button will be updated to the historical button operation, and the alarm signal will continue to be issued until the confirmed headlight confirmation button operation and the historical button operation are consistent.
[0051] By adopting the above technical solution, when the light corresponding to the environment is different from the light operated by the user, an inquiry is issued to determine whether the operation needs to be changed. If the customer insists on executing the operation, then the operation is executed according to the customer's judgment, which improves the humanization of vehicle lighting.
[0052] Optionally, it also includes a subsequent lighting method after confirming that the lighting state and the actual lighting state are consistent, wherein the method includes:
[0053] Obtain driving status and highway coordinates within a preset experience interval;
[0054] When the ambient light intensity changes, an alarm signal is reissued to determine the actual lighting status and confirm the lighting status.
[0055] When the ambient light intensity remains unchanged, the corresponding historical normal driving status is retrieved from the preset historical database based on the highway coordinates.
[0056] If a historical normal driving condition exists and the driving condition is consistent with the historical normal driving condition, continue to control the lights according to the actual lighting condition;
[0057] If a historical normal driving condition exists but the driving condition is inconsistent with the historical normal driving condition, an alarm signal will be issued again to determine the actual lighting condition and confirm the lighting condition.
[0058] When historical normal driving conditions do not exist, the current road conditions are determined based on road coordinates.
[0059] The historical road conditions are fitted and compared with the corresponding historical road conditions in the preset driving database to obtain the historical road conditions with the highest similarity and greater than the preset similarity threshold. The historical road conditions are defined as similar historical road conditions.
[0060] Based on similar historical road conditions, the corresponding similar historical normal driving status is found from the historical database;
[0061] When the driving status is consistent with similar historical normal driving status, continue to control the lights according to the actual lighting status;
[0062] If the driving status is inconsistent with similar historical normal driving status, the alarm signal will be issued again to determine the actual lighting status and confirm the lighting status.
[0063] By adopting the above technical solution, the driving situation under the current road conditions is compared with the past or similar past conditions. If it is significantly slower than in the past, it means that the lighting is obviously wrong and the lighting needs to be rechecked. After a period of time, users will also find that the lighting problem causes inconvenience to driving, so they will choose the lighting again, which improves the humanization and safety of the lighting method.
[0064] Secondly, this application provides a bicycle lighting system, which adopts the following technical solution:
[0065] A bicycle lighting system, comprising:
[0066] The acquisition module is used to acquire information such as headlight button operation, vehicle operation, ambient light intensity, light intensity sensor number, reception duration, facial image, facial light intensity, handle grip strength, driving status, and highway coordinates.
[0067] A memory for storing the program of the control method for any of the above-mentioned bicycle lamp lighting methods;
[0068] The processor and the program in the memory can be loaded and executed by the processor to implement the control method of any of the above-mentioned bicycle light illumination methods.
[0069] By adopting the above technical solution, the required state, angle, and action of the bicycle lights can be determined by human control and vehicle movement, thereby achieving a multi-functional function similar to that of car lights and improving the multi-functionality and automation of bicycle lighting.
[0070] Thirdly, this application provides a smart terminal, which adopts the following technical solution:
[0071] The intelligent terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed any of the above-mentioned bicycle light illumination methods.
[0072] By adopting the above technical solution, the required state, angle, and action of the bicycle lights can be determined by human control and vehicle movement, thereby achieving a multi-functional function similar to that of car lights and improving the multi-functionality and automation of bicycle lighting.
[0073] Fourthly, this application provides a computer storage medium capable of storing corresponding programs, featuring fast interaction with large amounts of memory.
[0074] Computer-readable storage media adopt the following technical solutions:
[0075] A computer-readable storage medium storing a computer program that can be loaded by a processor and executed any of the above-described bicycle light illumination methods.
[0076] By adopting the above technical solution, the required state, angle, and action of the bicycle lights can be determined by human control and vehicle movement, thereby achieving a multi-functional function similar to that of car lights and improving the multi-functionality and automation of bicycle lighting.
[0077] In summary, this application includes at least the following beneficial technical effects:
[0078] 1. By manually controlling the vehicle's movements to determine the required state, angle, and action of the lights, a multi-functional function similar to that of car lights can be achieved, thus improving the multi-functionality and automation of bicycle lighting.
[0079] 2. When strong light is present, observe the facial features. If the eyes on the face are closed, it indicates that strong light has been generated. In this case, change the lighting status to flashing light status.
[0080] 3. If the ambient light and the light used by the user are different, an inquiry is sent to determine whether the operation needs to be changed. If the customer insists on proceeding, then the operation is performed according to the customer's judgment, which improves the humanization of vehicle lighting. Attached Figure Description
[0081] Figure 1 This is a flowchart of a bicycle lamp lighting method according to an embodiment of this application.
[0082] Figure 2 This is a schematic diagram of the bicycle structure in an embodiment of this application.
[0083] Figure 3 This is a flowchart of the method for verifying ambient light intensity in the embodiments of this application.
[0084] Figure 4 This is a flowchart of a method for determining a successfully matched closed-eye image based on a facial image and preset closed-eye features, as described in an embodiment of this application.
[0085] Figure 5 This is a flowchart of a method for not performing matching when the facial illumination intensity is zero, as described in an embodiment of this application.
[0086] Figure 6 This is a flowchart of a method for adjusting the lighting state according to the actual lighting state in an embodiment of this application.
[0087] Figure 7 This is a flowchart of a subsequent lighting method in this application embodiment, which controls the lighting lamps to illuminate according to the actual lighting state after confirming that the lighting state and the actual lighting state are consistent.
[0088] Figure 8 This is a system block diagram of a bicycle lamp lighting method according to an embodiment of this application.
[0089] Explanation of reference numerals in the attached diagram: 1. Vehicle body; 2. Handlebar; 21. Lighting lamp; 3. Helmet. Detailed Implementation
[0090] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figures 1-8 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the application.
[0091] This application discloses a method for illuminating a bicycle lamp. (Refer to...) Figure 1 A bicycle lamp illumination method includes:
[0092] Step 100: Obtain the operation of the bicycle light button.
[0093] Reference Figure 2 The bicycle includes a frame 1 and handlebars 2. The handlebars 2 are mounted on the frame 1 for the rider to grip and control the direction of the bicycle. Both ends of the handlebars 2 are equipped with lights 21, which are actually composed of multi-functional bulbs, including low beam, high beam and yellow light indicating turning, similar in function to a car.
[0094] The headlight button operation controls whether the headlights 21 are on or off. Specifically, several headlight buttons 21 are installed on the handlebars 2 to control their operation. The signal is automatically generated when the user presses the corresponding button.
[0095] Step 101: Based on the operation of the vehicle headlight button, find the corresponding lighting status from the preset lighting database.
[0096] Lighting status includes low beam, high beam, flashing lights, or no lights. Lighting status refers to whether the corresponding light is on or off. The database stores a mapping between headlight button operations and lighting status, which is recorded by those skilled in the art based on the lighting conditions after pressing the corresponding headlight button. When the system receives a corresponding headlight button operation, it automatically retrieves the corresponding lighting status from the database and outputs it.
[0097] Step 102: Control the lighting lamp 21 to provide illumination according to the lighting status.
[0098] Here, human-operated actions are given priority.
[0099] Step 103: Obtain vehicle operation and ambient light intensity on the bicycle.
[0100] Vehicle operation includes left turn and right turn operations; other operations can also be considered vehicle operation if applicable. The rotation angle of the rotating shaft at the front of vehicle body 1 is obtained through an angle sensor.
[0101] Ambient light intensity refers to the intensity of ambient light. It is obtained using a light sensor.
[0102] Step 104: Find the corresponding actual lighting status from the lighting database based on the ambient light intensity.
[0103] The actual lighting state refers to the lighting state that should actually be achieved under ambient light intensity. The database also stores a mapping relationship between ambient light intensity and actual lighting state, obtained by those skilled in the art based on the ambient light intensity corresponding to the light level that would illuminate a path for a bicycle. When the system receives the ambient light intensity, it automatically retrieves the corresponding actual lighting state from the database and outputs it.
[0104] Step 105: Based on vehicle operation, find the corresponding lighting angle and lighting action from the preset action database.
[0105] The lighting angle refers to the angle at which illumination is required. Since the bicycle turns, indicating that the lane has already turned, the lighting position is no longer a straight line. The lighting angle needs to adjust to the angle of rotation. Although the bicycle handlebars 2 have turned, a right-angle turn would not be possible with handlebars 2 turning 90°. Therefore, the angle is generally set at the most stable and fastest turning angle. However, the lighting angle is 90°, so the headlight 21 still needs to be tilted. The lighting action indicates the vehicle's operational actions. For example, when turning left, the left headlight 21 flashes to warn the bicycle ahead that it will turn left.
[0106] The database stores a mapping relationship between vehicle operations, lighting angles, and lighting actions. Based on reasonable and different vehicle operations performed by personnel in the art at different locations, the lighting angle of the headlights 21 is adjusted, and then represented using commonly recognized lighting actions. Finally, the corresponding lighting angles and actions are recorded. When the system receives a corresponding vehicle operation, it automatically retrieves the corresponding lighting angle and action from the database and outputs it.
[0107] Step 106: Control the lighting lamp 21 to adjust the lighting state according to the actual lighting state, and control the lighting lamp 21 to operate according to the lighting angle and lighting action.
[0108] The purpose of adjusting the lighting state of the lighting lamp 21 according to the actual lighting state is to prevent accidental operation. Furthermore, controlling the lighting lamp 21 according to the lighting angle and lighting action allows the lighting lamp 21 to achieve different functions.
[0109] Reference Figure 3 It also includes a method for verifying ambient light intensity, which includes:
[0110] Step 200: Obtain the light intensity sensor number and reception duration that generate the light intensity value.
[0111] The light intensity sensor number is the sensor's serial number. The reception duration is the duration for which the light intensity received by the sensor corresponding to the light intensity sensor number remains stable. A light intensity sensor is a sensor that converts illuminance into an electrical signal, with the output value measured in Lux. The acquisition method involves automatically identifying the corresponding light intensity sensor number upon the generation of an electrical signal and starting to accumulate the duration of consistent electrical signal reception. The reception duration is obtained by timing with a timer.
[0112] It is important to note that there are several light intensity sensors arranged in different directions around the bicycle to detect the light intensity at all locations, rather than the light intensity in a single direction. This would prevent the system from incorrectly determining that it is daytime if a headlight shines from that direction, thus affecting the judgment.
[0113] Step 201: Remove the light intensity sensor number when the reception duration is less than the preset stable reception duration.
[0114] The stable reception duration is the time required to determine if the illumination time is sufficient, assuming it's always possible for the light to reach the target area. If the reception duration exceeds this duration, it indicates sufficient illumination time; one possibility is that the ambient light intensity is inherently high, or there is continuous strong ambient light nearby. If the reception duration is less than the stable reception duration, it suggests that the light may be momentary, such as headlights from a vehicle ahead, and does not represent the overall ambient light level. Therefore, this duration can be removed to prevent interference with the assessment of ambient light intensity.
[0115] Step 202: Determine the number of the unreceived sensor based on the light intensity sensor number and the preset full sensor number.
[0116] The "All Sensors Number" refers to the number of all sensors. The "Non-Received Sensor Number" refers to the number of the sensor that did not receive light intensity data. This is determined by matching the "All Sensors Number" with the "Light Intensity Sensor Number." If the "All Sensors Number" and "Light Intensity Sensor Number" do not match, the corresponding "All Sensors Number" is used as the "Non-Received Sensor Number."
[0117] Step 203: When the sensor number is not received or the corresponding number is less than the preset local threshold number, the corresponding light intensity is received based on the light intensity sensor number.
[0118] The local critical number is the number of sensors that may be temporarily blocked by other objects and therefore fail to receive light intensity. The light intensity is the light intensity received by the sensor corresponding to the specified light intensity sensor number.
[0119] If the number of unreceived sensor numbers is missing or the number is less than the preset local threshold, it means that most sensors have received the signal. Therefore, these unreceived sensor numbers cannot be used as reference sensors for ambient light intensity and will instead affect the confirmation of ambient light intensity. So they can be removed.
[0120] Step 204: Select the light intensity with the largest number of light sources as the ambient light intensity for output.
[0121] The purpose of the selection is to choose a more suitable intensity. When the light intensity is weakened or there is other light, there will be local light intensities that are insufficient or enhanced, but these are local. So most of the light intensity is still the ambient light intensity. Therefore, the intensity with the most light intensity can be selected.
[0122] Step 205: When the number of unreceived sensor numbers exceeds the local critical number, output the preset zero light intensity as the ambient light intensity.
[0123] Zero light intensity is light intensity with a value of zero.
[0124] When the number of unreceived sensor numbers is greater than the local threshold number, it means that most of them are not receiving signals. In this case, it means that only a few are illuminated, indicating that it is nighttime or an environment without light, with only local illumination. In this case, zero light intensity can be output as the ambient light intensity.
[0125] Step 206: When zero light intensity is used as the ambient light intensity output, the corresponding angle receiving sensor number is found from the preset number database based on vehicle operation.
[0126] The angle receiving sensor number is the number of the light intensity sensor that receives the headlights from oncoming vehicles in the corresponding direction before determining the turning angle based on vehicle operation. A mapping relationship between vehicle operation and angle receiving sensor numbers is stored in the database. This mapping is obtained by those skilled in the art based on reasonable and different vehicle operations performed in different positions, and then, when illuminating the corresponding lanes towards bicycles while covering as many lanes as possible, the light intensity sensor numbers are recorded based on the converted electrical signals. When the system receives a vehicle operation, it automatically looks up the corresponding angle receiving sensor number from the database and outputs it.
[0127] Step 207: When the light intensity sensor number and the angle receiving sensor number match, acquire the facial image captured on helmet 3.
[0128] The face image is an image of the rider's face. For example... Figure 2 As shown, the bicycle also includes a helmet 3 worn on the rider's head.
[0129] If the light intensity sensor number and the angle receiving sensor number match, it means that light intensity was received at the angle receiving sensor number. In order to determine whether it is strong light that is interfering with the line of sight, it is necessary to determine the facial expression.
[0130] Step 208: Determine the successfully matched closed-eye images based on the face image and the preset closed-eye features.
[0131] The closed-eye feature refers to the features of the eyes when they are closed. The closed-eye image is the image of the eyes after a successful match with the closed-eye feature. The matching method involves placing the closed-eye feature on the face and moving it for matching. If there is a large overlap, the match is considered successful, and the image of the corresponding position is then output as the closed-eye image.
[0132] Step 209: Output the lighting status when the closed-eye image does not exist.
[0133] If the closed-eye image is not present, it means that there is no strong light and it does not affect the rider's vision, or there is strong light, but the strong light does not shine on the rider's face and does not affect the rider's vision. Therefore, no measures need to be taken, and the lighting status can be output.
[0134] Step 210: When the closed-eye image exists, modify the lighting state to the preset flashing light state and high beam state.
[0135] The flashing light status indicates that the lights are flashing. The high beam status indicates that the lights are in high beam mode. Combined, this means the high beams are on and flashing. When the closed-eye image is present, it means that there is indeed strong light affecting the rider's vision, so the lighting status is changed to the preset flashing light and high beam status to flash continuously, reminding vehicles ahead not to use high beams or strong light.
[0136] Reference Figure 4 Methods for identifying successfully matched closed-eye images based on facial images and preset closed-eye features include:
[0137] Step 300: Obtain facial illumination intensity based on preset facial sensor numbers.
[0138] The facial sensor, numbered 3, is a sensor installed on the helmet that receives the intensity of light shining on the face. Its purpose is to determine whether there is light intensity. The facial light intensity is the light intensity received by the light intensity sensor corresponding to the facial sensor number.
[0139] Step 301: Do not perform matching when the facial illumination intensity is zero.
[0140] If the facial illumination intensity is zero, it means that no light is shining on the face. Since the image is too dark to see clearly, it will not be matched. Of course, methods described in later steps can be used to make the face visible, but these will not be elaborated on here.
[0141] Step 302: When the light intensity of the face and the light intensity corresponding to the angle receiving sensor number are the same, analyze the light color difference based on the face image and the preset standard face image.
[0142] A standard face image represents the light intensity of a face under normal lighting conditions, such as natural light. Illumination color difference refers to the color difference between the current face image and the standard face image caused by different lighting conditions. The analysis can be performed using a matching method, for example: adding different lighting to the standard face image to create images of faces with different colors, and then matching each image with the current face image. If a match is successful, the corresponding illumination color difference is determined.
[0143] If the facial light intensity and the light intensity corresponding to the angle receiving sensor number are the same, it means that the same type of light is being received. Therefore, if light is shining on the face, a picture of the face will be obtained when taking a photo, instead of a completely black image.
[0144] Step 303: Modify the closed-eye features based on the illumination color difference to obtain the actual closed-eye features.
[0145] The actual closed-eye feature is a modified version of the closed-eye feature based on lighting color differences. This modification can be achieved through rendering.
[0146] Step 304: Determine the successfully matched closed-eye images based on the facial image and actual closed-eye features.
[0147] The matching method is the same as in step 208, and will not be repeated here. Instead, the colors of the closed-eye features of faces in the image library are adjusted to simulate the matched closed-eye features under different lighting intensities, thus improving the accuracy of the closed-eye feature output.
[0148] Reference Figure 5 Methods for not performing matching when facial illumination intensity is zero include:
[0149] Step 400: Obtain the grip strength of the handles on the two handles 2 when the facial light intensity is zero.
[0150] The grip strength refers to the grip strength on handle 2. Generally, two pressure sensors are installed at both ends of handle 2 to receive the grip strength.
[0151] When the facial light intensity is zero, it means that the face is not receiving light. There are two possibilities: one is that there is no light shining on the face at all, in which case the rider can ride normally; the other is that the rider is blocking the light with their hand. In this case, although there is no light on the face, the rider is essentially riding with one hand off the wheel, which is more dangerous. Therefore, it is still necessary to remind the rider in front to turn off the high beams and strong beams.
[0152] Step 401: When at least one of the gripping forces on the two handles is equal to zero, turn on the preset soft light on the helmet 3, and then re-acquire the facial image.
[0153] When at least one of the grips on the handlebars is zero, it indicates that the rider has let go of one hand and is using their arm to cover their face. Since the arm cannot completely cover the face, the rider's eyes will likely be closed or squinting, allowing for a re-acquisition of the facial image. Due to the darkness, a soft light is turned on to facilitate facial image acquisition.
[0154] It should be noted that the soft light does not shine directly into the rider's eyes, and the intensity is not high, so it is not dazzling.
[0155] Step 402: Do not perform matching if the gripping force of both handles is greater than zero.
[0156] If the grip force on both handles is greater than zero, it means that the rider's hands have not left handle 2, and matching will not be performed.
[0157] Reference Figure 6 The method for controlling the lighting lamp 21 to adjust the lighting status according to the actual lighting status includes:
[0158] Step 500: When the headlight button is not activated, control the headlight 21 to illuminate according to the actual lighting conditions.
[0159] If the headlight button is not available, it means the rider does not consciously need to operate the headlight, so simply operate the headlight as is.
[0160] Step 501: When the headlight button operation exists, issue a preset alarm signal and define the headlight button operation as a historical button operation.
[0161] The alarm signal is a signal that the lighting state corresponding to the operation of the headlight button is inconsistent with the actual lighting state, so confirmation is required. This alarm signal can be given in the form of text and voice announcement, such as: "Inconsistent, please press again".
[0162] If the headlight button is active, it means that there is a corresponding lighting state. If there is a discrepancy, it is necessary to determine which one is which to prevent the rider from accidentally operating the wrong button.
[0163] Step 502: Upon receiving the headlight button operation again, define the headlight button operation as a confirmed headlight button operation.
[0164] Step 503: When it is confirmed that the operation of the headlight button is consistent with the historical button operation, control the headlight 21 to illuminate according to the lighting state.
[0165] If the operation of the headlight button is consistent with the historical button operation, it means that the rider is sure that the lighting will be in accordance with the lighting state corresponding to the operation of the headlight button. In this case, no adjustment will be made, and the headlight 21 will still be controlled to illuminate according to the lighting state.
[0166] Step 504: When the confirmed headlight button operation and the historical button operation are inconsistent, find the corresponding confirmed lighting status from the lighting database based on the confirmed headlight button operation.
[0167] The confirmed lighting status refers to the lighting status corresponding to the confirmation of the headlight button operation. The database establishment process was described in step 101 and will not be repeated here. When the system receives the corresponding confirmation of the headlight button operation, it automatically retrieves the corresponding confirmed lighting status from the database and outputs it.
[0168] Step 505: When it is confirmed that the lighting state is consistent with the actual lighting state, control the lighting lamp 21 to illuminate according to the actual lighting state.
[0169] When the confirmed lighting status matches the actual lighting status, it means that the rider realized that the previous button was wrong. After carefully observing the environment, the rider re-determined the actual lighting status, so the lighting lamp 21 is controlled to illuminate according to the actual lighting status.
[0170] Step 506: If the confirmed lighting status is inconsistent with the actual lighting status, update the confirmed headlight button operation to the historical button operation, and continue to issue an alarm signal until the confirmed headlight button operation and the historical button operation are consistent.
[0171] If the confirmed lighting status is inconsistent with the actual lighting status, it also indicates that it is inconsistent with the actual lighting status corresponding to the ambient light intensity. Therefore, it is impossible to determine which one is normal, so further confirmation is required, and an alarm signal needs to be issued again.
[0172] Here, a double confirmation process is used to ensure that the final lighting conditions meet the rider's requirements.
[0173] Reference Figure 7 It also includes a subsequent lighting method after confirming that the lighting state and the actual lighting state are consistent, which controls the lighting lamp 21 to illuminate according to the actual lighting state. This method includes:
[0174] Step 600: Obtain driving status and highway coordinates within the preset experience interval.
[0175] The experience interval is the length of time required to determine the vehicle's status within that period. Driving status refers to the vehicle's condition, such as speed. This is obtained from the corresponding sensors. Road coordinates are the vehicle's current coordinates, obtained from GPS.
[0176] Step 601: When the ambient light intensity changes, the alarm signal is reissued to determine the actual lighting status and confirm the lighting status.
[0177] When the ambient light intensity changes, it means that everything is changing. Therefore, the previous lighting status, the actual lighting status, and the confirmed lighting status can all be changed. So it is necessary to re-determine, that is, to re-issue the alarm signal to determine the actual lighting status and the confirmed lighting status.
[0178] Step 602: When the ambient light intensity remains unchanged, retrieve the corresponding historical normal driving status from the preset historical database based on the highway coordinates.
[0179] Historical normal driving status refers to the normal driving status at this highway coordinate over a past period, including vehicle speed, etc. The database stores the mapping relationship between highway coordinates and historical normal driving status. This is obtained by the vehicle itself recording its status at each location and by recording GPS positioning data. When the system receives the corresponding highway coordinates, it automatically retrieves the corresponding historical normal driving status from the database and outputs it.
[0180] If the ambient light intensity does not change, it means that at least the actual lighting condition will not change. If it is confirmed that the lighting condition still does not change, it means that theoretically the vehicle is still illuminating according to the light that does not match the environment. In order to verify whether this is normal, it is necessary to check whether it is the same as the previous normal condition. Therefore, check the relatively normal driving conditions in the historical process.
[0181] Step 603: If the historical normal driving state exists and the driving state is consistent with the historical normal driving state, continue to control the lighting 21 according to the actual lighting state.
[0182] The existence of a historical normal riding status indicates that there is a corresponding historical record. If the riding status is consistent with the historical normal riding status, it means that the rider can ride normally under the current lighting conditions, and no further lighting adjustments are needed; simply continue to use the actual lighting conditions.
[0183] Step 604: If a historical normal driving status exists but the driving status is inconsistent with the historical normal driving status, then issue an alarm signal again to determine the actual lighting status and confirm the lighting status.
[0184] If the driving status is inconsistent with the historical normal driving status, it indicates that the rider's vehicle is in poor condition, which means that the current lighting status is incorrect and needs to be reconfirmed.
[0185] Step 605: If the historical normal driving status does not exist, determine the current road conditions based on the road coordinates.
[0186] The current road conditions refer to the road conditions at the coordinates shown. This can be determined either by reading the information during the ride, such as elevation gain or turns, or directly by identifying the road conditions on the map.
[0187] Step 606: Based on the current road conditions and the corresponding historical road conditions in the preset driving database, perform a fitting comparison to obtain the historical road condition with the highest similarity and greater than the preset similarity threshold, and define the historical road condition as a similar historical road condition.
[0188] The vehicle's driving database stores various road conditions encountered by the rider during the vehicle's operation. Historical road conditions refer to the road conditions encountered by the vehicle during its historical riding history. The similarity threshold is a value that indicates the vehicle is considered substantially similar to other vehicles.
[0189] The fitting method can compare all the data and then multiply them by the corresponding weights to obtain the highest similarity.
[0190] Step 607: Based on similar historical road conditions, find the corresponding similar historical normal driving status from the historical database.
[0191] Similar historical normal driving conditions refer to the normal driving conditions corresponding to similar historical road conditions during the historical process.
[0192] Step 608: When the driving status is consistent with the similar historical normal driving status, continue to control the lights 21 according to the actual lighting status.
[0193] Although it is not the current road coordinates, the basic road conditions are similar, so it can be regarded as a road coordinate. If the driving status is consistent with the similar historical normal driving status, it means that it is similar to step 603. Then continue to control the lights 21 according to the actual lighting status.
[0194] Step 609: If the driving status is inconsistent with the similar historical normal driving status, the alarm signal is issued again to determine the actual lighting status and confirm the lighting status.
[0195] If the driving status is inconsistent with the similar historical normal driving status, it indicates that it is similar to step 604. In this case, the alarm signal is issued again to determine the actual lighting status and confirm the lighting status.
[0196] Based on the same inventive concept, embodiments of the present invention provide a bicycle lighting system.
[0197] Reference Figure 8 A bicycle lighting system, comprising:
[0198] The acquisition module is used to acquire information such as headlight button operation, vehicle operation, ambient light intensity, light intensity sensor number, reception duration, facial image, facial light intensity, handle grip strength, driving status, and highway coordinates.
[0199] A memory for storing a program for controlling a bicycle lamp lighting method;
[0200] A processor is a control method that allows a program in memory to be loaded and executed by the processor to implement a bicycle light illumination method.
[0201] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0202] This invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed as a bicycle lamp lighting method.
[0203] Computer storage media include, for example, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media that can store program code.
[0204] Based on the same inventive concept, embodiments of the present invention provide a smart terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as a bicycle light illumination method.
[0205] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features unless specifically stated otherwise. That is, unless specifically stated otherwise, each feature is only one example of a series of equivalent or similar features.
Claims
1. A method for illuminating a bicycle lamp, characterized in that, include: Obtain the operation of the bicycle light button. The bicycle includes a frame (1) and a handlebar (2). The handlebar (2) is located on the frame (1), and both ends of the handlebar (2) are provided with lights (21). The corresponding lighting status is retrieved from a preset lighting database based on the operation of the vehicle headlight button. The lighting status includes low beam status, high beam status, flashing light status, or no light status. Control the lighting (21) to provide illumination according to the lighting status; The vehicle operation and ambient light intensity on the bicycle are obtained, wherein the vehicle operation includes left turn operation and right turn operation; The corresponding actual lighting status is retrieved from the lighting database based on the ambient light intensity. Based on vehicle operation, the corresponding lighting angle and lighting action are retrieved from a preset action database; The control lamp (21) adjusts the lighting state according to the actual lighting state, and the control lamp (21) operates according to the lighting angle and lighting action; Methods for adjusting the lighting status (21) according to the actual lighting status include: When the headlight button is not activated, control the headlights (21) to illuminate according to the actual lighting conditions; A preset alarm signal is issued when the headlight button is operated, and the headlight button operation is defined as a historical button operation; Upon receiving the headlight button operation again, define the headlight button operation as a confirmed headlight button operation; When it is confirmed that the operation of the headlight button is consistent with the historical button operation, the headlight (21) is controlled to illuminate according to the lighting status; When the confirmed headlight button operation is inconsistent with the historical button operation, the corresponding confirmed lighting status is retrieved from the lighting database based on the confirmed headlight button operation. When it is confirmed that the lighting status is consistent with the actual lighting status, control the lighting lamp (21) to illuminate according to the actual lighting status; When the confirmed lighting status is inconsistent with the actual lighting status, the operation of the headlight confirmation button will be updated to the historical button operation, and the alarm signal will continue to be issued until the confirmed headlight confirmation button operation and the historical button operation are consistent. It also includes a subsequent lighting method after confirming that the lighting state and the actual lighting state are consistent, which controls the lighting lamps (21) to illuminate according to the actual lighting state, the method including: Obtain driving status and highway coordinates within a preset experience interval; When the ambient light intensity changes, an alarm signal is reissued to determine the actual lighting status and confirm the lighting status. When the ambient light intensity remains unchanged, the corresponding historical normal driving status is retrieved from the preset historical database based on the highway coordinates. When the historical normal driving state exists and the driving state is consistent with the historical normal driving state, continue to control the lights (21) according to the actual lighting state; If a historical normal driving condition exists but the driving condition is inconsistent with the historical normal driving condition, an alarm signal will be issued again to determine the actual lighting condition and confirm the lighting condition. When historical normal driving conditions do not exist, the current road conditions are determined based on road coordinates. The historical road conditions are fitted and compared with the corresponding historical road conditions in the preset driving database to obtain the historical road conditions with the highest similarity and greater than the preset similarity threshold. The historical road conditions are defined as similar historical road conditions. Based on similar historical road conditions, the corresponding similar historical normal driving status is found from the historical database; When the driving status is consistent with the similar historical normal driving status, continue to control the lights (21) according to the actual lighting status; If the driving status is inconsistent with similar historical normal driving status, the alarm signal will be issued again to determine the actual lighting status and confirm the lighting status.
2. The bicycle lamp illumination method according to claim 1, characterized in that, It also includes a method for verifying ambient light intensity, which includes: Obtain the light intensity sensor number and reception duration that generate the light intensity value; The light intensity sensor number is removed when the reception duration is less than the preset stable reception duration; The number of the unreceived sensor is determined based on the light intensity sensor number and the preset total sensor number. When the sensor number is not received or the corresponding number is less than the preset local threshold number, the corresponding light intensity is received based on the light intensity sensor number. The light intensity with the highest number of selections is used as the ambient light intensity for output. When the number of unreceived sensor numbers exceeds the local critical number, the preset zero light intensity will be output as the ambient light intensity.
3. The bicycle lamp illumination method according to claim 2, characterized in that, Also includes: When the ambient light intensity is zero, the corresponding angle receiving sensor number is retrieved from a preset number database based on vehicle operation. When the light intensity sensor number and the angle receiving sensor number match, a facial image captured on the helmet (3) is obtained; The system identifies successfully matched closed-eye images based on facial images and preset closed-eye features. Output the lighting status when the closed-eye image is not available; When a closed-eye image is present, the lighting state is modified to the preset flashing light state and high beam state.
4. A bicycle lamp illumination method according to claim 3, characterized in that, Methods for identifying successfully matched closed-eye images based on facial images and preset closed-eye features include: Facial illumination intensity is obtained based on preset facial sensor numbers; Matching is not performed when the facial illumination intensity is zero. When the light intensity of the face and the light intensity corresponding to the angle receiving sensor number are the same, the light color difference is analyzed based on the face image and the preset standard face image; The closed-eye features are modified based on the color difference of illumination to obtain the actual closed-eye features; Successfully matched closed-eye images are determined based on facial images and actual closed-eye features.
5. A bicycle lamp illumination method according to claim 4, characterized in that, Methods for not performing matching when facial illumination intensity is zero include: The gripping force of the handles on the two handles (2) is obtained when the facial illumination intensity is zero; When at least one of the gripping forces on the two handles is equal to zero, the soft light preset on the helmet (3) is turned on, and then the facial image is re-acquired; Matching will not be performed if the grip force on both handles is greater than zero.
6. A bicycle lighting system, characterized in that, include: The acquisition module is used to acquire information such as headlight button operation, vehicle operation, ambient light intensity, light intensity sensor number, reception duration, facial image, facial light intensity, handle grip strength, driving status, and highway coordinates. A memory for storing a program of a control method for a bicycle lamp lighting method as described in any one of claims 1 to 5; The processor and the program in the memory can be loaded and executed by the processor to implement the control method of the bicycle lamp lighting method as described in any one of claims 1 to 5.
7. A smart terminal, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer program is stored and can be loaded by a processor and executed as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Mining vehicle fatigue monitoring and reminding system and method, vehicle and readable storage medium
CN115035688A
Vehicle lamp module and vehicle lamp device
CN209659687U