WO2016179784A1 - Warning method and apparatus, and mobile terminal - Google Patents
Warning method and apparatus, and mobile terminal Download PDFInfo
- Publication number
- WO2016179784A1 WO2016179784A1 PCT/CN2015/078700 CN2015078700W WO2016179784A1 WO 2016179784 A1 WO2016179784 A1 WO 2016179784A1 CN 2015078700 W CN2015078700 W CN 2015078700W WO 2016179784 A1 WO2016179784 A1 WO 2016179784A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- state
- user
- warning
- location
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/024—Guidance services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
Definitions
- the embodiments of the present invention relate to the field of mobile communications, and in particular, to a warning method, apparatus, and mobile terminal.
- the rear camera is turned on, and the screen information including the current environment information captured by the rear camera is used as the background of the application to prompt the user's surroundings to improve the use of the head.
- Terminal security when using the mobile terminal, the front camera of the mobile terminal captures the user's eyes or face, and the rear camera captures the ground. Not only does it not provide effective information about the surrounding situation, but it is also easy because of the background. Dynamic changes in information affect the use of mobile terminals.
- the embodiment of the invention provides a warning method, a device and a mobile terminal, which can reduce the risk occurrence rate while ensuring that the user uses the mobile terminal.
- a warning method includes:
- the mobile terminal acquires a physical state of the user and a usage state of the mobile terminal
- the mobile terminal issues a warning message when a distance between the current location and the alert location is less than or equal to a preset distance.
- the mobile terminal sends a warning message, which specifically includes:
- the display screen of the mobile terminal blinks;
- the mobile terminal sends a voice prompt message
- the mobile terminal closes a running application
- the mobile terminal locks the display screen.
- the warning location includes:
- Crossroads roadsides, potholes, the location of the streetlight poles, the location of the trash can, the location of the vehicle, or the location of the pedestrian.
- the acquiring, by the mobile terminal, the physical state of the user includes:
- the physical state of the user is determined based on the speed of movement.
- the usage status of the mobile terminal is obtained by using at least one of the following manners:
- the mobile terminal is determined to be in a used state when it is determined that the mobile terminal continues to maintain a tilt angle or a duration that varies within a preset tilt angle range is greater than or equal to a third preset time period.
- the warning location is obtained by at least one of the following manners:
- a warning device includes:
- a body state acquisition unit configured to acquire a physical state of the user
- a state obtaining unit configured to acquire a usage state of the device
- a location acquisition unit configured to acquire, when the physical state of the user acquired by the physical state acquisition unit is a motion state, and the usage state of the device acquired by the usage state acquisition unit is a state used by the user, The current location and the warning location of the user;
- the warning unit issues a warning message when the distance between the current position and the warning position is less than or equal to a preset distance.
- the warning information specifically includes:
- the display of the device flashes;
- the device emits a voice prompt message
- the device closes a running application
- the device locks the display.
- the warning location includes: an intersection, a roadside, a pit road, a position of a light pole, and a trash can Location, location of the vehicle, or location of the pedestrian.
- the body state acquiring unit includes a motion speed acquiring unit and a determining unit;
- a motion speed acquisition unit configured to acquire a motion speed of the device
- a determining unit configured to determine a physical state of the user according to a motion speed acquired by the motion speed acquiring unit.
- the usage state acquiring unit acquires a usage state of the mobile terminal by using at least one of the following manners:
- the device is determined to be in a used state when it is determined that the device continues to maintain an angle of inclination or a duration of variation within a predetermined range of tilt angles is greater than or equal to a third predetermined period of time.
- the second acquiring unit acquires the warning location by using at least one of the following manners:
- a mobile terminal includes: a processor, a memory, and a communication interface;
- the memory is configured to store program code
- the processor, the memory, and the communication interface communicate with each other through a bus;
- the processor is configured to read program code stored in the memory, and perform the following operations:
- a warning message is issued when the distance between the current location and the warning location is less than or equal to a preset distance.
- the warning information specifically includes:
- the display screen of the mobile terminal blinks;
- the warning location includes: an intersection, a roadside, a pit road, a position of a light pole, and a trash can Location, location of the vehicle, or location of the pedestrian.
- the physical state of the user is determined based on the speed of movement.
- the processor acquires a usage status of the mobile terminal by using at least one of the following manners:
- the processor acquires the warning location by using at least one of the following manners:
- the mobile terminal when it is determined that the user is in a motion state and uses the mobile terminal, the current location and the warning location of the user are acquired, and the distance between the current location and the warning location is less than or equal to the pre-predetermined When the distance is set, the mobile terminal issues a warning message, thereby reducing the risk occurrence rate while ensuring that the user uses the mobile terminal.
- FIG. 1 is a flow chart of a warning method according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of a warning device according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of a mobile terminal according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a warning method according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
- Step 101 The mobile terminal acquires a physical state of the user and a usage state of the mobile terminal.
- the physical state of the user may include, for example, a motion state and a stationary state.
- the state of motion is a state in which the user is not stationary, such as walking, riding, and the like.
- the mobile terminal can acquire the physical state of the user, for example, according to the speed of movement of the mobile terminal itself measured by the built-in or external sensor of the mobile terminal.
- the sensor may be, for example, an acceleration sensor, an angular velocity sensor, a gravity sensor, a gyroscope, or the like.
- the sensor parameters will change, and the moving speed of the mobile terminal is obtained according to the change of the sensor parameters.
- the mobile terminal may obtain the motion state of the user by using the GPS built in the mobile terminal, for example, to obtain the physical state of the user.
- the usage state of the mobile terminal may include, for example, a used state and an unused state.
- the states used include, for example, making a call, playing a game, using an application, and the like. Obviously, not The state of use refers to the state in which the mobile terminal is not used by the user, or placed in a certain location, or in any standby state.
- the usage state of the mobile terminal can be determined by the display lighting time, that is, when the display screen of the mobile terminal is continuously illuminated for longer than or equal to the first preset time period, The mobile terminal is in a state of being used.
- the usage state of the mobile terminal may be determined, for example, by monitoring the eyes of the user, that is, when the front camera of the mobile terminal continuously obtains the duration of the eyes of the user is greater than or equal to the second When the time period is preset, it is determined that the mobile terminal is in a used state.
- the time for the screen to light up will be short, and the time for the front camera to acquire the user's eyes will be short. If the duration of the screen being continuously lit, or the length of time the front camera acquires the user's eyes, is greater than or equal to a predetermined period of time, such as 1 minute, or 2 minutes, etc., indicating that the user is continuously using the mobile terminal.
- a predetermined period of time such as 1 minute, or 2 minutes, etc.
- the usage state of the mobile terminal may be determined, for example, by monitoring the tilt state of the mobile terminal, that is, when it is determined that the mobile terminal continues to maintain an inclination angle or changes within a tilt angle range, the duration is greater than or When it is equal to the third preset time period, it is determined that the mobile terminal is in a used state.
- the posture of the user holding the mobile terminal is relatively fixed, and most of them will maintain a relatively fixed angle, such as 20-70°, or may change within a preset tilt angle range, for example, Change in the range of 45 ° ⁇ 20 °.
- a relatively fixed angle such as 20-70°
- a preset tilt angle range for example, Change in the range of 45 ° ⁇ 20 °.
- the first preset time period, the second preset time period, and the third preset time period may be set according to user requirements, or may be preset by the system.
- Step 102 When the physical state of the user is a motion state, and the usage state of the mobile terminal is a state used by the user, acquiring a current location and a warning location of the user.
- the mobile terminal When the physical state of the user acquired by the mobile terminal in step 101 is a motion state, and the mobile terminal When the usage state is the state used by the user, it means that the user may use the mobile terminal in the motion state. At this time, the user's attention is concentrated on the content of the mobile terminal, and it is easy to ignore the change of the surrounding environment.
- the embodiments of the present invention can ensure that the mobile terminal provides security information to the user while using it.
- the mobile terminal acquires the current location of the user and the warning location to determine whether the environment in which the user is located is dangerous.
- the current location of the user refers to the geographical location where the user is located, and the current location can be obtained by using the built-in GPS of the mobile terminal.
- Map type server Through the map type server, the latitude and longitude information of the current location of the user can be located in the map by the GPS.
- Map class servers such as google maps, Baidu maps, etc.
- the warning position in the embodiment of the present invention refers to a position where the mobile terminal user may be in danger, including but not limited to: an intersection, a roadside, a pothole road surface, a position of a lamp pole, a trash can, or the like, or a vehicle or a pedestrian. s position.
- the mobile terminal may obtain the warning location by one or more of the following methods:
- the warning location can be obtained from the geographic environment information acquired by the map class server.
- the geographic environment information includes information such as intersections and traffic flows, and the mobile terminal can obtain these through real-time interaction with the map type server through the network.
- the warning location can also be obtained from the ground information obtained by the rear camera.
- the rear camera of the mobile terminal can capture a certain range of ground information, such as a pothole road surface, a mud pit, etc., due to the user's posture of holding the mobile terminal, which may result in User dangerous warning location.
- the warning location can also be obtained from vehicle information or pedestrian information obtained through the comparison sound database.
- the mobile terminal can perform sound wave capture through a microphone or an earpiece, and compare the captured sound with a sound database in which sound noise waves of various types of vehicles are recorded, The sound waves of pedestrians and the like, as the vehicle passes or talks with the pedestrian, the sound of entering the microphone or the earpiece changes, and the vehicle or pedestrian information can be obtained according to the result of the comparison. Use this information to get a warning location that could be dangerous to the user.
- Step 103 When the distance between the current location and the warning location is less than or equal to a preset distance, the mobile terminal issues a warning message.
- the mobile terminal After obtaining the current location of the user and the warning location, the mobile terminal determines the distance between the current location of the user and the warning location. If the distance between the current location and the warning location is less than or equal to the preset distance, the user is away from the warning location. Very close, for example: users may reach the intersection immediately, may step into the potholes, may hit a pole, pedestrians or vehicles, etc., and appear dangerous. At this time, the mobile terminal issues a warning message to remind the user to stop using the mobile terminal.
- the preset distance may be set by a user or may be set by a system, and the preset distance is, for example, 2 meters, 3 meters, or 4 meters.
- the warning position in all directions around the user may be acquired, and the warning position in the forward direction of the user may be preferentially obtained.
- the mobile terminal may, for example, issue a warning message by displaying a prompt box directly on the display screen (for example, “dangerous stop”); and may also flash the display screen (such as blinking between different brightness).
- a warning message by displaying a prompt box directly on the display screen (for example, “dangerous stop”); and may also flash the display screen (such as blinking between different brightness).
- the way to issue a warning message it can also issue a warning message in the form of a voice prompt message; it can also issue a warning message in a way that closes the running application; it can also issue a warning message by locking the display.
- the user stops using the mobile terminal and travels in a safe manner.
- the mobile terminal when it is determined that the user is in a motion state and the mobile terminal is used, the current location and the warning location of the user are acquired. When the distance between the current location and the warning location is less than or equal to the preset distance, the mobile terminal sends out Warning information, which can reduce the risk of occurrence while ensuring users use the mobile terminal.
- the warning device 200 includes a body state acquiring unit 201, a use state acquiring unit 202, a position acquiring unit 203, and a warning unit 204.
- the body state obtaining unit 201 is configured to acquire a physical state of the user.
- the body state acquiring unit 201 may include a motion speed acquiring unit 205 and a determining unit 206.
- the motion speed acquisition unit 205 is configured to acquire the motion speed of the device
- the determining unit 206 is configured to determine the physical state of the user according to the motion speed acquired by the motion speed acquisition unit.
- the motion speed acquiring unit 205 is, for example, a sensor unit or a GPS unit.
- the usage status obtaining unit 202 is configured to acquire a usage status of the device.
- the usage state acquiring unit 202 acquires the usage state of the mobile terminal by using at least one of the following manners:
- the device is determined to be in a used state when it is determined that the device continues to maintain an angle of inclination or a duration of variation within a predetermined range of tilt angles is greater than or equal to a third predetermined period of time.
- the location obtaining unit 203 is configured to acquire a current location and a warning location of the user when the physical state of the user is a motion state, and the usage state of the device is a state used by the user.
- the current location of the user refers to the geographic location where the user is located, and the current location can be obtained by using the built-in GPS of the mobile terminal.
- the GPS can obtain the latitude and longitude information of the current location of the user. Position in the map.
- Map class servers such as google maps, Baidu maps, etc.
- the warning location includes: an intersection, a roadside, a pothole road surface, a location of the lamp pole, a location of the trash can, a location of the vehicle, or a position of the pedestrian.
- the location obtaining unit 203 acquires the warning location by acquiring the geographic environment information acquired by the map class server by at least one of the following methods; or acquiring the ground information acquired by the rear camera; or In the vehicle information or pedestrian information obtained from the sound database Obtain.
- the warning unit 204 is configured to issue a warning message when a distance between the current location and the warning location is less than or equal to a preset distance.
- the warning information specifically includes: displaying a prompt box on a display screen of the device; or blinking a display screen of the device; or the device emitting a voice prompt message; or The device closes the running application; or the device locks the display.
- the mobile terminal when it is determined that the user is in a motion state and the mobile terminal is used, the current location and the warning location of the user are acquired. When the distance between the current location and the warning location is less than or equal to the preset distance, the mobile terminal sends out Warning information, which can reduce the risk of occurrence while ensuring users use the mobile terminal.
- the warning device provided by the embodiment of the present invention is used to implement the method shown in the embodiment shown in FIG. 1 , the working principle of the warning device, the workflow, and the technical effects produced by the warning device. For details, refer to the embodiment shown in FIG. 1 . I will not repeat them here.
- FIG. 3 is a schematic diagram of a mobile terminal according to an embodiment of the present invention.
- the terminal can be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like.
- FIG. 3 is a block diagram showing a part of the structure of a mobile phone 300 related to an embodiment of the present invention.
- the mobile phone 300 includes components such as a memory 320, an input unit 330, a touch screen driving circuit 340, a display unit 350, a sensor 360, a camera 370, a processor 380, and a power source 390.
- a memory 320 such as a central processing unit 320, a central processing unit 320, a graphics processing unit 320, and a central processing unit 320, and a graphics processing unit 320.
- the components of the mobile phone 300 will be specifically described below with reference to FIG. 3:
- the memory 320 can be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone 300 by running software programs and modules stored in the memory 320.
- the memory 320 may mainly include a storage program area and a storage data area, wherein the storage program The area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the mobile phone 300 (such as audio data, image data, and telephone). Ben et al.
- memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one disk storage, flash memory device, or other volatile solid state memory.
- the input unit 330 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 300.
- the input unit 330 may include a touch screen 331 and other input devices 332.
- the touch screen 331 also referred to as a touch panel, can collect touch operations on or near the user (such as the user's operation on the touch screen 331 or near the touch screen 331 using any suitable object or accessory such as a finger, a stylus, etc.), and The corresponding connecting device is driven according to a preset program.
- the touch screen 331 may include two parts of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 380 is provided and can receive commands from the processor 380 and execute them.
- the touch screen 331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 330 may also include other input devices 332.
- other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the touch screen driving circuit 340 can be used to acquire the position and number of touch control points triggered in the touch screen. For example, in a capacitive touch screen, the touch screen driving circuit can derive the position and number of triggered touch control points by calculating capacitance changes of respective touch control points of the touch screen. Alternatively, the touch screen driving circuit 340 may be included in a touch detecting device or a touch controller.
- the display unit 350 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 300.
- the display unit 350 may include a display panel 341.
- the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
- the touch screen 331 The display panel 341 can be overlaid, and when the touch screen 331 detects a touch operation thereon or nearby, it is transmitted to the processor 380 to determine the type of the touch event, and then the processor 380 provides a corresponding on the display panel 341 according to the type of the touch event. Visual output.
- the touch screen 331 and the display panel 341 are used as two separate components to implement the input and input functions of the mobile phone 300, in some embodiments, the touch screen 331 may be integrated with the display panel 341 to implement the mobile phone 300. Input and output functions.
- the handset 300 can also include at least one type of sensor 360, such as a light sensor, motion sensor, density sensor, fingerprint sensor, and other sensors.
- the light sensor can include an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 341 according to the brightness of the ambient light;
- the proximity sensor can detect whether an object approaches or contacts the mobile phone, and can close the display panel 341 and/or the backlight when the mobile phone 300 moves to the ear.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- the density sensor detects the density of the material that the phone is in contact with.
- the fingerprint collection device is used to collect fingerprints input by the user. Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the mobile phone 300 will not be described herein.
- the camera 370 is a built-in camera of the mobile phone, and can be a front camera or a rear camera.
- Processor 380 is the control center of handset 300, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 320, and recalling data stored in memory 320, The various functions and processing data of the mobile phone 300 are performed to perform overall monitoring of the mobile phone.
- the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 380.
- the handset 300 also includes a power source 390 (such as a battery) that supplies power to the various components, preferably, electricity.
- the source can be logically coupled to the processor 380 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
- the mobile phone 300 may further include an RF (radio frequency) circuit, an audio circuit, a Wi-Fi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein.
- RF radio frequency
- audio circuit an audio circuit
- Wi-Fi Wireless Fidelity
- Bluetooth module a Bluetooth module
- the processor 380 is configured to read the program code stored in the memory 320 and perform the following operations:
- a warning message is issued when the distance between the current location and the warning location is less than or equal to a preset distance.
- the specific execution is:
- the physical state of the user is determined based on the speed of movement.
- the processor acquires the usage status of the mobile terminal by using at least one of the following manners:
- the warning location includes: an intersection, a roadside, a pothole road surface, a location of the lamp pole, a location of the trash can, a location of the vehicle, or a position of the pedestrian.
- the processor acquires the warning location by using at least one or more of the following manners:
- the warning information specifically includes:
- the mobile terminal when it is determined that the user is in a motion state and the mobile terminal is used, the current location and the warning location of the user are acquired. When the distance between the current location and the warning location is less than or equal to the preset distance, the mobile terminal sends out Warning information, which can reduce the risk of occurrence while ensuring users use the mobile terminal.
- the mobile terminal provided by the embodiment of the present invention is used to implement the method shown in the embodiment shown in FIG. 1 , the working principle, the workflow of the mobile terminal, and the technical effects generated by the mobile terminal. For details, refer to the embodiment shown in FIG. 1 . I will not repeat them here.
- Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
- a storage medium may be any available media that can be accessed by a computer.
- computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
- connection may suitably be a computer readable medium.
- the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
- coaxial cables, fiber optic cables, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
- a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
Disclosed are a warning method and apparatus, and a mobile terminal. The method comprises: a mobile terminal acquiring the body state of a user and the usage state of the mobile terminal; when the body state of the user is a motion state, and the usage state of the mobile terminal is a state of use by the user, acquiring the current position and a warning position of the user; and when the distance between the current position and the warning position is less than or equal to a pre-set distance, the mobile terminal sending warning information. Thus, it can be ensured that the risk occurrence rate is reduced while a user uses a mobile terminal.
Description
本发明实施例涉及移动通信领域领域,尤其涉及一种警告方法、装置和移动终端。The embodiments of the present invention relate to the field of mobile communications, and in particular, to a warning method, apparatus, and mobile terminal.
近年来,移动终端如智能手机、平板电脑(portable Android Device,Pad)以及掌上电脑(Personal Digital Assistant,PDA)等的快速普及,越来越多的用户习惯于移动终端不离身、不离手,只要有闲暇时间,就要低头使用移动终端,从而出现了大量的“低头族”。“低头族”成为一种趋势,也成为了移动终端使用的一种需求。但是,“低头族”浏览移动终端时,很容易沉浸于移动终端的内容中而忽视周围情况,从而增加危险,如走路时,会与他人相撞、未察觉路口或车辆而发生车祸等。据统计,在走路时操作手机比不操作手机遭遇交通事故的概率高了将近三倍。In recent years, mobile terminals such as smart phones, portable devices (Pad), and personal digital assistants (PDAs) have become more popular. More and more users are accustomed to mobile terminals without leaving their hands. When there is leisure time, it is necessary to bow down to use the mobile terminal, resulting in a large number of "low-headed people." The “low-headed family” has become a trend and has become a demand for mobile terminals. However, when browsing the mobile terminal, the "low-headed family" can easily immerse in the content of the mobile terminal and ignore the surrounding situation, thereby increasing the danger. For example, when walking, there is a collision with another person, an undetected intersection or a vehicle, and a car accident occurs. According to statistics, the probability of operating a mobile phone while walking is more than three times higher than that of not operating a mobile phone.
目前,已经有人提出,在走路时使用移动终端的情况下,打开后置摄像头,将后置摄像头拍摄到的包含当前环境信息的画面信息作为应用程序的背景来提示用户周围环境以提高低头使用移动终端的安全性。但是,“低头族”在使用移动终端时,移动终端的前置摄像头拍摄的是用户的眼睛或人脸,后置摄像头拍摄的是地面,不仅不能提供有效的周围情况信息,还很容易因为背景信息的动态变化影响移动终端的使用。At present, it has been proposed that, in the case of using a mobile terminal while walking, the rear camera is turned on, and the screen information including the current environment information captured by the rear camera is used as the background of the application to prompt the user's surroundings to improve the use of the head. Terminal security. However, when using the mobile terminal, the front camera of the mobile terminal captures the user's eyes or face, and the rear camera captures the ground. Not only does it not provide effective information about the surrounding situation, but it is also easy because of the background. Dynamic changes in information affect the use of mobile terminals.
发明内容Summary of the invention
本发明实施例提供了一种警告方法、装置和移动终端,能够在保证用户使用移动终端的同时降低危险发生率。The embodiment of the invention provides a warning method, a device and a mobile terminal, which can reduce the risk occurrence rate while ensuring that the user uses the mobile terminal.
第一方面,一种警告方法,包括:In the first aspect, a warning method includes:
移动终端获取用户的身体状态以及所述移动终端的使用状态;The mobile terminal acquires a physical state of the user and a usage state of the mobile terminal;
当所述用户的身体状态为运动状态,且所述移动终端的使用状态为被所
述用户使用的状态时,获取所述用户的当前位置及警告位置;When the physical state of the user is a motion state, and the usage state of the mobile terminal is
Obtaining the current location and the warning location of the user when the state used by the user is described;
当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,所述移动终端发出警告信息。The mobile terminal issues a warning message when a distance between the current location and the alert location is less than or equal to a preset distance.
在第一方面的第一种可能的实现方式中,所述移动终端发出警告信息,具体包括:In a first possible implementation manner of the first aspect, the mobile terminal sends a warning message, which specifically includes:
在所述移动终端的显示屏上显示提示框;或Displaying a prompt box on the display screen of the mobile terminal; or
所述移动终端的显示屏闪烁;或The display screen of the mobile terminal blinks; or
所述移动终端发出语音提示信息;或The mobile terminal sends a voice prompt message; or
所述移动终端关闭正在运行的应用程序;或The mobile terminal closes a running application; or
所述移动终端锁定显示屏。The mobile terminal locks the display screen.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述警告位置包括:In conjunction with the first aspect or the first possible implementation of the first aspect, in a second possible implementation, the warning location includes:
十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。Crossroads, roadsides, potholes, the location of the streetlight poles, the location of the trash can, the location of the vehicle, or the location of the pedestrian.
结合第一方面或上述第一方面的任一种可能的实现方式,在第三种可能的实现方式中,所述移动终端获取用户的身体状态,具体包括:With reference to the first aspect or any one of the foregoing possible implementation manners, in a third possible implementation, the acquiring, by the mobile terminal, the physical state of the user includes:
根据所述移动终端的传感器或GPS获取所述移动终端的运动速度;Obtaining a moving speed of the mobile terminal according to a sensor or a GPS of the mobile terminal;
根据所述运动速度确定所述用户的身体状态。The physical state of the user is determined based on the speed of movement.
结合第一方面或上述第一方面的任一种可能的实现方式,在第四种可能的实现方式中,通过以下至少一种方式,获取所述移动终端的使用状态:With reference to the first aspect or any one of the foregoing possible implementation manners, in a fourth possible implementation manner, the usage status of the mobile terminal is obtained by using at least one of the following manners:
当所述移动终端的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述移动终端处于被使用的状态;或Determining that the mobile terminal is in a used state when a duration of the display screen of the mobile terminal is continuously lit for greater than or equal to a first preset time period; or
当所述移动终端的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述移动终端处于被使用的状态;或Determining that the mobile terminal is in a used state when the duration of the front camera of the mobile terminal continuously acquiring the eye of the user is greater than or equal to a second preset time period; or
当确定所述移动终端持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述移动终端处于被使用的状态。
The mobile terminal is determined to be in a used state when it is determined that the mobile terminal continues to maintain a tilt angle or a duration that varies within a preset tilt angle range is greater than or equal to a third preset time period.
结合第一方面或上述第一方面的第一种可能的实现方式,在第五种可能的实现方式中,通过以下至少一种方式,获取所述警告位置:With reference to the first aspect or the first possible implementation manner of the foregoing first aspect, in a fifth possible implementation manner, the warning location is obtained by at least one of the following manners:
从地图类服务器获取的地理环境信息中获取;或Obtained from the geographic environment information obtained by the map class server; or
从后置摄像头获取的地面信息中获取;或Obtained from the ground information obtained by the rear camera; or
从通过比对声音数据库获取的车辆信息或行人信息中获取。Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
第二方面,一种警告装置,包括:In a second aspect, a warning device includes:
身体状态获取单元,用于获取用户的身体状态;a body state acquisition unit, configured to acquire a physical state of the user;
使用状态获取单元,用于获取所述装置的使用状态;Using a state obtaining unit, configured to acquire a usage state of the device;
位置获取单元,用于当所述身体状态获取单元获取的所述用户的身体状态为运动状态,所述使用状态获取单元获取的所述装置的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置;a location acquisition unit, configured to acquire, when the physical state of the user acquired by the physical state acquisition unit is a motion state, and the usage state of the device acquired by the usage state acquisition unit is a state used by the user, The current location and the warning location of the user;
警告单元,当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,发出警告信息。The warning unit issues a warning message when the distance between the current position and the warning position is less than or equal to a preset distance.
在第二方面的第一种可能的实现方式中,所述警告信息,具体包括:In a first possible implementation manner of the second aspect, the warning information specifically includes:
在所述装置的显示屏上显示提示框;或Displaying a prompt box on the display of the device; or
所述装置的显示屏闪烁;或The display of the device flashes; or
所述装置发出语音提示信息;或The device emits a voice prompt message; or
所述装置关闭正在运行的应用程序;或The device closes a running application; or
所述装置锁定显示屏。The device locks the display.
结合第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。With reference to the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner, the warning location includes: an intersection, a roadside, a pit road, a position of a light pole, and a trash can Location, location of the vehicle, or location of the pedestrian.
结合第二方面或上述第二方面的任一种可能的实现方式,在第三种可能的实现方式中,所述身体状态获取单元包括运动速度获取单元和确定单元;With the second aspect or any one of the foregoing possible implementation manners, in a third possible implementation, the body state acquiring unit includes a motion speed acquiring unit and a determining unit;
运动速度获取单元,用于获取所述装置的运动速度;a motion speed acquisition unit, configured to acquire a motion speed of the device;
确定单元,用于根据所述运动速度获取单元获取的运动速度确定所述用户的身体状态。
a determining unit configured to determine a physical state of the user according to a motion speed acquired by the motion speed acquiring unit.
结合第二方面或上述第二方面的任一种可能的实现方式,在第四种可能的实现方式中,使用状态获取单元通过以下至少一种方式,获取所述移动终端的使用状态:With reference to the second aspect or any one of the foregoing possible implementation manners, in a fourth possible implementation manner, the usage state acquiring unit acquires a usage state of the mobile terminal by using at least one of the following manners:
当所述装置的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述装置正处于被使用的状态;或Determining that the device is in a used state when a display screen of the device is continuously illuminated for a duration greater than or equal to a first predetermined time period; or
当所述装置的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述装置正处于被使用的状态;或Determining that the device is in a used state when a front camera of the device continuously acquires an eye of the user for a duration greater than or equal to a second predetermined time period; or
当确定所述装置持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述装置正处于被使用的状态。The device is determined to be in a used state when it is determined that the device continues to maintain an angle of inclination or a duration of variation within a predetermined range of tilt angles is greater than or equal to a third predetermined period of time.
结合第二方面或上述第二方面的任一种可能的实现方式,在第五种可能的实现方式中,所述第二获取单元通过以下至少一种方式,获取所述警告位置:With reference to the second aspect or any one of the foregoing possible implementation manners, in a fifth possible implementation manner, the second acquiring unit acquires the warning location by using at least one of the following manners:
从地图类服务器获取的地理环境信息中获取;或,Obtained from the geographic environment information obtained by the map class server; or,
从后置摄像头获取的地面信息中获取;或,Obtained from the ground information obtained by the rear camera; or,
从通过比对声音数据库获取的车辆信息或行人信息中获取。Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
第三方面,一种移动终端,包括:处理器、存储器和通信接口;In a third aspect, a mobile terminal includes: a processor, a memory, and a communication interface;
所述存储器,用于存储程序代码;The memory is configured to store program code;
所述处理器、所述存储器和所述通信接口通过总线相互通信;The processor, the memory, and the communication interface communicate with each other through a bus;
所述处理器,用于读取所述存储器中存储的程序代码,执行以下操作:The processor is configured to read program code stored in the memory, and perform the following operations:
获取用户的身体状态以及所述移动终端的使用状态;Obtaining a physical state of the user and a usage state of the mobile terminal;
当所述用户的身体状态为运动状态,且所述移动终端的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置;Obtaining a current location and a warning location of the user when the physical state of the user is a motion state, and the usage state of the mobile terminal is a state used by the user;
当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,发出警告信息。A warning message is issued when the distance between the current location and the warning location is less than or equal to a preset distance.
在第三方面的第一种可能的实现方式中,所述警告信息,具体包括:In a first possible implementation manner of the third aspect, the warning information specifically includes:
在所述移动终端的显示屏上显示提示框;或Displaying a prompt box on the display screen of the mobile terminal; or
所述移动终端的显示屏闪烁;或
The display screen of the mobile terminal blinks; or
发出语音提示信息;或Give a voice prompt message; or
关闭正在运行的应用程序;或Close a running application; or
锁定显示屏。Lock the display.
结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。In combination with the third aspect or the first possible implementation manner of the third aspect, in the second possible implementation manner, the warning location includes: an intersection, a roadside, a pit road, a position of a light pole, and a trash can Location, location of the vehicle, or location of the pedestrian.
结合第三方面或上述第三方面的任一种可能的实现方式,在第三种可能的实现方式中,所述处理器执行获取用户的身体状态的操作时,具体执行:With reference to the third aspect or any one of the foregoing possible implementation manners, in a third possible implementation manner, when the processor performs an operation of acquiring a physical state of the user, the specific execution is:
根据所述移动终端的传感器或GPS获取所述移动终端的运动速度;Obtaining a moving speed of the mobile terminal according to a sensor or a GPS of the mobile terminal;
根据所述运动速度确定所述用户的身体状态。The physical state of the user is determined based on the speed of movement.
结合第三方面或上述第三方面的任一种可能的实现方式,在第四种可能的实现方式中,所述处理器通过以下至少一种方式,获取所述移动终端的使用状态:With reference to the third aspect, or any one of the foregoing possible implementation manners, in a fourth possible implementation, the processor acquires a usage status of the mobile terminal by using at least one of the following manners:
当所述移动终端的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述移动终端正处于被使用的状态;或Determining that the mobile terminal is in a used state when a duration of the display screen of the mobile terminal is continuously lit for greater than or equal to a first preset time period; or
当所述移动终端的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述移动终端正处于被使用的状态;或Determining that the mobile terminal is in a used state when the duration of the front camera of the mobile terminal continuously acquiring the eye of the user is greater than or equal to a second preset time period; or
当确定所述移动终端持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述移动终端正处于被使用的状态。When it is determined that the mobile terminal continues to maintain a tilt angle or a duration that varies within a preset tilt angle range is greater than or equal to a third preset time period, it is determined that the mobile terminal is in a used state.
结合第三方面或上述第三方面的任一种可能的实现方式,在第五种可能的实现方式中,所述处理器通过以下至少一种方式,获取所述警告位置:With reference to the third aspect, or any one of the foregoing possible implementation manners, in a fifth possible implementation manner, the processor acquires the warning location by using at least one of the following manners:
从地图类服务器获取的地理环境信息中获取;或,Obtained from the geographic environment information obtained by the map class server; or,
从后置摄像头获取地面信息中获取;或,Obtain the ground information from the rear camera; or,
从通过比对声音数据库获取的车辆信息或行人信息中获取。Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
本发明实施例,在确定了用户处于运动状态且使用移动终端时,获取用户的当前位置及警告位置,当当前位置与警告位置之间的距离小于或等于预
设距离时,移动终端会发出警告信息,从而能够在保证用户使用移动终端的同时降低危险发生率。In the embodiment of the present invention, when it is determined that the user is in a motion state and uses the mobile terminal, the current location and the warning location of the user are acquired, and the distance between the current location and the warning location is less than or equal to the pre-predetermined
When the distance is set, the mobile terminal issues a warning message, thereby reducing the risk occurrence rate while ensuring that the user uses the mobile terminal.
图1为本发明实施例的一种警告方法的流程图;1 is a flow chart of a warning method according to an embodiment of the present invention;
图2为本发明实施例的一种警告装置的示意图;2 is a schematic diagram of a warning device according to an embodiment of the present invention;
图3为本发明实施例的一种移动终端的示意图。FIG. 3 is a schematic diagram of a mobile terminal according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1为本发明实施例的一种警告方法的流程图,如图1所示,该方法包括:FIG. 1 is a flowchart of a warning method according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
步骤101、移动终端获取用户的身体状态及所述移动终端的使用状态。Step 101: The mobile terminal acquires a physical state of the user and a usage state of the mobile terminal.
本发明实施例中,用户的身体状态例如可以包括:运动状态、静止状态。In the embodiment of the present invention, the physical state of the user may include, for example, a motion state and a stationary state.
运动状态为用户非静止的状态,例如走路、乘车等。The state of motion is a state in which the user is not stationary, such as walking, riding, and the like.
移动终端例如可以根据移动终端内置或外接的传感器测量的自身的运动速度,来获取用户的身体状态。The mobile terminal can acquire the physical state of the user, for example, according to the speed of movement of the mobile terminal itself measured by the built-in or external sensor of the mobile terminal.
传感器例如可以为加速度传感器、角速度传感器、重力传感器、陀螺仪等。当移动终端在运动中时,传感器参数会产生变化,根据传感器参数的变化获取移动终端的运动速度。The sensor may be, for example, an acceleration sensor, an angular velocity sensor, a gravity sensor, a gyroscope, or the like. When the mobile terminal is in motion, the sensor parameters will change, and the moving speed of the mobile terminal is obtained according to the change of the sensor parameters.
可选的,本发明实施例中,移动终端例如还可以通过移动终端内置的GPS来获取自身的运动速度,来获取用户的身体状态。Optionally, in the embodiment of the present invention, the mobile terminal may obtain the motion state of the user by using the GPS built in the mobile terminal, for example, to obtain the physical state of the user.
移动终端的使用状态例如可以包括:被使用的状态、未被使用的状态。被使用的状态例如包括:接打电话、玩游戏、使用应用程序等。显然,未被
使用的状态则指移动终端未被用户使用,或搁置于某一位置,或任何待机的状态。The usage state of the mobile terminal may include, for example, a used state and an unused state. The states used include, for example, making a call, playing a game, using an application, and the like. Obviously, not
The state of use refers to the state in which the mobile terminal is not used by the user, or placed in a certain location, or in any standby state.
本发明实施例中,例如可以通过显示屏点亮时间来判断移动终端的使用状态,即当所述移动终端的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述移动终端正处于被使用的状态。In the embodiment of the present invention, for example, the usage state of the mobile terminal can be determined by the display lighting time, that is, when the display screen of the mobile terminal is continuously illuminated for longer than or equal to the first preset time period, The mobile terminal is in a state of being used.
可选择的,本发明实施例中,例如可以通过监测用户的眼睛来判断移动终端的使用状态,即当所述移动终端的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述移动终端正处于被使用的状态。Optionally, in the embodiment of the present invention, the usage state of the mobile terminal may be determined, for example, by monitoring the eyes of the user, that is, when the front camera of the mobile terminal continuously obtains the duration of the eyes of the user is greater than or equal to the second When the time period is preset, it is determined that the mobile terminal is in a used state.
其中,如果用户仅仅是为了看时间,而触动按键点亮屏幕,那么屏幕点亮的时间会很短,前置摄像头获取到用户眼睛的时间也会很短。如果屏幕被持续点亮的时长、或前置摄像头获取到用户眼睛的时长,大于等于一预设时间段,如1分钟、或2分钟等,则表明用户在持续的使用移动终端的状态。Among them, if the user only touches the button to light the screen in order to watch the time, the time for the screen to light up will be short, and the time for the front camera to acquire the user's eyes will be short. If the duration of the screen being continuously lit, or the length of time the front camera acquires the user's eyes, is greater than or equal to a predetermined period of time, such as 1 minute, or 2 minutes, etc., indicating that the user is continuously using the mobile terminal.
可选择的,本发明实施例中,例如可以通过监测移动终端的倾斜状态来判断移动终端的使用状态,即当确定所述移动终端持续保持一个倾斜角度或在一个倾斜角度范围内变化时长大于或等于第三预设时间段时,确定所述移动终端正处于被使用的状态。Optionally, in the embodiment of the present invention, the usage state of the mobile terminal may be determined, for example, by monitoring the tilt state of the mobile terminal, that is, when it is determined that the mobile terminal continues to maintain an inclination angle or changes within a tilt angle range, the duration is greater than or When it is equal to the third preset time period, it is determined that the mobile terminal is in a used state.
当用户在运动中持续使用移动终端时,用户手持移动终端的姿势相对固定,大多会保持一个相对固定的角度,如20-70°左右,或会在一个预设倾斜角度范围内变动,如在45°±20°左右范围内变化。当判断移动终端持续保持一个倾斜角度,或在一个倾斜角度范围内变化时,则表明用户在持续的保持移动终端的使用状态。When the user continues to use the mobile terminal during exercise, the posture of the user holding the mobile terminal is relatively fixed, and most of them will maintain a relatively fixed angle, such as 20-70°, or may change within a preset tilt angle range, for example, Change in the range of 45 ° ± 20 °. When it is judged that the mobile terminal continues to maintain a tilt angle or changes within a tilt angle range, it indicates that the user is continuously maintaining the use state of the mobile terminal.
上述的第一预设时间段、第二预设时间段和第三预设时间段可以根据用户需要进行设定,也可以由系统预设。The first preset time period, the second preset time period, and the third preset time period may be set according to user requirements, or may be preset by the system.
步骤102、当所述用户的身体状态为运动状态,且所述移动终端的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置。Step 102: When the physical state of the user is a motion state, and the usage state of the mobile terminal is a state used by the user, acquiring a current location and a warning location of the user.
当步骤101中移动终端获取的用户的身体状态为运动状态,且移动终端
的使用状态为被用户使用的状态时,意味着用户可能在运动状态下使用移动终端,此时,用户的注意力集中在移动终端的内容中,很容易忽略周围环境的变化。When the physical state of the user acquired by the mobile terminal in step 101 is a motion state, and the mobile terminal
When the usage state is the state used by the user, it means that the user may use the mobile terminal in the motion state. At this time, the user's attention is concentrated on the content of the mobile terminal, and it is easy to ignore the change of the surrounding environment.
目前,在运动状态时使用移动终端,已经成为用户的一种需要。本发明实施例能够保证移动终端使用的同时,给用户提供安全信息。At present, the use of mobile terminals in the state of motion has become a need of users. The embodiments of the present invention can ensure that the mobile terminal provides security information to the user while using it.
当判断用户在运动状态且使用移动终端时,移动终端会获取用户的当前位置以及警告位置,以判断用户所在环境是否存在危险。When it is determined that the user is in a state of motion and the mobile terminal is used, the mobile terminal acquires the current location of the user and the warning location to determine whether the environment in which the user is located is dangerous.
其中,用户的当前位置,是指用户所处的地理位置,该当前位置可以通过移动终端内置的GPS获得,通过地图类服务器,可以将GPS获得用户当前位置的经纬度信息定位在地图中。地图类服务器例如google地图、百度地图等。The current location of the user refers to the geographical location where the user is located, and the current location can be obtained by using the built-in GPS of the mobile terminal. Through the map type server, the latitude and longitude information of the current location of the user can be located in the map by the GPS. Map class servers such as google maps, Baidu maps, etc.
本发明实施例中的警告位置,是指移动终端用户可能发生危险的位置,包括但不限于:十字路口,路边,坑洼路面,或路灯杆、垃圾桶等所在的位置,或车辆、行人的位置。The warning position in the embodiment of the present invention refers to a position where the mobile terminal user may be in danger, including but not limited to: an intersection, a roadside, a pothole road surface, a position of a lamp pole, a trash can, or the like, or a vehicle or a pedestrian. s position.
本发明实施例,移动终端可以通过以下一种或多种方式获取警告位置:In the embodiment of the present invention, the mobile terminal may obtain the warning location by one or more of the following methods:
第一、警告位置可以从地图类服务器获取的地理环境信息中获取。通常,根据地图类服务器提供的各种地理环境信息,能够获取实时的路况信息,地理环境信息包括十字路口、车流量等信息,移动终端通过网络和地图类服务器进行实时交互,就能够获取到这些信息,并通过这些信息获得可能导致用户产生危险的警告位置。First, the warning location can be obtained from the geographic environment information acquired by the map class server. Generally, according to various geographic environment information provided by the map server, real-time road condition information can be obtained, and the geographic environment information includes information such as intersections and traffic flows, and the mobile terminal can obtain these through real-time interaction with the map type server through the network. Information, and through this information, obtain a warning location that could cause the user to be in danger.
第二、警告位置还可以从后置摄像头获取的地面信息中获取。通常,用户在运动状态且使用移动终端时,由于用户手持移动终端的姿势,移动终端的后置摄像头可以拍摄到一定范围地面的信息,比如,坑洼路面、泥坑等,通过这些信息获得可能导致用户危险的警告位置。Second, the warning location can also be obtained from the ground information obtained by the rear camera. Generally, when the user is in a state of motion and uses the mobile terminal, the rear camera of the mobile terminal can capture a certain range of ground information, such as a pothole road surface, a mud pit, etc., due to the user's posture of holding the mobile terminal, which may result in User dangerous warning location.
第三、警告位置还可以从通过比对声音数据库获取的车辆信息或行人信息中获取。移动终端能够通过麦克风或听筒进行声波捕获,将捕获的声音与声音数据库进行比对,声音数据库中记录有各种类型汽车行驶的噪音声波、
行人交谈的声波等,由于车辆通过或行人交谈时,进入麦克风或听筒的声音会发生变化,根据比对的结果可以获取车辆或行人信息。通过这些信息获得可能导致用户危险的警告位置。Third, the warning location can also be obtained from vehicle information or pedestrian information obtained through the comparison sound database. The mobile terminal can perform sound wave capture through a microphone or an earpiece, and compare the captured sound with a sound database in which sound noise waves of various types of vehicles are recorded,
The sound waves of pedestrians and the like, as the vehicle passes or talks with the pedestrian, the sound of entering the microphone or the earpiece changes, and the vehicle or pedestrian information can be obtained according to the result of the comparison. Use this information to get a warning location that could be dangerous to the user.
步骤103、当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,所述移动终端发出警告信息。Step 103: When the distance between the current location and the warning location is less than or equal to a preset distance, the mobile terminal issues a warning message.
当获取到用户的当前位置以及警告位置后,移动终端会判断用户的当前位置与警告位置之间的距离,如果当前位置与警告位置之间的距离小于等于预设距离时,表示用户距离警告位置很近,例如:用户可能马上到达十字路口、可能会踩到坑洼中、可能撞到电线杆、行人或车辆等,而出现危险。此时,移动终端发出警告信息,提醒用户停止使用移动终端。该预设距离可以由用户设定,也可以由系统设定,预设距离例如为2米、3米或4米等。After obtaining the current location of the user and the warning location, the mobile terminal determines the distance between the current location of the user and the warning location. If the distance between the current location and the warning location is less than or equal to the preset distance, the user is away from the warning location. Very close, for example: users may reach the intersection immediately, may step into the potholes, may hit a pole, pedestrians or vehicles, etc., and appear dangerous. At this time, the mobile terminal issues a warning message to remind the user to stop using the mobile terminal. The preset distance may be set by a user or may be set by a system, and the preset distance is, for example, 2 meters, 3 meters, or 4 meters.
需要说明的是,在获取警告位置时,可以获取用户四周各个方向上的警告位置,也可以优先获取用户前进方向上的警告位置。It should be noted that, when the warning position is obtained, the warning position in all directions around the user may be acquired, and the warning position in the forward direction of the user may be preferentially obtained.
本发明实施例中,移动终端例如可以以直接在显示屏上显示提示框(如:“危险请止步”)的方式发出警告信息;还可以以显示屏闪烁(如在不同亮度之间的闪烁)的方式发出警告信息;还可以以发出语音提示信息的方式发出警告信息;还可以以关闭正在运行的应用程序的方式发出警告信息;还可以以锁定显示屏的方式发出警告信息。用户接收到警告信息后,就会停止使用移动终端,并采取安全的方式出行。In the embodiment of the present invention, the mobile terminal may, for example, issue a warning message by displaying a prompt box directly on the display screen (for example, “dangerous stop”); and may also flash the display screen (such as blinking between different brightness). The way to issue a warning message; it can also issue a warning message in the form of a voice prompt message; it can also issue a warning message in a way that closes the running application; it can also issue a warning message by locking the display. After receiving the warning message, the user stops using the mobile terminal and travels in a safe manner.
在本发明实施例,在确定了用户处于运动状态且使用移动终端时,获取用户的当前位置及警告位置,当当前位置与警告位置之间的距离小于或等于预设距离时,移动终端会发出警告信息,从而能够在保证用户使用移动终端的同时降低危险发生率。In the embodiment of the present invention, when it is determined that the user is in a motion state and the mobile terminal is used, the current location and the warning location of the user are acquired. When the distance between the current location and the warning location is less than or equal to the preset distance, the mobile terminal sends out Warning information, which can reduce the risk of occurrence while ensuring users use the mobile terminal.
图2为本发明实施例的一种警告装置的示意图。如图2所示,该警告装置200包括:身体状态获取单元201、使用状态获取单元202、位置获取单元203和警告单元204。2 is a schematic diagram of a warning device according to an embodiment of the present invention. As shown in FIG. 2, the warning device 200 includes a body state acquiring unit 201, a use state acquiring unit 202, a position acquiring unit 203, and a warning unit 204.
其中,身体状态获取单元201,用于获取用户的身体状态。
The body state obtaining unit 201 is configured to acquire a physical state of the user.
进一步的,身体状态获取单元201可以包括运动速度获取单元205、确定单元206。其中,运动速度获取单元205,用于获取所述装置的运动速度;确定单元206,用于根据所述运动速度获取单元获取的运动速度确定所述用户的身体状态。Further, the body state acquiring unit 201 may include a motion speed acquiring unit 205 and a determining unit 206. The motion speed acquisition unit 205 is configured to acquire the motion speed of the device, and the determining unit 206 is configured to determine the physical state of the user according to the motion speed acquired by the motion speed acquisition unit.
需要说明的是,本发明实施例中,运动速度获取单元205例如为传感器单元或GPS单元。It should be noted that, in the embodiment of the present invention, the motion speed acquiring unit 205 is, for example, a sensor unit or a GPS unit.
使用状态获取单元202,用于获取所述装置的使用状态。The usage status obtaining unit 202 is configured to acquire a usage status of the device.
进一步的,本发明实施例中,使用状态获取单元202通过以下至少一种方式,获取所述移动终端的使用状态:Further, in the embodiment of the present invention, the usage state acquiring unit 202 acquires the usage state of the mobile terminal by using at least one of the following manners:
当所述装置的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述装置正处于被使用的状态;或Determining that the device is in a used state when a display screen of the device is continuously illuminated for a duration greater than or equal to a first predetermined time period; or
当所述装置的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述装置正处于被使用的状态;或Determining that the device is in a used state when a front camera of the device continuously acquires an eye of the user for a duration greater than or equal to a second predetermined time period; or
当确定所述装置持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述装置正处于被使用的状态。The device is determined to be in a used state when it is determined that the device continues to maintain an angle of inclination or a duration of variation within a predetermined range of tilt angles is greater than or equal to a third predetermined period of time.
位置获取单元203,用于当所述用户的身体状态为运动状态,且所述装置的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置。The location obtaining unit 203 is configured to acquire a current location and a warning location of the user when the physical state of the user is a motion state, and the usage state of the device is a state used by the user.
进一步的,本发明实施例中,用户的当前位置,是指用户所处的地理位置,该当前位置可以通过移动终端内置的GPS获得,通过地图类服务器,可以将GPS获得用户当前位置的经纬度信息定位在地图中。地图类服务器例如google地图、百度地图等。Further, in the embodiment of the present invention, the current location of the user refers to the geographic location where the user is located, and the current location can be obtained by using the built-in GPS of the mobile terminal. Through the map server, the GPS can obtain the latitude and longitude information of the current location of the user. Position in the map. Map class servers such as google maps, Baidu maps, etc.
进一步的,本发明实施例中,警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。Further, in the embodiment of the present invention, the warning location includes: an intersection, a roadside, a pothole road surface, a location of the lamp pole, a location of the trash can, a location of the vehicle, or a position of the pedestrian.
进一步的,位置获取单元203通过以下至少一种方式,获取所述警告位置:从地图类服务器获取的地理环境信息中获取;或,从后置摄像头获取的地面信息中获取;或,从通过比对声音数据库获取的车辆信息或行人信息中
获取。Further, the location obtaining unit 203 acquires the warning location by acquiring the geographic environment information acquired by the map class server by at least one of the following methods; or acquiring the ground information acquired by the rear camera; or In the vehicle information or pedestrian information obtained from the sound database
Obtain.
警告单元204,用于当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,发出警告信息。The warning unit 204 is configured to issue a warning message when a distance between the current location and the warning location is less than or equal to a preset distance.
进一步的,本发明实施例中,所述警告信息,具体包括:在所述装置的显示屏上显示提示框;或所述装置的显示屏闪烁;或所述装置发出语音提示信息;或所述装置关闭正在运行的应用程序;或所述装置锁定显示屏。Further, in the embodiment of the present invention, the warning information specifically includes: displaying a prompt box on a display screen of the device; or blinking a display screen of the device; or the device emitting a voice prompt message; or The device closes the running application; or the device locks the display.
在本发明实施例,在确定了用户处于运动状态且使用移动终端时,获取用户的当前位置及警告位置,当当前位置与警告位置之间的距离小于或等于预设距离时,移动终端会发出警告信息,从而能够在保证用户使用移动终端的同时降低危险发生率。In the embodiment of the present invention, when it is determined that the user is in a motion state and the mobile terminal is used, the current location and the warning location of the user are acquired. When the distance between the current location and the warning location is less than or equal to the preset distance, the mobile terminal sends out Warning information, which can reduce the risk of occurrence while ensuring users use the mobile terminal.
本发明实施例提供的警告装置,用于实现图1所示实施例所示的方法,该警告装置的工作原理、工作流程和该警告装置产生的技术效果,具体参见图1所示实施例,在此不再赘述。The warning device provided by the embodiment of the present invention is used to implement the method shown in the embodiment shown in FIG. 1 , the working principle of the warning device, the workflow, and the technical effects produced by the warning device. For details, refer to the embodiment shown in FIG. 1 . I will not repeat them here.
图3为本发明实施例的一种移动终端的示意图。FIG. 3 is a schematic diagram of a mobile terminal according to an embodiment of the present invention.
该终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等,本发明实施例以终端为手机为例进行说明,图3示出的是与本发明实施例相关的手机300的部分结构的框图。The terminal can be a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like. To be explained, FIG. 3 is a block diagram showing a part of the structure of a mobile phone 300 related to an embodiment of the present invention.
如图3所示,手机300包括存储器320、输入单元330、触摸屏驱动电路340、显示单元350、传感器360、摄像头370、处理器380、以及电源390等部件。本领域技术人员可以理解,图3中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 3, the mobile phone 300 includes components such as a memory 320, an input unit 330, a touch screen driving circuit 340, a display unit 350, a sensor 360, a camera 370, a processor 380, and a power source 390. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 3 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图3对手机300的各个构成部件进行具体的介绍:The components of the mobile phone 300 will be specifically described below with reference to FIG. 3:
存储器320可用于存储软件程序以及模块,处理器380通过运行存储在存储器320的软件程序以及模块,从而执行手机300的各种功能应用以及数据处理。存储器320可主要包括存储程序区和存储数据区,其中,存储程序
区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机300的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器、闪存器件、或其他易失性固态存储器。The memory 320 can be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone 300 by running software programs and modules stored in the memory 320. The memory 320 may mainly include a storage program area and a storage data area, wherein the storage program
The area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the mobile phone 300 (such as audio data, image data, and telephone). Ben et al. Moreover, memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one disk storage, flash memory device, or other volatile solid state memory.
输入单元330可用于接收输入的数字或字符信息,以及产生与手机300的用户设置以及功能控制有关的键信号输入。具体地,输入单元330可包括触摸屏331以及其他输入设备332。触摸屏331,也称为触控面板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏331上或在触摸屏331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏331。除了触摸屏331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 330 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 300. Specifically, the input unit 330 may include a touch screen 331 and other input devices 332. The touch screen 331, also referred to as a touch panel, can collect touch operations on or near the user (such as the user's operation on the touch screen 331 or near the touch screen 331 using any suitable object or accessory such as a finger, a stylus, etc.), and The corresponding connecting device is driven according to a preset program. Alternatively, the touch screen 331 may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 380 is provided and can receive commands from the processor 380 and execute them. In addition, the touch screen 331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 331, the input unit 330 may also include other input devices 332. Specifically, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power switch buttons, etc.), trackballs, mice, joysticks, and the like.
触摸屏驱动电路340,可以用于获取触摸屏中被触发的触摸控制点的位置和数量。例如在电容触摸屏中,触摸屏驱动电路可以通过计算触摸屏的各个触摸控制点的电容变化,得出被触发的触摸控制点的位置和数量。可选的,触摸屏驱动电路340可以包含在触摸检测装置或触摸控制器中。The touch screen driving circuit 340 can be used to acquire the position and number of touch control points triggered in the touch screen. For example, in a capacitive touch screen, the touch screen driving circuit can derive the position and number of triggered touch control points by calculating capacitance changes of respective touch control points of the touch screen. Alternatively, the touch screen driving circuit 340 may be included in a touch detecting device or a touch controller.
显示单元350可用于显示由用户输入的信息或提供给用户的信息以及手机300的各种菜单。显示单元350可包括显示面板341,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触摸屏331
可覆盖显示面板341,当触摸屏331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图3中,触摸屏331与显示面板341是作为两个独立的部件来实现手机300的输入和输入功能,但是在某些实施例中,可以将触摸屏331与显示面板341集成而实现手机300的输入和输出功能。The display unit 350 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 300. The display unit 350 may include a display panel 341. Alternatively, the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch screen 331
The display panel 341 can be overlaid, and when the touch screen 331 detects a touch operation thereon or nearby, it is transmitted to the processor 380 to determine the type of the touch event, and then the processor 380 provides a corresponding on the display panel 341 according to the type of the touch event. Visual output. Although in FIG. 3, the touch screen 331 and the display panel 341 are used as two separate components to implement the input and input functions of the mobile phone 300, in some embodiments, the touch screen 331 may be integrated with the display panel 341 to implement the mobile phone 300. Input and output functions.
手机300还可包括至少一种传感器360,比如光传感器、运动传感器、密度传感器、指纹传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器。其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度;接近传感器可以检测是否有物体靠近或接触手机,可在手机300移动到耳边时,关闭显示面板341和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。密度传感器可以检测到手机所接触的物质的密度。指纹采集装置用于采集用户输入的指纹。至于手机300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset 300 can also include at least one type of sensor 360, such as a light sensor, motion sensor, density sensor, fingerprint sensor, and other sensors. In particular, the light sensor can include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 341 according to the brightness of the ambient light; the proximity sensor can detect whether an object approaches or contacts the mobile phone, and can close the display panel 341 and/or the backlight when the mobile phone 300 moves to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping). The density sensor detects the density of the material that the phone is in contact with. The fingerprint collection device is used to collect fingerprints input by the user. Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the mobile phone 300 will not be described herein.
摄像头370为手机的内置摄像头,可以为前置摄像头,也可以为后置摄像头。The camera 370 is a built-in camera of the mobile phone, and can be a front camera or a rear camera.
处理器380是手机300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行手机300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理单元;优选的,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。 Processor 380 is the control center of handset 300, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 320, and recalling data stored in memory 320, The various functions and processing data of the mobile phone 300 are performed to perform overall monitoring of the mobile phone. Optionally, the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 380.
手机300还包括给各个部件供电的电源390(比如电池),优选的,电
源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset 300 also includes a power source 390 (such as a battery) that supplies power to the various components, preferably, electricity.
The source can be logically coupled to the processor 380 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机300还可以包括RF(radio frequency,射频)电路、音频电路、Wi-Fi(wireless fidelity,无线保真)模块、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone 300 may further include an RF (radio frequency) circuit, an audio circuit, a Wi-Fi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein.
在本发明实施例中,处理器380用于读取存储器320中存储的程序代码,执行以下操作:In the embodiment of the present invention, the processor 380 is configured to read the program code stored in the memory 320 and perform the following operations:
获取用户的身体状态以及所述移动终端的使用状态;Obtaining a physical state of the user and a usage state of the mobile terminal;
当所述用户的身体状态为运动状态,且所述移动终端的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置;Obtaining a current location and a warning location of the user when the physical state of the user is a motion state, and the usage state of the mobile terminal is a state used by the user;
当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,发出警告信息。A warning message is issued when the distance between the current location and the warning location is less than or equal to a preset distance.
进一步的,本发明实施例中,所述处理器执行获取用户的身体状态的操作时,具体执行:Further, in the embodiment of the present invention, when the processor performs an operation of acquiring a physical state of the user, the specific execution is:
根据所述移动终端的传感器或GPS获取所述移动终端的运动速度;Obtaining a moving speed of the mobile terminal according to a sensor or a GPS of the mobile terminal;
根据所述运动速度确定所述用户的身体状态。The physical state of the user is determined based on the speed of movement.
进一步发,本发明实施例中,所述处理器通过以下至少一种方式,获取所述移动终端的使用状态:Further, in the embodiment of the present invention, the processor acquires the usage status of the mobile terminal by using at least one of the following manners:
当所述移动终端的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述移动终端正处于被使用的状态;或Determining that the mobile terminal is in a used state when a duration of the display screen of the mobile terminal is continuously lit for greater than or equal to a first preset time period; or
当所述移动终端的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述移动终端正处于被使用的状态;或Determining that the mobile terminal is in a used state when the duration of the front camera of the mobile terminal continuously acquiring the eye of the user is greater than or equal to a second preset time period; or
当确定所述移动终端持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述移动终端正处于被使用的状态。When it is determined that the mobile terminal continues to maintain a tilt angle or a duration that varies within a preset tilt angle range is greater than or equal to a third preset time period, it is determined that the mobile terminal is in a used state.
进一步的,本发明实施例中,所述警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。
Further, in the embodiment of the present invention, the warning location includes: an intersection, a roadside, a pothole road surface, a location of the lamp pole, a location of the trash can, a location of the vehicle, or a position of the pedestrian.
进一步的,本发明实施例中,所述处理器通过以下至少一种或多种方式,获取所述警告位置:Further, in the embodiment of the present invention, the processor acquires the warning location by using at least one or more of the following manners:
从地图类服务器获取的地理环境信息中获取;或,Obtained from the geographic environment information obtained by the map class server; or,
从后置摄像头获取地面信息中获取;或,Obtain the ground information from the rear camera; or,
从通过比对声音数据库获取的车辆信息或行人信息中获取。Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
进一步的,本发明实施例中,所述警告信息,具体包括:Further, in the embodiment of the present invention, the warning information specifically includes:
在所述移动终端的显示屏上显示提示框;或所述移动终端的显示屏闪烁;或发出语音提示信息;或关闭正在运行的应用程序;或锁定显示屏。Displaying a prompt box on the display screen of the mobile terminal; or flashing a display screen of the mobile terminal; or issuing a voice prompt message; or closing a running application; or locking the display screen.
在本发明实施例,在确定了用户处于运动状态且使用移动终端时,获取用户的当前位置及警告位置,当当前位置与警告位置之间的距离小于或等于预设距离时,移动终端会发出警告信息,从而能够在保证用户使用移动终端的同时降低危险发生率。In the embodiment of the present invention, when it is determined that the user is in a motion state and the mobile terminal is used, the current location and the warning location of the user are acquired. When the distance between the current location and the warning location is less than or equal to the preset distance, the mobile terminal sends out Warning information, which can reduce the risk of occurrence while ensuring users use the mobile terminal.
本发明实施例提供的移动终端,用于实现图1所示实施例所示的方法,该移动终端的工作原理、工作流程和该移动终端产生的技术效果,具体参见图1所示实施例,在此不再赘述。The mobile terminal provided by the embodiment of the present invention is used to implement the method shown in the embodiment shown in FIG. 1 , the working principle, the workflow of the mobile terminal, and the technical effects generated by the mobile terminal. For details, refer to the embodiment shown in FIG. 1 . I will not repeat them here.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么
同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本发明所使用的,盘(Disk)和碟(disc)包括压缩光碟(CD)、激光碟、光碟、数字通用光碟(DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a computer. By way of example and not limitation, computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure. The desired program code and any other medium that can be accessed by the computer. Also. Any connection may suitably be a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then
Coaxial cables, fiber optic cables, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
总之,以上所述仅为本发明技术方案的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
Claims (18)
- 一种警告方法,其特征在于,包括:A warning method, comprising:移动终端获取用户的身体状态以及所述移动终端的使用状态;The mobile terminal acquires a physical state of the user and a usage state of the mobile terminal;当所述用户的身体状态为运动状态,且所述移动终端的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置;Obtaining a current location and a warning location of the user when the physical state of the user is a motion state, and the usage state of the mobile terminal is a state used by the user;当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,所述移动终端发出警告信息。The mobile terminal issues a warning message when a distance between the current location and the alert location is less than or equal to a preset distance.
- 根据权利要求1所述的方法,其特征在于,所述移动终端发出警告信息,具体包括:The method of claim 1, wherein the mobile terminal sends a warning message, which specifically includes:在所述移动终端的显示屏上显示提示框;或Displaying a prompt box on the display screen of the mobile terminal; or所述移动终端的显示屏闪烁;或The display screen of the mobile terminal blinks; or所述移动终端发出语音提示信息;或The mobile terminal sends a voice prompt message; or所述移动终端关闭正在运行的应用程序;或The mobile terminal closes a running application; or所述移动终端锁定显示屏。The mobile terminal locks the display screen.
- 根据权利要求1或2所述的方法,其特征在于,所述警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。The method according to claim 1 or 2, wherein the warning position comprises: an intersection, a roadside, a pothole road surface, a location of the lamp pole, a location of the trash can, a position of the vehicle, or a position of the pedestrian.
- 根据权利要求1-3中任意一项所述的方法,其特征在于,所述移动终端获取用户的身体状态,具体包括:The method according to any one of claims 1 to 3, wherein the acquiring, by the mobile terminal, the physical state of the user comprises:根据所述移动终端的传感器或GPS获取所述移动终端的运动速度;Obtaining a moving speed of the mobile terminal according to a sensor or a GPS of the mobile terminal;根据所述运动速度确定所述用户的身体状态。The physical state of the user is determined based on the speed of movement.
- 根据权利要求1-4中任意一项所述的方法,其特征在于,通过以下至少一种方式,获取所述移动终端的使用状态:The method according to any one of claims 1-4, wherein the usage status of the mobile terminal is obtained by at least one of the following:当所述移动终端的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述移动终端处于被使用的状态;或Determining that the mobile terminal is in a used state when a duration of the display screen of the mobile terminal is continuously lit for greater than or equal to a first preset time period; or当所述移动终端的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述移动终端处于被使用的状态;或 Determining that the mobile terminal is in a used state when the duration of the front camera of the mobile terminal continuously acquiring the eye of the user is greater than or equal to a second preset time period; or当确定所述移动终端持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述移动终端处于被使用的状态。The mobile terminal is determined to be in a used state when it is determined that the mobile terminal continues to maintain a tilt angle or a duration that varies within a preset tilt angle range is greater than or equal to a third preset time period.
- 根据权利要求1-5中任意一项所述的方法,其特征在于,通过以下至少一种方式,获取所述警告位置:The method according to any one of claims 1 to 5, characterized in that the warning position is obtained by at least one of the following:从地图类服务器获取的地理环境信息中获取;或Obtained from the geographic environment information obtained by the map class server; or从后置摄像头获取的地面信息中获取;或Obtained from the ground information obtained by the rear camera; or从通过比对声音数据库获取的车辆信息或行人信息中获取。Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
- 一种警告装置,其特征在于,包括:A warning device, comprising:身体状态获取单元,用于获取用户的身体状态;a body state acquisition unit, configured to acquire a physical state of the user;使用状态获取单元,用于获取所述装置的使用状态;Using a state obtaining unit, configured to acquire a usage state of the device;位置获取单元,用于当所述身体状态获取单元获取的所述用户的身体状态为运动状态,所述使用状态获取单元获取的所述装置的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置;a location acquisition unit, configured to acquire, when the physical state of the user acquired by the physical state acquisition unit is a motion state, and the usage state of the device acquired by the usage state acquisition unit is a state used by the user, The current location and the warning location of the user;警告单元,当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,发出警告信息。The warning unit issues a warning message when the distance between the current position and the warning position is less than or equal to a preset distance.
- 根据权利要求7所述的装置,其特征在于,所述警告信息,具体包括:The device according to claim 7, wherein the warning information specifically includes:在所述装置的显示屏上显示提示框;或Displaying a prompt box on the display of the device; or所述装置的显示屏闪烁;或The display of the device flashes; or所述装置发出语音提示信息;或The device emits a voice prompt message; or所述装置关闭正在运行的应用程序;或The device closes a running application; or所述装置锁定显示屏。The device locks the display.
- 根据权利要求7或8所述的装置,其特征在于,所述警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。The apparatus according to claim 7 or 8, wherein the warning position comprises: an intersection, a roadside, a pothole road surface, a location of the lamp pole, a location of the trash can, a position of the vehicle, or a position of the pedestrian.
- 根据权利要求7-9中任意一项所述的装置,其特征在于,所述身体 状态获取单元包括运动速度获取单元和确定单元;Device according to any one of claims 7-9, wherein the body The state acquisition unit includes a motion speed acquisition unit and a determination unit;运动速度获取单元,用于获取所述装置的运动速度;a motion speed acquisition unit, configured to acquire a motion speed of the device;确定单元,用于根据所述运动速度获取单元获取的运动速度确定所述用户的身体状态。a determining unit configured to determine a physical state of the user according to a motion speed acquired by the motion speed acquiring unit.
- 根据权利要求7-10中任意一项所述的装置,其特征在于,使用状态获取单元通过以下至少一种方式,获取所述移动终端的使用状态:The device according to any one of claims 7 to 10, wherein the usage status obtaining unit acquires the usage status of the mobile terminal by using at least one of the following methods:当所述装置的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述装置正处于被使用的状态;或Determining that the device is in a used state when a display screen of the device is continuously illuminated for a duration greater than or equal to a first predetermined time period; or当所述装置的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述装置正处于被使用的状态;或Determining that the device is in a used state when a front camera of the device continuously acquires an eye of the user for a duration greater than or equal to a second predetermined time period; or当确定所述装置持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述装置正处于被使用的状态。The device is determined to be in a used state when it is determined that the device continues to maintain an angle of inclination or a duration of variation within a predetermined range of tilt angles is greater than or equal to a third predetermined period of time.
- 根据权利要求7-11中任意一项所述的装置,其特征在于,所述第二获取单元通过以下至少一种方式,获取所述警告位置:The device according to any one of claims 7 to 11, wherein the second obtaining unit acquires the warning position by at least one of the following methods:从地图类服务器获取的地理环境信息中获取;或,Obtained from the geographic environment information obtained by the map class server; or,从后置摄像头获取的地面信息中获取;或,Obtained from the ground information obtained by the rear camera; or,从通过比对声音数据库获取的车辆信息或行人信息中获取。Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
- 一种移动终端,其特征在于,包括:处理器、存储器和通信接口;A mobile terminal, comprising: a processor, a memory, and a communication interface;所述存储器,用于存储程序代码;The memory is configured to store program code;所述处理器、所述存储器和所述通信接口通过总线相互通信;The processor, the memory, and the communication interface communicate with each other through a bus;所述处理器,用于读取所述存储器中存储的程序代码,执行以下操作:The processor is configured to read program code stored in the memory, and perform the following operations:获取用户的身体状态以及所述移动终端的使用状态;Obtaining a physical state of the user and a usage state of the mobile terminal;当所述用户的身体状态为运动状态,且所述移动终端的使用状态为被所述用户使用的状态时,获取所述用户的当前位置及警告位置;Obtaining a current location and a warning location of the user when the physical state of the user is a motion state, and the usage state of the mobile terminal is a state used by the user;当所述当前位置与所述警告位置之间的距离小于或等于预设距离时,发出警告信息。A warning message is issued when the distance between the current location and the warning location is less than or equal to a preset distance.
- 根据权利要求13所述的移动终端,其特征在于,所述警告信息, 具体包括:The mobile terminal according to claim 13, wherein said warning information is Specifically include:在所述移动终端的显示屏上显示提示框;或Displaying a prompt box on the display screen of the mobile terminal; or所述移动终端的显示屏闪烁;或The display screen of the mobile terminal blinks; or发出语音提示信息;或Give a voice prompt message; or关闭正在运行的应用程序;或Close a running application; or锁定显示屏。Lock the display.
- 根据权利要求13或14所述的移动终端,其特征在于,所述警告位置包括:十字路口、路边、坑洼路面、路灯杆所在位置、垃圾桶所在位置、车辆的位置、或行人的位置。The mobile terminal according to claim 13 or 14, wherein the warning location comprises: an intersection, a roadside, a pothole road surface, a position of a lamp pole, a location of the trash can, a position of the vehicle, or a position of the pedestrian. .
- 根据权利要求13-15中任意一项所述的移动终端,其特征在于,所述处理器执行获取用户的身体状态的操作时,具体执行:The mobile terminal according to any one of claims 13-15, wherein when the processor performs an operation of acquiring a physical state of the user, the specific execution is:根据所述移动终端的传感器或GPS获取所述移动终端的运动速度;Obtaining a moving speed of the mobile terminal according to a sensor or a GPS of the mobile terminal;根据所述运动速度确定所述用户的身体状态。The physical state of the user is determined based on the speed of movement.
- 根据权利要求13-16中任意一项所述的移动终端,其特征在于,所述处理器通过以下至少一种方式,获取所述移动终端的使用状态:The mobile terminal according to any one of claims 13 to 16, wherein the processor acquires a usage status of the mobile terminal by using at least one of the following methods:当所述移动终端的显示屏被持续点亮的时长大于或等于第一预设时间段时,确定所述移动终端正处于被使用的状态;或Determining that the mobile terminal is in a used state when a duration of the display screen of the mobile terminal is continuously lit for greater than or equal to a first preset time period; or当所述移动终端的前置摄像头持续获取到所述用户的眼睛的时长大于或等于第二预设时间段时,确定所述移动终端正处于被使用的状态;或Determining that the mobile terminal is in a used state when the duration of the front camera of the mobile terminal continuously acquiring the eye of the user is greater than or equal to a second preset time period; or当确定所述移动终端持续保持一个倾斜角度或在一预设倾斜角度范围内变动的时长大于或等于第三预设时间段时,确定所述移动终端正处于被使用的状态。When it is determined that the mobile terminal continues to maintain a tilt angle or a duration that varies within a preset tilt angle range is greater than or equal to a third preset time period, it is determined that the mobile terminal is in a used state.
- 根据权利要求13-17中任意一项所述的移动终端,其特征在于,所述处理器通过以下至少一种方式,获取所述警告位置:The mobile terminal according to any one of claims 13-17, wherein the processor acquires the warning location by at least one of the following:从地图类服务器获取的地理环境信息中获取;或,Obtained from the geographic environment information obtained by the map class server; or,从后置摄像头获取地面信息中获取;或,Obtain the ground information from the rear camera; or,从通过比对声音数据库获取的车辆信息或行人信息中获取。 Obtained from vehicle information or pedestrian information obtained by comparing the sound database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/078700 WO2016179784A1 (en) | 2015-05-11 | 2015-05-11 | Warning method and apparatus, and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/078700 WO2016179784A1 (en) | 2015-05-11 | 2015-05-11 | Warning method and apparatus, and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016179784A1 true WO2016179784A1 (en) | 2016-11-17 |
Family
ID=57248490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/078700 WO2016179784A1 (en) | 2015-05-11 | 2015-05-11 | Warning method and apparatus, and mobile terminal |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2016179784A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107219923A (en) * | 2017-05-26 | 2017-09-29 | 上海展扬通信技术有限公司 | Management method, system and terminal |
CN109062755A (en) * | 2018-06-29 | 2018-12-21 | 珠海市魅族科技有限公司 | A kind of mobile terminal usage behavior monitoring based reminding method, device, medium and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103578288A (en) * | 2013-11-13 | 2014-02-12 | 惠州Tcl移动通信有限公司 | Traffic safety reminding method, mobile terminal and traffic safety reminding system |
CN103685760A (en) * | 2013-12-24 | 2014-03-26 | 深圳市金立通信设备有限公司 | Safety prompting method and mobile terminal |
CN103686592A (en) * | 2012-09-14 | 2014-03-26 | 北京网秦天下科技有限公司 | Safety promotion method and system |
US20140300466A1 (en) * | 2013-04-04 | 2014-10-09 | Samsung Electronics Co., Ltd. | Apparatus and method for preventing accident in portable terminal |
CN104236558A (en) * | 2013-06-21 | 2014-12-24 | 英华达(上海)科技有限公司 | Dangerous zone caution system and dangerous zone caution method |
-
2015
- 2015-05-11 WO PCT/CN2015/078700 patent/WO2016179784A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686592A (en) * | 2012-09-14 | 2014-03-26 | 北京网秦天下科技有限公司 | Safety promotion method and system |
US20140300466A1 (en) * | 2013-04-04 | 2014-10-09 | Samsung Electronics Co., Ltd. | Apparatus and method for preventing accident in portable terminal |
CN104236558A (en) * | 2013-06-21 | 2014-12-24 | 英华达(上海)科技有限公司 | Dangerous zone caution system and dangerous zone caution method |
CN103578288A (en) * | 2013-11-13 | 2014-02-12 | 惠州Tcl移动通信有限公司 | Traffic safety reminding method, mobile terminal and traffic safety reminding system |
CN103685760A (en) * | 2013-12-24 | 2014-03-26 | 深圳市金立通信设备有限公司 | Safety prompting method and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107219923A (en) * | 2017-05-26 | 2017-09-29 | 上海展扬通信技术有限公司 | Management method, system and terminal |
CN109062755A (en) * | 2018-06-29 | 2018-12-21 | 珠海市魅族科技有限公司 | A kind of mobile terminal usage behavior monitoring based reminding method, device, medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2021200254B2 (en) | Method for displaying current geographical location on emergency call screen and terminal | |
EP3137849B1 (en) | Automated detection of vehicle parking and location | |
US9710048B2 (en) | Method for detecting false wake conditions of a portable electronic device | |
CN109166141A (en) | Dangerous based reminding method, device, storage medium and mobile terminal | |
CN110095128B (en) | Method, device, equipment and storage medium for acquiring missing road information | |
CN108632758B (en) | Terminal tracking method, processing device, terminal and storage medium | |
CN105278672A (en) | Electronic devices with motion characterization circuitry | |
KR20130129914A (en) | Finger identification on a touchscreen | |
CN110022409A (en) | A kind of terminal control method and mobile terminal | |
WO2020011088A1 (en) | Bowed head reminding method and device, and readable storage medium and mobile terminal | |
CN107635060A (en) | A kind of road conditions danger based reminding method, terminal and storage medium | |
EP3732871B1 (en) | Detecting patterns and behavior to prevent a mobile terminal drop event | |
CN111899545B (en) | Driving reminding method and device, storage medium and mobile terminal | |
CN105526944B (en) | Information cuing method and device | |
CN109583271A (en) | The method, apparatus and terminal that a kind of pair of lane line is fitted | |
WO2018086471A1 (en) | Navigation method and device, terminal and storage medium | |
CN106550150A (en) | Hazardous environment reminding method, device and terminal | |
CN110852850A (en) | Shared article recommendation method and device, computer equipment and storage medium | |
WO2017193311A1 (en) | Intelligent reminding method and apparatus for vehicle | |
CN106525024B (en) | A kind of reminding method of mobile terminal, device and mobile terminal | |
WO2016179784A1 (en) | Warning method and apparatus, and mobile terminal | |
CN108375356B (en) | Method and device for determining length of upright post of guardrail and computer readable storage medium | |
CN114879879A (en) | Method for displaying health code, electronic equipment and storage medium | |
CN112818243A (en) | Navigation route recommendation method, device, equipment and storage medium | |
WO2018184175A1 (en) | Terminal control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15891487 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15891487 Country of ref document: EP Kind code of ref document: A1 |