Disclosure of Invention
The invention aims to provide a method, a device and a storage medium for monitoring the weight of an automobile, which are used for solving the problem that the automobile can bring physical influence to people after providing good driving experience, but the traditional automobile cannot find and prevent the body in time.
The invention provides a method for monitoring the weight of an automobile, which comprises the following steps:
acquiring current identity information, and generating user ID information according to the current identity information;
acquiring current running record information, and acquiring weight detection data when the current running record information is detected to be in a preset running state;
and sending the weight detection data of the user ID information.
Further preferably, the step of acquiring the current identity information and generating the user ID information according to the current identity information includes: identifying identity information on a current driver seat; when the identity information is detected to be matched with preset identity information, generating first user ID information, and calling weight detection data reserved by the first user ID information; when the identity information is not matched with the preset identity information, sending verification request information of the current identity information to a terminal corresponding to the preset identity; and after receiving the confirmation of the verification request information of the terminal, generating second user ID information, and storing the second user ID information as preset identity information.
Further preferably, the step of "acquiring the current driving record information, and when it is detected that the current driving record information is in the preset driving state, acquiring the weight detection data" specifically includes: calling current driving record information, wherein the current driving record information comprises road condition information and vehicle speed state information; if the condition information and the vehicle speed state information are detected to be inconsistent with the preset driving state, sending a request prompt message for changing the condition and the vehicle speed; and after receiving confirmation of the request prompt information, sending the change service information consistent with the preset driving state.
Further preferably, the step of "acquiring the current driving record information, and when it is detected that the current driving record information is in the preset driving state, acquiring the weight detection data" further includes: if the detected road condition information and the detected vehicle speed state information are consistent with the preset driving state, acquiring user ID information; when the first user ID information is detected, acquiring current weight detection data, and comparing the current weight detection data with the reserved weight detection data called before; if the weight is lower than the preset difference value, current weight detection data are generated and recorded; if the difference value is higher than the preset difference value, sending a prompt message with larger data deviation; and after the confirmation of the prompt information is received, generating and recording the current weight detection data.
Further preferably, after the "generating and recording the current weight detection data after receiving the confirmation of the prompt information" further includes: when the second user ID information is detected, acquiring current weight detection data, and sending prompt information containing the acquired current weight detection data; and after the confirmation of the prompt information is received, generating and recording the current weight detection data.
Further preferably, after the acquiring the current identity information and generating the user ID information according to the current identity information, the method further includes: and acquiring current vehicle detection information, and generating safety prompt information according to the current vehicle detection information.
In another aspect of the present invention, a device for monitoring a weight of a vehicle is provided, including:
the first acquisition module is used for acquiring current identity information and generating user ID information according to the current identity information;
the second acquisition module is used for acquiring current vehicle detection information and generating safety prompt information according to the current vehicle detection information;
the detection module is used for acquiring current running record information and acquiring weight detection data when the current running record information is detected to be in a preset running state;
and the sending module is used for sending the weight detection data of the user ID information.
Further preferably, the step of acquiring the current identity information and generating the user ID information according to the current identity information includes: identifying identity information on a current driver seat; when the identity information is detected to be matched with preset identity information, generating first user ID information, and calling weight detection data reserved by the first user ID information; when the identity information is not matched with the preset identity information, sending verification request information of the current identity information to a terminal corresponding to the preset identity; and after receiving the confirmation of the verification request information of the terminal, generating second user ID information, and storing the second user ID information as preset identity information.
Further preferably, the step of "acquiring the current driving record information, and when it is detected that the current driving record information is in the preset driving state, acquiring the weight detection data" specifically includes: calling current driving record information, wherein the current driving record information comprises road condition information and vehicle speed state information; if the condition information and the vehicle speed state information are detected to be inconsistent with the preset driving state, sending a request prompt message for changing the condition and the vehicle speed; after receiving confirmation of the request prompt information, sending change service information consistent with a preset driving state; if the detected road condition information and the detected vehicle speed state information are consistent with the preset driving state, acquiring user ID information; when the first user ID information is detected, acquiring current weight detection data, and comparing the current weight detection data with the reserved weight detection data called before; if the weight is lower than the preset difference value, current weight detection data are generated and recorded; if the difference value is higher than the preset difference value, sending a prompt message with larger data deviation; and after the confirmation of the prompt information is received, generating and recording the current weight detection data.
Another aspect of the present invention is to provide a storage medium storing instructions which, when executed by a processor, implement the steps of any of the above methods.
The invention has the beneficial effects that:
the method comprises the steps of obtaining driver information by identifying identities, obtaining weight detection data in a preset state, comparing the weight data according to different drivers, and sending the obtained data to a user terminal, so that a user can conveniently pay attention to weight trends at any time, and preventive measures are achieved; meanwhile, the identity of the driver can be authenticated in the identification process, and the safety is enhanced.
Detailed Description
The following are specific examples of the embodiments of the present application, and further describe the technical solutions of the present application, but the present application is not limited to these examples.
Fig. 1, 2, 3 and 4 show a flow chart of a verification method for a vehicle operating system according to an embodiment of the invention, comprising the steps of:
s1 obtains the current identity information, and generates user ID information according to the current identity information.
Specifically, the method includes the steps that S11 identity information on a current driver seat is identified;
s12, when the identity information is matched with preset identity information, generating first user ID information, and calling weight detection data reserved by the first user ID information;
s13, when detecting that the identity information is not matched with the preset identity information, sending verification request information of the current identity information to a terminal corresponding to the preset identity;
s14 generates second user ID information after receiving the confirmation of the authentication request information from the terminal, and stores the second user ID information as preset identity information.
The execution body of the method can be a cloud server, the information of the most frequently used driver of the current vehicle and the past weight detection data thereof are stored in the preset identity information, the number of the preset initial people is usually two, and the preset identity information can be updated in real time; identifying a driver sitting on a seat through a camera, matching according to the called preset identity information, if the matching is displayed as the driver recorded by the preset information, marking the driver as a first user, generating first user ID information, and calling the previous weight detection data of the user from the preset identity information; if the proportion shows that the driver is not the driver recorded by the preset information, sending request verification information of 'whether the current vehicle can be started' to a mobile terminal of a telephone number reserved in the preset identity information, marking the driver as a second user after confirmation and generating second user ID information, recording and storing the identity information of the current driver in the preset identity information, wherein the identity information is basic information and comprises facial feature information of the driver and weight data detected later, and other identity information such as the telephone number can be added through a touch screen interface in the vehicle at the later stage; if the confirmation information is not obtained within the preset 1 minute, the automobile starting function is closed, and early warning prompt information is sent to the mobile terminal in time to confirm the identity of the current driver.
S2 obtains the current vehicle detection information, and generates the safety notice information based on the current vehicle detection information.
After the driver identity is successfully identified, the server can call current vehicle detection information from the vehicle control terminal, the current vehicle detection information comprises a vehicle operation system end and a vehicle hardware equipment end, for example, whether a vehicle can be normally started, whether a vehicle door is closed, whether the anti-lock performance of the vehicle is normal, whether a safety belt is fastened well and the like, the current vehicle detection information can be displayed through a touch display screen interface in the vehicle, and if a potential safety hazard exists, the current vehicle detection information can be prompted to the driver through the display screen and a sound of the vehicle so as to ensure the safety of traveling.
S3 obtains current driving record information, and obtains weight detection data when it is detected that the current driving record information is in a preset driving state.
As a preferred embodiment, specifically, S31 retrieves current driving record information, which includes road condition information and vehicle speed status information;
s321, if the condition information and the vehicle speed state information are not consistent with the preset driving state, sending a request prompt message for changing the condition and the vehicle speed;
s322, after receiving the confirmation of the request prompt message, sending the change service information consistent with the preset driving state;
when the automobile can be normally started, after the automobile runs for a period of time, current road condition information and speed state information are called from an automobile control terminal; after the automobile runs for twenty minutes, judging whether the weight can be detected according to the current road condition information and the vehicle speed state information, wherein the road condition information recorded in the preset running state is a smooth road section and can be an urban road section or a highway section, so that the gravity center of a road section driver is not easy to change, and the weight data detected by a sensor is more reliable; the vehicle speed state information recorded in the preset driving state is constant speed, and the weight data detected by the sensor is greatly influenced due to the fact that the gravity center of a driver can be displaced in the horizontal direction when the vehicle accelerates or decelerates; when the road condition information and the vehicle speed state information are inconsistent with the preset driving state, an interface which prompts that the weight cannot be detected in the current state is popped up to a driver through a touch display screen in the vehicle; after the driver confirms the information, the smooth road section with the nearest distance can be found through GPS positioning, or the driver is prompted to keep the vehicle speed within the XX-XX range, so that the road condition information and the vehicle speed state information of the vehicle are adjusted to be consistent with the preset driving state.
The method specifically comprises the step S33 of acquiring user ID information if the condition information and the vehicle speed state information are detected to be consistent with the preset driving state;
s3311, when the ID information of the first user is detected, acquiring current weight detection data, and comparing the current weight detection data with the reserved weight detection data called before;
s3312, if the weight is lower than the preset difference value, generating and recording current weight detection data; if the difference value is higher than the preset difference value, sending a prompt message with larger data deviation; after receiving the confirmation of the prompt message, generating and recording current weight detection data;
when the road condition information and the vehicle speed state information are consistent with the preset driving state, calling the identity information of the current user, if the identity information is the ID information of the first user, detecting the current weight data, and comparing the current weight data with the preset weight detection data; when the difference value is larger than the preset difference value, the fact that the weight change range of the driver is large is indicated, and a touch display screen pops up an interface of 'whether the driver holds the weight' in time possibly due to the fact that the driver holds the weight, after the driver confirms, if not, the weight data is detected and recorded, and if yes, the weight data is detected and recorded after the driver places the weight; it should be noted that the change amplitude of the body weight in the short term does not exceed 3-5 jin, and the preset difference can be 3-5.
S3321, when the second user ID information is detected, acquiring the current weight detection data, and sending prompt information containing the acquired current weight detection data;
s3322 generates and records the current weight detection data after receiving the confirmation of the prompt information.
When second user ID information appears, popping up an interface of 'whether a heavy object is held' on a touch display screen in the car, and if not, displaying the detected data through the touch display screen in the car; recording and storing the weight detection data of the current driver in time after the driver confirms the information; and if so, detecting and recording the weight data after the driver places a heavy object.
S4 sends weight detection data of the user ID information.
The detected weight data and the past weight data are used for generating daily, weekly and monthly report weight change icons through an OTA technology and are sent to the mobile terminal, and a driver can judge whether to take preventive measures such as physical examination or exercise according to the weight change.
In addition, as shown in FIG. 5, the present invention also shows a device for monitoring body weight of a vehicle, comprising
The first acquisition module is used for acquiring current identity information and generating user ID information according to the current identity information;
the second acquisition module is used for acquiring current vehicle detection information and generating safety prompt information according to the current vehicle detection information;
the detection module is used for acquiring current running record information and acquiring weight detection data when the current running record information is detected to be in a preset running state;
and the sending module is used for sending the weight detection data of the user ID information.
As a preferred embodiment, "acquiring current identity information and generating user ID information according to the current identity information" specifically includes: identifying identity information on a current driver seat; when the identity information is detected to be matched with preset identity information, generating first user ID information, and calling weight detection data reserved by the first user ID information; when the identity information is not matched with the preset identity information, sending verification request information of the current identity information to a terminal corresponding to the preset identity; and after receiving the confirmation of the verification request information of the terminal, generating second user ID information, and storing the second user ID information as preset identity information.
It should be noted that "acquiring current driving record information, and acquiring weight detection data when it is detected that the current driving record information is in a preset driving state" specifically includes: calling current driving record information, wherein the current driving record information comprises road condition information and vehicle speed state information; if the condition information and the vehicle speed state information are detected to be inconsistent with the preset driving state, sending a request prompt message for changing the condition and the vehicle speed; after receiving confirmation of the request prompt information, sending change service information consistent with a preset driving state; if the detected road condition information and the detected vehicle speed state information are consistent with the preset driving state, acquiring user ID information; when the first user ID information is detected, acquiring current weight detection data, and comparing the current weight detection data with the reserved weight detection data called before; if the weight is lower than the preset difference value, current weight detection data are generated and recorded; if the difference value is higher than the preset difference value, sending a prompt message with larger data deviation; after receiving the confirmation of the prompt message, generating and recording current weight detection data; when the second user ID information is detected, acquiring current weight detection data, and sending prompt information containing the acquired current weight detection data; and after the confirmation of the prompt information is received, generating and recording the current weight detection data.
To better implement the above method, embodiments of the present invention further provide a storage medium storing instructions that, when executed by a processor, implement the steps of the above method.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The specific embodiments described herein are merely illustrative of the spirit of the application. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the present application as defined by the appended claims.