A control method and apparatus of an electronic device, an electronic device, and a storage medium
By acquiring reflected sound wave signals through sound sensors on electronic devices, the problem of setting user safety zones in virtual reality devices has been solved, achieving low-cost, real-time updated safety zone protection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GOERTEK INC
- Filing Date
- 2024-12-30
- Publication Date
- 2026-06-30
AI Technical Summary
When using virtual reality devices, users' physical movements may cause collisions or falls, and existing technologies make it difficult to effectively set up safe zones to ensure user safety.
By acquiring reflected sound wave signals through sound sensors on electronic devices, and using sound wave ranging technology to determine the distance and orientation between the user and obstacles, a safe zone can be dynamically set.
It requires no additional hardware, is low-cost, easy for users to operate, and can update the security zone in real time to ensure user safety.
Smart Images

Figure CN122307557A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of acoustic ranging technology, and more specifically, to a control method, apparatus, electronic device, and storage medium for an electronic device. Background Technology
[0002] Virtual reality technology is being used more and more widely, and people can immerse themselves in various scenarios through VR devices. However, when using VR devices, the user's body movement may cause dangerous situations such as collisions or falls. In order to ensure the safety of users, a safe zone needs to be set up, and users can only move within the zone. If they go outside the zone, an alarm will be triggered. Summary of the Invention
[0003] One object of the present disclosure is to provide a control method, apparatus, electronic device, and storage medium for an electronic device.
[0004] According to a first aspect of the present disclosure, a control method for an electronic device is provided, comprising:
[0005] The reflected sound wave signal is obtained by a sound sensor installed on the electronic device. The reflected sound wave signal is the signal after the first sound wave signal is reflected by the obstacle.
[0006] The distance between the user and the obstacle is determined based on the reflected sound wave signal;
[0007] The safe zone for using the electronic device is determined based on the distance.
[0008] Optionally, determining the distance between the user and the obstacle based on the reflected sound wave signal includes:
[0009] Obtain the first moment when the first acoustic signal is emitted;
[0010] The second moment when the sound sensor receives the reflected sound wave signal is obtained;
[0011] The distance between the user and the obstacle is determined based on the first time point and the second time point.
[0012] Optionally, determining the distance between the user and the obstacle based on the first time moment and the second time moment includes:
[0013] Determine the time difference between the second time point and the first time point;
[0014] The distance is obtained based on the set speed of sound and the time difference.
[0015] Optionally, the method further includes:
[0016] Determine the position of the obstacle relative to the user;
[0017] The safe zone is also determined based on the location.
[0018] Optionally, the electronic device is equipped with multiple sound sensors, and determining the location of the obstacle relative to the user includes:
[0019] Based on the first moment of emitting the first sound wave signal and the second moment of receiving the reflected sound wave signal by the multiple sound sensors, the distance between the multiple sound sensors and the obstacle is determined;
[0020] The location of the obstacle relative to the user is obtained based on the distance between each sound sensor and the obstacle, and the relative placement of the multiple sound sensors.
[0021] Optionally, the method further includes:
[0022] The outline information of the obstacle is determined based on the reflected sound wave signal;
[0023] The safety area is also determined based on the contour information.
[0024] Optionally, acquiring the reflected sound wave signal through the sound sensor provided on the electronic device includes:
[0025] Acquire the second acoustic signal received by the sound sensor;
[0026] The second acoustic signal is subjected to frequency domain analysis to obtain the spectrum of the second acoustic signal;
[0027] Based on the frequency characteristics of the first acoustic signal and the spectrum diagram, the reflected acoustic signal is obtained from the second acoustic signal.
[0028] According to a second aspect of the present disclosure, a control device for an electronic device is provided, comprising:
[0029] The signal acquisition module is used to acquire reflected sound wave signals through a sound sensor installed on the electronic device, wherein the reflected sound wave signal is the signal after the first sound wave signal is reflected by an obstacle;
[0030] A distance determination module is used to determine the distance between the user and the obstacle based on the reflected sound wave signal;
[0031] A region determination module is used to determine a safe area for using the electronic device based on the distance.
[0032] According to a third aspect of the present disclosure, an electronic device is provided, including a processor and a memory, the memory being used to store a computer program, and the processor being used to execute the method as described in the first aspect of the present disclosure under the control of the computer program.
[0033] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect of the present disclosure.
[0034] Through the embodiments of this disclosure, spatial scanning is performed using sound waves, which can set a safe area for electronic devices without the need for additional hardware equipment. This is low-cost, simple and convenient for users to operate, and the safe area can be updated in real time according to the user's movement, thus ensuring the user's safety.
[0035] Other features and advantages of the invention will become clear from the following detailed description of exemplary embodiments of the invention with reference to the accompanying drawings. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of the invention and, together with their description, serve to explain the principles of the invention.
[0037] Figure 1 This is a block diagram illustrating the hardware configuration of an electronic device that can implement embodiments of the present disclosure;
[0038] Figure 2 This is a flowchart of a control method for an electronic device according to an embodiment of the present disclosure;
[0039] Figure 3 This is a schematic diagram of a security area according to an embodiment of the present disclosure;
[0040] Figure 4 This is a block diagram of a control device for an electronic device according to an embodiment of the present disclosure;
[0041] Figure 5 This is a block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0042] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the invention.
[0043] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the invention or its application or use.
[0044] Techniques, methods, and apparatus known to those skilled in the art in the relevant field may not be discussed in detail, but where appropriate, such techniques, methods, and apparatus should be considered part of the specification.
[0045] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0046] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0047] <Hardware Configuration>
[0048] Figure 1 This is a block diagram illustrating the hardware configuration of an electronic device 1000 that can implement embodiments of the present disclosure.
[0049] Electronic device 1000 can be a virtual reality device or an augmented reality device, or it can be a portable computer, desktop computer, mobile phone, tablet computer, headphones, or other electronic products. Figure 1 As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, etc. The processor 1100 may be a CPU, a microprocessor (MCU), etc. The memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1300 may include, for example, a USB interface, a headphone jack, etc. The communication device 1400 may be capable of wired or wireless communication, specifically including Wi-Fi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The display device 1500 may be, for example, an LCD screen, a touch screen, etc. The input device 1600 may include, for example, a touch screen, a keyboard, motion input, etc. Users can input / output voice information through the speaker 1700 and the microphone 1800.
[0050] Figure 1 The electronic devices shown are merely illustrative and in no way intended to limit this disclosure, its application, or use. In embodiments applied to this disclosure, the memory 1200 of the electronic device 1000 is used to store instructions for controlling the processor 1100 to operate to perform any of the methods provided in the embodiments of this disclosure. Those skilled in the art will understand that, although... Figure 1The electronic device 1000 is shown with multiple devices shown; however, this disclosure may relate only to some of these devices. For example, electronic device 1000 may only relate to processor 1100 and memory 1200. Those skilled in the art can design instructions based on the schemes disclosed herein. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
[0051] <Method Implementation>
[0052] This disclosure provides a control method for an electronic device, which can be implemented by the electronic device.
[0053] Figure 2 This is a flowchart of a control method for an electronic device according to an embodiment of the present disclosure.
[0054] like Figure 2 As shown, the method includes the following steps S2100 to S2300:
[0055] Step S2100: The reflected sound wave signal is obtained by the sound sensor set on the electronic device. The reflected sound wave signal is the signal after the first sound wave signal is reflected by the obstacle.
[0056] In this embodiment, the first acoustic signal can be emitted by an electronic device or by a user of the electronic device; no limitation is made here.
[0057] In embodiments where the first sound wave signal is emitted by an electronic device, the electronic device may emit a specific audio signal via a speaker.
[0058] In an embodiment where the first sound wave signal is emitted by a user using an electronic device, the user may emit the first sound wave signal by clapping or whistling.
[0059] The first sound wave signal propagates in space and is reflected when it encounters an obstacle. The reflected sound wave signal can be received by a sound sensor.
[0060] In this embodiment, the electronic device may be equipped with one sound sensor or multiple sound sensors.
[0061] In this embodiment, the sound wave signal received by the sound sensor can be processed by frequency domain analysis to filter out signals outside the noise frequency range and improve the recognition accuracy of the reflected sound wave signal.
[0062] In one embodiment of this disclosure, acquiring a reflected sound wave signal through a sound sensor installed on an electronic device may include: acquiring a second sound wave signal received by the sound sensor; performing frequency domain analysis processing on the second sound wave signal to obtain a spectrum of the second sound wave signal; and acquiring the reflected sound wave signal from the second sound wave signal based on the frequency characteristics and spectrum of the first sound wave signal.
[0063] Specifically, frequency domain analysis algorithms such as FFT can be used to convert the sound wave signal received by the sound sensor into the frequency domain, obtaining the spectrum of the sound wave signal. The spectrum of the sound wave signal can clearly show the signal components at different frequencies, thus facilitating signal analysis and processing.
[0064] Furthermore, based on the frequency characteristics of the first acoustic signal, a suitable frequency range can be selected, and signals outside the noise range can be filtered out using a frequency domain filtering algorithm to obtain the reflected acoustic signal.
[0065] Step S2200: Determine the distance between the user and the obstacle based on the reflected sound wave signal.
[0066] In one embodiment of this disclosure, determining the distance between a user and an obstacle based on a reflected sound wave signal includes: acquiring a first moment when a first sound wave signal is emitted; acquiring a second moment when a sound sensor receives a reflected sound wave signal; determining the distance between the user and the obstacle based on the first moment and the second moment; and determining a safe area based on the distance.
[0067] In an embodiment where the first acoustic signal is emitted by an electronic device, the first moment may be the moment when the electronic device records the emission of the first acoustic signal.
[0068] In an embodiment where the first acoustic signal is emitted by a user using an electronic device, the first moment may be the moment when the sound sensor receives the first acoustic signal.
[0069] In one embodiment of this disclosure, determining the distance between a user and an obstacle based on a first moment and a second moment includes: determining the time difference between the second moment and the first moment; and obtaining the distance based on a set speed of sound and the time difference.
[0070] Specifically, the distance between the sound sensor and the obstacle can be obtained using the following formula:
[0071]
[0072] Where d represents the distance between the sound sensor and the obstacle, t2 represents the second moment, t1 represents the first moment, and v represents the speed of sound.
[0073] In the case of an electronic device with only one sound sensor, the distance between the sound sensor and the obstacle can be used as the distance between the user and the obstacle.
[0074] When multiple sound sensors are installed in an electronic device, the maximum, minimum, median, or average distance between the multiple sound sensors and the obstacle can be determined as the distance between the user and the obstacle.
[0075] Step S2300: Determine the safe zone for using electronic devices based on the distance between the user and the obstacle.
[0076] In one embodiment, the safety zone may be a circular area with a radius equal to the minimum distance between the user and the obstacle.
[0077] Through the embodiments of this disclosure, spatial scanning is performed using sound waves, which can set a safe area for electronic devices without the need for additional hardware equipment. This is low-cost, simple and convenient for users to operate, and the safe area can be updated in real time according to the user's movement, thus ensuring the user's safety.
[0078] In one embodiment of this disclosure, the method further includes: determining the orientation of the obstacle relative to the user; and determining a safe area based on the orientation.
[0079] In the case of an electronic device with only one sound sensor, this sound sensor can be a sensor employing a Helmholtz resonator structure. A Helmholtz resonator sensor includes a column having a first Helmholtz resonator and a second Helmholtz resonator. Each resonator has an acoustic chamber defined by a neck and an outer wall. The neck allows fluid communication between the chamber and the surrounding environment, and the necks of the two resonators point in opposite directions. Each acoustic chamber contains an input sound transducer. When reflected sound waves enter from different directions, the two resonators will respond differently to the sound. By analyzing this difference, the orientation of an obstacle relative to the user can be determined. The orientation of the two resonators defines a detection plane, and the angle of incidence within the detection plane is determined by the power ratio of the transducers within the resonator chambers.
[0080] In the case of an electronic device with only one sound sensor, the sound sensor can also analyze and process the reflected sound wave signal to obtain the location of the obstacle relative to the user.
[0081] In some embodiments, the time-domain data of the sound wave signal collected by the sound sensor can be first converted into frequency-domain data, and then the high-frequency ratio can be calculated based on the frequency-domain data. During propagation, sound from different directions experiences varying degrees of attenuation or enhancement of its high-frequency components due to reflection and scattering by the environment. By analyzing these changes in the high-frequency ratio, the location of obstacles relative to the user can be determined.
[0082] In some embodiments, factors such as the distance between the obstacle and the sound sensor, the reflective area of the obstacle, and its reflectivity affect the intensity of the reflected sound waves. Generally, obstacles that are closer to the sound sensor, have a larger reflective area, and stronger reflectivity will reflect sound waves with greater intensity. The sound sensor can determine the location of the obstacle relative to the user and the distance between the obstacle and the user based on the intensity of the received first sound wave signal.
[0083] In some embodiments, sound wave signals reflected from multiple obstacles received by a sound sensor can be considered as a mixture of multiple reflected sound wave signals. A blind source separation algorithm can be used to separate the mixed sound wave signals into individual reflected signals, and then each individual reflected signal can be analyzed to determine the obstacle and its location.
[0084] In some embodiments, the effect of beamforming can be simulated by an algorithm to form multiple virtual beams in different directions, enhance the sound signal in a specific direction, suppress interference signals in other directions, and continuously adjust the direction and parameters of the beams so that the sensor can more accurately receive reflected sound waves from a specific direction, thereby determining the location of the obstacle to which the reflected sound wave belongs.
[0085] In electronic devices, where only one sound sensor is used, this sensor can be a single-fiber material capable of converting vibrations into electrical energy. When a sound wave propagates onto the fabric, the stiffer yarns in the fabric vibrate due to the sound wave, and the sound fiber then converts these vibrations into electrical signals. By analyzing the differences in the electrical signals generated on the fabric by sound wave signals from different directions, the location of an obstacle relative to the user can be determined.
[0086] In the case of an electronic device equipped with multiple sound sensors, determining the position of an obstacle relative to a user may include: determining the distance between the multiple sound sensors and the obstacle based on a first moment and a second moment when the multiple sound sensors receive reflected sound wave signals; and obtaining the position of the obstacle relative to the user based on the distance between each sound sensor and the obstacle and the relative placement of the multiple sound sensors.
[0087] In this embodiment, the position of the obstacle can be calculated using the principle of triangulation, that is, the position of the obstacle relative to the user can be obtained.
[0088] In this embodiment, the distance between the obstacle and the user, as well as the obstacle's orientation relative to the user, can be detected based on the received reflected sound wave signal. A buffer zone is then established within this range to obtain a safe zone. The width of the buffer zone is set according to the specific environment, for example, it can be 0.3 meters.
[0089] This embodiment determines the safe zone based on the distance between the user and the obstacle, and the position of the obstacle relative to the user. The shape of the safe zone can be any shape, including irregular shapes. Considering the propagation of sound waves in all directions, it can adapt to electronic devices in various irregular terrains and environments to more accurately set the safe zone, thereby ensuring the safety of users of electronic devices.
[0090] In one embodiment of this disclosure, the method may further include: determining the outline information of an obstacle based on the reflected acoustic wave signal; and determining a safe area based on the outline information.
[0091] In this embodiment, the contour information may include shape and / or size.
[0092] In this embodiment, factors such as the material, shape, and size of different objects can cause changes in the frequency characteristics of reflected sound wave signals. For example, the sound waves reflected by a hard, smooth object may be relatively strong in the high-frequency range, while a soft, porous object absorbs high-frequency sound waves, reducing the high-frequency components of the reflected wave. After receiving the reflected sound wave signal, the sound sensor performs frequency domain analysis on the signal to extract frequency features, which can help determine the type of object from which the reflected sound wave originates.
[0093] This embodiment determines the safety zone based on the location and shape of the obstacle. The shape of the safety zone can be irregular. The setting of the irregular safety zone can take into account the propagation of sound waves in all directions, so as to adapt to the electronic device to set the safety zone more accurately in various irregular terrains and environments, thereby ensuring the safety of users of the electronic device.
[0094] In one example, the secure area could be as follows: Figure 3 As shown.
[0095] In one embodiment of this disclosure, when a safe area is obtained, motion data of the electronic device can be acquired, and based on the motion data, it can be determined whether the user has exceeded the safe area. If the user exceeds the safe area, the electronic device can be controlled to issue a collision warning.
[0096] In this embodiment, the motion data may include acceleration data collected by an accelerometer installed in the electronic device, and may also include angular acceleration data collected by a gyroscope installed in the electronic device.
[0097] In this embodiment, controlling the electronic device to issue a collision warning may include controlling the electronic device to issue a warning sound and / or controlling the electronic device to display warning text.
[0098] This embodiment determines whether a user is within a safe area based on the reflected sound wave signal received by the sound sensor, and issues a collision warning when the user goes beyond the safe area. It can ensure user safety in any irregular terrain, is easy for users to operate, and has a low cost.
[0099] <Device Embodiment>
[0100] This embodiment also provides a control device for the electronic device, such as... Figure 4 As shown, the control device 4000 of the electronic device may include a signal acquisition module 4100, a distance determination module 4200, and a region determination module 4300.
[0101] The signal acquisition module 4100 is used to acquire reflected sound wave signals through the sound sensor set on the electronic device, wherein the reflected sound wave signal is the signal after the first sound wave signal is reflected by the obstacle.
[0102] The distance determination module 4200 is used to determine the distance between the user and the obstacle based on the reflected sound wave signal.
[0103] The area determination module 4300 is used to determine a safe area for using the electronic device based on the distance.
[0104] In one embodiment of this disclosure, the region determination module 4300 is specifically used for:
[0105] Obtain the first moment when the first acoustic signal is emitted;
[0106] The second moment when the sound sensor receives the reflected sound wave signal is obtained;
[0107] The distance between the user and the obstacle is determined based on the first time point and the second time point.
[0108] In one embodiment of this disclosure, determining the distance between the user and the obstacle based on the first time moment and the second time moment includes:
[0109] Determine the time difference between the second time point and the first time point;
[0110] The distance is obtained based on the set speed of sound and the time difference.
[0111] In one embodiment of this disclosure, the control device 4000 of the electronic device further includes:
[0112] The orientation determination module is used to determine the orientation of the obstacle relative to the user;
[0113] The area determination module 4300 is also used to determine the safe area based on the orientation.
[0114] In one embodiment of this disclosure, the electronic device is provided with multiple sound sensors, and determining the position of the obstacle relative to the user includes:
[0115] Based on the first moment of emitting the first sound wave signal and the second moment of receiving the reflected sound wave signal by the multiple sound sensors, the distance between the multiple sound sensors and the obstacle is determined;
[0116] The location of the obstacle relative to the user is obtained based on the distance between each sound sensor and the obstacle, and the relative placement of the multiple sound sensors.
[0117] In one embodiment of this disclosure, the control device 4000 of the electronic device further includes:
[0118] A module for determining the outline information of the obstacle based on the reflected sound wave signal;
[0119] The region determination module 4300 is also used to determine the safe region based on the contour information.
[0120] In one embodiment of this disclosure, the signal acquisition module 4100 is used for:
[0121] Acquire the second acoustic signal received by the sound sensor;
[0122] The second acoustic signal is subjected to frequency domain analysis to obtain the spectrum of the second acoustic signal;
[0123] Based on the frequency characteristics of the first acoustic signal and the spectrum diagram, the reflected acoustic signal is obtained from the second acoustic signal.
[0124] <Electronic Device Examples>
[0125] This embodiment provides an electronic device, which in one aspect may include the aforementioned control device 4000.
[0126] On the other hand, such as Figure 5 As shown, the electronic device 5000 may include a processor 5100 and a memory 5200. The memory 5200 is used to store computer programs, and the processor 5100 is used to control the electronic device to execute the methods of any embodiment of this disclosure under the control of the computer programs.
[0127] In one example, the electronic device in this embodiment may be a virtual reality device such as smart glasses or a controller.
[0128] <Example of a readable storage medium>
[0129] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the methods described in any of the method embodiments of this disclosure.
[0130] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.
[0131] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0132] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0133] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
[0134] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0135] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0136] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0137] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.
[0138] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims
1. A control method for an electronic device, characterized in that, include: The reflected sound wave signal is obtained by a sound sensor installed on the electronic device. The reflected sound wave signal is the signal after the first sound wave signal is reflected by the obstacle. The distance between the user and the obstacle is determined based on the reflected sound wave signal; The safe zone for using the electronic device is determined based on the distance.
2. The method according to claim 1, characterized in that, Determining the distance between the user and the obstacle based on the reflected sound wave signal includes: Obtain the first moment when the first acoustic signal is emitted; The second moment when the sound sensor receives the reflected sound wave signal is obtained; The distance between the user and the obstacle is determined based on the first time point and the second time point.
3. The method according to claim 2, characterized in that, Determining the distance between the user and the obstacle based on the first time moment and the second time moment includes: Determine the time difference between the second time point and the first time point; The distance is obtained based on the set speed of sound and the time difference.
4. The method according to claim 1, characterized in that, The method further includes: Determine the position of the obstacle relative to the user; The safe zone is also determined based on the location.
5. The method according to claim 4, characterized in that, The electronic device is equipped with multiple sound sensors, and determining the location of the obstacle relative to the user includes: Based on the first moment of emitting the first sound wave signal and the second moment of receiving the reflected sound wave signal by the multiple sound sensors, the distance between the multiple sound sensors and the obstacle is determined; The location of the obstacle relative to the user is obtained based on the distance between each sound sensor and the obstacle, and the relative placement of the multiple sound sensors.
6. The method according to claim 1, characterized in that, The method further includes: The outline information of the obstacle is determined based on the reflected sound wave signal; The safety area is also determined based on the contour information.
7. The method according to claim 1, characterized in that, The step of acquiring reflected sound wave signals through a sound sensor installed on the electronic device includes: Acquire the second acoustic signal received by the sound sensor; The second acoustic signal is subjected to frequency domain analysis to obtain the spectrum of the second acoustic signal; Based on the frequency characteristics of the first acoustic signal and the spectrum diagram, the reflected acoustic signal is obtained from the second acoustic signal.
8. A control device for an electronic device, characterized in that, include: The signal acquisition module is used to acquire reflected sound wave signals through a sound sensor installed on the electronic device, wherein the reflected sound wave signal is the signal after the first sound wave signal is reflected by an obstacle; A distance determination module is used to determine the distance between the user and the obstacle based on the reflected sound wave signal; A region determination module is used to determine a safe area for using the electronic device based on the distance.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store a computer program, and the processor being used, under the control of the computer program, to execute the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, the computer program implementing the method as described in any one of claims 1 to 7 when executed by a processor.