CN111337925A - Obstacle detection method, obstacle detection device, electronic device, and storage medium - Google Patents

Obstacle detection method, obstacle detection device, electronic device, and storage medium Download PDF

Info

Publication number
CN111337925A
CN111337925A CN202010099857.9A CN202010099857A CN111337925A CN 111337925 A CN111337925 A CN 111337925A CN 202010099857 A CN202010099857 A CN 202010099857A CN 111337925 A CN111337925 A CN 111337925A
Authority
CN
China
Prior art keywords
obstacle
electronic equipment
electronic device
position information
holding posture
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010099857.9A
Other languages
Chinese (zh)
Inventor
雍征东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010099857.9A priority Critical patent/CN111337925A/en
Publication of CN111337925A publication Critical patent/CN111337925A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/88Radar or analogous systems specially adapted for specific applications
    • G01S13/93Radar or analogous systems specially adapted for specific applications for anti-collision purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/88Radar or analogous systems specially adapted for specific applications
    • G01S13/886Radar or analogous systems specially adapted for specific applications for alarm systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/88Sonar systems specially adapted for specific applications
    • G01S15/93Sonar systems specially adapted for specific applications for anti-collision purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/93Lidar systems specially adapted for specific applications for anti-collision purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses an obstacle detection method and device, electronic equipment and a storage medium, and belongs to the technical field of detection. The method comprises the following steps that obstacle detectors are arranged on the first side edge and the second side edge which are adjacent to each other on the electronic equipment, and the method comprises the following steps: determining a holding posture of the electronic equipment; controlling an obstacle detector arranged on the first side or the second side to be in a working state based on the holding posture; acquiring position information detected by an obstacle detector in a working state; and controlling the electronic equipment to warn based on the position information. In the application, when the electronic equipment is used in the walking process of a user, the obstacle detector in the working state can be determined through the holding posture of the electronic equipment, and then the position information between the electronic equipment and an obstacle is detected through the obstacle detector, so that the electronic equipment is controlled to warn based on the position information, the user is reminded that the user is likely to contact with the obstacle, and the safety of the user using the electronic equipment is improved.

Description

