WO2018090202A1 - 一种障碍物提示的方法和终端设备 - Google Patents

一种障碍物提示的方法和终端设备 Download PDF

Info

Publication number
WO2018090202A1
WO2018090202A1 PCT/CN2016/105954 CN2016105954W WO2018090202A1 WO 2018090202 A1 WO2018090202 A1 WO 2018090202A1 CN 2016105954 W CN2016105954 W CN 2016105954W WO 2018090202 A1 WO2018090202 A1 WO 2018090202A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
obstacle
distance
ranging
mobile phone
Prior art date
Application number
PCT/CN2016/105954
Other languages
English (en)
French (fr)
Inventor
牟磊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/105954 priority Critical patent/WO2018090202A1/zh
Priority to CN201680059750.3A priority patent/CN108353102B/zh
Publication of WO2018090202A1 publication Critical patent/WO2018090202A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/21Combinations with auxiliary equipment, e.g. with clocks or memoranda pads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • Embodiments of the present invention relate to the field of electronic devices, and more particularly, to a method and a terminal device for an obstacle prompt in the field of electronic devices.
  • a technology in which a user can open a camera when using certain software, and the background of the chat is displayed as an image taken by the camera.
  • the obstacle can be seen, thereby preventing the user from being Hit the obstacle.
  • the camera captures an image of the ground, and the user cannot see the obstacle in front.
  • the embodiment of the invention provides a method, a device and a terminal device for an obstacle cue, which can prevent a user from colliding with an obstacle in front when using the terminal device, thereby improving the user experience.
  • a method for an obstacle cue comprising:
  • the terminal device acquires distance information between the terminal device and the obstacle
  • the terminal device After determining that the obstacle is prompted for the obstacle, the terminal device controls the terminal device to perform the prompting of the obstacle.
  • the terminal device obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information, The problem that the collision obstacle cannot be promptly prompted when the user uses the terminal device while walking low head is avoided, thereby avoiding the user's injury; and the user does not need to distract attention to know that there is an obstacle in front of the user to enhance the user experience.
  • the terminal device includes The distance measuring device has a main device surface, and the ranging device is configured to acquire distance information of an object in a direction in which the main device surface faces and located in front of the ranging device, the measurement Connecting the device to the housing of the terminal device through a rotating shaft to enable the distance measuring device to rotate about the rotating shaft, and
  • the terminal device acquires distance information between the terminal device and the obstacle, including:
  • the terminal device determines that the rotating axis is perpendicular or approximately vertical to the direction of gravity;
  • the terminal device controls the ranging device to rotate around the rotating axis such that a direction in which the main device surface faces is the same or approximately the same as a moving direction of the terminal device;
  • the terminal device controls the distance measuring device to rotate about the rotating shaft such that a direction in which the main device surface faces is perpendicular or approximately vertical to a gravity direction; or
  • the terminal device controls the ranging device to rotate around the rotating axis such that a direction in which the main device surface faces is parallel or approximately parallel to a horizontal direction;
  • the terminal device acquires distance information of the obstacle by using the ranging device
  • the terminal device determines a distance between the terminal device and the obstacle according to the distance information.
  • the ranging device by rotating the ranging device according to the state of the terminal device, the ranging of the obstacle located in front of the terminal device is achieved, which not only reduces the dependence of the terminal device on the application, but also greatly improves the practicability and flexibility of the terminal device.
  • the method before the acquiring, by the terminal device, the distance information between the terminal device and the obstacle, the method further includes:
  • the terminal device determines that the terminal device is in a used state.
  • the terminal device determines that the terminal device is in a used state, including:
  • the terminal device determines that at least one application installed in the terminal device is in an open state; and/or
  • the terminal device determines that the user who uses the terminal device is in a state of binocularly watching the terminal device.
  • the terminal device can automatically recognize the behavior of the user and the motion state, thereby further enhancing the user experience.
  • the terminal device determines, according to the distance information, whether to perform the prompting of the obstacle, including: determining, by the terminal device, the distance information indication The prompting of the obstacle is determined when the distance between the terminal device and the obstacle is less than or equal to the distance threshold.
  • the terminal device determines that the obstacle is prompted, the terminal device is configured to perform the prompting of the obstacle, including:
  • the terminal device further includes a vibration device, and the terminal device controls the vibration device to perform a vibration prompt; or
  • the terminal device further includes a sound playing device, and the terminal device controls the sound playing device to play preset sound prompt information; or
  • the terminal device further includes a display device, and the terminal device controls the display device to present preset text prompt information or image prompt information.
  • the ranging device includes at least one of a binocular imaging device, a laser positioning device, or a sound localization device.
  • a terminal device for providing an obstacle includes: a ranging device, a processor, and a prompting device, where
  • the ranging device is configured to acquire distance information between the terminal device and an obstacle
  • the processor is configured to determine, according to the distance information, whether to prompt the obstacle;
  • the processor is further configured to control the prompting device to perform the prompting of the obstacle after determining to prompt the obstacle.
  • the terminal device of the obstacle prompting provided by the embodiment of the present invention, the terminal device obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information.
  • the user avoids the problem that the collision obstacle cannot be promptly displayed when the user uses the terminal device while walking low head, thereby avoiding the user injury; and the user does not need to distract attention to know that there is an obstacle in front of the user to enhance the user experience. .
  • the ranging device has a main device surface, and the ranging device is configured to acquire a direction in which the main device surface faces and is located in the Distance information of an object in front of the distance measuring device, the distance measuring device being coupled to the housing of the terminal device via a rotating shaft to enable the distance measuring device to rotate about the rotating shaft, and
  • the processor is specifically configured to:
  • the ranging device by rotating the ranging device according to the state of the terminal device, the ranging of the obstacle located in front of the terminal device is achieved, which not only reduces the dependence of the terminal device on the application, but also greatly improves the practicability and flexibility of the terminal device.
  • the processor is further configured to:
  • the processor is specifically configured to:
  • At least one application installed in the memory in the terminal device is in an open state; and/or
  • the terminal device can automatically recognize the behavior of the user and the motion state, thereby further enhancing the user experience.
  • the distance information is used to indicate a distance between the terminal device and the obstacle, and the processor is specifically configured to:
  • a prompt to perform the obstacle is determined.
  • the processor is specifically configured to:
  • the prompting device includes a vibration device that controls the vibration device to perform a vibration prompt; or
  • the prompting device includes a sound playing device, and controls the sound playing device to play preset sound prompt information; or
  • the prompting device includes a display device, and the display device is controlled to present preset text prompt information or image prompt information.
  • the ranging device includes at least one of a binocular imaging device, a laser positioning device, or a sound localization device.
  • a third aspect provides a terminal device for an obstacle prompt, wherein the terminal device includes: a ranging device, a processing unit, a prompting unit, and
  • the ranging unit is configured to acquire distance information between the terminal device and an obstacle
  • the processing unit is configured to determine, according to the distance information, whether to prompt the obstacle;
  • the processing unit is further configured to control the prompting unit to perform the prompting of the obstacle after determining that the object is prompted for the obstacle.
  • the terminal device of the obstacle prompting provided by the embodiment of the present invention, the terminal device obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information.
  • the user avoids the problem that the collision obstacle cannot be promptly displayed when the user uses the terminal device while walking low head, thereby avoiding the user injury; and the user does not need to distract attention to know that there is an obstacle in front of the user to enhance the user experience. .
  • the terminal device includes a ranging device, the ranging device includes the ranging unit, and the ranging device has a main device surface,
  • the distance measuring device is configured to acquire distance information of an object in a direction in which the main device surface faces and is located in front of the ranging device, and the ranging device is connected to the housing of the terminal device through a rotating shaft So that the distance measuring device can rotate about the rotation axis, and
  • the processing unit is specifically configured to:
  • the ranging device by rotating the ranging device according to the state of the terminal device, the ranging of the obstacle located in front of the terminal device is achieved, which not only reduces the dependence of the terminal device on the application, but also greatly improves the practicability and flexibility of the terminal device.
  • the processing unit is further configured to:
  • the processing unit is specifically configured to:
  • the terminal device can automatically recognize the behavior of the user and the motion state, thereby further enhancing the user experience.
  • the distance information is used to indicate a distance between the terminal device and the obstacle
  • the processing unit is specifically configured to:
  • a prompt to perform the obstacle is determined.
  • the processing unit is specifically configured to:
  • the prompting unit is controlled to present preset text information or image information.
  • the ranging device includes at least one of a binocular imaging device, a laser positioning device, or a sound localization device.
  • a computer storage medium stores program code, the program code for indicating any optional method for implementing an obstacle cue for performing the above first aspect or the first aspect The action taken.
  • the method for the obstacle cue acquires the distance between the obstacle located in front of the terminal device and the terminal device, and then implements an intelligent prompt for the obstacle according to the distance, on the one hand, avoiding a collision barrier when the user uses the terminal device while walking low head Obstructions can not get prompt prompts, thus avoiding user injury;
  • the distance measurement and the intelligent prompting for obstacles are implemented by the existing devices in the terminal device, thereby reducing the dependence of the terminal device on the application software;
  • the distance measuring device by rotating the distance measuring device according to the state of the terminal device, the distance measurement of the obstacle located in front of the terminal device is realized, which greatly improves the practicability and flexibility of the terminal device;
  • Fig. 1 is a schematic structural view showing a mobile phone with an obstacle cue according to an embodiment of the present invention.
  • FIG. 2 shows a schematic flow chart of a method of obstacle cueing in accordance with an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a mobile phone performing ranging in accordance with an embodiment of the present invention.
  • 4a and 4b are schematic structural views of a mobile phone according to an embodiment of the present invention.
  • Fig. 5 shows a schematic diagram of distance measurement using a binocular imaging device.
  • Figure 6a shows a schematic diagram of a state when the handset is used.
  • Figures 6b and 6c show schematic diagrams of the ranging mode in another state when the handset is used.
  • Fig. 7 is a diagram showing another use state of the user when using the terminal device.
  • FIG. 8 is a schematic diagram showing a walk mode configuration configured in a terminal device according to an embodiment of the present invention.
  • Fig. 9 is a view showing a schematic configuration of a terminal device for an obstacle cue according to an embodiment of the present invention.
  • FIG. 10 shows a schematic block diagram of a terminal device according to an embodiment of the present invention.
  • the technical solution of the embodiment of the present invention can be applied to various terminal devices (also referred to as user devices) that support distance measurement, for example, a mobile phone, a wristband, a tablet computer, a notebook computer, and a super mobile personal computer (Ultra-Mobile Personal Computer).
  • UMPC Ultra-Mobile Personal Computer
  • PDA Personal Digital Assistant
  • a handheld device with wireless communication capabilities a computing device or other processing device connected to a wireless modem
  • an in-vehicle device an in-vehicle device
  • a wearable device etc. It is not limited to communication terminals.
  • the terminal device to which the embodiment of the present invention is applied is introduced by taking the mobile phone shown in FIG. 1 as an example.
  • the mobile phone may include a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a wireless fidelity (“WiFi”) module 170, a display unit 140, and a sensor.
  • RF radio frequency
  • WiFi wireless fidelity
  • the mobile phone may include a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a wireless fidelity (“WiFi”) module 170, a display unit 140, and a sensor.
  • RF radio frequency
  • WiFi wireless fidelity
  • the structure of the mobile phone shown in FIG. 1 is merely an example and not a limitation, and the mobile phone may further include more or less components than those illustrated, or combine some components, or different component arrangements. .
  • the RF circuit 110 can be used for receiving and transmitting signals during the transmission and reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is processed by the processor 180. In addition, the uplink data of the mobile phone is sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (“GSM”), General Packet Radio Service (“GPRS”), code Code Division Multiple Access (“CDMA”), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, short Short Messaging Service (“SMS”), etc.
  • GSM Global System for Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS short Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program 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 be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 130 can be configured to receive input numeric or character information and to generate key signals related to user settings and function control of the handset 100.
  • the input unit 130 may include a touch panel 131, an imaging device 132, and other input devices 133.
  • the imaging device 132 can take a picture of the image that needs to be acquired, thereby transmitting the image to the processor 150 for processing, and finally the graphic Presented to the user through the display panel 141.
  • the touch panel 131 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 131 may include two parts: 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 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 may also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
  • the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141.
  • the visual output external display panel 141 that can be recognized by the human eye can be used as a display device in the embodiment of the present invention to display text information or image information.
  • the touch panel 131 and the display panel 141 are two independent components to implement the input and output functions of the mobile phone in FIG. 1 , in some embodiments, the touch panel 131 and the display panel 141 may be integrated. Realize the input and output functions of the phone.
  • the handset 100 can also include at least one type of sensor 150, such as an attitude sensor, a distance sensor, and other sensors.
  • sensor 150 such as an attitude sensor, a distance sensor, and other sensors.
  • the attitude sensor may also be referred to as a motion sensor, and as one type of the motion sensor, an angular velocity sensor (also referred to as a gyroscope) may be cited, which is used to measure a motion state when it is configured in a mobile phone.
  • the angular velocity of the mobile phone is deflected and tilted, so that the gyroscope can accurately analyze and determine the actual action of the user who uses the mobile phone, and then perform corresponding operations on the mobile phone.
  • the machine can control the angle of view in the game, and realize the inertial navigation according to the motion state of the object when there is no signal in the Global Positioning System ("GPS”) (such as in the tunnel).
  • GPS Global Positioning System
  • a gravity sensor As another type of motion sensor, a gravity sensor can be cited.
  • the gravity sensor is a cantilever type shifter using elastic sensitive elements, and an energy storage spring made of an elastic sensitive element is used to drive the electrical contacts, thereby converting gravity changes into Changes in electrical signals.
  • an accelerometer sensor can be cited.
  • the accelerometer sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the posture of the mobile phone and Vibration recognition related functions, etc. For example: horizontal and vertical screen switching, related games, magnetometer attitude calibration, step counting, tapping, mobile phone placement position angle.
  • the senor may also cite a distance sensor, which includes not only a distance sensor capable of measuring a short distance, for example, a distance sensor disposed on both sides of the handset of the handset or in the groove of the handset, but also a distance sensor capable of measuring a long distance. For example, you can measure the distance between an object near your phone and your phone.
  • some or all of the motion sensors listed above may be used to obtain parameters related to the motion state of the mobile phone, such as whether the mobile phone is in a moving state, the tilt of the mobile phone, the angle of deflection, and the like.
  • the distance sensors listed above can be used to obtain the distance between the mobile phone and objects near the mobile phone.
  • sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor may be disposed as the sensor 150, and details are not described herein again.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and/or the backlight when the mobile phone moves to the ear.
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the handset.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, sent to the other mobile phone via the RF circuit 110, or outputted to the memory 120 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides users with wireless broadband Internet access.
  • FIG. 1 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile phone 100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 120, and invoking data stored in the memory 120, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 180 may include one or more processing units; preferably, the processor 180 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.
  • modem processor may not be integrated into the processor 180.
  • the handset 100 can also include at least one motor 190 that, in embodiments of the invention, can provide a driving force for rotation of the ranging device such that the ranging device rotates to a desired position. Since the mobile phone is a power consuming device, the motor 190 can be a small motor, and at the same time, a plurality of motors can be configured for the mobile phone depending on the amount of power that the motor can provide.
  • the handset 100 also includes a power source (not shown) that supplies power to the various components.
  • the power source can be logically coupled to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 100 may further include a Bluetooth module, a headphone interface, and the like, and details are not described herein.
  • the mobile phone shown in FIG. 1 is only an example of a terminal device, and is not limited to the embodiment of the present invention.
  • the embodiment of the present invention can be applied to an electronic device such as a mobile phone or a tablet computer. Make a limit.
  • the above-described mobile phone 100 is used as an execution subject of the method for presenting obstacles in the embodiment of the present invention, and the method will be described in detail.
  • FIG. 2 is a schematic flowchart of a method for an obstacle cue according to an embodiment of the present invention. As shown in FIG. 2, the method 200 includes:
  • the terminal device acquires distance information between the terminal device and an obstacle.
  • S220 The terminal device determines, according to the distance information, whether to prompt the obstacle;
  • the terminal device controls the terminal device to perform the prompting of the obstacle.
  • the mobile phone 100 can obtain the distance information between the terminal device and the obstacle through the ranging device, and the processor 180 acquires the distance information to determine the mobile phone 100 and the obstacle.
  • the distance between the objects thereby realizing the measurement of the distance between the terminal device and the obstacle; further, the processor 180 determines, according to the distance, whether the obstacle needs to be prompted; thus, the processor 180 determines that the need is made.
  • the terminal device is controlled to perform the prompt of the obstacle.
  • the obstacle may be in the moving direction of the mobile phone 100 and located in front of the mobile phone 100.
  • front may mean the front side or the oblique front side, that is, the obstacle is not only in the moving direction of the mobile phone 100, but also located directly in front of the mobile phone 100 or obliquely forward.
  • the "oblique front” indicates a position where the moving direction of the cellular phone 100 is at an angle of any point in the plane 1 parallel to the direction of gravity.
  • the value of ⁇ ° can be determined according to factors such as the measurement accuracy of the distance measuring device included in the mobile phone 100, the measurement range of the measuring device, and the control ability of the mobile phone 100.
  • the alpha value may be preset in the memory 120 or may be preset to the processor 180 or the like.
  • the obstacle is not only in the moving direction of the mobile phone 100, but also located directly in front of the mobile phone 100 or obliquely forward” indicates that the position of the obstacle is independent of the use state of the mobile phone 100, and the mobile phone 100 can be in FIG. 3 .
  • the state indicated by the solid line may also be in the state indicated by the broken line in FIG. 3, and may be any possible use state of the mobile phone, and the embodiment of the present invention does not have any limitation.
  • the method provided by the embodiment of the present invention may be applied to a scenario in which a user using the terminal device uses a mobile phone to look down, and the user and the terminal device may be in a motion state, or may be in a state of being ready to be converted into a motion. The status of the situation.
  • the terminal device obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information, The problem that the collision obstacle cannot be promptly prompted when the user uses the terminal device while walking low head is avoided, thereby causing the user to be injured; and the user does not need to distract attention to know that there is an obstacle in front of the user to enhance the user experience.
  • the terminal device includes a ranging device, the ranging device has a main device surface, and the ranging device is configured to acquire a object in a direction in which the main device surface faces and is located in front of the ranging device.
  • the distance information of the body, the distance measuring device is connected to the housing of the terminal device through a rotating shaft to enable the distance measuring device to rotate about the rotating shaft.
  • the mobile phone 100 of the embodiment of the present invention is briefly described from the external structure of the mobile phone 100, and further, the components and the external structure of the mobile phone 100 are combined with the embodiment of the present invention. Detailed instructions are given.
  • the mobile phone 100 includes a mobile phone case 111, a display screen 141, a distance measuring device 112, and two rotating shafts 113.
  • the distance measuring device 112 is coupled to the handset housing 111 via the two rotating shafts 113 such that the rotation axis 113 of the distance measuring device 112 is rotated such that the main device surface of the distance measuring device reaches a preset position.
  • the structure of the mobile phone in FIG. 4a is only a schematic description, and the embodiment of the present invention is not limited thereto.
  • the ranging device may be disposed at any part of the mobile phone case.
  • the distance measuring device may be disposed on the mobile phone case.
  • the body edge is connected to the mobile phone casing through a rotating shaft.
  • the rotation of the distance measuring device can be realized, and the distance measurement for the front obstacle can be realized. Therefore, the embodiment of the present invention is not limited thereto.
  • the ranging device comprises at least one of a binocular imaging device, a laser positioning device, or a sound localization device.
  • the laser positioning apparatus can include various laser distance sensors that can be adapted for use in the handset 100, and the sound localization apparatus can include various ultrasonic distance sensors that can be adapted for use with the handset 100.
  • the ranging device in the embodiment of the present invention is not limited thereto, and any device capable of implementing the ranging function in a terminal device similar to the mobile phone 100 is within the protection scope of the embodiment of the present invention.
  • Binocular camera equipment is widely used for photographing due to better imaging capabilities.
  • binocular camera equipment can also be used to measure distance.
  • the dual camera image speed will be due to the simultaneous participation of two cameras.
  • the principle of achieving triangulation with the object to be measured shortens the test time of the distance, thereby increasing the focusing speed, especially when shooting moving objects.
  • the distance of the object to be measured from the camera can be calculated by a simple trigonometric function, that is, the height (also called the depth) of the triangle ABC is calculated.
  • the specific implementation process is the same as the prior art, and is no longer burdensome here.
  • the camera device is an indispensable part of the existing smart phone.
  • the binocular camera device is also popularized in the mobile phone. Therefore, in order to effectively utilize the existing components in the mobile phone, the binocular camera is used in the embodiment of the present invention.
  • the device is used as an example of the ranging device, and the specific measurement in the embodiment of the present invention The distance mode is explained.
  • FIG. 4b is a partial view of the mobile phone 100 in which the binocular imaging device 1121 (one of the imaging devices 132 in FIG. 1) is mounted, wherein the main device surface of the binocular imaging device 1121 is the surface 1121-1.
  • the main device face 1121-1 of the binocular imaging device 1121 is the face on which the camera is mounted.
  • the main device surface 1121-1 of the binocular imaging device 1121 is either parallel or approximately parallel to the plane of the display screen, or parallel or approximately parallel to the back of the mobile phone, when it is necessary to measure the user is using
  • the main device face needs to face the obstacle in order to acquire an image of the obstacle.
  • the terminal device acquires distance information between the terminal device and the obstacle, including:
  • the terminal device determines that the rotating axis is perpendicular or approximately vertical to the direction of gravity;
  • the terminal device controls the ranging device to rotate around the rotating axis such that a direction in which the main device face faces is the same or approximately the same as a moving direction of the terminal device;
  • the terminal device controls the distance measuring device to rotate about the rotating shaft such that a direction in which the main device surface faces is perpendicular or approximately vertical to a direction of gravity; or
  • the terminal device controls the distance measuring device to rotate around the rotating axis such that a direction in which the main device surface faces is parallel or approximately parallel to a horizontal direction;
  • the terminal device acquires distance information of the obstacle through the ranging device
  • the terminal device determines a distance between the terminal device and the obstacle according to the distance information.
  • the method implementation process and the manufacturing process of the mobile phone 100 may have certain errors, for example, the measurement accuracy of the motion sensor, the degree of wear of the rotating shaft, the small change of the posture of the user using the mobile phone 100, and the use of the user.
  • the movement of the mobile phone 100 on a terrain having a gradient affects the position between the direction in which the main device surface 1121-1 faces and the reference direction, so that the direction in which the main device surface 1121-1 is oriented and the reference direction are Within a certain error range, it is permissible, so that the approximate position between the direction in which the main device surface 1121-1 is oriented and the reference direction is described in the practice of the present invention, for example, "approximate parallel" as described above, Approximate vertical.”
  • the processor 180 can acquire the tilt angle of the mobile phone 100 through the gyroscope 151 (an example of the motion sensor 150), and more precisely, between the plane where the display screen 141 of the mobile phone 100 is located and the direction of gravity.
  • the rotating shaft 113 of the mobile phone 100 is perpendicular or nearly vertical to the direction of gravity, which is the most common usage habit of the user using the mobile phone. Meanwhile, in this case, the binocular imaging device 1121 is conveniently adjusted.
  • the processor 180 first determines, by the gyroscope 151, whether the rotation axis 113 of the mobile phone 100 is perpendicular or nearly vertical with respect to the gravity direction, that is, determining whether the display screen 141 of the mobile phone 100 is in a left-right basic horizontal state, and determining the display of the mobile phone 100. After the screen 141 is in the substantially horizontal state, the processor 180 acquires the angle between the mobile phone 100 and the direction of gravity through the gyroscope 151 (referred to as the angle #1). Specifically, the processor 180 acquires the display screen 141 of the mobile phone 100.
  • the angle between the plane and the direction of gravity #1 controls the binocular imaging device 1121 according to the angle #1, and rotates it to the direction and reference of the main device surface 1121-1 of the binocular imaging device 1121.
  • the preset angle between the directions (referred to as angle #2) is finally photographed to determine the distance between the mobile phone 100 and the obstacle.
  • the display screen 141 when the user uses the mobile phone 100, the display screen 141 is in a horizontally horizontal state, the angle between the display screen 141 and the gravity direction is ⁇ °, and the processor 180 acquires the angle ⁇ through the gyroscope 151. °, at the same time, the preset angle between the direction in which the main device surface 1121-1 of the binocular imaging device 1121 faces and the reference direction is adjusted according to the angle ⁇ ° is an angle #2.
  • the reference direction is the moving direction of the mobile phone 100
  • the relationship between the direction in which the main device surface 1121-1 faces and the moving direction of the mobile phone 100 is such that the direction in which the main device surface 1121-1 faces is the same or approximately the same as the moving direction of the mobile phone 100.
  • the reference direction is the direction of gravity
  • the relationship between the direction in which the main device surface 1121-1 faces and the direction of gravity is such that the direction in which the main device surface 1121-1 faces is perpendicular or approximately perpendicular to the direction of gravity.
  • the reference direction is horizontal
  • the relationship between the direction in which the main device surface 1121-1 faces and the horizontal direction is such that the direction in which the main device surface 1121-1 faces is parallel or approximately parallel to the horizontal direction.
  • the processor 180 needs to control the rotation of the binocular imaging device 1121, it can be rotated counterclockwise or clockwise.
  • the gyroscope 151 measures an angle between the plane in which the display screen 141 is located and the direction of gravity is ⁇ °.
  • the processor 180 can control the binocular imaging device 1121 to rotate 180°- ⁇ ° clockwise, and can also control the binocular imaging device 1121 to rotate ⁇ ° counterclockwise to make
  • the direction facing the main device surface 1121-1 can face the obstacle in front of the mobile phone 100; when the main device surface 1121-1 is parallel or approximately parallel to the back of the mobile phone, the processor 180 can control the binocular imaging device 1121 to rotate counterclockwise ⁇ °, it is also possible to control the binocular imaging device 1121 to rotate 180°- ⁇ ° clockwise.
  • the state in which the user uses the mobile phone is not strictly capable of making the rotating shaft 113 perpendicular to the direction of gravity (in this case, the plane in which the display screen 141 of the mobile phone 100 is located is parallel to the horizontal direction), in actual practice, the mobile phone is implemented.
  • the rotation axis 113 of 100 may be approximately perpendicular to the direction of gravity, that is, the plane in which the display screen 141 of the mobile phone 100 is located may have a certain angle with the horizontal direction.
  • the first angle threshold and the second angle threshold may be set in the mobile phone 100, with the gravity direction as the reference direction, when the angle between the rotation axis 113 and the gravity direction is greater than or equal to the first angle threshold, and less than or equal to the first
  • the axis of rotation 113 can be considered to be perpendicular or approximately perpendicular to the direction of gravity.
  • the second angle threshold is 90°, and the first angle threshold may be preset by the system.
  • the above description is only an example.
  • the user only needs to rotate the binocular camera device by 90°.
  • the x-axis and the y-axis are defined in a vertical plane, that is, the x-axis represents the horizontal direction and the y-axis represents the gravity direction.
  • the long side of the mobile phone 100 shown in Fig. 4a is parallel or nearly parallel to the y-axis.
  • the left figure shows that the mobile phone 100 is tilted to the right, and the inclination angle between the side parallel to the rotating axis and the x-axis is ⁇ 1 , the right icon It is shown that the mobile phone 100 is tilted to the left, and the inclination angle between the side parallel to the rotation axis and the x-axis is ⁇ 2 .
  • the binocular imaging device 121 is adjusted by 90°, and the main device surface 1121-1 is oriented. The direction satisfies the requirement of the reference direction such that the main device face 1121-1 is aimed at the obstacle, and thus the obstacle takes a picture to determine the distance between the mobile phone 100 and the obstacle.
  • the main device surface 1121-1 of the binocular imaging device 1121 is either parallel or approximately parallel to the plane of the display screen, or parallel or approximately parallel to the back of the mobile phone, however, when the binocular imaging device 1121 When the main device surface 1121-1 is not in parallel with the display screen of the mobile phone 100 or the back of the mobile phone, the binocular imaging device 1121 can also be rotated to a preset between the direction in which the main device surface 1121-1 is oriented and the reference direction. Angle #2.
  • the gyroscope 151 measures an angle between the plane in which the display screen 141 is located and the direction of gravity is ⁇ °, and the main device surface 1121-1 of the binocular imaging device 1121 and the plane in which the display screen 141 is located.
  • the angle between the angles is ⁇ °.
  • the processor 180 can control the binocular imaging device 1121 to rotate 180°-( ⁇ + ⁇ )° clockwise, and can also control the binocular imaging device 1121 counter.
  • the hour hand rotates ( ⁇ + ⁇ ) °.
  • the mobile phone 100 can turn on the motor 190 through the processor 180, so that the motor 190 can provide the driving force required for the rotation of the binocular imaging device 1121, and can directly adjust the binocular imaging device manually before moving.
  • the invention is not limited to this.
  • the method for the obstacle prompt provided by the embodiment of the present invention can realize the ranging of the obstacle located in front of the terminal device by rotating the distance measuring device according to the state of the terminal device, thereby greatly improving the practicability and flexibility of the terminal device. .
  • the processor 180 After the mobile phone 100 adjusts the main device surface 1121-1 of the binocular imaging device 1121 to the preset position according to the data of the gyro 151, the processor 180 opens the binocular imaging device 1121 to take a picture of the front obstacle. The different images having the parallax are acquired, and the processor 180 performs feature matching and the like on the different images, and obtains the distance information from the calculation result, thereby determining the distance between the mobile phone 100 and the obstacle.
  • the mobile phone 100 determines, based on the distance, whether or not the prompt of the obstacle needs to be performed.
  • the user can use the mobile phone 100 to move on a terrain with a certain gradient, but the slope should not be too large, and an angle threshold can be set according to the preset distance, for notifying the user that when the user is greater than a certain gradient
  • an angle threshold can be set according to the preset distance, for notifying the user that when the user is greater than a certain gradient
  • the mobile phone 100 cannot detect the obstacle in front well, and the user needs to be careful during the walking process to reduce unnecessary collision.
  • the mobile phone 100 can not only obtain the angle ⁇ between the display screen 141 and the direction of gravity through the gyroscope 151, but also acquire the angle ⁇ ° by other sensors, for example, a gravity sensor, an accelerometer sensor, etc.
  • the embodiment of the invention is not limited thereto.
  • the illustration of the binocular device imaging device and the method for performing ranging using the binocular device imaging device are illustrative only, and as described above, the laser positioning device and the sound localization device are capable of ranging.
  • the device and the method for performing ranging using the device are all within the scope of protection of the embodiments of the present invention.
  • the embodiment of the present invention can also perform the prompting for the obstacle on the ground by using the condition that the binocular imaging device 132 performs the rotation. Effectively realize intelligent prompting for obstacles on the ground, avoiding the problem that the user falls due to looking down at the mobile phone.
  • a preset angle range may be set for the mobile phone 100.
  • the gyroscope 151 detects an angle between the mobile phone 100 and the reference direction
  • the direction of the main device surface 1321 of the binocular imaging device 132 is rotated according to the detected angle.
  • the angle formed between the reference direction and the reference direction is within the angle range, and the processor 180 identifies the obstacle on the ground by performing calculations for the image features or the like, thereby prompting the user to have an obstacle on the ground and carefully falling.
  • the subsequent specific procedure for prompting an obstacle in the embodiment of the present invention is equally applicable to this case).
  • the rotation of the binocular imaging device 132 can also be manually implemented by the user or manually adjusted by the user.
  • the mobile phone 100 can record the angle at which the binocular camera device 132 rotates, so that the next time the mobile phone is used (ie, the user)
  • the camera 180 can directly rotate the binocular imaging device 132 to a preset angle according to the recorded angle, measure the distance of the front obstacle and/or detect the obstacle of the ground.
  • the terminal device determines to perform the prompting of the obstacle when determining that the distance between the terminal device indicated by the distance information and the obstacle is less than or equal to a distance threshold.
  • the distance threshold may be a preset value of the system or a user-defined value, and the embodiment of the present invention is not limited thereto.
  • the terminal device controls the terminal device to perform the prompt of the obstacle, including:
  • the terminal device further includes a vibration device that controls the vibration device to perform a vibration prompt; or
  • the terminal device further includes a sound playing device, and the terminal device controls the sound playing device to play Preset voice prompt information; or
  • the terminal device further includes a display device, and the terminal device controls the display device to present preset text prompt information or image prompt information.
  • the mobile phone 100 can prompt the user who uses the mobile phone 100 at least by any of the above methods.
  • the mobile phone 100 performs a related operation by the processor 100 to prompt the obstacle.
  • the manner of the prompt may be based on a setting for the cue mode of the handset 100.
  • the vibration device may be a vibration motor (one of the motors 190 shown in FIG. 1), which may be a cylindrical (hollow cup) vibration motor, a flat button vibration motor, or a linear motor ( That is, the pulse motor).
  • the mobile phone 100 controls the sound playing device to play the preset sound prompt information through the processor 180.
  • the voice prompt information may be preset by the system. There is an obstacle in front!
  • the sound playing device may be any one of a speaker 161 or a microphone 162 on the mobile phone.
  • the mobile phone 100 controls the display screen 141 to display preset text prompt information or image prompt information by the processor 180.
  • the text prompt information may be text pre-edited by the system, for example, “Please note that there is an obstacle in front!”;
  • the image prompt information may be a pre-edited image of the system, and the image may be a vivid and understandable image or a text. The generated image.
  • the method 200 further includes:
  • the terminal device determines that the terminal device is in a used state. Specifically, the mobile phone 100 is in a used state, and it can be understood that the user who uses the mobile phone 100 is observing the mobile phone 100, that is, the user is using the mobile phone 100 low. Therefore, for the user who uses the mobile phone 100 while walking, the mobile phone 100 first determines that the user is walking before determining that the user is observing the mobile phone 100, and can obtain the number of steps of the user walking through the accelerometer sensor, when the number of steps of the user is greater than When the threshold is preset, the user can be considered to be in a walking state.
  • the processor 180 analyzes whether the mobile phone 100 is in the left and right basic horizontal state by the data detected by the gyroscope 151, that is, whether the rotating shaft 113 of the mobile phone 100 is perpendicular or nearly vertical to the gravity direction. As mentioned above, this posture of the mobile phone 100 is one of the most common states in which the user uses the mobile phone.
  • the processor 320 determines, according to the acquired related data, whether the binocular of the user looks at the mobile phone. For example, the camera device 132 takes a photo of the user, and the processor 320 detects the eye state of the user by calculating related data of the photo, and determines the angle of the user's eyes. Alternatively, whether the direction of the user's eyes is the direction of the display screen 3301; for example, iris recognition technology can be used to determine whether the user's eyes are looking at the mobile phone.
  • the processor 320 determines whether an application is opened by the user by detecting the progress of the application in the memory, because the opening of the application means that the user may be using the application, thereby being in a state of looking at the mobile phone 100.
  • the mobile phone 100 can be configured with a walking recognition mode, as shown in FIG. 8 , on which the automatic mode and the manual mode are set, and the user can freely select according to the actual situation.
  • the mobile phone 100 adjusts the binocular imaging device 1121 to detect the distance of the obstacle in front, thereby reminding the user to avoid the avoidance.
  • the mobile phone 100 targets the user behavior according to the selection condition preset by the user.
  • the state of the mobile phone 100 is detected one by one, and the condition is matched.
  • the walking mode is automatically turned on. Thereafter, the mobile phone 100 adjusts the binocular imaging device 1121 to detect the distance of the obstacle in front. This reminds the user to avoid the avoidance.
  • the processor 180 controls the mobile phone 100 to perform subsequent ranging and prompting operations after receiving the instruction to turn on the walking mode.
  • the terminal device can automatically recognize the user's behavior and the motion state, thereby reducing the distraction of the user's attention and enhancing the user experience.
  • the method for the obstacle prompt obtained by the embodiment of the present invention obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the intelligent prompt for the obstacle according to the distance information. , to avoid the user using the terminal device while walking low head When the collision obstacles can not get prompt prompts, thus avoiding user injury;
  • the distance measurement and the intelligent prompting for obstacles are implemented by the existing devices in the terminal device, thereby reducing the dependence of the terminal device on the application software;
  • the distance measuring device by rotating the distance measuring device according to the state of the terminal device, the distance measurement of the obstacle located in front of the terminal device is realized, which greatly improves the practicability and flexibility of the terminal device;
  • FIG. 9 shows a terminal device 300 for an obstacle presentation according to an embodiment of the present invention.
  • the terminal device 300 may correspond to the mobile phone 100 of FIG. 1.
  • the mobile phone 300#1 is taken as an example of the terminal device 300. The embodiments of the present invention are described.
  • the terminal device 300 includes: a ranging device 310, a processor 320, and a prompting device 330, where
  • the ranging device 310 is configured to acquire distance information between the terminal device and an obstacle
  • the processor 320 is configured to determine, according to the distance information, whether to perform the prompt of the obstacle;
  • the processor 320 is further configured to control the prompting device 330 to perform the prompting of the obstacle after determining that the obstacle is prompted.
  • the mobile phone 300#1 includes a ranging device 310, a processor 320, and a prompting device 330.
  • the ranging device 310 can correspond to various distance sensors for measuring distances (for example, a laser distance sensor or an ultrasonic distance sensor) disposed in the mobile phone 100.
  • the binocular camera device 1121 one of the camera devices 132 in the mobile phone 100
  • the processor 320 may correspond to the processor 180 in the mobile phone 100
  • the prompt device 330 may correspond to the display unit 140 in the mobile phone 100 (for example, It is any one of the display screen 141), the speaker 161, the microphone 162, and the vibration motor 190.
  • the mobile phone 300#1 (that is, an example of the execution subject in the method 200) can acquire the distance information between the mobile phone 300#1 and the obstacle through the ranging device 310, and the processor 320 acquires the distance information. Determining the distance between the mobile phone 300#1 and the obstacle, thereby implementing measurement of the distance between the mobile phone 300#1 and the obstacle; and further, the processor 320 determines, according to the distance, whether the obstacle needs to be prompted; After determining that the obstacle needs to be prompted, the processor 320 controls the mobile phone 300#1 to perform the prompt of the obstacle.
  • the obstacle may be in the moving direction of the mobile phone 300#1 and located in front of the mobile phone 300#1.
  • front may mean the front side or the oblique front side, that is, the obstacle is not only in the moving direction of the mobile phone 300#1, but also located directly in front of the mobile phone 300#1 or obliquely forward.
  • oblique front refer to the description in the method 200, and details are not described herein again.
  • the terminal device of the obstacle prompting provided by the embodiment of the present invention, the terminal device obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information.
  • the problem that the collision obstacle cannot be promptly prompted when the user uses the terminal device while walking low head is avoided, thereby causing the user to be injured; and the user does not need to distract attention to know that there is an obstacle in front of the user to enhance the user experience.
  • the ranging device 310 includes at least one of a binocular imaging device 3101, a laser positioning device 3102, or a sound localization device 3103.
  • the components of the mobile phone 300#1 correspond to the mobile phone 100.
  • the components of the mobile phone 300#1 are the ranging device 310 (corresponding to the ranging device 112 of the mobile phone 100) and the display screen 3301 (the prompting device 330).
  • One of them corresponds to the display screen 141 of the mobile phone 100, two rotating shafts 340 (corresponding to the rotating shaft 113 of the mobile phone 100), and the housing 350 (corresponding to the housing 111 of the mobile phone 100)
  • the ranging device 310 has a main device surface, and the ranging device 310 is configured to acquire distance information of an object located in a direction in which the main device surface faces and located in front of the ranging device 310, and the ranging device The device 310 is coupled to the housing 350 of the terminal device 300 via a rotating shaft 340 to enable the distance measuring device 310 to rotate about the rotating shaft, and
  • the processor 320 is specifically configured to:
  • the distance between the terminal device 300 and the obstacle is determined according to the distance information acquired by the ranging device 310.
  • binocular camera The device is also popularized in the mobile phone. Therefore, in order to effectively utilize the existing components in the mobile phone, as an example and not by way of limitation, the binocular imaging device 3101 in the mobile phone 300#1 (an example of the ranging device 310 corresponds to The binocular imaging device 1121 in the mobile phone 100 is taken as an example to describe an embodiment of the present invention.
  • the method implementation process and the manufacturing process of the mobile phone 300#1 may have certain errors, for example, the measurement accuracy of the motion sensor, the wear degree of the rotating shaft, and the posture of the user using the mobile phone 300#1.
  • the slight change, the user's use of the mobile phone 300#1 on the sloped terrain, and the like all affect the direction and the reference direction of the main device surface 3101-1 (corresponding to the main device surface 1121-1 in the mobile phone 100).
  • the position between the main device surface 3101-1 is allowed to be within a certain error range of the direction in which the main device surface 3101-1 is oriented, and therefore, the main device surface 3101-1 is oriented in the practice of the present invention.
  • the approximate position between the direction and the reference direction for example, "approximate parallel", “approximate vertical” as described above.
  • the processor 320 can obtain the tilt angle of the mobile phone 300#1 through the gyroscope 360 (corresponding to the gyroscope 151 in the mobile phone 100). Specifically, the display screen 3301 of the mobile phone 300#1 is obtained. The inclination angle between the plane in which it is located and the direction of gravity, or the inclination between the plane in which the display screen 3301 of the mobile phone 3001 is located and the horizontal direction, thereby adjusting the preset angle between the binocular imaging device 3101 and the reference direction, and finally The obstacle is photographed to determine the distance between the mobile phone 300#1 and the obstacle.
  • the method and the method for determining the distance between the rotating binocular imaging device 3101 and the method 200 are the same as those of the method 200. Therefore, the related process of the method 200 can be referred to, and details are not described herein again.
  • the mobile phone 300#1 can turn on the motor 370 (corresponding to the motor 190 in the mobile phone 100) through the processor 320, so that the motor 370 provides the driving force required for the rotation of the binocular imaging device 3101, and can also be in itself.
  • the binocular imaging apparatus is directly adjusted manually before the exercise, and the present invention is not limited thereto.
  • the terminal device for the obstacle prompt provided by the embodiment of the present invention rotates the distance measuring device according to the state of the terminal device, thereby realizing the ranging of the obstacle located in front of the terminal device, thereby greatly improving the practicability and flexibility of the terminal device. Sex.
  • the processor 320 opens the binocular imaging device 3101 to perform obstacles on the front. Taking a picture to obtain different images with parallax, while processor 320 The different images are subjected to feature matching and the like, and the distance information is obtained from the calculation result, thereby determining the distance between the mobile phone 300#1 and the obstacle.
  • the mobile phone 300#1 determines whether or not the prompt of the obstacle needs to be performed based on the distance.
  • the embodiment of the present invention can also provide an indication for obstacles on the ground by using the binocular imaging device 3101 to perform the rotation. It can effectively realize the intelligent prompting for obstacles on the ground, avoiding the problem that the user falls down due to looking down at the mobile phone.
  • a preset angle range may be set for the mobile phone 300#1.
  • the gyroscope 360 detects the angle between the mobile phone 300#1 and the reference direction
  • the main device surface 3101 of the binocular imaging device 3101 is rotated according to the detected angle.
  • the angle formed between the direction in which the -1 is directed and the reference direction is within the angle range, and the processor 320 identifies the obstacle on the ground by performing calculations for image features or the like, thereby prompting the user to have an obstacle on the ground, and carefully falling over .
  • the subsequent specific procedure for prompting an obstacle in the embodiment of the present invention is equally applicable to this case).
  • the rotation of the binocular imaging device 132 can also be manually implemented by the user or manually adjusted by the user.
  • the mobile phone 300#1 can record the angle at which the binocular imaging device 3101 rotates, so that the next time the mobile phone is used (ie, The user looks down at the timing.
  • the processor 320 can directly rotate the binocular imaging device 3101 to a preset angle according to the recorded angle, measure the distance of the obstacle in front and/or detect the obstacle on the ground.
  • the distance information is used to indicate a distance between the terminal device and the obstacle
  • the processor 320 is specifically configured to:
  • a prompt to perform the obstacle is determined.
  • the distance threshold may be a preset value of the system or a user-defined value, and the embodiment of the present invention is not limited thereto.
  • the processor 320 Specifically used for:
  • the prompting device 330 includes a vibration device 331 that controls the vibration device 331 to perform a vibration prompt; or
  • the prompting device 330 includes a sound playing device 332, and controls the sound playing device 332 to play preset sound prompt information; or
  • the prompting device 330 includes a display device 333 that controls the display device 333 to present preset text prompt information or image prompt information.
  • the vibration device 331 may be a vibration motor 371 (corresponding to one of the motors 190 in the mobile phone 100), and the sound playback device 332 may be a speaker 3321 (corresponding to the speaker 161 in the mobile phone 100) or a microphone 3322 (corresponding to the mobile phone 100) In any of the microphones 162), the display device can be the display 3301 as described above.
  • the method and the process for implementing the prompting of the obstacles by using the components in the mobile phone 300#1 are the same as the method 200. Therefore, reference may be made to the related process of the method 200, and details are not described herein again.
  • the mobile phone 300#1 Before performing the distance measurement, the mobile phone 300#1 optionally uses the processor 320 to:
  • the mobile phone 300#1 is in a used state, and it can be understood that the user who uses the mobile phone 300#1 is observing the mobile phone 300#1, that is, the user is using the mobile phone 300#1. Therefore, for the user who is using the mobile phone 300#1 while walking, the mobile phone 300#1 first determines that the user is walking before determining that the user is observing the mobile phone 100, and can obtain the number of steps the user walks through the accelerometer sensor when the user When the number of walking steps is greater than the preset threshold, the user can be considered to be in a walking state.
  • the processor 320 can determine that the user is watching the mobile phone 300#1 in at least one of the following ways:
  • the processor 320 analyzes whether the mobile phone 300#1 is in the left and right basic horizontal state by the data detected by the gyroscope 360, that is, whether the rotating shaft 340 of the mobile phone 300#1 is perpendicular or nearly perpendicular to the gravity direction, as described above, the mobile phone 300#1
  • the posture is the most common state in which the user uses the mobile phone;
  • the processor 320 determines, according to the acquired related data, whether the binocular of the user looks at the mobile phone. For example, the camera device 132 takes a photo of the user, and the processor 320 detects the eye state of the user by calculating related data of the photo, and determines the angle of the user's eyes. Or, whether the direction of the user's eyes is the direction of the display screen 3301; for example, the iris recognition technology can be used to determine that the user's binocular is Do not look at the phone.
  • the processor 320 determines whether an application is opened by the user by detecting the progress of the application in the memory, because the opening of the application means that the user may be using the application, thereby being in a state of looking at the mobile phone 100.
  • a walking recognition mode can be configured for the mobile phone 300#1, as shown in FIG. 8, on which the automatic mode and the manual mode are set, and the user can freely select according to the actual situation.
  • the processor 320 controls the mobile phone 300#1 to perform subsequent ranging and prompting operations after receiving the instruction to turn on the walking mode.
  • the terminal device can automatically recognize the user's behavior and the motion state, thereby reducing the distraction of the user's attention and enhancing the user experience.
  • the upper processor 320 can implement or perform the steps and logic blocks disclosed in the method embodiments of the present invention.
  • Processor 320 can be a microprocessor or the processor can be any conventional processor, decoder or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
  • the processor 320 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP processor, etc.), or a digital signal processor (DSP), an application specific integrated circuit. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the memory can include read only memory and random access memory and provides instructions and data to processor 410.
  • a portion of the memory may also include a non-volatile random access memory.
  • the memory can also store information of the device type.
  • the terminal device of the obstacle prompt provided by the embodiment of the present invention acquires the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information,
  • the problem that the collision obstacle cannot be promptly prompted when the user uses the terminal device while walking low head is avoided, thereby avoiding the user's injury;
  • the distance measurement and the intelligent prompting for obstacles are implemented by the existing devices in the terminal device, thereby reducing the dependence of the terminal device on the application software;
  • the distance measuring device by rotating the distance measuring device according to the state of the terminal device, the distance measurement of the obstacle located in front of the terminal device is realized, which greatly improves the practicability and flexibility of the terminal device;
  • FIG. 10 shows an obstacle device terminal device 400 according to an embodiment of the present invention, the terminal device 400 ranging unit 410, processing unit 420, and prompting unit 430, and
  • the ranging unit 410 is configured to acquire distance information between the terminal device 400 and an obstacle;
  • the processing unit 420 is configured to determine, according to the distance information, whether to prompt the obstacle;
  • the processing unit 420 is further configured to control the prompting unit 430 to perform the prompting of the obstacle after determining that the object is prompted for the obstacle.
  • the terminal device of the obstacle prompting provided by the embodiment of the present invention, the terminal device obtains the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information.
  • the problem that the collision obstacle cannot be promptly prompted when the user uses the terminal device while walking low head is avoided, thereby causing the user to be injured; and the user does not need to distract attention to know that there is an obstacle in front of the user to enhance the user experience.
  • the terminal device 400 includes a ranging device, and the ranging device includes the ranging unit 410, the ranging device has a main device surface, and the ranging device is configured to acquire a direction in which the main device surface faces And distance information of the object located in front of the distance measuring device, the distance measuring device is connected to the housing of the terminal device through a rotating shaft, so that the distance measuring device can rotate around the rotating shaft, and
  • the processing unit 420 is specifically configured to:
  • a distance between the terminal device and the obstacle is determined.
  • the distance measuring device by rotating the distance measuring device according to the state of the terminal device, the distance measurement of the obstacle located in front of the terminal device is realized, which greatly improves the practicability and flexibility of the terminal device.
  • the ranging device comprises at least one of a binocular imaging device, a laser positioning device, or a sound localization device.
  • processing unit 420 is further configured to:
  • processing unit 420 is specifically configured to:
  • the terminal device can automatically recognize the behavior of the user and the motion state, thereby further enhancing the user experience.
  • the distance information is used to indicate a distance between the terminal device and the obstacle
  • the processing unit 420 is specifically configured to:
  • a prompt to perform the obstacle is determined.
  • processing unit 410 is specifically configured to:
  • the prompting unit 430 is controlled to present preset text prompt information or image prompt information.
  • the terminal device 400 of the obstacle prompting in the embodiment of the present invention may correspond to the terminal device of the method of the embodiment of the present invention, and each unit in the terminal device 400 is a module and the other operations and/or functions described above.
  • the corresponding processes performed by the terminal device in the method 200 can be implemented separately, and are not cumbersome here for brevity.
  • the terminal device of the obstacle prompt provided by the embodiment of the present invention acquires the distance information between the obstacle located in front of the terminal device and the terminal device, and further implements the smart prompt for the obstacle according to the distance information,
  • the problem that the collision obstacle cannot be promptly prompted when the user uses the terminal device while walking low head is avoided, thereby avoiding the user's injury;
  • the distance measurement and the intelligent prompting for obstacles are implemented by the existing devices in the terminal device, thereby reducing the dependence of the terminal device on the application software;
  • the distance measuring device by rotating the distance measuring device according to the state of the terminal device, the distance measurement of the obstacle located in front of the terminal device is realized, which greatly improves the practicability and flexibility of the terminal device;
  • each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in a memory, and the processor executes instructions in the memory, in combination with hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the storage medium includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)

Abstract

一种障碍物提示的方法和终端设备,该方法包括:终端设备获取该终端设备与障碍物之间的距离信息 (S210);该终端设备根据该距离信息,确定是否进行该障碍物的提示 (S220);该终端设备在确定针对该障碍物进行提示后,控制该终端设备进行该障碍物的提示 (S230)。上述方法能够避免用户在低头使用终端设备时碰撞前方的障碍物,提高了用户体验。

Description

一种障碍物提示的方法和终端设备 技术领域
本发明实施例涉及电子设备领域,更具体地,涉及电子设备领域中障碍物提示的方法和终端设备。
背景技术
随着智能手机的普及,用户经常在步行过程中低头使用手机,这样有可能碰撞前方障碍物从而引起用户受伤。
目前,已知一种技术,用户在使用某些软件时可以将摄像头打开,聊天背景显示为摄像头拍摄的图像,用户在看到聊天背景显示的图像时,就可以看到障碍物,从而防止用户碰到障碍物。
但是,在现有技术中,摄像头拍摄的是地面的图像,用户不可能看到前方的障碍物。
因此,需要提供一种技术,使得用户能够感知在用户前方的障碍物从而防止碰撞障碍物,提高用户体验。
发明内容
本发明实施例提供了一种障碍物提示的方法、装置和终端设备,能够避免用户在低头使用终端设备时碰撞前方的障碍物,提高了用户体验。
第一方面,提供了一种障碍物提示的方法,该方法包括:
终端设备获取所述终端设备与障碍物之间的距离信息;
所述终端设备根据所述距离信息,确定是否进行所述障碍物的提示;
所述终端设备在确定针对所述障碍物进行提示后,控制所述终端设备进行所述障碍物的提示。
因而,本发明实施例提供的障碍物提示的方法,终端设备通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而避免了用户受伤;并且,用户不需要分散注意力就可以获知在其前方存在障碍物增强了用户体验。
结合第一方面,在第一方面的第一种实现方式中,所述终端设备包括测 距设备,所述测距设备具有主设备面,所述测距设备用于获取在所述主设备面所朝向的方向上且位于所述测距设备的前方的物体的距离信息,所述测距设备通过旋转轴与所述终端设备的壳体相连接,以使得所述测距设备能够绕所述旋转轴旋转,以及,
所述终端设备获取所述终端设备与障碍物之间的距离信息,包括:
所述终端设备确定所述旋转轴与重力方向垂直或近似垂直;
所述终端设备控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与所述终端设备的运动方向相同或近似相同;或
所述终端设备控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与重力方向垂直或近似垂直;或
所述终端设备控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与水平方向平行或近似平行;
所述终端设备通过所述测距设备获取所述障碍物的距离信息;
所述终端设备根据所述距离信息,确定所述终端设备与所述障碍物之间的距离。
因而,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,不仅减少了终端设备对于应用的依赖,而且大大提高了终端设备的实用性以及灵活性。
结合第一方面,在第一方面的第二种实现方式中,在所述终端设备获取所述终端设备与障碍物之间的距离信息前,所述方法还包括:
所述终端设备确定所述终端设备处于被使用的状态。
结合第一方面,在第一方面的第三种实现方式中,所述终端设备确定所述终端设备处于被使用的状态,包括:
所述终端设备确定连接所述终端设备中的测距设备与所述终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
所述终端设备确定所述终端设备中安装的至少一个应用处于正在打开的状态;和/或
所述终端设备确定使用所述终端设备的用户处于双目注视所述终端设备的状态。
因而,通过上述方式可以使得终端设备能够自动识别用户的行为以及运动状态,进一步增强了用户体验。
结合第一方面,在第一方面的第四种实现方式中,所述终端设备根据所述距离信息,确定是否进行所述障碍物的提示,包括:所述终端设备在确定所述距离信息指示的所述终端设备与所述障碍物之间的距离小于或等于距离阈值时,确定进行所述障碍物的提示。
结合第一方面,在第一方面的第五种实现方式中,所述终端设备在确定针对所述障碍物进行提示后,控制所述终端设备进行所述障碍物的提示,包括:
所述终端设备还包括振动设备,所述终端设备控制所述振动设备进行振动提示;或
所述终端设备还包括声音播放设备,所述终端设备控制所述声音播放设备播放预设的声音提示信息;或
所述终端设备还包括显示设备,所述终端设备控制所述显示设备呈现预设的文本提示信息或图像提示信息。
结合第一方面,在第一方面的第六种实现方式中,该测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
第二方面,提供了一种障碍物提示的终端设备,所述终端设备包括:测距设备、处理器和提示设备,其中,
所述测距设备,用于获取所述终端设备与障碍物之间的距离信息;
所述处理器,用于根据所述距离信息,确定是否进行所述障碍物的提示;
所述处理器,还用于在确定针对所述障碍物进行提示后,控制所述提示设备进行所述障碍物的提示。
因而,本发明实施例提供的障碍物提示的终端设备,终端设备通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而避免了用户受伤;并且,用户不需要分散注意力就可以获知在其前方存在障碍物增强了用户体验。
结合第二方面,在第二方面的第一种实现方式中,所述测距设备具有主设备面,所述测距设备用于获取在所述主设备面所朝向的方向上且位于所述测距设备的前方的物体的距离信息,所述测距设备通过旋转轴与所述终端设备的壳体相连接,以使得所述测距设备能够绕所述旋转轴旋转,以及,
所述处理器具体用于:
确定所述旋转轴与重力方向垂直或近似垂直;
控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与所述终端设备的运动方向相同或近似相同;或
控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与重力方向垂直或近似垂直;或
控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与水平方向平行或近似平行;
根据所述测距设备获取的所述距离信息,确定所述终端设备与所述障碍物之间的距离。
因而,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,不仅减少了终端设备对于应用的依赖,而且,大大提高了终端设备的实用性以及灵活性。
结合第二方面,在第二方面的第二种实现方式中,所述处理器还用于:
确定所述终端设备处于被使用的状态。
结合第二方面,在第二方面的第三种实现方式中,所述处理器具体用于:
确定连接所述测距设备与所述终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
通过所述终端设备中的存储器中安装的至少一个应用处于正在打开的状态;和/或
通过所述终端设备中的摄像设备获取的图像,确定使用所述终端设备的用户处于双目注视所述终端设备的状态。
因而,通过上述方式可以使得终端设备能够自动识别用户的行为以及运动状态,进一步增强了用户体验。
结合第二方面,在第二方面的第四种实现方式中,所述距离信息用于指示所述终端设备与所述障碍物之间的距离,所述处理器具体用于:
根据所述距离信息确定所述距离;
在确定所述距离小于距离阈值时,确定进行所述障碍物的提示。
结合第二方面,在第二方面的第五种实现方式中,所述处理器具体用于:
所述提示设备包括振动设备,控制所述振动设备进行振动提示;或
所述提示设备包括声音播放设备,控制所述声音播放设备播放预设的声音提示信息;或
所述提示设备包括显示设备,控制所述显示设备呈现预设的文本提示信息或图像提示信息。
结合第二方面,在第二方面的第六种实现方式中,所述测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
第三方面,提供了一种障碍物提示的终端设备,其特征在于,所述终端设备包括:测距设备、处理单元,提示单元,以及
所述测距单元,用于获取所述终端设备与障碍物之间的距离信息;
所述处理单元,用于根据所述距离信息,确定是否进行所述障碍物的提示;
所述处理单元,还用于在确定所述针对所述障碍物进行提示后,控制所述提示单元进行所述障碍物的提示。
因而,本发明实施例提供的障碍物提示的终端设备,终端设备通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而避免了用户受伤;并且,用户不需要分散注意力就可以获知在其前方存在障碍物增强了用户体验。
结合第三方面,在第三方面的第一种实现方式中,所述终端设备包括测距设备,所述测距设备包括所述测距单元,所述测距设备具有主设备面,所述测距设备用于获取在所述主设备面所朝向的方向上且位于所述测距设备的前方的物体的距离信息,所述测距设备通过旋转轴与所述终端设备的壳体相连接,以使得所述测距设备能够绕所述旋转轴旋转,以及,
所述处理单元具体用于:
确定所述旋转轴与重力方向垂直或近似垂直;
控制所述测距设备绕所述旋转轴旋转,以使得所述主设备面所朝向的方向与所述终端设备的运动方向相同或近似相同;或
控制所述测距设备绕所述旋转轴旋转,以使得所述主设备面所朝向的方向与重力方向垂直或近似垂直;或
控制所述测距设备绕所述旋转轴旋转,以使得所述主设备面所朝向的方向与水平方向平行或近似平行;
通过所述测距设备获取所述障碍物的距离信息;
根据所述距离信息,确定所述终端设备与所述障碍物之间的距离。
因而,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,不仅减少了终端设备对于应用的依赖,而且大大提高了终端设备的实用性以及灵活性。
结合第三方面,在第三方面的第二种实现方式中,所述处理单元还用于:
确定所述终端设备处于被使用的状态。
结合第三方面,在第三方面的第三种实现方式中,所述处理单元具体用于:
确定连接所述测距设备与所述终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
确定所述终端设备中安装的至少一个应用处于正在打开的状态;和/或
确定使用所述终端设备的用户处于双目注视所述终端设备的状态。
因而,通过上述方式可以使得终端设备能够自动识别用户的行为以及运动状态,进一步增强了用户体验。
结合第三方面,在第三方面的第四种实现方式中,所述距离信息用于指示所述终端设备与所述障碍物之间的距离,所述处理单元具体用于:
根据所述距离信息确定所述距离;
在确定所述距离小于或等于所述距离阈值时,确定进行所述障碍物的提示。
结合第三方面,在第三方面的第五种实现方式中,所述处理单元具体用于:
控制所述提示单元进行振动;或
控制所述提示单元播放预设的声音信息;或
控制所述提示单元呈现预设的文本信息或图像信息。
结合第三方面,在第三方面的第六种实现方式中,所述测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
第四方面,提供了一种计算机存储介质,所述计算机存储介质中存储有程序代码,所述程序代码用于指示执行上述第一方面或第一方面的任意可选的实现障碍物提示的方法所执行的操作。
因而,本发明实施例提供的障碍物提示的方法,通过获取位于该终端设备前方的障碍物与该终端设备之间的距离,进而根据该距离实现针对该障碍物的智能提示,一方面,避免了用户在低头行走时使用该终端设备时碰撞障 碍物不能得到及时提示的问题,从而避免了用户受伤;
另一方面,通过终端设备中现有的设备实现测距以及进行针对障碍物的智能提示,减少了终端设备对于应用软件的依赖;
另一方面,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性;
再一方面,通过自动识别用户的行为以及运动状态,减少了用户注意力的分散,增强了用户体验。
附图说明
图1示出了本发明实施例的障碍物提示的手机的示意性结构图。
图2示出了根据本发明实施例的障碍物提示的方法的示意性流程图。
图3示出了本发明实施例的手机进行测距的示意图。
图4a和图4b示出了本发明一实施例的手机的示意性结构图。
图5示出了利用双目摄像设备进行距离测量的原理图。
图6a示出了手机被使用时的一种状态的示意图。
图6b和图6c示出了手机被使用时的另一种状态下的测距方式的示意图。
图7示出了用户在使用终端设备时的另一种使用状态的示意图。
图8示出了本发明实施例中配置于终端设备中的一种步行模式配置的示意图。
图9示出了本发明实施例的障碍物提示的终端设备的示意性结构图。
图10示出了本发明实施例的终端设备的示意性框图。
具体实施方式
本发明实施例的技术方案可以应用于各种支持距离测量的终端设备(也称为,用户设备),例如,手机、手环、平板电脑、笔记本电脑、超级移动个人计算机(Ultra-Mobile Personal Computer,简称“UMPC”)、个人数字助理(Personal Digital Assistant,简称“PDA”)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备等,而不仅限于通信终端。
首先,以图1所示的手机为例对本发明实施例所适用的终端设备进行介绍。在本发明实施例中,手机可以包括射频(Radio Frequency,简称“RF”)电路110、存储器120、输入单元130、无线保真(wireless fidelity,简称“WiFi”)模块170、显示单元140、传感器150、音频电路160、处理器180、以及电源190等部件。
其中,本领域技术人员可以理解,图1中示出的手机结构仅为示例而非限定,手机还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
RF电路110可用于在收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将手机上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System for Mobile communication,简称“GSM”)、通用分组无线服务(General Packet Radio Service,简称“GPRS”)、码分多址(Code Division Multiple Access,简称“CDMA”)、宽带码分多址(Wideband Code Division Multiple Access,简称“WCDMA”)、长期演进(Long Term Evolution,简称“LTE”)、电子邮件、短消息服务(Short Messaging Service,简称“SMS”)等。
其中,存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号。具体地,输入单元130可包括触控面板131、摄像设备132以及其他输入设备133。摄像设备132,可以对需要获取的图像进行拍照,从而将图像传送给处理器150进行处理,最后将图形 通过显示面板141呈现于用户。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131和摄像设备132,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
其中,显示单元140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元140可包括显示面板141,可选的,可以采用液晶显示单元(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。
其中,该人眼能够识别的该视觉输出外显示面板141可以作为本发明实施例中的显示设备,用来显示文本信息或图像信息。虽然在图1中,触控面板131与显示面板141是作为两个独立的部件来实现手机的输入和输出功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现手机的输入和输出功能。
另外,手机100还可包括至少一种传感器150,比如姿态传感器、距离传感器、以及其他传感器。
具体地,姿态传感器也可以称为运动传感器,并且,作为该运动传感器的一种,可以列举角速度传感器(也称为,陀螺仪),当其被配置于手机中时,用于测量运动状态中的手机在偏转、倾斜时的转动角速度,从而,陀螺仪就可以精确分析判断出使用手机的用户的实际动作,进而,对手机做相应的操作。例如:体感、摇一摇(晃动手机实现一些功能)、平移/转动/移动手 机可在游戏中控制视角、在全球定位系统(Global Positioning System,简称“GPS”)没有信号时(如隧道中)根据物体运动状态实现惯性导航。
作为运动传感器的另一种,可以列举重力传感器,重力传感器采用弹性敏感元件制成悬臂式位移器,并采用弹性敏感元件制成的储能弹簧来驱动电触点,从而实现将重力变化转换成为电信号的变化。例如:手机横竖屏智能切换、拍照照片朝向、重力感应类游戏(如滚钢珠)。
作为运动传感器的另一种,可以列举加速计传感器,加速计传感器可检测各方向上(一般为三轴)加速度大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用以及振动识别相关功能等。例如:横竖屏切换、相关游戏、磁力计姿态校准、计步、敲击、手机摆放位置朝向角度。
此外,传感器还可以列举距离传感器,不仅包括可以测量短距离的距离传感器,例如,设置在手机听筒的两侧或者手机听筒凹槽中的距离传感器,还可以包括能够测量较远距离的距离传感器,例如,可以测量手机附近的物体与手机之间的距离。在本发明实施例中,可以采用上述列举的部分或全部运动传感器来获取有关手机运动状态的参数,例如:手机是否处于正在运动状态、手机的倾斜、偏转角度等。可以采用上述列举的距离传感器来获取手机与手机附近物体的距离。但并不限定于此,其他能够获取“有关手机运动状态的参数”和/或“手机与手机附近物体的距离”的传感器均落入本发明实施例的保护范围内。
此外,在本发明实施例中,作为传感器150,还可配置气压计、湿度计、温度计和红外线传感器等其他传感器,在此不再赘述。
光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板141和/或背光。
音频电路160、扬声器161,传声器162可提供用户与手机之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块170,但是可以理解的是,其并不属于手机100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。
可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
手机100还可以包括至少一种马达190,在本发明实施例中,马达190可以为测距设备的旋转提供驱动力,使得测距设备旋转至预期位置。由于手机是耗电设备,马达190可以是一种小型电机,同时,根据马达能够提供的功率大小可以为手机配置多个马达。
手机100还包括给各个部件供电的电源(图中未画出)。
优选地,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机100还可以包括蓝牙模块、耳机接口等,在此不再赘述。
需要说明的是,图1所示手机仅为一种终端设备的举例,本发明实施例并未特别限定,本发明实施例可以应用于手机、平板电脑等电子设备,本发明实施例对此不做限定。
以下,为了便于理解和记忆,以上述手机100作为本发明实施例的障碍物提示的方法的执行主体,对该方法进行详细说明。
图2示出了本发明实施例的障碍物提示的方法的示意性流程图,如图2所示,该方法200包括:
S210,终端设备获取该终端设备与障碍物之间的距离信息;
S220,该终端设备根据所述距离信息,确定是否进行该障碍物的提示;
S230,该终端设备在确定针对该障碍物进行提示后,控制该终端设备进行该障碍物的提示。
具体地说,手机100(即,方法200中的执行主体的一例)可以通过测距设备获取该终端设备与障碍物之间的距离信息,进而处理器180获取该距离信息,确定手机100与障碍物之间的距离,从而实现对于该终端设备与障碍物之间的距离的测量;进而,处理器180根据该距离,确定是否需要对该障碍物进行提示;从而,处理器180在确定需要进行该障碍物的提示后,控制该终端设备进行该障碍物的提示。
其中,该障碍物可以在手机100的运动方向上,且位于手机100的前方。
应理解,上述“前方”可以表示正前方,也可以表示斜前方,即,该障碍物不仅在手机100的运动方向上,且位于手机100的正前方或斜前方。
例如,如图3所示,该“斜前方”表示的是手机100的运动方向与平行于重力方向的平面1中的任一点成α°的位置。该α°的值可以根据手机100中包括的测距设备的测量精度、测量设备的测量范围以及手机100的控制能力等因素确定。该α°值可以预设在存储器120中,也可以预设在处理器180中等。
需要说明的是,上述“该障碍物不仅在手机100的运动方向上,且位于手机100的正前方或斜前方”表示障碍物的位置与手机100的使用状态无关,手机100可以处于如图3中实线所表示的状态,也可以处于如图3中虚线所表示的状态,也可以是任何手机可能的使用状态,本发明实施例没有任何限制。
本发明实施例所提供的方法,作为示例而非限定,可以应用于使用该终端设备的用户低头使用手机的情景,用户与该终端设备可以处于运动状态,也可以处于由静止状态准备转为运动状态的情况。
因而,本发明实施例提供的障碍物提示的方法,终端设备通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而使得用户受伤;并且,用户不需要分散注意力就可以获知在其前方存在障碍物增强了用户体验。
下面,针对于手机100测量手机100与该障碍物的距离的方式进行详细说明。
可选地,该终端设备包括测距设备,该测距设备具有主设备面,该测距设备用于获取在该主设备面所朝向的方向上且位于该测距设备的前方的物 体的距离信息,该测距设备通过旋转轴与该终端设备的壳体相连接,以使得该测距设备能够绕该旋转轴旋转。
为了能够更加直观地对本发明实施例的测距方式进行说明,下面,从手机100的外部结构方面对本发明实施例的手机100进行简单说明,进而,结合手机100的部件与外部结构对本发明实施例进行详细说明。
如图4a所示,手机100包括手机壳体111、显示屏141、测距设备112以及两个旋转轴113。如上所述,测距设备112通过两个旋转轴113与手机壳体111相连接,从而使得测距设备112旋转轴113旋转,以使得测距设备的主设备面达到预设位置。
作为示例而非限定,图4a中的手机结构仅为示意性说明,本发明实施例并不限于此,测距设备可以设置于手机壳体的任意部位,例如,测距设备可以设置于手机壳体边缘,通过一个旋转轴与手机壳体相连接,同样,可以实现测距设备的旋转,能够实现针对前方障碍物的测距,因而,本发明实施例并不限于此。
可选地,该测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
该激光定位设备可以包括各种可以适用于手机100的激光距离传感器,该声音定位设备可以包括各种可以适用于手机100的超声波距离传感器。作为示例而非限定,本发明实施例中的测距设备并不限于此,任何能够在类似于手机100的终端设备中实现测距功能的设备都在本发明实施例的保护范围内。
双目摄像设备由于较好的成像能力而被广泛应用于拍照,实际上,双目摄像设备还可以用于测量距离,如图5所示,双摄像头成像速度会因两个摄像头同时参与对焦而与待测物体达成三角测距的原理,使距离的测试时间缩短,从而提升对焦速度,特别是在拍摄运动物体时具有明显优势。通过两个摄像头对物体角度,通过简单的三角函数就可以计算出待测物体距离摄像头的距离,即计算出三角形ABC的高度(也称为深度)。具体实现过程与现有技术一样,此处不再累赘。
众所周知,摄像设备是现有智能手机中不可或缺部分,同时,双目摄像设备也在手机中慢慢普及,因而,为了有效利用手机中的现有部件,本发明实施例中以双目摄像设备作为测距设备的一例,对本发明实施例中具体的测 距方式进行说明。
图4b所示的是手机100中安装有双目摄像设备1121(图1中的摄像设备132中的一种)的局部图,其中,双目摄像设备1121的主设备面即为面1121-1,换句话说,双目摄像设备1121的主设备面1121-1就是安装有摄像头的面。
一般情况下,出于用户的使用习惯,双目摄像设备1121的主设备面1121-1要么平行或近似平行于显示屏所在平面,要么平行或近似平行于手机背面,当需要测量用户正在使用的手机100与其前方的障碍物之间的距离时,需要主设备面能够朝向该障碍物,以便于获取该障碍物的图像。
该终端设备获取该终端设备与障碍物之间的距离信息,包括:
该终端设备确定该旋转轴与重力方向垂直或近似垂直;
该终端设备控制该测距设备绕该旋转轴旋转,以使该主设备面所朝向的方向与该终端设备的运动方向相同或近似相同;或
该终端设备控制该测距设备绕该旋转轴旋转,以使该主设备面所朝向的方向与重力方向垂直或近似垂直;或
该终端设备控制该测距设备绕该旋转轴旋转,以使该主设备面所朝向的方向与水平方向平行或近似平行;
该终端设备通过该测距设备获取该障碍物的距离信息;
该终端设备根据该距离信息,确定该终端设备与该障碍物之间的距离。
应理解,由于手机100是一种产品,方法实施过程以及手机100的制作过程都会存在一定误差,例如,运动传感器的测量精度、转轴的磨损程度,用户使用手机100的姿势的微小变化、用户使用手机100在具有坡度的地势上运动等因素,都会影响主设备面1121-1所朝向的方向与基准方向之间的位置,所以,只要在主设备面1121-1所朝向的方向与基准方向在一定的误差范围内,都是允许的,所以,本发明实施中描述了主设备面1121-1所朝向的方向与基准方向之间的近似位置,例如,如上所述的“近似平行”、“近似垂直”。
在本发明实施例中,处理器180可以通过陀螺仪151(运动传感器150一例)获取手机100的倾斜角度,准确地说,获取的是手机100的显示屏141所在的平面与重力方向之间的倾角,或者手机100的显示屏141所在的平面与水平方向之间的倾角,从而调整双目摄像设备1121与基准方向之间预设的夹角,最终对该障碍物进行拍照从而确定手机100与该障碍物之间的距离。
下面,针对于用户的使用习惯对于双目摄像设备1121的具体旋转过程进行说明。在本发明实施例中,手机100的旋转轴113与重力方向垂直或近似垂直,这是用户使用手机最常见的一种使用习惯,同时,在这种情况下,方便调节双目摄像设备1121。
具体地,处理器180首先通过陀螺仪151确定手机100的旋转轴113与重力方向是否垂直或者近似垂直,即,确定手机100的显示屏141是否处于左右基本说水平状态,在确定手机100的显示屏141处于基本左右水平状态后,处理器180通过陀螺仪151获取手机100与重力方向之间的夹角(记为夹角#1),准确说,处理器180获取手机100的显示屏141所在的平面与重力方向之间的夹角#1,处理器180根据夹角#1控制双目摄像设备1121,将其旋转至双目摄像设备1121的主设备面1121-1所朝向的方向与基准方向之间预设的夹角(记为夹角#2),最终对该障碍物进行拍照从而确定手机100与该障碍物之间的距离。
具体地,如图6a所示,用户使用手机100时,显示屏141处于左右基本水平状态,显示屏141与重力方向之间的夹角为β°,处理器180通过陀螺仪151获取夹角β°,同时,根据夹角β°调整双目摄像设备1121的主设备面1121-1所朝向的方向与基准方向之间预设的夹角为夹角#2。
如图6b所示,本发明实施例中示出了三个基准方向,因而,调整后的主设备面1121-1与三个基准方向的关系也存在三种情况:
情况1
基准方向为手机100的运动方向
主设备面1121-1所朝向的方向与手机100的运动方向的关系为:主设备面1121-1所朝向的方向与手机100的运动方向相同或近似相同。
情况2
基准方向为重力方向
主设备面1121-1所朝向的方向与重力方向的关系为:主设备面1121-1所朝向的方向与重力方向垂直或近似垂直。
情况3
基准方向为水平方向
主设备面1121-1所朝向的方向与水平方向的关系为:主设备面1121-1所朝向的方向与水平方向平行或近似平行。
处理器180需要控制双目摄像设备1121旋转时,可以进行逆时针旋转,也可以顺时针旋转。
例如,如图6c所示,陀螺仪151测得显示屏141所在的平面与重力方向之间的夹角为β°。当主设备面1121-1平行于显示屏所在的平面时,处理器180可以控制双目摄像设备1121顺时针旋转180°-β°,也可以控制双目摄像设备1121逆时针旋转β°,才能使得主设备面1121-1所朝向的方向能够对着手机100前方的障碍物;当主设备面1121-1平行于或近似平行于手机背面时,处理器180可以控制双目摄像设备1121逆时针旋转β°,也可以控制双目摄像设备1121顺时针旋转180°-β°。
应理解,由于用户使用手机的状态并非是严格地能够使得旋转轴113与重力方向垂直(此时,手机100的显示屏141所在的平面与水平方向平行),因而,在实际方法实施中,手机100的旋转轴113与重力方向可以近似垂直,即,手机100的显示屏141所在的平面与水平方向可以存在一定的角度。这样,可以在手机100中设置第一角度阈值和第二角度阈值,以重力方向作为基准方向,当旋转轴113与重力方向之间的夹角大于或等于第一角度阈值,且小于或等于第二角度阈值时,就可以认为旋转轴113与重力方向垂直或近似垂直。该第二角度阈值为90°,第一角度阈值可以由系统预先设置。
还应理解,以上描述仅为举例,当用户使用手机的使用状态如图7所示时,用户只需要旋转双目摄像设备90°。例如,如图7所示,在竖直平面内定义x轴和y轴,即,x轴代表水平方向,y轴代表重力方向。图4a所示的手机100的长边与y轴平行或近似平行,左图示出的是手机100向右边倾斜,与旋转轴平行的边与x轴之间的倾角为γ1,右图示出的是手机100向左边倾斜,与旋转轴平行的边与x轴之间的倾角为γ2,这种情况下,将双目摄像设备121调整90°,主设备面1121-1所朝向的方向满足与基准方向的要求,使得主设备面1121-1对准障碍物,从而,该障碍物进行拍照从而确定手机100与该障碍物之间的距离。
如上所述,在一般情况下,双目摄像设备1121的主设备面1121-1要么平行或近似平行于显示屏所在平面,要么平行或近似平行于手机背面,然而,当双目摄像设备1121的主设备面1121-1与手机100的显示屏或手机背面并非处于平行状态时,同样也可以将双目摄像设备1121旋转至主设备面1121-1所朝向的方向与基准方向之间预设的夹角#2。
例如,如图6c所示,陀螺仪151测得显示屏141所在的平面与重力方向之间的夹角为β°,双目摄像设备1121的主设备面1121-1与显示屏141所在的平面之间的夹角为τ°,在旋转双目摄像设备1121时,处理器180可以控制双目摄像设备1121顺时针旋转180°-(β+τ)°,也可以控制双目摄像设备1121逆时针旋转(β+τ)°。
在本发明实施例中,手机100可以通过处理器180开启马达190,使马达190为双目摄像设备1121提供旋转需要的驱动力,也可以在自己即将运动前,直接手动调整双目摄像设备,本发明并不限于此。
因而,本发明实施例提供的障碍物提示的方法,通过根据终端设备的状态来旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性。
手机100通过处理器180根据陀螺仪151的数据将双目摄像设备1121的主设备面1121-1调整至预设位置后,通过处理器180打开双目摄像设备1121,对前方障碍物进行拍照,获取具有视差的不同图像,同时处理器180对该不同图像进行特征匹配等计算,从计算结果中获取距离信息,从而确定手机100与该障碍物之间的距离。
从而,手机100根据该距离,确定是否需要进行该障碍物的提示。
需要特别指出的是,用户可以使用手机100在具有一定坡度的地势上运动,但是,坡度不宜过大,可以根据预设的距离设定一个角度阈值,用于通知用户,当用户在坡度大于一定角度阈值的地势上行走时,手机100不能很好地探测前方的障碍物,需要用户自己在行走过程中小心,减少不必要的碰撞。
作为示例而非限定,手机100不仅可以通过陀螺仪151获取显示屏141与重力方向之间的夹角β°,也可以通过别的传感器获取夹角β°,例如,重力传感器,加速计传感器等,本发明实施例并不限于此。
作为示意而非限定,上述列举的双目设备摄像设备以及采用双目设备摄像设备进行测距的方法仅是示意性说明,如前所述,激光定位设备和声音定位设备等能够进行测距的设备以及利用该设备进行测距的方法都在本发明实施例的保护范围内。
例如,可以在手机中的多个方向安装小型激光设备,可以不用旋转激光设备,或者减少旋转次数,或者减少旋转角度,也能够探测到前方的障碍物, 从而提示用户。
作为示例而非限定,由于手机100可以控制双目摄像设备132进行旋转,因而,利用双目摄像设备132进行旋转的条件,本发明实施例也可以实现针对于地面上的障碍物进行提示,可以有效地实现针对于地面上的障碍物进行智能提示,避免用户由于低头看手机而摔倒的问题。
例如,可以通过旋转双目摄像设备132,使其主设备面1321朝向地面,针对当前地面进行拍照。
具体地,可以为手机100设置预设夹角范围,当陀螺仪151检测手机100与基准方向之间的夹角,根据检测的夹角旋转双目摄像设备132的主设备面1321所朝向的方向与基准方向之间形成的夹角处于该夹角范围内,处理器180通过针对图像特征等进行计算来识别地上的障碍物,从而提示用户地上存在障碍物,小心摔倒。(本发明实施例中后续的用于提示障碍物的具体过程同样适用于此种情况)。
本发明实施例中,双目摄像设备132的旋转也可以由用户手动实现或者由用户手动调整旋转角度。
应理解,也可以使用普通摄像设备(即,单摄像头设备)进行上述方法的操作。
基于用户使用手机的最为习惯的一种状态(即图6a所示),可选地,手机100可以记录双目摄像设备132进行旋转的夹角,以便于下次手机被使用时(即,用户低头注视时机),处理器180可以根据记录的角度直接将双目摄像设备132旋转至预设角度,测量前方障碍物的距离和/或检测地面的障碍。
可选地,该终端设备在确定该距离信息指示的该终端设备与该障碍物之间的距离小于或等于距离阈值时,确定进行所述障碍物的提示。
该距离阈值可以是系统预设的值,也可以用户自定义的值,本发明实施例并不限于此。
进一步地,该终端设备在确定针对该障碍物进行提示后,控制该终端设备进行该障碍物的提示,包括:
该终端设备还包括振动设备,该终端设备控制该振动设备进行振动提示;或
该终端设备还包括声音播放设备,该终端设备控制该声音播放设备播放 预设的声音提示信息;或
该终端设备还包括显示设备,该终端设备控制该显示设备呈现预设的文本提示信息或图像提示信息。
具体地,手机100可以至少通过上述任一种方式对使用手机100的用户进行提示。当该障碍物与手机100之间的距离小于或等于距离阈值时,手机100通过处理器100执行相关操作进行障碍物的提示。
该提示的方式可以基于用于对手机100的提示模式的设定。
例如,若用户设置手机100的提示模式为振动模式,则手机100通过处理器180控制振动设备进行振动提示。该振动设备可以是振动马达(图1所示的马达190中的一种),该振动马达可以是圆柱形(空心杯)振动马达,也可以是扁平纽扣式振动马达,也可以是线性马达(即,脉冲马达)。
再例如,若用户设置手机100的提示模式为响铃模式,则手机100通过处理器180控制声音播放设备播放预设的声音提示信息,例如,该声音提示信息可以是系统预设的“请注意,前方有障碍物!”该声音播放设备可以是手机上的扬声器161或传声器162中的任一种。
再例如,若用户设置手机100的提示模式为文本显示或图像显示,则手机100通过处理器180控制显示屏141显示预设的文本提示信息或图像提示信息。该文本提示信息可以是系统预先编辑的文字,例如“请注意,前方有障碍物!”;该图像提示信息可以是系统预先编辑的图片,图片可以是生动易懂的图像,也可以是由文字生成的图片。
手机100在获取该距离信息前,可选地,该方法200还包括:
该终端设备确定该终端设备处于被使用的状态。具体地,手机100处于被使用的状态,可以理解为使用手机100的用户正在观察手机100,也即用户正在低头使用手机100。因而,针对于行走中的使用手机100的用户来说,手机100在确定用户正在观察手机100之前,首先确定用户正在步行,可以通过加速计传感器获得用户行走的步数,当用户行走步数大于预设阈值时,就可以认为用户处于步行状态中。
其次,可以通过下述至少一种方式确定用户正在观察手机100:
方式1
处理器180通过陀螺仪151检测到的数据分析手机100是否处于左右基本水平状态,即手机100的旋转轴113是否与重力方向垂直或近似垂直,正 如前述,手机100的这种姿势为是最为常见的用户使用手机的一种状态。
方式2
处理器320根据获取的相关数据判断用户的双目是否注视手机,例如,摄像设备132对用户进行拍照,处理器320通过计算照片的相关数据来检测用户的眼睛状态,判断用户的眼睛的角度,或者,用户的眼睛的方向是否为显示屏3301的方向;再例如,可以通过虹膜识别技术来确定用户的双目是否注视手机。
方式3
处理器320通过检测存储器中的应用的进程来判断是否有应用程序被用户打开,因为,应用程序的打开,意味着用户可能正在使用应用程序,从而处于注视手机100的状态。
应理解,上述列举的确定方式仅为示意性说明,本发明实施例并不限定于此,可以根据实际应用情况对需要确定的方式进行任意变更。
基于此,可以为手机100配置一种步行识别模式,如图8所示,在此模式界面上,设置有自动模式和手动模式,用户可以根据实际情况自由选择。
例如,当用户选择手动模式,即用户准备步行之前,自己提前打开步行模式,此后,手机100调整双目摄像设备1121,检测前方障碍物的距离,从而提醒用户注意避让。
再例如,当用户选择自动模式时,预先选择自动模式下的至少一种选项,即,用户提前设置自动模式条件,当用户在行走时,手机100根据用户预设的选择条件,针对用户行为以及手机100的状态一一检测,进行条件匹配,当检测的数据与用户预设的选择条件匹配成功后,步行模式自动开启,此后,手机100调整双目摄像设备1121,检测前方障碍物的距离,从而提醒用户注意避让。
当手机100中的步行模式开启后,处理器180接收到步行模式开启的指令后,控制手机100进行后续的测距以及提示操作。
这样,通过为终端设备配置步行识别模式,使得终端设备能够自动识别用户的行为以及运动状态,减少了用户注意力的分散,增强了用户体验。
因而,本发明实施例提供的障碍物提示的方法,通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,一方面,避免了用户在低头行走时使用该终端设备 时碰撞障碍物不能得到及时提示的问题,从而避免了用户受伤;
另一方面,通过终端设备中现有的设备实现测距以及进行针对障碍物的智能提示,减少了终端设备对于应用软件的依赖;
另一方面,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性;
再一方面,通过自动识别用户的行为以及运动状态,减少了用户注意力的分散,增强了用户体验。
以上,结合图1至图8详细描述了根据本发明实施例的障碍物提示的方法,下面,结合图9和图10描述根据本发明实施例的障碍物提示的装置和终端设备,方法实施例所描述的技术特征同样适用于以下装置实施例。
图9示出了本发明实施例的障碍物提示的终端设备300,该终端设备300可以对应图1中的手机100,为了方便描述本发明实施例,以手机300#1作为终端设备300的一例,对本发明实施例进行描述。
该终端设备300包括:测距设备310、处理器320和提示设备330,其中,
该测距设备310,用于获取该终端设备与障碍物之间的距离信息;
该处理器320,用于根据该距离信息,确定是否进行该障碍物的提示;
该处理器320,还用于在确定针对该障碍物进行提示后,控制该提示设备330进行该障碍物的提示。
手机300#1中包括测距设备310、处理器320和提示设备330,测距设备310可以对应配置于手机100中的各种用于测量距离的距离传感器(例如,激光距离传感器或超声波距离传感器)或者双目摄像设备1121(手机100中的摄像设备132中的一种),处理器320可以对应手机100中的处理器180,提示设备330可以对应手机100中的显示单元140(例如,可以为显示屏141)、扬声器161、传声器162、振动马达190中的任一种。
具体地说,手机300#1(即,方法200中的执行主体的一例)可以通过测距设备310获取该手机300#1与障碍物之间的距离信息,进而处理器320获取该距离信息,确定手机300#1与障碍物之间的距离,从而实现对于手机300#1与障碍物之间的距离的测量;进而,处理器320根据该距离,确定是否需要对该障碍物进行提示;从而,处理器320在确定需要进行该障碍物的提示后,控制手机300#1进行该障碍物的提示。
其中,该障碍物可以在手机300#1的运动方向上,且位于手机300#1的前方。
应理解,上述“前方”可以表示正前方,也可以表示斜前方,即,该障碍物不仅在手机300#1的运动方向上,且位于手机300#1的正前方或斜前方。具体的针对“斜前方”的描述可以参考方法200中的描述,此处不再赘述。
因而,本发明实施例提供的障碍物提示的终端设备,终端设备通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而使得用户受伤;并且,用户不需要分散注意力就可以获知在其前方存在障碍物增强了用户体验。
可选地,测距设备310包括双目摄像设备3101、激光定位设备3102或声音定位设备中3103的至少一种。
如上所述,手机300#1的部件对应于手机100,针对于图3,手机300#1的部件分别为测距设备310(对应手机100的测距设备112)、显示屏3301(提示设备330中的一种,对应手机100的显示屏141)、两个旋转轴340(对应手机100的旋转轴113)、壳体350(对应手机100的壳体111)
可选地,该测距设备310具有主设备面,该测距设备310用于获取在该主设备面所朝向的方向上且位于该测距设备310的前方的物体的距离信息,该测距设备310通过旋转轴340与该终端设备300的壳体350相连接,以使得该测距设备310能够绕该旋转轴旋转,以及,
该处理器320具体用于:
确定该旋转轴340与重力方向垂直或近似垂直;
控制该测距设备310绕该旋转轴340旋转,以使该主设备面所朝向的方向与该终端设备300的运动方向相同或近似相同;或
控制该测距设备310绕该旋转轴340旋转,以使该主设备面所朝向的方向与重力方向垂直或近似垂直;或
控制该测距设备310绕该旋转轴340旋转,以使该主设备面所朝向的方向与水平方向平行或近似平行;
根据该测距设备310获取的该距离信息,确定该终端设备300与该障碍物之间的距离。
众所周知,摄像设备是现有智能手机中不可或缺部分,同时,双目摄像 设备也在手机中慢慢普及,因而,为了有效利用手机中的现有部件,作为示例而非限定,后续以手机300#1中的双目摄像设备3101(测距设备310中的一例,对应手机100中的双目摄像设备1121)为例,对本发明实施例进行描述。
应理解,由于手机300#1是一种产品,方法实施过程以及手机300#1的制作过程都会存在一定误差,例如,运动传感器的测量精度、转轴的磨损程度,用户使用手机300#1的姿势的微小变化、用户使用手机300#1在具有坡度的地势上运动等因素,都会影响主设备面3101-1(对应于手机100中的主设备面1121-1)所朝向的方向与基准方向之间的位置,所以,只要在主设备面3101-1所朝向的方向与基准方向在一定的误差范围内,都是允许的,所以,本发明实施中描述了主设备面3101-1所朝向的方向与基准方向之间的近似位置,例如,如上所述的“近似平行”、“近似垂直”。
在本发明实施例中,处理器320可以通过陀螺仪360(对应于手机100中的陀螺仪151)获取手机300#1的倾斜角度,准确地说,获取的是手机300#1的显示屏3301所在的平面与重力方向之间的倾角,或者手机300#1的显示屏3301所在的平面与水平方向之间的倾角,从而调整双目摄像设备3101与基准方向之间预设的夹角,最终对该障碍物进行拍照从而确定手机300#1与该障碍物之间的距离。
具体采用手机300#1中的各部件实现旋转双目摄像设备3101的测距方式和过程与方法200相同,因而,可以参考方法200的相关过程,此处不再赘述。
在本发明实施例中,手机300#1可以通过处理器320开启马达370(对应于手机100中的马达190),使马达370为双目摄像设备3101提供旋转需要的驱动力,也可以在自己即将运动前,直接手动调整双目摄像设备,本发明并不限于此。
因而,本发明实施例提供的障碍物提示的终端设备,通过根据终端设备的状态来旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性。
手机300#1通过处理器320根据陀螺仪360的数据将双目摄像设备3101的主设备面3101-1调整至预设位置后,通过处理器320打开双目摄像设备3101,对前方障碍物进行拍照,获取具有视差的不同图像,同时处理器320 对该不同图像进行特征匹配等计算,从计算结果中获取距离信息,从而确定手机300#1与该障碍物之间的距离。
从而,手机300#1根据该距离,确定是否需要进行该障碍物的提示。
作为示例而非限定,由于手机300#1可以控制双目摄像设备3101进行旋转,因而,利用双目摄像设备3101进行旋转的条件,本发明实施例也可以实现针对于地面上的障碍物进行提示,可以有效地实现针对于地面上的障碍物进行智能提示,避免用户由于低头看手机而摔倒的问题。
例如,可以通过旋转双目摄像设备3101,使其主设备面3101-1朝向地面,针对当前地面进行拍照。
具体地,可以为手机300#1设置预设夹角范围,当陀螺仪360检测手机300#1与基准方向之间的夹角,根据检测的夹角旋转双目摄像设备3101的主设备面3101-1所朝向的方向与基准方向之间形成的夹角处于该夹角范围内,处理器320通过针对图像特征等进行计算来识别地上的障碍物,从而提示用户地上存在障碍物,小心摔倒。(本发明实施例中后续的用于提示障碍物的具体过程同样适用于此种情况)。
本发明实施例中,双目摄像设备132的旋转也可以由用户手动实现或者由用户手动调整旋转角度。
应理解,也可以使用普通摄像设备(即,单摄像头设备)进行上述方法的操作。
基于用户使用手机的最为习惯的一种状态(即图6a所示),可选地,手机300#1可以记录双目摄像设备3101进行旋转的夹角,以便于下次手机被使用时(即,用户低头注视时机),处理器320可以根据记录的角度直接将双目摄像设备3101旋转至预设角度,测量前方障碍物的距离和/或检测地面的障碍。
可选地,该距离信息用于指示该终端设备与该障碍物之间的距离,以及
该处理器320具体用于:
根据该距离信息确定该距离;
在确定所述距离小于距离阈值时,确定进行所述障碍物的提示。
该距离阈值可以是系统预设的值,也可以用户自定义的值,本发明实施例并不限于此。
进一步地,终端设备300在确定针对该障碍物进行提示后,该处理器320 具体用于:
该提示设备330包括振动设备331,控制该振动设备331进行振动提示;或
该提示设备330包括声音播放设备332,控制该声音播放设备332播放预设的声音提示信息;或
该提示设备330包括显示设备333,控制该显示设备333呈现预设的文本提示信息或图像提示信息。
该振动设备331可以是振动马达371(对应手机100中的马达190中的一种),该声音播放设备332可以是扬声器3321(对应手机100中的扬声器161)或传声器3322(对应手机100中的传声器162)中的任一种,该显示设备可以如上所述的显示屏3301。
具体采用手机300#1中的各部件实现针对该障碍物的提示的方法和过程与方法200相同,因而,可以参考方法200的相关过程,此处不再赘述。
手机300#1在进行距离测量前,可选地,该处理器320还用于:
确定该终端设备300处于被使用的状态。
具体地,手机300#1处于被使用的状态,可以理解为使用手机300#1的用户正在观察手机300#1,也即用户正在低头使用手机300#1。因而,针对于行走中的使用手机300#1的用户来说,手机300#1在确定用户正在观察手机100之前,首先确定用户正在步行,可以通过加速计传感器获得用户行走的步数,当用户行走步数大于预设阈值时,就可以认为用户处于步行状态中。
其次,处理器320可以通过下述至少一种方式确定用户正在观察手机300#1:
方式1
处理器320通过陀螺仪360检测到的数据分析手机300#1是否处于左右基本水平状态,即手机300#1的旋转轴340是否与重力方向垂直或近似垂直,正如前述,手机300#1的这种姿势为是最为常见的用户使用手机的一种状态;
方式2
处理器320根据获取的相关数据判断用户的双目是否注视手机,例如,摄像设备132对用户进行拍照,处理器320通过计算照片的相关数据来检测用户的眼睛状态,判断用户的眼睛的角度,或者,用户的眼睛的方向是否为显示屏3301的方向;再例如,可以通过虹膜识别技术来确定用户的双目是 否注视手机。
方式3
处理器320通过检测存储器中的应用的进程来判断是否有应用程序被用户打开,因为,应用程序的打开,意味着用户可能正在使用应用程序,从而处于注视手机100的状态。
应理解,上述列举的确定方式仅为示意性说明,本发明实施例并不限定于此,可以根据实际应用情况对需要确定的方式进行任意变更。
基于此,可以为手机300#1配置一种步行识别模式,如图8所示,在此模式界面上,设置有自动模式和手动模式,用户可以根据实际情况自由选择。
当手机300#1中的步行模式开启后,处理器320接收到步行模式开启的指令后,控制手机300#1进行后续的测距以及提示操作。
这样,通过为终端设备配置步行识别模式,使得终端设备能够自动识别用户的行为以及运动状态,减少了用户注意力的分散,增强了用户体验。
在实现过程中,上处理器320可以实现或者执行本发明方法实施例中的公开的各步骤及逻辑框图。处理器320可以是微处理器或者该处理器也可以是任何常规的处理器,解码器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用解码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
上述的处理器320可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。
该存储器可以包括只读存储器和随机存取存储器,并向处理器410提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。
因而,本发明实施例提供的障碍物提示的终端设备,通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,一方面,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而避免了用户受伤;
另一方面,通过终端设备中现有的设备实现测距以及进行针对障碍物的智能提示,减少了终端设备对于应用软件的依赖;
另一方面,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性;
再一方面,通过自动识别用户的行为以及运动状态,减少了用户注意力的分散,增强了用户体验。
图10示出了本发明实施例的障碍物提示的终端设备400,该终端设备400测距单元410、处理单元420和提示单元430,以及,
测距单元410,用于获取该终端设备400与障碍物之间的距离信息;
该处理单元420,用于根据该距离信息,确定是否进行该障碍物的提示;
该处理单元420,还用于在确定该针对该障碍物进行提示后,控制该提示单元430进行该障碍物的提示。
因而,本发明实施例提供的障碍物提示的终端设备,终端设备通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而使得用户受伤;并且,用户不需要分散注意力就可以获知在其前方存在障碍物增强了用户体验。
可选地,该终端设备400包括测距设备,该测距设备包括该测距单元410,该测距设备具有主设备面,该测距设备用于获取在该主设备面所朝向的方向上且位于该测距设备的前方的物体的距离信息,该测距设备通过旋转轴与该终端设备的壳体相连接,以使得该测距设备能够绕该旋转轴旋转,以及,
该处理单元420具体用于:
确定该旋转轴与重力方向垂直或近似垂直;
控制该测距设备绕该旋转轴旋转,以使得该主设备面所朝向的方向与该终端设备的运动方向相同或近似相同;或
控制该测距设备绕该旋转轴旋转,以使得该主设备面所朝向的方向与重力方向垂直或近似垂直;或
控制该测距设备绕该旋转轴旋转,以使得该主设备面所朝向的方向与水平方向平行或近似平行;
通过该测距设备获取该障碍物的距离信息;
根据该距离信息,确定该终端设备与该障碍物之间的距离。
因而,通过根据终端设备的状态来旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性。
可选地,该测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
可选地,该处理单元420还用于:
确定该终端设备处于被使用的状态。
可选地,该处理单元420具体用于:
确定连接该测距设备与该终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
确定该终端设备中安装的至少一个应用处于正在打开的状态;和/或
确定使用该终端设备的用户处于双目注视该终端设备的状态。
因而,通过上述方式可以使得终端设备能够自动识别用户的行为以及运动状态,进一步增强了用户体验。
可选地,该距离信息用于指示该终端设备与该障碍物之间的距离,以及
该处理单元420具体用于:
根据该距离信息确定该距离;
在确定该距离小于或等于该距离阈值时,确定进行该障碍物的提示。
可选地,该处理单元410具体用于:
控制该提示单元430进行振动提示;或
控制该提示单元430播放预设的声音提示信息;或
控制该提示单元430呈现预设的文本提示信息或图像提示信息。
本发明实施例的障碍物提示的终端设备400可对应于本发明实施例的方法的终端设备,且该终端设备400中的各单元即模块和上述其他操作和/或功 能分别为了实现方法200中由终端设备执行的相应流程,为了简洁,此处不再累赘。
因而,本发明实施例提供的障碍物提示的终端设备,通过获取位于该终端设备前方的障碍物与该终端设备之间的距离信息,进而根据该距离信息实现针对该障碍物的智能提示,一方面,避免了用户在低头行走时使用该终端设备时碰撞障碍物不能得到及时提示的问题,从而避免了用户受伤;
另一方面,通过终端设备中现有的设备实现测距以及进行针对障碍物的智能提示,减少了终端设备对于应用软件的依赖;
另一方面,通过根据终端设备的状态旋转测距设备,实现对位于终端设备前方的障碍物的测距,大大提高了终端设备的实用性以及灵活性;
再一方面,通过自动识别用户的行为以及运动状态,减少了用户注意力的分散,增强了用户体验。
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和单元,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对 应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称为“ROM”)、随机存取存储器(Random Access Memory,简称为“RAM”)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明实施例的具体实施方式,但本发明实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明实施例的保护范围之内。因此,本发明实施例的保护范围应以权利要求的保护范围为准。

Claims (21)

  1. 一种障碍物提示的方法,其特征在于,所述方法包括:
    终端设备获取所述终端设备与障碍物之间的距离信息;
    所述终端设备根据所述距离信息,确定是否进行所述障碍物的提示;
    所述终端设备在确定针对所述障碍物进行提示后,控制所述终端设备进行所述障碍物的提示。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备包括测距设备,所述测距设备具有主设备面,所述测距设备用于获取在所述主设备面所朝向的方向上且位于所述测距设备的前方的物体的距离信息,所述测距设备通过旋转轴与所述终端设备的壳体相连接,以使得所述测距设备能够绕所述旋转轴旋转,以及,
    所述终端设备获取所述终端设备与障碍物之间的距离信息,包括:
    所述终端设备确定所述旋转轴与重力方向垂直或近似垂直;
    所述终端设备控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与所述终端设备的运动方向相同或近似相同;或
    所述终端设备控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与重力方向垂直或近似垂直;或
    所述终端设备控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与水平方向平行或近似平行;
    所述终端设备通过所述测距设备获取所述障碍物的距离信息;
    所述终端设备根据所述距离信息,确定所述终端设备与所述障碍物之间的距离。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述终端设备获取所述终端设备与障碍物之间的距离信息前,所述方法还包括:
    所述终端设备确定所述终端设备处于被使用的状态。
  4. 根据权利要求3所述的方法,其特征在于,所述终端设备确定所述终端设备处于被使用的状态,包括:
    所述终端设备确定连接所述终端设备中的测距设备与所述终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
    所述终端设备确定所述终端设备中安装的至少一个应用处于正在打开的状态;和/或
    所述终端设备确定使用所述终端设备的用户处于双目注视所述终端设备的状态。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述终端设备根据所述距离信息,确定是否进行所述障碍物的提示,包括:
    所述终端设备在确定所述距离信息指示的所述终端设备与所述障碍物之间的距离小于或等于距离阈值时,确定进行所述障碍物的提示。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述终端设备在确定针对所述障碍物进行提示后,控制所述终端设备进行所述障碍物的提示,包括:
    所述终端设备还包括振动设备,所述终端设备控制所述振动设备进行振动提示;或
    所述终端设备还包括声音播放设备,所述终端设备控制所述声音播放设备播放预设的声音提示信息;或
    所述终端设备还包括显示设备,所述终端设备控制所述显示设备呈现预设的文本提示信息或图像提示信息。
  7. 根据权利要求2至6中任一项所述的方法,其特征在于,所述测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
  8. 一种障碍物提示的终端设备,其特征在于,所述终端设备包括:测距设备、处理器和提示设备,其中,
    所述测距设备,用于获取所述终端设备与障碍物之间的距离信息;
    所述处理器,用于根据所述距离信息,确定是否进行所述障碍物的提示;
    所述处理器,还用于在确定针对所述障碍物进行提示后,控制所述提示设备进行所述障碍物的提示。
  9. 根据权利要求8所述的终端设备,其特征在于,所述测距设备具有主设备面,所述测距设备用于获取在所述主设备面所朝向的方向上且位于所述测距设备的前方的物体的距离信息,所述测距设备通过旋转轴与所述终端设备的壳体相连接,以使得所述测距设备能够绕所述旋转轴旋转,以及,
    所述处理器具体用于:
    确定所述旋转轴与重力方向垂直或近似垂直;
    控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与所述终端设备的运动方向相同或近似相同;或
    控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与重力方向垂直或近似垂直;或
    控制所述测距设备绕所述旋转轴旋转,以使所述主设备面所朝向的方向与水平方向平行或近似平行;
    根据所述测距设备获取的所述距离信息,确定所述终端设备与所述障碍物之间的距离。
  10. 根据权利要求8或9所述的终端设备,其特征在于,所述处理器还用于:
    确定所述终端设备处于被使用的状态。
  11. 根据权利要求10所述的终端设备,其特征在于,所述处理器具体用于:
    确定连接所述测距设备与所述终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
    通过所述终端设备中的存储器中安装的至少一个应用处于正在打开的状态;和/或
    通过所述终端设备中的摄像设备获取的图像,确定使用所述终端设备的用户处于双目注视所述终端设备的状态。
  12. 根据权利要求8至11中任一项所述的终端设备,其特征在于,所述距离信息用于指示所述终端设备与所述障碍物之间的距离,以及
    所述处理器具体用于:
    根据所述距离信息确定所述距离;
    在确定所述距离小于距离阈值时,确定进行所述障碍物的提示。
  13. 根据权利要求8至12中任一项所述的终端设备,其特征在于,所述处理器具体用于:
    所述提示设备包括振动设备,控制所述振动设备进行振动提示;或
    所述提示设备包括声音播放设备,控制所述声音播放设备播放预设的声音提示信息;或
    所述提示设备包括显示设备,控制所述显示设备呈现预设的文本提示信息或图像提示信息。
  14. 根据权利要求8至13中任一项所述的终端设备,其特征在于,所述测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一 种。
  15. 一种障碍物提示的终端设备,其特征在于,所述终端设备包括:测距单元、处理单元、提示单元,以及
    所述测距单元,用于获取所述终端设备与障碍物之间的距离信息;
    所述处理单元,用于根据所述距离信息,确定是否进行所述障碍物的提示;
    所述处理单元,还用于在确定所述针对所述障碍物进行提示后,控制所述提示单元进行所述障碍物的提示。
  16. 根据权利要求15所述的终端设备,其特征在于,所述终端设备包括测距设备,所述测距设备包括所述测距单元,所述测距设备具有主设备面,所述测距设备用于获取在所述主设备面所朝向的方向上且位于所述测距设备的前方的物体的距离信息,所述测距设备通过旋转轴与所述终端设备的壳体相连接,以使得所述测距设备能够绕所述旋转轴旋转,以及,
    所述处理单元具体用于:
    确定所述旋转轴与重力方向垂直或近似垂直;
    控制所述测距设备绕所述旋转轴旋转,以使得所述主设备面所朝向的方向与所述终端设备的运动方向相同或近似相同;或
    控制所述测距设备绕所述旋转轴旋转,以使得所述主设备面所朝向的方向与重力方向垂直或近似垂直;或
    控制所述测距设备绕所述旋转轴旋转,以使得所述主设备面所朝向的方向与水平方向平行或近似平行;
    通过所述测距设备获取所述障碍物的距离信息;
    根据所述距离信息,确定所述终端设备与所述障碍物之间的距离。
  17. 根据权利要求15或16所述的终端设备,其特征在于,所述处理单元还用于:
    确定所述终端设备处于被使用的状态。
  18. 根据权利要求17所述的终端设备,其特征在于,所述处理单元具体用于:
    确定连接所述测距设备与所述终端设备的壳体的旋转轴与重力方向垂直或近似垂直;和/或
    确定所述终端设备中安装的至少一个应用处于正在打开的状态;和/或
    确定使用所述终端设备的用户处于双目注视所述终端设备的状态。
  19. 根据权利要求15至18中任一项所述的终端设备,其特征在于,所述距离信息用于指示所述终端设备与所述障碍物之间的距离,以及
    所述处理单元具体用于:
    根据所述距离信息确定所述距离;
    在确定所述距离小于或等于所述距离阈值时,确定进行所述障碍物的提示。
  20. 根据权利要求15至19中任一项所述的终端设备,其特征在于,所述处理单元具体用于:
    控制所述提示单元进行振动提示;或
    控制所述提示单元播放预设的声音提示信息;或
    控制所述提示单元呈现预设的文本提示信息或图像提示信息。
  21. 根据权利要求15至20中任一项所述的终端设备,其特征在于,所述测距设备包括双目摄像设备、激光定位设备或声音定位设备中的至少一种。
PCT/CN2016/105954 2016-11-15 2016-11-15 一种障碍物提示的方法和终端设备 WO2018090202A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/105954 WO2018090202A1 (zh) 2016-11-15 2016-11-15 一种障碍物提示的方法和终端设备
CN201680059750.3A CN108353102B (zh) 2016-11-15 2016-11-15 一种障碍物提示的方法和终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/105954 WO2018090202A1 (zh) 2016-11-15 2016-11-15 一种障碍物提示的方法和终端设备

Publications (1)

Publication Number Publication Date
WO2018090202A1 true WO2018090202A1 (zh) 2018-05-24

Family

ID=62145053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105954 WO2018090202A1 (zh) 2016-11-15 2016-11-15 一种障碍物提示的方法和终端设备

Country Status (2)

Country Link
CN (1) CN108353102B (zh)
WO (1) WO2018090202A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109633550B (zh) * 2018-12-28 2020-11-13 智博汽车科技(上海)有限公司 车辆及其目标物位置确定方法与装置
CN112637421A (zh) * 2020-12-11 2021-04-09 莆田杰木科技有限公司 障碍物监测方法及移动终端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207645A (zh) * 2006-12-22 2008-06-25 乐金电子(中国)研究开发中心有限公司 雷达式障碍报警手机
CN101227539A (zh) * 2007-01-18 2008-07-23 联想移动通信科技有限公司 导盲手机及导盲方法
CN101827150A (zh) * 2009-03-06 2010-09-08 中兴通讯股份有限公司 一种具有导盲功能的手机及导盲方法
CN101945154A (zh) * 2010-08-31 2011-01-12 上海酷吧信息技术有限公司 一种具有红外线安全装置的手机
CN102523323A (zh) * 2011-12-27 2012-06-27 东莞华贝电子科技有限公司 移动终端及障碍物报警方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100652666B1 (ko) * 2004-09-01 2006-12-06 엘지전자 주식회사 이동통신 단말기의 장애물 감지 장치 및 방법
CN102685299B (zh) * 2011-03-08 2014-07-02 联想(北京)有限公司 障碍物险情提示方法和一种手持终端
CN104335260B (zh) * 2014-05-14 2017-06-20 华为技术有限公司 一种红外测距防撞方法及终端
CN104000596B (zh) * 2014-05-29 2019-10-11 上海斐讯数据通信技术有限公司 一种基于移动终端的跌倒检测方法
US10036809B2 (en) * 2014-09-26 2018-07-31 The Regents Of The University Of Michigan Real-time warning for distracted pedestrians with smartphones
CN105049600A (zh) * 2015-06-05 2015-11-11 惠州Tcl移动通信有限公司 一种基于红外测距传感器的移动终端自动提醒方法及系统
CN105139576A (zh) * 2015-07-09 2015-12-09 小米科技有限责任公司 路况提示方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207645A (zh) * 2006-12-22 2008-06-25 乐金电子(中国)研究开发中心有限公司 雷达式障碍报警手机
CN101227539A (zh) * 2007-01-18 2008-07-23 联想移动通信科技有限公司 导盲手机及导盲方法
CN101827150A (zh) * 2009-03-06 2010-09-08 中兴通讯股份有限公司 一种具有导盲功能的手机及导盲方法
CN101945154A (zh) * 2010-08-31 2011-01-12 上海酷吧信息技术有限公司 一种具有红外线安全装置的手机
CN102523323A (zh) * 2011-12-27 2012-06-27 东莞华贝电子科技有限公司 移动终端及障碍物报警方法

Also Published As

Publication number Publication date
CN108353102B (zh) 2020-10-09
CN108353102A (zh) 2018-07-31

Similar Documents

Publication Publication Date Title
CN106850938B (zh) 移动终端及其控制方法
CN108710525B (zh) 虚拟场景中的地图展示方法、装置、设备及存储介质
US10567745B2 (en) Head mount display with automatic inter-pupillary distance adjustment
CN106899801B (zh) 移动终端及其控制方法
CN107707817B (zh) 一种视频拍摄方法及移动终端
CN109101120B (zh) 图像显示的方法和装置
WO2019205881A1 (zh) 虚拟环境中的信息显示方法、装置、设备及存储介质
EP3954444A1 (en) Method and device for observing virtual article in virtual environment, and readable storage medium
CN108495045B (zh) 图像拍摄方法、装置、电子装置以及存储介质
CN109324739B (zh) 虚拟对象的控制方法、装置、终端及存储介质
US9268471B2 (en) Method and apparatus for generating directional sound
KR20210058908A (ko) 오디오 재생 및 수집 방법, 장치 및 디바이스 및 판독 가능한 저장 매체
WO2020108041A1 (zh) 耳部关键点检测方法、装置及存储介质
CN115525383A (zh) 壁纸显示方法、装置、移动终端及存储介质
CN108391058A (zh) 图像拍摄方法、装置、电子装置及存储介质
US9924088B2 (en) Camera module
WO2019137535A1 (zh) 物距测量方法及终端设备
CN111796990A (zh) 资源显示方法、装置、终端及存储介质
WO2018090202A1 (zh) 一种障碍物提示的方法和终端设备
US20220236836A1 (en) Method, apparatus and device for displaying lyric, and storage medium
CN108683812B (zh) 音量调节方法、装置以及移动终端
CN108196701B (zh) 确定姿态的方法、装置及vr设备
US10270963B2 (en) Angle switching method and apparatus for image captured in electronic terminal
CN114205701B (zh) 降噪方法、终端设备及计算机可读存储介质
CN111385525A (zh) 视频监控方法、装置、终端及系统

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: 16921661

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: 16921661

Country of ref document: EP

Kind code of ref document: A1