Automatic rearview mirror adjusting method and device based on sitting posture, electronic equipment and medium
Through the automatic adjustment method based on sitting posture, the random forest model and infrared camera are used to identify the driver's line of sight direction and automatically adjust the rearview mirror angle, which solves the problem of manually adjusting the rearview mirror to reduce safety and comfort, and improves driving convenience and security.
Patent Information
- Application Number
- CN202411491658.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-01-03
AI Technical Summary
In the prior art, the driver needs to manually adjust the angle of the rearview mirror, resulting in a reduction in the safety, convenience and comfort of the driver's driving vehicle.
Through the automatic adjustment method based on sitting posture, the driver's vehicle speed, seat position, backrest angle, line of sight height and line of sight direction are obtained, and the target sitting index is determined using the random forest model, and the rearview mirror angle is adjusted according to the preset relationship to ensure that Automatically adjust the rearview mirror when the vehicle speed is safe.
Improves the convenience, safety, accuracy, adaptability, required accuracy and comfort of the driver's vehicle, avoids the hassle of manual adjustment, and can accurately identify the direction of the line of sight at night or when there is insufficient light.
Smart Images

Figure CN119239447A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle engineering, and more specifically, to a method, device, electronic device and medium for automatically adjusting a rearview mirror based on sitting posture. Background Art
[0002] Human-computer interaction technology mainly studies the interaction between humans and machines, including the input and output of information, and how to achieve natural and efficient human-computer interaction. The interaction between the driver and the vehicle is also one of the research focuses. The driver needs to interact with the vehicle in various ways, such as controlling the vehicle's driving status through the steering wheel, pedals, buttons, etc., and observing the traffic conditions around the vehicle through the rearview mirror.
[0003] In the existing technology, the angle of the rearview mirror is manually adjusted by the driver. Although this method can meet the needs of different drivers, it requires the driver to spend time and energy to make the adjustment, which reduces the driver's driving safety, convenience and comfort. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and medium for automatic adjustment of rearview mirrors based on sitting posture, so as to solve the above-mentioned problems existing in the prior art, and can improve the convenience and comfort of the driver while improving the safety of the driver driving the vehicle.
[0005] In a first aspect, a method for automatically adjusting a rearview mirror based on a sitting posture is provided, and the method may include:
[0006] Based on the rearview mirror adjustment request initiated by the driver, the current vehicle speed, seat position, seat back angle, driver's sight height and sight direction are obtained;
[0007] If the angle at which the sight line direction deviates from the horizontal direction satisfies a preset angle, the seat position, the backrest angle, the sight line height and the sight line direction are processed to determine the target sitting posture index of the driver;
[0008] Determining a target rearview mirror change angle corresponding to the target sitting posture index based on the corresponding relationship between different configured sitting posture indexes and different rearview mirror change angles;
[0009] If the target rearview mirror change angle meets the configured angle change condition and the speed of the current vehicle meets the configured preset speed, the rearview mirror of the current vehicle is adjusted according to the target rearview mirror change angle.
[0010] In a possible implementation, the seat position and the backrest angle are acquired by a seat position sensor and a backrest angle sensor currently provided in the vehicle.
[0011] In a possible implementation, the sight line height and the sight line direction are acquired by an infrared camera currently arranged in the vehicle.
[0012] In a possible implementation, the target rearview mirror change angle includes a horizontal change angle and a vertical change angle.
[0013] In a possible implementation, after acquiring the sight line direction of the current vehicle, the method further includes:
[0014] If the angle at which the sight line direction deviates from the horizontal direction does not satisfy a preset angle, a prompt message including the fact that the angle does not satisfy the preset angle is issued.
[0015] In a possible implementation, if the target rearview mirror change angle does not meet the configured angle change condition, a prompt message is issued indicating that the target rearview mirror change angle does not meet the configured angle change condition.
[0016] In a possible implementation, the seat position, the backrest angle, the sight line height, and the sight line direction are processed to determine the target sitting posture index of the driver, including:
[0017] The seat position, the backrest angle, the sight line height and the sight line direction are input into a trained random forest model, and a target sitting posture index of the driver is output.
[0018] In a second aspect, a rearview mirror automatic adjustment device based on sitting posture is provided, and the device may include:
[0019] An acquisition unit, used to acquire the current vehicle speed, seat position, seat back angle, driver's sight height and sight direction according to a rearview mirror adjustment request initiated by the driver;
[0020] a processing unit, configured to process the seat position, the backrest angle, the sight height and the sight direction to determine a target sitting posture index of the driver if the angle at which the sight direction deviates from the horizontal direction satisfies a preset angle;
[0021] a determination unit, configured to determine a target rearview mirror change angle corresponding to the target sitting posture index based on a correspondence between different configured sitting posture indexes and different rearview mirror change angles;
[0022] An adjustment unit is used to adjust the rearview mirror of the current vehicle according to the target rearview mirror change angle if the target rearview mirror change angle meets the configured angle change condition and the speed of the current vehicle meets the configured preset speed.
[0023] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0024] Memory, used to store computer programs;
[0025] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0026] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0027] The present application provides a method for automatically adjusting a rearview mirror based on a sitting posture, the method comprising: based on a rearview mirror adjustment request initiated by a driver, obtaining the vehicle speed, seat position, seat back angle, driver's sight height and sight direction of the current vehicle; if the angle of sight direction deviating from the horizontal direction satisfies a preset angle, the seat position, back angle, sight height and sight direction are processed to determine the driver's target sitting posture index; based on the correspondence between different configured sitting posture indices and different rearview mirror change angles, the target rearview mirror change angle corresponding to the target sitting posture index is determined; if the target rearview mirror change angle satisfies the configured angle change condition and the vehicle speed of the current vehicle satisfies the configured preset vehicle speed, the rearview mirror of the current vehicle is adjusted according to the target rearview mirror change angle. The present application can improve the convenience, safety, accuracy, adaptability, demand accuracy, comfort and rearview stability of the driver driving the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 A system architecture diagram for a method for automatically adjusting a rearview mirror based on sitting posture provided in an embodiment of the present application;
[0030] Figure 2 A schematic flow chart of a method for automatically adjusting a rearview mirror based on sitting posture provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of the process details of a method for automatic adjustment of a rearview mirror based on sitting posture provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of the structure of a rearview mirror automatic adjustment device based on sitting posture provided in an embodiment of the present application;
[0033] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] The automatic adjustment method of a rearview mirror based on a sitting posture provided in the embodiment of the present application can be applied in Figure 1 In the system architecture shown in Figure 1 As shown, the system may include: a server, a seat position sensor, a backrest angle sensor and an infrared camera. The server may be a physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The seat position sensor and the infrared camera may be directly or indirectly connected to the server through wired or wireless communication methods, which is not limited in this application.
[0036] The seat position sensor is used to obtain the current seat position in the vehicle and send the seat position to the server.
[0037] The backrest angle sensor is used to obtain the backrest angle of the current vehicle seat and send the backrest angle to the server.
[0038] The infrared camera is used to obtain the sight height and sight direction of the current vehicle driver, and send the sight height and sight direction to the server.
[0039] The server is used to receive the current vehicle speed, seat position, seat back angle, driver's line of sight height and line of sight direction to execute a sitting posture-based rearview mirror automatic adjustment method provided in the present application.
[0040] Human-computer interaction technology mainly studies the interaction between humans and machines, including the input and output of information, and how to achieve natural and efficient human-computer interaction. The interaction between the driver and the vehicle is also one of the research focuses. The driver needs to interact with the vehicle in various ways, such as controlling the vehicle's driving status through the steering wheel, pedals, buttons, etc., and observing the traffic conditions around the vehicle through the rearview mirror.
[0041] In the existing technology, the angle of the rearview mirror is manually adjusted by the driver. Although this method can meet the needs of different drivers, it requires the driver to spend time and energy to make the adjustment, which reduces the driver's driving safety, convenience and comfort.
[0042] Therefore, the present application provides a sitting posture-based rearview mirror automatic adjustment method to solve the above-mentioned problems existing in the prior art, which can improve the driver's convenience and comfort while improving the driver's safety in driving the vehicle.
[0043] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0044] Figure 2 The following is a flow chart of a method for automatically adjusting a rearview mirror based on a sitting posture provided in an embodiment of the present application. Figure 2 As shown, the method may include:
[0045] Step S210: Based on the rearview mirror adjustment request initiated by the driver, the current vehicle speed, seat position, seat back angle, driver's line of sight height and line of sight direction are obtained.
[0046] Specifically, first, the driver generates a rearview mirror adjustment request by triggering a physical button or a virtual button currently set on the vehicle.
[0047] In some embodiments, in combination Figure 3 As shown, when there is no rearview mirror adjustment request, there is no need to automatically adjust the rearview mirror, that is, the automatic adjustment of the rearview mirror is in a closed state.
[0048] This method allows the driver to control demand by setting switches, thus avoiding the generation of false demand.
[0049] Secondly, based on the rearview mirror adjustment request, the infrared camera in the car is triggered; the driver's eyes are recognized through the thermal imaging technology of the infrared camera, thereby determining the driver's line of sight height and line of sight direction.
[0050] In some embodiments, the parameters of the infrared camera are set as follows: infrared wavelength range is 8-14 microns, image resolution is 800x600, and frame rate is 30 Hz.
[0051] In this method, infrared technology can accurately identify the driver's line of sight height and direction at night or in low light conditions.
[0052] The process of determining the direction of sight specifically includes: the infrared camera captures the driver's facial image and sends the facial image to the server. The server uses a filter (such as a Gaussian filter) to remove noise from the facial image and improve the contrast of the facial image to make the eye features in the facial image more obvious. The facial region is located according to a facial detection algorithm (such as a Haar cascade classifier or a deep learning model); then, the eye detection algorithm (such as a Haar cascade classifier, a Dlib library) is used in the determined facial region to locate the position of the eyes in the facial region, thereby extracting the eye sub-region in the facial image to obtain the eye sub-region. Then, the eye sub-region is binarized to separate the pupil region from the white of the eye region, thereby extracting the pupil region; further determine the center coordinates of the pupil region, then calculate the direction vector of sight according to the pupil center and the geometric features of the eye (such as the position of the corner of the eye); then, use the pre-trained deep learning model to directly predict the direction of sight from the direction vector of sight.
[0053] The process of determining the line of sight height specifically includes: mapping the two-dimensional image into three-dimensional space based on the configured infrared camera's intrinsic parameter matrix (focal length, principal point coordinates), extrinsic parameter matrix (position and posture of the infrared camera relative to the vehicle) and the center coordinates of the pupil area determined above; then, calculating the line of sight height based on the pupil center coordinates in the three-dimensional space and the position of the infrared camera.
[0054] And, based on the rearview mirror adjustment request, the seat position sensor and backrest angle sensor in the vehicle are triggered to identify the seat position and backrest angle.
[0055] The seat position determination process specifically includes: the seat position sensor can detect the changes in the front-to-back position and up-down position of the driver's seat of the current vehicle. The front-to-back position is the position relative to the front end of the seat rail, and the up-down position is the height of the seat cushion relative to the lowest position of the seat cushion.
[0056] The process of determining the backrest angle specifically includes: a backrest angle sensor can identify the backrest angle of the driver's seat of the current vehicle; wherein the backrest angle is the angle of the backrest of the driver's seat of the current vehicle relative to the vertical position of the seat back.
[0057] In some embodiments, the accuracy of the seat position sensor and the backrest angle sensor are set to 0.1 mm and 0.1 degree respectively.
[0058] Step S220: compare the angle at which the sight line deviates from the horizontal direction with a preset angle to obtain a first comparison result, and determine a first processing method according to the first comparison result.
[0059] Specifically, when the first comparison result is that the angle of sight direction deviating from the horizontal direction is greater than the preset angle, it indicates that the driver's sight direction is not within the direction of the adjustable rearview mirror, and the first processing method is to issue a prompt message including that the angle does not meet the preset angle and the rearview mirror cannot be adjusted. The preset angle is generally set to 10°.
[0060] In some embodiments, the sight line direction is divided into three dimensions, including the up-down dimension, the left-right dimension, and the front-back dimension. The up-down dimension can be understood as the sight line direction when the driver raises or lowers his head; the left-right dimension can be understood as the sight line direction when the driver turns his head left or right; and the front-back dimension can be understood as the sight line direction when the driver leans forward or leans forward and turns his head back.
[0061] When the first comparison result is that the angle at which the sight line deviates from the horizontal direction is not greater than the preset angle, it indicates that the sight line direction of the driver is within the direction of the adjustable rearview mirror, and the first processing method is determined to execute step S230.
[0062] Combination Figure 3 As shown, when any three-dimensional direction in the sight line direction deviates from the horizontal direction by ≤10°, the first processing method is to execute step S230.
[0063] Step S230: Process the seat position, backrest angle, sight height and sight direction to determine the driver's target sitting posture index.
[0064] Specifically, the seat position, backrest angle, sight height and sight direction are input into the trained random forest model, and the driver’s target sitting posture index is output.
[0065] Among them, the training process of the random forest model can be:
[0066] First, collect a dataset containing features and target variables. For example, the features are historical seat position, historical backrest angle, historical sight height, and historical sight direction; the target variable is the historical sitting posture index.
[0067] For example: add a calibrated data set, specifically: based on the different sitting postures of drivers of different heights, that is, calibrate the historical seat position, historical backrest angle, historical line of sight height and historical line of sight direction of drivers of different heights as training samples, and use the corresponding historical sitting posture index as training label, and calibrate the test samples and test labels in the same way.
[0068] The data set is divided into a test set and a training set according to a certain ratio.
[0069] Secondly, all the features are scaled to the same range. Specifically, a preset algorithm is used to scale all the features to the same range.
[0070] The default algorithm is:
[0071]
[0072] Where X is the original eigenvalue (historical seat position, historical backrest angle, historical sight height or historical sight direction), X min and X max are the minimum and maximum values of each eigenvalue.
[0073] This method can prevent certain features from having too much influence on the model.
[0074] In some embodiments, if there are many features, a configured feature selection method can be used to reduce redundant features and improve model performance. The configured feature selection method can be correlation analysis, recursive feature elimination, etc.
[0075] After that, initialize a random forest regressor or classifier and set hyperparameters such as the number of trees, maximum depth, etc.
[0076] The initial random forest model is trained using the training set to obtain an initial random forest model. Each tree in the random forest is built on a random subset of the data, which can help increase the diversity of the model.
[0077] The initial random forest model is used to predict the test set to obtain the prediction result, and the preset result is compared with the test label in the test set to obtain the second comparison result.
[0078] According to the second comparison result, the performance index of the initial random forest model is determined. When the performance index meets the preset index of the configuration, the initial random forest model is determined as the random forest model for practical application. When the performance index does not meet the preset index of the configuration, the parameters in the initial random forest model are readjusted so that the performance index meets the preset index of the configuration.
[0079] In some embodiments, weights of parameters in four dimensions, namely, seat position, backrest angle, sight line height, and sight line direction, are set, and each parameter and its weight are calculated to obtain a target sitting posture index.
[0080] Step S240: Determine a target rearview mirror change angle corresponding to the target sitting posture index based on the correspondence between the configured different sitting posture indices and the different rearview mirror change angles.
[0081] Specifically, the correspondence between different sitting posture indexes and different rearview mirror change angles is stored in the server, wherein the different sitting posture indexes may be different sitting posture index ranges.
[0082] After the target sitting posture index is determined, the sitting posture index range to which the target sitting posture index belongs is determined, thereby determining the target rearview mirror change angle corresponding to the target sitting posture index range.
[0083] Among them, the target rearview mirror change angle can be understood as the change based on the initial angle 0 of the configured rearview mirror. In short, the angle of the rearview mirror at a certain position is set as the initial angle, and the initial angle is set to (0,0), the angles in two directions. The rearview mirror can be adjusted up and down and left and right later.
[0084] Step S250: determining whether the target rearview mirror change angle satisfies the configured angle change condition, obtaining a determination result, and determining a second processing method according to the determination result.
[0085] Specifically: The process of determining whether the target rearview mirror change angle meets the configured angle change condition includes:
[0086] Get the current angle of the rearview mirror relative to the initial angle;
[0087] Calculate the angle difference between the target rearview mirror change angle and the current angle;
[0088] When the angle difference is within the configured angle difference range, the second processing method is to determine whether the vehicle speed meets the configured preset speed. If the vehicle speed meets the configured preset speed, the rearview mirror of the current vehicle is adjusted according to the target rearview mirror change angle. If the vehicle speed does not meet the configured preset speed, a prompt message including that the current vehicle speed does not meet the configured preset speed and the rearview mirror angle cannot be adjusted is issued. Among them, the angle difference range is set to ±20°; the preset speed is set to 5 kilometers per hour.
[0089] It should be noted that the target rearview mirror change angle includes the horizontal change angle and the vertical change angle. Therefore, in the process of calculating the angle difference, the angles in both directions need to be calculated. When the angle differences in both directions are within the configured angle difference range, the second processing method is to determine whether the vehicle speed meets the configured preset speed.
[0090] When the angle difference is not within the configured angle difference range, regardless of whether the vehicle speed meets the configured preset speed, the second processing method is to issue a prompt message including that the angle difference is not within the configured angle difference range and the rearview mirror angle cannot be adjusted.
[0091] In some embodiments, the driver is reminded of the adjustment status of the rearview mirror of the current vehicle through sound or vibration feedback; the adjustment status includes: the rearview mirror has been adjusted or the above prompt information is displayed.
[0092] Specifically, when the angle of the rearview mirror is adjusted, the driver will be prompted by voice "the rearview mirror has been adjusted", or the seat will vibrate to inform the driver that "the rearview mirror has been adjusted", and the text "the rearview mirror has been adjusted" will be displayed on the car computer for 2 seconds.
[0093] In some embodiments, after the second processing method is completed, the automatic adjustment state of the rearview mirror of the current vehicle is automatically turned off to prevent the automatic adjustment of the mirror from increasing discomfort and rearview confusion due to the driver twisting his body or moving his head frequently.
[0094] The present application provides a method for automatically adjusting a rearview mirror based on a sitting posture, the method comprising: based on a rearview mirror adjustment request initiated by a driver, obtaining the vehicle speed, seat position, seat back angle, driver's sight height and sight direction of the current vehicle; if the angle of sight direction deviating from the horizontal direction satisfies a preset angle, the seat position, back angle, sight height and sight direction are processed to determine the driver's target sitting posture index; based on the correspondence between different configured sitting posture indices and different rearview mirror change angles, the target rearview mirror change angle corresponding to the target sitting posture index is determined; if the target rearview mirror change angle satisfies the configured angle change condition and the vehicle speed of the current vehicle satisfies the configured preset vehicle speed, the rearview mirror of the current vehicle is adjusted according to the target rearview mirror change angle. The present application can improve the convenience, safety, accuracy, adaptability, demand accuracy, comfort and rearview stability of the driver driving the vehicle.
[0095] Improve driving convenience: This application collects multiple parameters such as the current vehicle speed, identifies the driver's line of sight height, line of sight direction, seat position, and backrest angle, comprehensively judges the driver's sitting posture, and automatically adjusts the vehicle's rearview mirror angle, avoiding the trouble of the driver manually adjusting the rearview mirror.
[0096] Improved safety: This application adds vehicle speed judgment, avoiding interference from the driver's driving by automatically adjusting the rearview mirror while driving, thus improving driving safety. At the same time, the application of infrared thermal imaging technology is not affected by light and can still be accurately identified at night or in low light conditions, further improving the applicability and safety of the technology.
[0097] Improved accuracy: This application adds the judgment of the line of sight direction, which improves the accuracy of the line of sight height input, avoiding the problem of the driver turning his head or observing the road conditions on the left and right, and automatically adjusting the rearview mirror incorrectly; it also adds the judgment of the rearview mirror angle adjustment range to prevent the rearview mirror from being over-adjusted or mis-adjusted, thereby improving the accuracy and reliability of the technology.
[0098] Improved adaptability: Since this application uses infrared thermal imaging technology, the technology can still accurately identify at night or in low light conditions, thereby improving the adaptability and applicability of the technology.
[0099] Improve demand accuracy: This application generates a request for automatic adjustment of the rearview mirror by triggering a physical button or a virtual button, allowing the driver to control the demand and avoid false demands to improve demand accuracy.
[0100] Improve comfort and rear-view stability: This application has an automatic closing function after the rear-view mirror is adjusted, which prevents the driver from frequently automatically adjusting the rear-view mirror due to twisting his body or head, thereby improving comfort and rear-view stability.
[0101] Corresponding to the above method, the embodiment of the present application also provides a rearview mirror automatic adjustment device based on sitting posture, such as Figure 4 As shown, the device comprises:
[0102] The acquisition unit 410 is used to acquire the current vehicle speed, seat position, seat back angle, driver's sight height and sight direction according to the rearview mirror adjustment request initiated by the driver;
[0103] The processing unit 420 is configured to process the seat position, the backrest angle, the sight height and the sight direction to determine a target sitting posture index of the driver if the angle at which the sight direction deviates from the horizontal direction satisfies a preset angle;
[0104] A determination unit 430, configured to determine a target rearview mirror change angle corresponding to the target sitting posture index based on the correspondence between different configured sitting posture indexes and different rearview mirror change angles;
[0105] The adjustment unit 440 is used to adjust the rearview mirror of the current vehicle according to the target rearview mirror change angle if the target rearview mirror change angle meets the configured angle change condition and the speed of the current vehicle meets the configured preset speed.
[0106] The functions of each functional unit of an automatic adjustment device for a rearview mirror based on sitting posture provided in the above-mentioned embodiment of the present application can be achieved through the above-mentioned method steps. Therefore, the specific working process and beneficial effects of each unit in an automatic adjustment device for a rearview mirror based on sitting posture provided in the embodiment of the present application will not be repeated here.
[0107] The present application also provides an electronic device, such as Figure 5As shown, it includes a processor 510 , a communication interface 520 , a memory 530 and a communication bus 540 , wherein the processor 510 , the communication interface 520 , and the memory 530 communicate with each other via the communication bus 540 .
[0108] Memory 530, for storing computer programs;
[0109] The processor 510 is used to execute the program stored in the memory 530 to implement the following steps:
[0110] Based on the rearview mirror adjustment request initiated by the driver, the current vehicle speed, seat position, seat back angle, driver's sight height and sight direction are obtained;
[0111] If the angle at which the sight line direction deviates from the horizontal direction satisfies a preset angle, the seat position, the backrest angle, the sight line height and the sight line direction are processed to determine the target sitting posture index of the driver;
[0112] Determining a target rearview mirror change angle corresponding to the target sitting posture index based on the corresponding relationship between different configured sitting posture indexes and different rearview mirror change angles;
[0113] If the target rearview mirror change angle meets the configured angle change condition and the speed of the current vehicle meets the configured preset speed, the rearview mirror of the current vehicle is adjusted according to the target rearview mirror change angle.
[0114] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0115] The communication interface is used for communication between the above electronic device and other devices.
[0116] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0117] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0118] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be seen in Figure 2 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present application are not repeated here.
[0119] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes a sitting posture-based rearview mirror automatic adjustment method described in any of the above embodiments.
[0120] In another embodiment provided in the present application, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer executes a sitting posture-based rearview mirror automatic adjustment method described in any one of the above embodiments.
[0121] Those skilled in the art will appreciate that the embodiments in the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt a complete hardware embodiment, a complete software embodiment, or a form of an embodiment combining software and hardware. Moreover, the present application may adopt a form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0125] Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which the present invention belongs. "First", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect", "couple" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0126] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the present application embodiments are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application embodiments.
[0127] Obviously, those skilled in the art can make various changes and modifications to the embodiments in the present application without departing from the spirit and scope of the embodiments in the present application. Thus, if these modifications and variations of the embodiments in the present application are within the scope of the embodiments in the present application and their equivalents, the embodiments in the present application are also intended to include these modifications and variations.
Claims
1. A method for automatically adjusting a rearview mirror based on sitting posture, characterized in that: The method comprises: Based on the rearview mirror adjustment request initiated by the driver, the current vehicle speed, seat position, seat back angle, driver's sight height and sight direction are obtained; If the angle at which the sight line direction deviates from the horizontal direction satisfies a preset angle, the seat position, the backrest angle, the sight line height and the sight line direction are processed to determine the target sitting posture index of the driver; Determining a target rearview mirror change angle corresponding to the target sitting posture index based on the corresponding relationship between different configured sitting posture indexes and different rearview mirror change angles; If the target rearview mirror change angle meets the configured angle change condition and the speed of the current vehicle meets the configured preset speed, the rearview mirror of the current vehicle is adjusted according to the target rearview mirror change angle.
2. The method according to claim 1, characterized in that The seat position and the backrest angle are acquired by a seat position sensor and a backrest angle sensor provided in the current vehicle.
3. The method according to claim 1, characterized in that The sight line height and the sight line direction are obtained through an infrared camera currently arranged in the vehicle.
4. The method according to claim 1, characterized in that The target rearview mirror change angle includes a horizontal direction change angle and a vertical direction change angle.
5. The method according to claim 1, characterized in that After obtaining the sight line direction of the current vehicle, the method further includes: If the angle at which the sight line direction deviates from the horizontal direction does not satisfy a preset angle, a prompt message including the fact that the angle does not satisfy the preset angle is issued.
6. The method according to claim 1, characterized in that If the target rearview mirror change angle does not meet the configured angle change condition, a prompt message is issued indicating that the target rearview mirror change angle does not meet the configured angle change condition.
7. The method according to claim 1, characterized in that Processing the seat position, the backrest angle, the sight line height, and the sight line direction to determine the target sitting posture index of the driver includes: The seat position, the backrest angle, the sight line height and the sight line direction are input into a trained random forest model, and a target sitting posture index of the driver is output.
8. A rearview mirror automatic adjustment device based on sitting posture, characterized in that: The device comprises: An acquisition unit, used to acquire the current vehicle speed, seat position, seat back angle, driver's sight height and sight direction according to a rearview mirror adjustment request initiated by the driver; a processing unit, configured to process the seat position, the backrest angle, the sight height and the sight direction to determine a target sitting posture index of the driver if the angle at which the sight direction deviates from the horizontal direction satisfies a preset angle; a determination unit, configured to determine a target rearview mirror change angle corresponding to the target sitting posture index based on a correspondence between different configured sitting posture indexes and different rearview mirror change angles; An adjustment unit is used to adjust the rearview mirror of the current vehicle according to the target rearview mirror change angle if the target rearview mirror change angle meets the configured angle change condition and the speed of the current vehicle meets the configured preset speed.
9. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method and system for adjusting rearview mirror of vehicle
CN119773632A
Vehicle rearview mirror adjusting method and device and vehicle
CN120621222A
Vehicle rearview mirror adjusting method and device and vehicle
CN120621222B