Obstacle detection method, obstacle detection device, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of detection technologies, and in particular, to a method and an apparatus for detecting an obstacle, an electronic device, and a storage medium.
Background
With the rapid development of the technology, the application of the electronic device is more and more extensive. In the use process of the electronic equipment, in order to know the received information or view the concerned information in time, many users can view the electronic equipment when walking, thereby neglecting the surrounding environment and having great potential safety hazard.
Disclosure of Invention
The application provides a method and a device for detecting obstacles, electronic equipment and a storage medium, which can solve the problem of potential safety hazard when a user uses the electronic equipment in the walking process. The technical scheme is as follows:
in one aspect, an obstacle detection method is applied to an electronic device, where obstacle detectors are disposed on a first side and a second side of the electronic device, where the first side and the second side are adjacent to each other, and the method includes:
determining a holding posture of the electronic device;
controlling an obstacle detector arranged on the first side or the second side to be in a working state based on the holding posture;
acquiring position information detected by an obstacle detector in a working state, wherein the position information is used for describing a position relation between the electronic equipment and an obstacle;
and controlling the electronic equipment to warn based on the position information.
On the other hand, an obstacle detection device is provided, is applied to electronic equipment, the last adjacent first side and the second side of electronic equipment all are provided with obstacle detector, the device includes:
a determination module for determining a holding posture of the electronic device;
the first control module is used for controlling the obstacle detector arranged on the first side or the second side to be in a working state based on the holding posture;
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring position information detected by an obstacle detector in a working state, and the position information is used for describing a position relation between the electronic equipment and an obstacle;
and the second control module is used for controlling the electronic equipment to warn based on the position information.
In another aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the obstacle detection method according to the above aspect.
In another aspect, embodiments of the present application provide a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the obstacle detection method according to the above aspect.
The technical scheme provided by the application has the beneficial effects that:
when the electronic equipment is used in the walking process of a user, the obstacle detector in the working state can be determined through the holding posture of the electronic equipment, and then the position information between the electronic equipment and an obstacle is detected through the obstacle detector in the working state, so that the electronic equipment is controlled to warn based on the position information, the user is reminded that the user is likely to contact with the obstacle, and the safety of the user using the electronic equipment is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an obstacle detection method provided in an exemplary embodiment of the present application;
fig. 2 is a flowchart of an obstacle detection method provided in another exemplary embodiment of the present application;
fig. 3 is a schematic diagram of an arrangement structure of an obstacle detector according to an exemplary embodiment of the present application;
fig. 4 is a schematic structural diagram of an obstacle detection device according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, an application scenario of the present application is described below.
When a user walks, if an electronic device held by the user receives information or the user thinks that a piece of information of interest is viewed through the electronic device, the user generally views the information while walking, so that most of the attention of the user is focused on the electronic device and obstacles existing in the surrounding environment are ignored. In this way, the user can easily come into contact with obstacles, causing personal injury or even life-threatening to the user. Therefore, in order to avoid contact with an obstacle while a user is walking, an electronic device capable of detecting position information between the user and the obstacle is required.
The electronic device can be a mobile phone, an electronic watch, an iPad, a game machine and the like. The obstacle is an object which is likely to contact the user when the user walks and causes potential safety hazards to the user. The obstacle may be, for example, a stationary object, such as a stone, a tree, a utility pole, a puddle, etc., but may also be a moving object, such as a pedestrian, a vehicle in motion, etc.
After introducing the application scenarios of the present application, embodiments of the present application will be further described in detail with reference to the accompanying drawings.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Please refer to fig. 1, which shows a flowchart of an obstacle detection method according to an exemplary embodiment of the present application. The method is applied to the electronic equipment, wherein the adjacent first side and the second side of the electronic equipment are provided with the obstacle detectors, and the method comprises the following steps.
Step 101: a grip posture of the electronic device is determined.
Step 102: based on the holding posture, the obstacle detector arranged on the first side or the second side is controlled to be in a working state.
Step 103: acquiring position information detected by an obstacle detector in a working state, wherein the position information is used for describing a position relation between the electronic equipment and an obstacle;
step 104: and controlling the electronic equipment to warn based on the position information.
In the embodiment of the application, when the electronic equipment is used in the walking process of a user, the obstacle detector in the working state can be determined through the holding posture of the electronic equipment, and then the position information between the electronic equipment and an obstacle is detected through the obstacle detector in the working state, so that the electronic equipment is controlled to alarm based on the position information, the user is reminded that the user is likely to contact with the obstacle, and the safety of the user using the electronic equipment is further improved.
Please refer to fig. 2, which shows a flowchart of an obstacle detection method according to an exemplary embodiment of the present application. The method is applied to the electronic equipment.
Be provided with gravity sensor on this electronic equipment, and adjacent first side and second side all are provided with obstacle detector. The electronic device may include a housing, and at this time, as shown in fig. 3, the first side and the second side of the housing may be provided with obstacle detectors.
The obstacle detector may be a distance sensor (ultrasonic distance sensor, optical distance sensor, infrared distance sensor) or a radar sensor (millimeter wave radar sensor, centimeter wave radar sensor), or the like, or may be another sensor as long as the distance between the electronic device and the obstacle can be detected.
When the casing includes the back cover and the frame, the first side and the second side may refer to the side of the back cover or the side of the frame, or the first side may refer to the side of the back cover and the second side may refer to the side of the frame, or the first side may refer to the side of the frame and the second side may refer to the side of the back cover.
The first side edge may refer to a side edge where the top of the electronic device is located, and the second side edge may refer to a side edge where any one side portion of the electronic device is located. Of course, the first side edge may also refer to a side edge where the bottom of the electronic device is located, which is not limited in this embodiment of the application.
It should be noted that, in addition to the obstacle detectors disposed on the first side and the second side, an obstacle detector may be disposed on one side opposite to the first side and/or one side opposite to the second side, which is not limited in this embodiment of the present application.
It should be further noted that, when the back cover is provided with the obstacle detector, the obstacle detector may be disposed not only on the side of the back cover, but also in the middle area of the back cover, and the like, which is not limited in the embodiment of the present application.
The method comprises the following steps.
Step 201: the moving speed of the electronic equipment is acquired.
When the user uses the electronic device while walking, the user may contact an obstacle. Therefore, in order to avoid extra waste of energy consumption caused by detection of an obstacle when a user is in a stationary state, the moving speed of the electronic device may be obtained in the embodiment of the present application.
In some embodiments, the moving speed of the electronic device may be detected by a speed sensor provided in the electronic device, and then the moving speed detected by the speed sensor is acquired. Of course, in other embodiments, the moving speed of the user may also be detected by the smart device worn by the user, and then the obtained moving speed of the user is obtained through communication with the smart device, and the obtained moving speed of the user is used as the moving speed of the electronic device.
Wherein, the inside speed sensor that is provided with of smart machine, and smart machine can with this electronic equipment between carry out the communication.
Step 202: if the movement speed is greater than the speed threshold, the holding posture of the electronic equipment is determined.
When the moving speed is greater than the speed threshold value, the user can be determined to be in the walking process, in this case, the phenomenon that the user is in contact with the obstacle can occur, and therefore the obstacle sensor can be controlled to be in the working mode. And when the moving speed is less than the speed threshold, the obstacle detector can be determined to be in a static state, or the moving speed is low, in this case, the possibility of contact between the user and the obstacle is low, even no contact occurs, and therefore, the obstacle detector can be controlled to be in a dormant state, so that extra waste of energy consumption is avoided.
The obstacle detector is in a working state, namely the obstacle detector detects position information between the electronic equipment and an obstacle. The speed threshold may be set at the user's normal travel speed, for example, the speed threshold may be 15 meters/minute, 20 meters/minute, or 30 meters/minute, etc.
When the obstacle detectors are controlled to be in the working mode, the first side edge and the second side edge are both provided with the obstacle detectors, so that extra waste of energy consumption can be avoided, and which obstacle detector needs to be controlled to be in the working mode can be determined firstly.
The holding posture of the electronic device may be determined first, so as to determine whether the obstacle detector controlling the first side or the second side is in the operating mode based on the holding posture of the electronic device. The holding postures comprise a horizontal screen holding posture and a vertical screen holding posture.
In some embodiments, the gravitational acceleration detected by the gravity sensor may be acquired, and the holding posture of the electronic device may be determined based on the gravitational acceleration.
The gravity acceleration of the electronic equipment can be detected through a gravity sensor arranged in the electronic equipment, then the gravity acceleration detected by the gravity sensor is obtained, and the holding posture of the electronic equipment at present is determined.
It should be noted that, reference may be made to related technologies for implementing the process of determining the holding posture of the electronic device through the gravitational acceleration, and this is not specifically limited in the embodiment of the present application.
In addition, the holding posture of the electronic device may be determined in other ways besides the gravity acceleration detected by the gravity sensor, which is not limited in the embodiment of the present application.
Step 203: based on the holding posture, the obstacle detector arranged on the first side or the second side is controlled to be in a working state.
In some embodiments, when the holding posture is a vertical screen holding posture, the obstacle detector arranged on the first side edge can be controlled to be in a working state; when the holding posture is a horizontal screen holding posture, the obstacle detector arranged on the second side edge can be controlled to be in a working state. At this time, the first side may refer to a side of the top of the electronic device, or may refer to a side of the bottom of the electronic device; the second side may refer to a side of any side portion of the electronic device.
When the obstacle detector is an ultrasonic distance sensor, if the ultrasonic distance sensor is in an operating state, a distance value between the electronic device and the obstacle can be determined according to the sending time of the ultrasonic wave sent by the ultrasonic distance sensor to the front of the user, the receiving time of the received ultrasonic wave returned by the obstacle, and the propagation speed of the ultrasonic wave, so that the position information between the electronic device and the obstacle can be detected.
When the obstacle detector is a millimeter wave radar sensor, if the millimeter wave radar sensor is in a working state, an obstacle in front of a user can be detected through a beam scanning function of a millimeter wave antenna included in the millimeter wave radar sensor, so that a distance value and an azimuth angle between the electronic device and the obstacle can be detected.
In some embodiments, the millimeter Wave radar sensor may determine the distance value between the electronic device and the obstacle based on FMCW (Frequency modulated continuous Wave). In addition, when an obstacle appears in the millimeter wave beam, it is difficult to determine which direction the obstacle is in the millimeter wave beam, so that the millimeter wave beam can be narrowed, that is, the azimuth angle between the electronic device and the obstacle can be detected by the narrower millimeter wave beam radiated by the millimeter wave antenna. For example, the angle of the millimeter wave beam is 3 degrees or 5 degrees.
The frequency domain of the millimeter wave radar sensor can be 20-100 GHz, namely the frequency of the millimeter wave radiated by the millimeter wave antenna included in the millimeter wave radar sensor can be any frequency between 20-100 GHz, so that the detection efficiency and the detection accuracy of the millimeter wave radar sensor are improved.
For example, the frequency of the millimeter wave may be 30GHz, 50GHz, 80GHz, and the like, which is not limited in this embodiment of the application.
Step 204: position information detected by an obstacle detector in an operating state is acquired, and the position information is used for describing a position relationship between the electronic equipment and an obstacle.
In some embodiments, the position information between the electronic device and the obstacle may be detected in real time by the obstacle detector in an operating state, and of course, the position information between the electronic device and the obstacle may also be detected at certain time intervals, and then the position information detected by the obstacle detector is acquired.
When the obstacle detector detects the obstacle at a certain interval, in order to avoid the long interval from causing the user to contact with the obstacle within the interval, the interval may be determined based on the moving speed of the electronic device obtained in the above step. For example, when the moving speed of the electronic device is large, the interval time period may be set to be short, for example, 0.5 second, 0.8 second, 1 second, or the like, and when the moving speed of the electronic device is small, the interval time period may be set to be long, for example, 2 seconds, 4 seconds, or the like.
In some embodiments, the position information detected by the obstacle detector may include a distance value, may also include an azimuth angle, and the like. The azimuth angle is an included angle formed between a connecting line between the electronic device and the obstacle and the reference direction. The reference direction may refer to a north direction, a south direction, an east direction, and the like, as long as an azimuth angle between the electronic device and the obstacle can be determined, and the present embodiment does not limit this.
For example, when the obstacle sensor is an ultrasonic distance sensor, the detected position information may include a distance value, and when the obstacle sensor is a millimeter wave radar sensor, the detected position information may include a distance value and an azimuth angle.
Step 205: and controlling the electronic equipment to warn based on the position information.
In some embodiments, when the position information includes a distance value and the distance value included in the position information is less than the distance threshold, it indicates that the user may contact with the obstacle, and the electronic device may be controlled to warn.
When the position information comprises a distance value and an azimuth angle, the distance value comprised by the position information is smaller than a distance threshold value, and the azimuth angle comprised by the position information is smaller than an angle threshold value, the possibility that the user contacts with an obstacle is indicated, and the electronic equipment can be controlled to warn.
It should be noted that when the position information includes only the distance value, the contact between the obstacle in front of the user and the user can be avoided, and when the position information includes the distance value and the azimuth, the contact between the obstacle in front of the user and the user can be avoided, and the contact between the obstacle at the side of the user and the user can also be avoided.
Wherein the distance threshold and the angle threshold may be set based on the reaction speed of the user and the height of the user. For example, when the user has a slow response speed and a high height, the distance threshold and the angle threshold may be set to be large, and when the user has a fast response speed and a low height, the distance threshold and the angle threshold may be set to be small.
The electronic equipment can play audio information for controlling the player of the electronic equipment to warn, control the electronic equipment to vibrate to warn, or control the display screen of the electronic equipment to play animation information or character information to warn, and the like.
In the embodiment of the application, the moving speed can be detected by the speed sensor arranged on the electronic device, and when the detected moving speed is greater than the speed threshold, the gravity acceleration of the electronic device is detected by the gravity sensor, so that it is determined that the obstacle detector arranged on the adjacent first side or second side of the housing needs to be controlled to be in a working state, that is, only one obstacle detector needs to be controlled to be in the working state, so as to reduce the additional power consumption of the electronic device. In this way, the obstacle detector in the working state can be used for detecting the position information between the electronic equipment and the obstacle, so that the electronic equipment is controlled to give an alarm based on the detected position information, a user is reminded that the electronic equipment is likely to contact with the obstacle, and the safety of the user in using the electronic equipment is improved.
Referring to fig. 4, a block diagram of an obstacle detection device according to an exemplary embodiment of the present application is shown. The device can be realized becoming a part of electronic equipment through software, hardware or combination of both, and the first side that is adjacent on this electronic equipment and second side all are provided with obstacle detector, and the device includes:
a determination module 401, configured to determine a holding posture of the electronic device;
a first control module 402, configured to control an obstacle detector disposed on the first side or the second side to be in an operating state based on the holding posture;
a first obtaining module 403, configured to obtain position information detected by an obstacle detector in an operating state, where the position information is used to describe a position relationship between the electronic device and an obstacle;
and a second control module 404, configured to control the electronic device to warn based on the location information.
Optionally, a gravity sensor is arranged in the electronic device;
the determination module 401 includes:
an acquisition unit configured to acquire a gravitational acceleration detected by the gravity sensor;
a determination unit configured to determine a holding posture of the electronic apparatus based on the gravitational acceleration.
Optionally, the holding gesture includes a portrait holding and a landscape holding;
the first control module 402 is primarily for:
when the holding posture is a vertical screen holding posture, controlling an obstacle detector arranged on the first side edge to be in a working state;
when the holding posture is a horizontal screen holding posture, the obstacle detector arranged on the second side edge is controlled to be in a working state.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the moving speed of the electronic equipment;
and the execution module is used for executing the step of determining the holding posture of the electronic equipment if the moving speed is greater than the speed threshold.
Optionally, the obstacle detector is a millimeter wave radar sensor, the position information includes a distance value and an azimuth angle, and the azimuth angle is an included angle formed between a connection line between the electronic device and the obstacle and a reference direction.
Optionally, the second control module 404 is mainly configured to:
and when the distance value included by the position information is greater than the distance threshold value and the azimuth angle included by the position information is greater than the angle threshold value, controlling the electronic equipment to warn.
In the embodiment of the application, when the electronic equipment is used in the walking process of a user, the obstacle detector in the working state can be determined through the holding posture of the electronic equipment, and then the position information between the electronic equipment and an obstacle is detected through the obstacle detector in the working state, so that the electronic equipment is controlled to alarm based on the position information, the user is reminded that the user is likely to contact with the obstacle, and the safety of the user using the electronic equipment is further improved.
Referring to fig. 5, a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application is shown. The electronic device 500 includes a Central Processing Unit (CPU) 501, a system Memory 504 including a Random Access Memory (RAM) 502 and a Read-Only Memory (ROM) 503, and a system bus 505 connecting the system Memory 504 and the CPU 501. The electronic device 500 also includes a basic Input/Output system (I/O system) 506 that facilitates information transfer between the various components within the electronic device, and a mass storage device 507 for storing an operating system 513, application programs 514, and other program modules 515.
The basic input/output system 506 comprises a display 508 for displaying information and an input device 509, such as a mouse, keyboard, etc., for user input of information. Wherein the display 508 and the input device 509 are connected to the central processing unit 501 through an input output controller 510 connected to the system bus 505. The basic input/output system 506 may also include an input/output controller 510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 507 is connected to the central processing unit 501 through a mass storage controller (not shown) connected to the system bus 505. The mass storage device 507 and its associated computer-readable storage media provide non-volatile storage for the electronic device 500. That is, the mass storage device 507 may include a computer-readable storage medium (not shown) such as a hard disk or a Compact disk-Only Memory (CD-ROM) drive.
Without loss of generality, the computer-readable storage media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable storage instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 504 and mass storage device 507 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 501, the one or more programs containing instructions for implementing the method embodiments described above, and the central processing unit 501 executes the one or more programs to implement the methods provided by the various method embodiments described above.
The electronic device 500 may also operate as a remote server connected to a network via a network, such as the internet, according to various embodiments of the present application. That is, the electronic device 500 may be connected to the network 512 through the network interface unit 511 connected to the system bus 505, or may be connected to other types of networks or remote server systems (not shown) using the network interface unit 511.
The memory also includes one or more programs, which are stored in the memory, and the one or more programs include instructions for performing the steps performed by the electronic device in the methods provided by the embodiments of the present application.
The embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, where the at least one instruction is loaded and executed by the processor to implement the image processing method according to the above embodiments.
The present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the obstacle detection method according to the above embodiments.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An obstacle detection method is applied to electronic equipment, and is characterized in that obstacle detectors are arranged on a first side edge and a second side edge which are adjacent to each other on the electronic equipment, and the method comprises the following steps:
determining a holding posture of the electronic device;
controlling an obstacle detector arranged on the first side or the second side to be in a working state based on the holding posture;
acquiring position information detected by an obstacle detector in a working state, wherein the position information is used for describing a position relation between the electronic equipment and an obstacle;
and controlling the electronic equipment to warn based on the position information.
2. The method of claim 1, wherein a gravity sensor is disposed within the electronic device;
the determining the holding posture of the electronic device comprises:
acquiring the gravity acceleration detected by the gravity sensor;
determining a holding posture of the electronic device based on the gravitational acceleration.
3. The method of claim 1, wherein the holding gesture includes a portrait holding and a landscape holding;
the controlling, based on the holding posture, that the obstacle detector provided on the first side or the second side is in an operating state includes:
when the holding posture is a vertical screen holding posture, controlling the obstacle detector arranged on the first side edge to be in a working state;
and when the holding posture is a transverse screen holding posture, controlling the obstacle detector arranged on the second side edge to be in a working state.
4. The method of any of claims 1-3, wherein prior to determining the grip posture of the electronic device, further comprising:
acquiring the moving speed of the electronic equipment;
if the moving speed is greater than a speed threshold, the step of determining the holding posture of the electronic equipment is executed.
5. The method of claim 1, wherein the obstacle detector is a millimeter wave radar sensor, the position information includes a range value and an azimuth angle, and the azimuth angle is an angle formed between a line between the electronic device and the obstacle and a reference direction.
6. The method of claim 5, wherein the controlling the electronic device to alert based on the location information comprises:
and when the distance value included by the position information is greater than a distance threshold value and the azimuth included by the position information is greater than an angle threshold value, controlling the electronic equipment to warn.
7. The utility model provides an obstacle detection device, is applied to electronic equipment, its characterized in that, adjacent first side and second side all are provided with obstacle detector on the electronic equipment, the device includes:
a determination module for determining a holding posture of the electronic device;
the first control module is used for controlling the obstacle detector arranged on the first side or the second side to be in a working state based on the holding posture;
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring position information detected by an obstacle detector in a working state, and the position information is used for describing a position relation between the electronic equipment and an obstacle;
and the second control module is used for controlling the electronic equipment to warn based on the position information.
8. The apparatus of claim 7, wherein a gravity sensor is disposed within the electronic device;
the determining module comprises:
an acquisition unit configured to acquire a gravitational acceleration detected by the gravity sensor;
a determination unit configured to determine a holding posture of the electronic apparatus based on the gravitational acceleration.
9. An electronic device, comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and wherein the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the obstacle detection method according to any one of claims 1 to 6.
10. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the obstacle detection method according to any one of claims 1 to 6.
CN202010099857.9A 2020-02-18 2020-02-18 Obstacle detection method, obstacle detection device, electronic device, and storage medium Pending CN111337925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010099857.9A CN111337925A (en) 2020-02-18 2020-02-18 Obstacle detection method, obstacle detection device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010099857.9A CN111337925A (en) 2020-02-18 2020-02-18 Obstacle detection method, obstacle detection device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN111337925A true CN111337925A (en) 2020-06-26

Family

ID=71183565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010099857.9A Pending CN111337925A (en) 2020-02-18 2020-02-18 Obstacle detection method, obstacle detection device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN111337925A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335260A (en) * 2014-05-14 2015-02-04 华为技术有限公司 Infrared distance measurement collision avoidance method and terminal
CN106383351A (en) * 2016-10-21 2017-02-08 苏州工业职业技术学院 Ultrasonic intelligent ranging alarm system, rear end collision prevention method, and overtaking side direction collision prevention method
CN106908795A (en) * 2017-02-28 2017-06-30 深圳天珑无线科技有限公司 Detection device, terminal and detection method
CN109572689A (en) * 2017-09-25 2019-04-05 郑州宇通客车股份有限公司 A kind of control method of finished and system based on radar cognitive disorders object
CN110091800A (en) * 2019-03-29 2019-08-06 上海赫千电子科技有限公司 The image of vehicle electric rearview mirror is shown and danger early warning method and its equipment
CN110780288A (en) * 2019-09-29 2020-02-11 深圳市元征科技股份有限公司 Road danger prompting method and device, vehicle-mounted equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335260A (en) * 2014-05-14 2015-02-04 华为技术有限公司 Infrared distance measurement collision avoidance method and terminal
CN106383351A (en) * 2016-10-21 2017-02-08 苏州工业职业技术学院 Ultrasonic intelligent ranging alarm system, rear end collision prevention method, and overtaking side direction collision prevention method
CN106908795A (en) * 2017-02-28 2017-06-30 深圳天珑无线科技有限公司 Detection device, terminal and detection method
CN109572689A (en) * 2017-09-25 2019-04-05 郑州宇通客车股份有限公司 A kind of control method of finished and system based on radar cognitive disorders object
CN110091800A (en) * 2019-03-29 2019-08-06 上海赫千电子科技有限公司 The image of vehicle electric rearview mirror is shown and danger early warning method and its equipment
CN110780288A (en) * 2019-09-29 2020-02-11 深圳市元征科技股份有限公司 Road danger prompting method and device, vehicle-mounted equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109240576B (en) Image processing method and device in game, electronic device and storage medium
EP3792869A1 (en) Video deblurring method and apparatus, and storage medium and electronic apparatus
US9937422B2 (en) Voxel-based, real-time acoustic adjustment
CN108897836B (en) Method and device for robot to map based on semantics
EP3627461A1 (en) Information processing method and apparatus, electronic device, and storage medium
CN102540673B (en) Laser dot position determining system and method
CN107076561A (en) Indoor and outdoor transition is considered during position is determined
CN105824612A (en) Safety indication method and mobile terminal
EP3783471A1 (en) Display control method and terminal
CN102163127A (en) Gestures on a touch-sensitive display
CN112650300B (en) Unmanned aerial vehicle obstacle avoidance method and device
CN112929860B (en) Bluetooth connection method and device and electronic equipment
Li et al. Pedestrian walking safety system based on smartphone built‐in sensors
CN112163280B (en) Method, device and equipment for simulating automatic driving scene and storage medium
CN112071016A (en) Fire monitoring method, device, equipment and storage medium
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN112788583A (en) Equipment searching method and device, storage medium and electronic equipment
US9372557B2 (en) Display apparatus, input apparatus, and method for compensating coordinates using the same
EP4088795A1 (en) Rendering method and apparatus
CN107943406B (en) touch point determining method of touch screen and terminal
Tasnim Oshim et al. MechanoBeat: Monitoring interactions with everyday objects using 3D printed harmonic oscillators and ultra-wideband radar
CN111337925A (en) Obstacle detection method, obstacle detection device, electronic device, and storage medium
CN111813272A (en) Information input method and device and electronic equipment
KR102520435B1 (en) A lidar sensor-based agricultural machinery safety management system providing obstacle warning function and its control method
CN116533987A (en) Parking path determination method, device, equipment and automatic driving vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination