CN111966162A - Angle measuring method and electronic equipment - Google Patents

Angle measuring method and electronic equipment Download PDF

Info

Publication number
CN111966162A
CN111966162A CN201910418166.8A CN201910418166A CN111966162A CN 111966162 A CN111966162 A CN 111966162A CN 201910418166 A CN201910418166 A CN 201910418166A CN 111966162 A CN111966162 A CN 111966162A
Authority
CN
China
Prior art keywords
electronic device
parallel
plane
main body
angle
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
CN201910418166.8A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910418166.8A priority Critical patent/CN111966162A/en
Priority to PCT/CN2020/090949 priority patent/WO2020233554A1/en
Publication of CN111966162A publication Critical patent/CN111966162A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B15/00Measuring arrangements characterised by the use of electromagnetic waves or particle radiation, e.g. by the use of microwaves, X-rays, gamma rays or electrons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment

Abstract

The embodiment of the application provides an angle measuring method applied to electronic equipment. The electronic equipment comprises a first main body and a second main body, wherein the first main body is connected with the second main body, and the first main body can be bent relative to the second main body. When the included angle between the first plane and the second plane is measured, the method comprises the following steps: detecting whether the first main body is parallel to the first plane or not in the process that the first main body is bent relative to the second main body; the electronic equipment identifies an included angle between the first main body and the second main body; the electronic equipment outputs a first angle; the first angle is an included angle between the first main body and the second main body, which is recognized by the electronic device when the first main body is parallel to the first plane and the second main body is parallel to the second plane.

Description

Angle measuring method and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to an angle measuring method and electronic equipment.
Background
With the continuous development of electronic technology, electronic devices such as mobile phones have more and more functions and more abundant experience. For example, a user may measure the angle of an object through a cell phone.
In the prior art, an implementation scheme of angle measurement is as follows:
the electronic equipment acquires an image of the angle to be measured captured by the camera. The electronic device displays an image containing the angle to be measured and two measurement lines on a display screen. The user can move the measuring lines so that the measuring lines coincide with the edges of the angle to be measured shown in the image, respectively. The electronic device calculates the angular difference between the two measurement lines to enable angular measurement of the angle to be measured.
The angle measuring method in the prior art is relatively complex to operate.
Disclosure of Invention
The angle measuring method applied to the electronic equipment and the electronic equipment provided by the embodiment of the application are convenient for a user to measure the angle of an object.
In a first aspect, an embodiment of the present application provides an angle measurement method applied to an electronic device. The electronic equipment comprises a first main body and a second main body, wherein the first main body is connected with the second main body, and the first main body can be bent relative to the second main body. The first angle to be measured is assumed to be an included angle between a first plane of the object and a second plane of the object.
A possible angle measurement method, comprising: placing the second plane parallel to the second body, and bending the first body by a user to enable the first body to be parallel to the first plane; in the process that the first main body is bent relative to the second main body, the electronic equipment detects whether the first main body is parallel to the first plane or not; the electronic device identifying an angle between the first body and the second body; the electronic device outputs an angle (i.e., a first angle) between the first body and the second body that the electronic device recognizes when the first body is parallel to the first plane and the second body is parallel to the second plane.
Another possible angle measurement method includes: placing an object to be tested between a first main body and a second main body, bending the first main body by a user to enable the first main body to be parallel to a first plane, and bending the second main body by the user to enable the second main body to be parallel to a second plane; in the process that the first main body is bent relative to the second main body, the electronic equipment detects whether the first main body is parallel to the first plane or not; in the process that the second main body is bent relative to the first main body, the electronic equipment detects whether the second main body is parallel to the second plane or not; the electronic device identifying an angle between the first body and the second body; the electronic device outputs an angle (i.e., a first angle) between the first body and the second body that the electronic device recognizes when the first body is parallel to the first plane and the second body is parallel to the second plane.
Thus, by bending the main body to be parallel to a plane constituting an angle to be measured, a user can conveniently measure the angle.
Wherein, whether the object is parallel to the plane can be detected by a parallel sensor disposed on the main body. Wherein the parallel sensor comprises a transmitter and a receiver. The transmitter is used to transmit the transmitted wave and the receiver is used to receive the reflected transmitted wave (i.e., the reflected wave). One possible method is: if the reflected wave received by the parallel sensor is larger than a first threshold value, the electronic equipment determines that the main body is parallel to the plane; the electronic device determines that the main body is not parallel to the plane if the reflected wave received by the parallel sensor is less than the second threshold. In another possible method, the electronic device determines that the main body is parallel to the plane if the reflected wave received by the parallel sensor provided to the main body is a maximum value.
Wherein the angle between the bodies can be identified in different ways. One possible way, the angle between the bodies can be identified by the acceleration sensor disposed on each body, specifically: the electronic equipment acquires a first acceleration detected by a first acceleration sensor arranged on one main body and a second acceleration detected by a second acceleration sensor arranged on the other main body; determining a first posture of the certain body according to the first acceleration and determining a second posture of the other body according to the second acceleration; according to the first posture and the second posture, the electronic device determines an angle between the certain body and the other body.
Wherein the electronic device can measure angles of more angles to be measured when the electronic device includes more bodies. The electronic equipment further comprises a third main body, the third main body is connected with the second main body, and the third main body can be bent relative to the second main body. The second angle to be measured is an included angle between the second plane of the object and the third plane of the object. The angle measurement method further includes: the user bends the third body to make the third body parallel to the third plane; in the process that the third main body is bent relative to the second main body, the electronic equipment detects whether the third main body is parallel to the third plane or not; the electronic device identifying an angle between the second body and the third body; the electronic apparatus outputs an angle (i.e., a second angle) between the second body and the third body recognized by the electronic apparatus when the second plane is parallel to the second body and the third plane is parallel to the third body.
In a possible design method, the electronic device may first detect whether the main body is parallel to the plane, and after detecting that the main body is parallel to the plane, identify an angle between the main bodies, specifically: the electronic device recognizes an included angle between the first main body and the second main body as follows: in response to the first main body being parallel to the first plane, the electronic device identifies an included angle between the first main body and the second main body; or in response to the second body being parallel to the second plane, the electronic device identifies an included angle between the first body and the second body; or in response to the first body being parallel to the first plane and the second body being parallel to the second plane, the electronic device identifies an angle between the first body and the second body. The electronic device recognizes an included angle between the second main body and the third main body as follows: in response to the third body being parallel to the third plane, the electronic device identifies an included angle of the second body and the third body; or in response to the second body being parallel to the second plane, the electronic device identifies an angle between the second body and the third body; or in response to the second body being parallel to the second plane and the third body being parallel to the third plane, the electronic device identifies an angle between the second body and the third body.
In another possible design method, the electronic device may identify an angle between the bodies in real time, and output the angle after the electronic device detects that the bodies are parallel to the plane, specifically: the first angle output by the electronic device is as follows: in response to the first body being parallel to the first plane, the electronic device outputs a first angle; or in response to the second body being parallel to the second plane, the electronic device outputs a first angle; or in response to the first body being parallel to the first plane and the second body being parallel to the second plane, the electronic device outputs the first angle. The electronic device outputs a second angle: in response to the third body being parallel to the third plane, the electronic device outputs a second angle; or in response to the second body being parallel to the second plane, the electronic device outputs a second angle; or in response to the second body being parallel to the second plane and the third body being parallel to the third plane, the electronic device outputs the second angle.
In one possible design approach, the method further comprises: if the plane is not parallel to the main body, the electronic device outputs a prompt that the plane is not parallel to the main body. Thereby prompting the user to rotate the non-parallel body to be parallel to the plane.
In a second aspect, embodiments of the present application provide an electronic device, which includes at least a first body, a second body, at least one parallel sensor, a processor, and a memory for storing a computer program, wherein the first body is connected to the second body, the first body is bendable with respect to the second body, and the computer program includes instructions. The instructions, when executed by the processor, cause the electronic device to perform a method of detecting an angle using the first body and the second body as in the first aspect. In a possible embodiment, the electronic device may further comprise a third body. The instructions, when executed by the processor, cause the electronic device to perform a method of detecting an angle using the first body, the second body, and the third body as in the first aspect.
In a third aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to any of the first aspect.
In a fourth aspect, the present application provides a computer program product for causing an electronic device to perform the method according to any of the first aspect when the computer program product is run on the electronic device.
In a fifth aspect, the present application provides a graphical user interface, specifically comprising a graphical user interface displayed by an electronic device when performing the method according to any of the first aspect.
It is to be understood that the electronic device according to the second aspect, the computer storage medium according to the third aspect, the computer program product according to the fourth aspect, and the graphical user interface according to the fifth aspect are all configured to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device according to the second aspect, the computer storage medium according to the third aspect, the computer program product according to the fourth aspect, and the graphical user interface according to the fifth aspect may refer to the beneficial effects of the corresponding method provided above, and are not repeated herein.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 4 is a schematic view of an angle between bodies of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
FIG. 6 is a schematic diagram illustrating an angle measurement method according to an embodiment of the present disclosure;
fig. 7 is a schematic view of a scene of a method for angle measurement according to an embodiment of the present disclosure;
fig. 8 is a schematic view of a scene of a method for angle measurement according to an embodiment of the present disclosure;
fig. 9 is a schematic view of a scene of a method for angle measurement according to an embodiment of the present disclosure;
fig. 10 is a schematic view of a scenario of a method for angle measurement according to an embodiment of the present application;
fig. 11 is a schematic view of a scene of a method for angle measurement according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 13 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 14 is a schematic view of a scene of another angle measurement method provided in the embodiment of the present application;
fig. 15 is a schematic view of a scene of another angle measurement method provided in the embodiment of the present application;
fig. 16 is a schematic flowchart of an angle measurement method according to an embodiment of the present disclosure.
Detailed Description
It should be noted that, in the embodiment of the present application, descriptions of "first" and "second" are used to distinguish different messages, devices, modules, and the like, and do not represent a sequential order, nor limit that "first" and "second" are different types.
The term "a and/or B" in the embodiment of the present application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, there are three cases of a alone, a and B simultaneously, and B alone. In addition, the character "/" in the embodiment of the present application generally indicates that the preceding and following related objects are in an "or" relationship.
Some of the flows described in the embodiments of the present application include operations that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel with the order in which they occur in the embodiments of the present application, and the order of the operations, such as 101, 102, etc., is merely used to distinguish between the various operations, and the order of the operations itself does not represent any order of execution. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
The angle measurement method provided by the embodiment of the application can be applied to electronic equipment. Illustratively, the electronic device may be, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a digital camera, a Personal Digital Assistant (PDA), a navigation Device, a Mobile Internet Device (MID), a vehicle-mounted Device, a smart home Device, a Wearable Device (Wearable Device), and the like.
Fig. 1 shows a schematic structural diagram of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a parallel sensor 180N, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity sensor 180G may be a proximity light sensor, an ultrasonic proximity sensor.
The proximity light sensor may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor can also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ultrasonic proximity sensor may include an ultrasonic emitter and an ultrasonic detector. The electronic apparatus 100 emits the ultrasonic wave to the outside through the ultrasonic wave emitter. The electronic apparatus 100 detects the ultrasonic wave reflected by the nearby object by the ultrasonic detector. When a sufficient transmitted wave is detected, the electronic device 100 may determine that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The parallel sensor 180N is used to detect a plane parallel to the electronic device. The parallel sensor 180N may include a transmitter and a receiver. The emitter is used for emitting light waves or sound waves; the receiver is used for receiving the reflected emitted light wave or sound wave. For convenience of explanation, the light wave or the acoustic wave emitted by the emitter will be referred to as "emission wave" hereinafter; the light wave or sound wave reflected by the object is referred to as "reflected wave".
When the plane to be detected is parallel to the electronic device, the transmitted wave is perpendicularly incident to the plane, the reflected wave returns to the parallel sensor 180N along the original path (i.e., the path of the reflected wave is the same as the path of the transmitted wave, and the direction is opposite), and the reflected wave is received by the receiver. On the contrary, when the plane to be detected is not parallel to the electronic device, the transmitted wave enters the plane at a certain angle, and the reflected wave returns in a path deviating from the original path. At this time, the path of the reflected wave deviates from the parallel sensor 180N, and the reflected wave received by the receiver is reduced to be less than that received by the receiver in parallel. It follows that by detecting the reflected wave received by the receiver, the electronic device can detect a plane parallel to the electronic device. If the reflected wave received by the receiver is greater than a predetermined first threshold value, it is equivalent to the electronic device determining that the plane is parallel to the electronic device; conversely, if the reflected wave received by the receiver is less than the predetermined second threshold, it is equivalent to the electronic device determining that the plane is not parallel to the electronic device. The first threshold may be the same as or different from the second threshold. Or, if the reflected wave received by the receiver is the maximum value, the electronic device determines that the plane is parallel to the electronic device; conversely, if the reflected wave received by the receiver is less than the maximum value, it is equivalent to the electronic device determining that the plane is not parallel to the electronic device.
It should be noted that the electronic device may not have a separate parallel sensor 180N, and the proximity sensor 180G of the electronic device may serve as the parallel sensor.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary workflow of the software and hardware of the electronic device 100 in connection with capturing a photo scene.
When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 193.
In the present embodiment, the display screen 194 may be deformable. The deformable display screen 194 may be referred to as a "flexible screen". By deformed, it is meant that a radius of curvature of a portion of the display screen 194 of the electronic device is less than a reference value. For example, the deformation may be any one of folding, bending, twisting, curling, and combinations thereof. Wherein folding and bending can be distinguished according to the degree of deformation. For example, if the display screen 194 is bent at an angle greater than some predetermined value, it may be defined as "folded". In contrast, if the display screen 194 is bent at an angle equal to or less than the predetermined value, it may be defined as "bent". For convenience of description, such bending and folding will be referred to as "bending" hereinafter. In the following embodiments, the structure of the electronic device related to the deformation of the display screen 194 will be described in more detail with reference to the drawings.
The electronic device is exemplarily illustrated as a double-folding mobile phone. Fig. 3 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure. As shown in fig. 3, the electronic apparatus 100 includes: a connection unit 301, a main body 302, a main body 303, and a display screen 194. Wherein the connecting unit 301 is used to connect the main body 302 and the main body 303. The body 302 and the body 303 may be the same size or different sizes. The thickness of the body 302 and the body 303 may be the same. The display screen 194 covers the connection unit 301, the main body 302, and the main body 303. The display screen 194 may be bent inward or outward by the connection unit to change an angle between the bodies. As shown in fig. 4(a) and 4(b), an angle a between the body 302 and the body 303 is an included angle between the body 302 and the body 303 (i.e., an angle smaller than 180 degrees).
Illustratively, as shown in fig. 5(a) and 5(b), the electronic device is in a flat state, which may also be referred to as an unfolded state. At this time, the main body 302 and the main body 303 are located on the same horizontal plane. The angle a between the body 302 and the body 303 is 180 degrees. As the user bends the display screen 194, the electronic device may be moved from a flat state to a folded state, or from a folded state to a flat state. The folded state may comprise a first folded state and/or a second folded state.
As shown in fig. 5(c) and 5(d), the electronic device is in the first folded state. At this time, the main body 302 and the main body 303 are parallel to each other, the display screen 194 faces the outside of the electronic device, and an angle α between the main body 302 and the main body 303 is 0 degree. By bending the display screen 194 outward from the flat state to the first folded state, the angle between the main body 302 and the main body 303 gradually decreases, and the angle between the main body 302 and the main body 303 decreases from 180 degrees to 0 degrees. When the display screen 194 is folded inward from the first folded state to the flat state, the angle between the main body 302 and the main body 303 gradually increases, and the angle between the main body 302 and the main body 303 increases from 0 degrees to 180 degrees.
As shown in fig. 5(e) and 5(f), the electronic device is in the second folded state. At this time, the main body 302 and the main body 303 are parallel to each other, the display screen 194 faces the inside of the electronic apparatus, and an angle α between the main body 302 and the main body 303 is 0 degree. By folding the display screen 194 inwardly from the flat state to the second folded state, the angle between the main body 302 and the main body 303 gradually decreases, and the angle between the main body 302 and the main body 303 gradually decreases from 180 degrees to 0 degrees. By bending the display screen 194 outward from the second folded state to the flat state, the angle between the main body 302 and the main body 303 gradually increases, and the angle between the main body 302 and the main body 303 increases from 0 degrees to 180 degrees.
Fig. 5 illustrates a folding cellular phone supporting 180-degree folding. It is understood that the electronic device may also support 360 degrees. At this time, the user may bend the display screen 194 inward 360 degrees from the first folded state to the second folded state, or outward 360 degrees from the second folded state to the first folded state.
The electronic device 100 may identify an angle between the bodies (e.g., an angle between the body 302 and the body 303). For example, the electronic apparatus 100 may recognize an angle between the bodies through the acceleration sensor 180E. Illustratively, the electronic apparatus 100 includes a plurality of acceleration sensors 180E, respectively provided in the respective bodies. The electronic apparatus may detect the magnitude of acceleration of each axis (e.g., x-axis, y-axis, and z-axis) of each body through an acceleration sensor provided in each body (e.g., body 302, body 303), determine the posture of each body (e.g., the posture of body 302 and the posture of body 303) from the detected magnitude of acceleration of each axis, and further determine the angle between any body and another body (e.g., determine the angle between body 302 and body 303 from the posture of body 302 and the posture of body 303).
Taking the dual-folding mobile phone described in fig. 3 as an example, the electronic device 100 may include a first acceleration sensor and a second acceleration sensor. Wherein, the first acceleration sensor is arranged on the main body 302; the second acceleration sensor is provided to the main body 303. The first acceleration sensor detects the acceleration of the body 302 in the x1, y1, and z1 axes, respectively. Illustratively, the x1, y1, and z1 axes are shown in FIG. 6(a), and the x1 axis is horizontal to the plane of the body 302; the y1 axis is the direction perpendicular to the x1 axis in the plane of the body 302; the z1 axis is a direction perpendicular to the plane of the body 302. The second acceleration sensor detects the acceleration of the main body 303 in the x2, y2, and z2 axes, respectively. Illustratively, the x2, y2, and z2 axes are shown in fig. 6(a), and the x2 axis is horizontal to the plane of the body 303; the y2 axis is the direction perpendicular to the x2 axis in the plane of the body 303; the z2 axis is a direction perpendicular to the plane of the body 303.
The electronic apparatus 100 may determine the posture of each body from the accelerations of the respective axes detected by the acceleration sensors provided in each body. For example, the electronic device 100 may determine the pose of the body 302 from the accelerations of the x1, y1, and z1 axes, and the pose of the body 303 from the accelerations of the x2, y2, and z2 axes. Examples of the inventionAlternatively, the electronic device 100 may calculate the angle θ between the z1 axis and the horizontal direction according to the accelerations of the x1, y1, and z1 axesz1Calculating an included angle theta between the z2 axis and the horizontal direction according to the acceleration of the x2, the y2 and the z2 axesz2. The calculation formula is shown as formula 1:
Figure BDA0002065088230000131
wherein a iszAcceleration of the x-axis, ayAcceleration in the y-axis, azIs the z-axis acceleration. ThetazIs the angle between the z-axis and the horizontal.
The electronic device 100 can determine an angle between two subjects according to the postures of either subject and the other subject. For example, the electronic device 100 may determine the angle between the body 302 and the body 303 from the postures of the body 302 and the body 303. It is understood that the electronic device may be oriented at an angle θ to the horizontal according to the z1 axis, as shown in FIG. 6(b)z1The angle theta between the z2 axis and the horizontalz2Calculating to obtain an angle a between the main body 302 and the main body 303, wherein a calculation formula is shown as formula 2:
ɑ=180+θZ1Z2(formula 2)
It should be noted that, in the embodiment of the present application, the angle between the main body 302 and the main body 303 is calculated according to the angle between the z1 axis and the horizontal direction and the angle between the z2 axis and the horizontal direction, and it is understood that the method of calculating the angle between the main body 302 and the main body 303 is not limited thereto. For example, the electronic device 100 may be oriented at an angle θ from the horizontal according to the x1 axisx1The angle theta between the x2 axis and the horizontalx2The angle between the main body 302 and the main body 303 is calculated, and the calculation formula is shown in formula 3:
ɑ=180-(θx1x2) (formula 3)
The electronic device 100 can calculate the included angle θ between the x1 axis and the horizontal direction according to the accelerations of the x1, the y1 and the z1 axisx1Calculating an included angle theta between the x2 axis and the horizontal direction according to the acceleration of the x2, the y2 and the z2 axesx2. The calculation formula is shown in formula 4:
Figure BDA0002065088230000141
alternatively, the electronic device 100 may determine the angle between the bodies through the gyro sensor 180B. For example, the electronic device may include a plurality of gyro sensors respectively provided in the bodies. The electronic apparatus may detect angular velocities of respective axes (e.g., x-axis, y-axis, and z-axis) of respective bodies (e.g., body 302, body 303) by gyro sensors provided in the respective bodies, may determine postures of the respective bodies (e.g., posture of body 302 and posture of body 303) from the detected angular velocities of the respective axes, and may further determine an angle between any one body and another body (e.g., determine an angle between body 302 and body 303 from the posture of body 302 and the posture of body 303).
Taking the bi-fold phone described in fig. 3 as an example, the electronic device 100 may include a first gyro sensor and a second gyro sensor. Wherein, the first gyro sensor is disposed at the main body 302; the second gyro sensor is provided in the main body 303. The electronic device 100 may calculate the posture of the main body 302 from the angular velocity detected by the first gyro sensor, and calculate the posture of the main body 303 from the angular velocity detected by the second gyro sensor; then, from the posture of the body 302 and the posture of the body 303, the electronic device may determine an angle between the body 302 and the body 303.
It should be noted that, the method for identifying the angle between the bodies in the embodiment of the present application includes, but is not limited to, the above example. For example, the electronic apparatus 100 may determine an angle between the bodies through the acceleration sensor 180E and the gyro sensor 180B. As another example, the electronic device 100 also includes a rotation sensor. The electronic apparatus 100 may determine an angle between any one body and another body by detecting a rotation angle of the bodies by a rotation sensor.
It can be understood that when a plane forming the angle to be measured is parallel to a certain main body, another plane forming the angle to be measured is parallel to another main body, and the angle to be measured and the included angle between the two main bodies are in the same direction, the angle to be measured is equal to the angle between the two main bodies. Illustratively, as shown in fig. 7, the angles to be measured are: plane 501 makes an angle β with plane 502. If the main body 302 of the electronic device is parallel to the plane 501 of the object 500 and the main body 303 of the electronic device is parallel to the plane 502 of the object, and the included angle between the first plane 501 and the second plane 502 is the same as the included angle between the main body 302 and the main body 303, the included angle β between the plane 501 of the object and the plane 502 is equal to the angle a between the main body 302 and the main body 303. Therefore, in the embodiment of the present application, by identifying the angle α between the main body 302 and the main body 303 when the main body 302 is parallel to the plane 501 and the main body 303 is parallel to the plane 502, the electronic device 100 may determine the included angle β between the plane 501 and the plane 502. That is, when a certain plane constituting an angle to be measured is parallel to a certain body and another plane constituting the angle to be measured is parallel to another body, the electronic apparatus 100 may measure the angle of the angle to be measured by recognizing an angle between the bodies. In the following embodiments, the structure of the electronic apparatus related to angle measurement will be described in more detail with reference to the drawings.
The electronic device 100 comprises a parallel sensor 600. The parallel sensor 600 may be disposed on a certain body of the electronic device 100 for detecting a parallel relationship of a certain plane constituting an angle to be measured and the body on which the parallel sensor 600 is disposed. For example, when the angle to be measured is the included angle β between the plane 501 and the plane 502, the parallel sensor disposed on the main body may be used to detect the parallel relationship between the plane 502 of the object and the main body or to detect the parallel relationship between the plane 501 and the main body. The operation of the parallel sensor 600 will be described with reference to fig. 8.
The angle of reflection is equal to the angle of incidence, as is known from the law of reflection. As shown in fig. 8(a), when a body (e.g., the body 303) provided with the parallel sensor 600 is parallel to a plane (e.g., the plane 502), a transmitted wave is perpendicularly incident to the plane, a reflected wave returns to the parallel sensor 600 along an original path (i.e., the path of the reflected wave is the same as the path of the transmitted wave, and the direction is opposite), and the reflected wave is received by a receiver. On the contrary, as shown in fig. 8(b) or fig. 8(c), when the main body is not parallel to the plane, the transmitted wave is incident on the plane at a certain angle (e.g., the incident angle is a), and the reflected wave returns along a path deviated from the original path (the angle between the path of the reflected wave and the path of the transmitted wave is twice the incident angle). At this time, the path of the reflected wave deviates from the parallel sensor 600, and the reflected wave received by the receiver is reduced less than that received by the receiver when parallel. It follows that by detecting the reflected wave received by the receiver, the electronic apparatus 100 can determine the parallel relationship of the main body (e.g., the main body 303) provided with the parallel sensor 600 and a certain plane (e.g., the plane 502). For example, when the receiver receives the most reflected waves, the electronic apparatus 100 may determine that the body (e.g., the body 303) provided with the parallel sensor 600 is parallel to the plane (e.g., the plane 502) reflecting the transmitted waves.
It is to be understood that, as shown in fig. 7, when a plane to be measured (e.g., the plane 501) and a main body to be measured (e.g., the main body 302) are placed on the same plane (e.g., a table top), the plane to be measured is parallel to the main body to be measured. For another example, as shown in fig. 8, when the plane to be measured is placed on a subject to be measured (e.g., when the object 500 is placed on the subject 302 of the electronic device 100 with the plane 501 as the bottom), the plane to be measured is parallel to the subject to be measured.
That is, in the angle detection method in the embodiment of the present application, the user may place a plane constituting the angle to be measured on a certain main body of the electronic device, or place a plane constituting the angle to be measured and the main body of the electronic device on the same plane, so that the plane constituting the angle to be measured is parallel to the main body. Then, the user may rotate another body of the electronic device so that the rotated another body is parallel to another plane constituting the angle to be measured. So that one plane constituting the angle to be measured is parallel to one main body of the electronic apparatus and the other plane constituting the angle to be measured is parallel to the other main body. At this time, the angle between the two main bodies recognized by the electronic device is the angle of the angle to be measured.
Illustratively, as shown in fig. 8, a substrate 500 having a plane 501 is placed on the main body 302 of the electronic device 100. At this time, the plane 501 is already parallel to the main body 302, and the electronic device 100 may not detect the parallel relationship between the plane 501 and the main body 302. It can be understood that when the main body 303 is parallel to the plane 502, an angle β between the plane 501 of the object and the plane 502 is equal to an angle α between the main body 302 and the main body 303. The user may bend the display screen 194 inward or outward to make the main body 303 parallel to the plane 502. For example, the user bends the display screen 194 inward from the first state (as shown in fig. 8 (b)) in which the angle a between the main body 302 and the main body 303 of the electronic device is greater than the included angle β. The user bends the display screen 194 inward, the angle between the main body 302 and the main body 303 decreases, the main body 303 and the plane 502 tend to be parallel, and the receiver receives fewer and more reflected waves until the main body 303 is parallel to the plane 502 (as shown in fig. 8 (a)), and the receiver receives the most reflected waves. Then, as the display screen 194 continues to be folded inward, the angle between the main body 302 and the main body 303 continues to decrease, and the angle a between the main body 302 and the main body 303 is smaller than the included angle β (as shown in fig. 8 (c)). As the user continues to bend the display screen 194 inwardly, the main body 303 and the flat surface 502 tend to be non-parallel from parallel, and the receiver receives less or more of the reflected waves. It can be seen that when the main body 303 of the electronic device 100 is parallel to the plane 502 of the object, the receiver receives the most reflected waves. At this time, the angle between the main body 302 and the main body 303 is equal to the angle between the plane 501 and the plane 502. That is, when the receiver receives the most reflected waves, the electronic device recognizes the angle between the main body 302 and the main body 303 to obtain the angle between the plane 501 and the plane 502, thereby implementing the angle measurement of the angle β.
Fig. 8 is used as an example for the above embodiments, and it is understood that the embodiments of the present application include, but are not limited to, the above examples. For example, as shown in fig. 9(a), the user may bend the display screen 194 outward from the electronic apparatus in a third state where the included angle between the main bodies is smaller than the angle to be measured, so that the main bodies are parallel to the plane constituting the angle to be measured. As the user continues to bend the display screen 194 outward, the main body 303 and the flat surface 502 tend to be parallel, and the receiver receives as few as more of the reflected waves. As shown in fig. 9(b), when the main body 303 and the plane 502 are parallel, the reflected wave received by the receiver is the most, and the angle between the object plane 501 and the plane 502, that is, the angle to be measured can be known by identifying the angle between the main body 302 and the main body 303.
In the above embodiment, the example is illustrated in fig. 8 and 9, and it is understood that the parallel sensor 600 may be an adjacent light sensor or an ultrasonic sensor. The parallel sensor 600 may be disposed on the same side as the display screen 194, or may be disposed on the opposite side of the display screen 194. For example, as shown in fig. 10(a), the parallel sensor 600 may be disposed on the opposite side of the main body 302 from the display screen. It can be understood that the electronic device 100 shown in fig. 10(a) can implement the angle measurement according to the electronic device described in the above embodiment, and details thereof are not repeated here. The electronic device 100 may include one or more parallel sensors 600. For example, as shown in fig. 10(b), the electronic device 100 includes two parallel sensors 600a, 600 b. Respectively provided on the main body 302 and the main body 303. It is understood that the electronic device 100 as depicted in fig. 10(b) may bend the display screen 194 inward or outward such that the main body 302 is parallel to the plane 501 and the main body 303 is parallel to the plane 502. When the main body 302 is parallel to the plane 501 constituting the angle to be measured, the receiver of the parallel sensor 600a provided on the main body 302 receives the most reflected waves. When the main body 303 is parallel to the plane 502 constituting the angle to be measured, the receiver of the parallel sensor 600b provided on the main body 303 receives the most reflected waves. At this time, the electronic apparatus 100 can know the angle of the angle to be measured by recognizing the angle between the main body 302 and the main body 303. The specific method of angle measurement is described in the above embodiments, and is not described herein again.
Optionally, the electronic device 100 may display angle information on the display screen 194 for viewing by the user. The angle information may include: an angle between the bodies recognized by the electronic device, and a result of angle measurement of the electronic device.
For example, the electronic device 100 may recognize an angle between the body 302 and the body 303 and display the angle information on the display screen 194. For example, as shown in fig. 11(a), when the angle between the body 302 and the body 303 recognized by the electronic device 100 is 60 °, the electronic device may display "60 °" on the display screen 194. When the user bends the display screen 194, the angle between the main body 302 and the main body 303 changes, and the angle information displayed on the display screen changes accordingly.
As another example, the electronic device 100 may measure an angle and display the result of the angle measurement on the display screen 194. For example, as shown in fig. 11(b), when the electronic device determines that the angle of the angle to be measured is 52 degrees, the electronic device may display "52 °" on the display screen 194.
Alternatively, the display of the measurement may not disappear as the angle between the main body 302 and the main body 303 changes, in order to facilitate the user's viewing or recording of the measurement. For example, as shown in fig. 11(c), when the electronic apparatus 100 displays the measurement result (52 °), even if the angle between the main body 302 and the main body 303 is changed (65 °), the electronic apparatus displays the angle information as the measurement result (52 °) of the angle to be measured. Alternatively, the electronic apparatus 100 may end the display of the measurement result in response to a first operation by the user. For example, as shown in fig. 11(c), the first operation may be: double clicking on the display screen 194. As shown in fig. 11(d), in response to the first operation, the electronic apparatus 100 ends the display of the measurement result, and the electronic apparatus 100 displays the angle between the subject 302 and the subject 303 recognized by the current electronic apparatus.
It is to be appreciated that the electronic device may display one or more angle information. For example, the electronic device may display the results of multiple angle measurements, or the electronic device may simultaneously display the measurements and the angles between the bodies.
Alternatively, the electronic device 100 may determine a display position of the display information so that the displayed angle information is convenient for the user to view. For example, the electronic device may determine a display position of the display information according to the motion state of each subject. As shown in fig. 10(a), when the electronic device is placed on a table with the main body 303 as the bottom, the position of the main body 303 is fixed, the user bends the main body 302 inward or outward to make the main body 303 parallel to the second plane 502, and the main body 302 is in a moving state, the electronic device can preferentially display information on a portion of the display screen 194 corresponding to the main body 302, so that the user can view the displayed angle information.
In the above embodiments, the double-folding mobile phone is taken as an example for explanation, and it can be understood that the electronic device may be connected to more main bodies through more connecting units. For example, the electronic device may be a tri-fold phone. Fig. 12 is a schematic structural diagram of another electronic device 100 according to an embodiment of the present application. As shown in fig. 12, the electronic apparatus 100 includes: a connection unit 401, a connection unit 402, a body 403, a body 404, and a body 405. The connection unit 401 is used to connect the body 403 and the body 404, and the connection unit 402 is used to connect the body 404 and the body 405. The display screen 194 covers the connection unit 401, the connection unit 402, the main body 403, the main body 404, and the main body 405. The body 403, the body 404 and the body 405 may be the same size or the same thickness. The display screen 194 may be bent inward or outward by the connection unit 401 to change an angle between the main body 403 and the main body 404, and bent inward or outward by the connection unit 402 to change an angle between the main body 404 and the main body 405.
The electronic device 100 including the same-sized bodies is exemplified in the above embodiments, and it is understood that the sizes of the bodies may be different. For example, as shown in fig. 13(a), the body 302 may be larger than the body 303. The body 403, body 404 and body 405 may also be different sizes. For example, as shown in fig. 13(b), the sum of the widths of the body 403 and the body 405 is equal to the width of the body 404.
It is understood that, similarly, the electronic device 100 may identify an angle between bodies, such as an angle between the body 403 and the body 404, an angle between the body 404 and the body 405, and an angle between the body 403 and the body 405. A method of identifying an angle between the body 403 and the body 404, a method of identifying an angle between the body 404 and the body 405, or a method of identifying an angle between the body 403 and the body 405, refer to the description in fig. 6, and are not described herein again.
It is understood that, similarly, as shown in fig. 15, the electronic device 100 may implement angle measurement of the angle to be measured by bending the display screen 194 so that any two bodies of the electronic device are respectively parallel to two planes forming the angle to be measured, and then identifying the angle between the any two bodies, which is not described herein again.
It should be noted that, when the electronic device includes N bodies, the electronic device 100 can simultaneously perform angle measurement on N-1 angles to be measured. For example, as shown in fig. 15, when the electronic device includes three bodies, the electronic device may simultaneously measure two angles to be measured. As shown in fig. 15(a), the electronic device detects whether the first body (e.g., body 403) is parallel to the first plane (e.g., plane 501); the electronic device detects whether a third body (e.g., body 405) is parallel to a third plane (e.g., plane 503); the electronic device identifying an angle between the first body and the second body; the electronic device identifies an angle between the first body and the second body (e.g., body 404). When the first main body is parallel to the first plane, the electronic equipment recognizes that the angle between the second main body and the third main body is equal to the angle beta of the first angle to be measured1(ii) a When the third plane is parallel to the third main body, the angle between the second main body and the third main body recognized by the electronic equipment is equal to the angle beta of the second angle to be measured2. Alternatively, as shown in fig. 15(b), the electronic device detects whether the second body (e.g., body 404) is parallel to the second plane (e.g., plane 502); the electronic device detects whether a third body (e.g., body 405) is parallel to a third plane (e.g., plane 503); the electronic device identifying an angle between the first body and the second body; the electronic device identifies an angle between the first body (e.g., body 403) and the second body. When the second main body is parallel to the second plane, the electronic equipment recognizes that the angle between the first main body and the second main body is equal to the angle beta of the first angle to be measured1(ii) a When the third plane is parallel to the third main body and the second plane is parallel to the second main body, the angle between the second main body and the third main body recognized by the electronic equipment is equal to the angle beta of the second angle to be measured2
The method provided by the embodiment shown in fig. 16 is applied to the electronic device provided by each of the foregoing embodiments.
As shown in fig. 16, an embodiment of the present application provides a method for measuring an angle, including:
step 1601, the electronic device detects whether at least one main body of the electronic device is parallel to at least one plane of the angle to be measured.
Assume that the angle to be measured is the angle between a first plane (e.g., plane 501) and a second plane (e.g., plane 502). The electronic device includes at least a first body (e.g., body 302) and a second body (body 303).
The electronic device detects whether a first body (e.g., body 302) of the electronic device is parallel to the first plane (e.g., plane 501) and a second body (e.g., body 303) of the electronic device is parallel to the second plane (plane 502). Alternatively, when the first body and the first plane are already parallel, the electronic device may only detect whether the second body and the second body are parallel. When the second body and the second plane are parallel, the electronic device may only detect whether the first body and the first body are parallel.
Specifically, the electronic device detects whether the main body is parallel to the plane through a parallel sensor.
For example, if the reflected wave received by the parallel sensor is greater than a predetermined threshold, the electronic device determines that the main body is parallel to the plane. Conversely, if the reflected wave received by the parallel sensor is less than a predetermined threshold, the electronic device determines that the main body is not parallel to the plane.
Alternatively, the user bends the display screen 194 inward or outward to rotate the main body so that the main body is parallel to a plane constituting the angle to be measured. As the user bends the display screen 194 inward or outward to rotate the main body, the value of the reflected wave received by the parallel sensor disposed on the main body increases from small to large and then decreases from large to large. The electronic device determines that the main body is parallel to the plane if the reflected wave received by the parallel sensor is a peak. On the contrary, if the reflected wave received by the parallel sensor is smaller than the peak value, the electronic device determines that the main body is not parallel to the plane.
Step 1602, the electronic device identifies angles between the bodies.
Specifically, the electronic device identifies an angle between the first body and the second body. The method for identifying the angle between the bodies is described in the above embodiments, and is not described herein again.
Step 1603, the electronic device outputs the angle between the bodies recognized by the electronic device when the bodies are parallel to the plane.
Specifically, when the angle to be measured is an included angle between a first plane and a second plane, the angle to be measured is an angle between the first main body and the second main body, which is recognized by the electronic device, when the first main body is parallel to the first plane and the second main body is parallel to the second plane.
For example, the electronic device may display the angle of the angle to be measured on the display screen 194. The embodiment of the present application does not limit the manner of outputting the angle of the angle to be measured. For example, the electronic device may output by voice.
It should be noted that, in the embodiment of the present application, the order of step 1601 and step 1602 is not limited, and step 1601 may be executed first, step 1602 may be executed first, or step 1601 and step 1602 may be executed simultaneously. That is, the electronic device may recognize and record an angle between the first body and the second body in real time, and output the corresponding angle between the first body and the second body after the electronic device detects that the body is parallel to a plane constituting an angle to be measured; or whether the main body is parallel to the plane forming the angle to be measured or not can be detected, and the angle between the first main body and the second main body can be identified after the main body is detected to be parallel to the plane forming the angle to be measured.
Illustratively, as shown in fig. 10(a), the electronic device includes a first body (e.g., a body 302), a second body (e.g., a body 303), a first connecting unit (e.g., a connecting unit 301) for connecting the first body and the second body, and a first parallel sensor 600 disposed at the first body. The user places the object 500 to be measured on a second body (e.g., the body 303) of the electronic apparatus 100 with a second plane (e.g., the plane 501) constituting an angle to be measured as a base. At this time, the second plane is parallel to the second body. The electronic device may not detect a parallel relationship between the second plane and the second body. The electronic device detects whether the first body (e.g., body 302) is parallel to a first plane (e.g., plane 502) that constitutes the angle to be measured. If the reflected wave received by the first parallel sensor 600 is less than the predetermined threshold, the electronic device determines that the first body is not parallel to the first plane, and the electronic device outputs a first prompt prompting that the first body is not parallel to the first plane, prompting the user to rotate the first body. The user rotates the first body and continues to output the first prompt if the reflected wave received by the first parallel sensor 600 is still less than the predetermined threshold value until the reflected wave received by the first parallel sensor 600 is greater than the predetermined threshold value, and the electronic device determines that the first body is parallel to the first plane. The electronic device identifies an angle between the first body and the second body. The electronic device outputs an angle between the first body and the second body when the first body is parallel to the first plane.
Illustratively, as shown in fig. 10(b), the electronic device includes a first body (e.g., body 302), a second body (e.g., body 303), a first connection unit (e.g., connection unit 301) for connecting the first body and the second body, a first parallel sensor (e.g., parallel sensor 600a) disposed at the first body, and a second parallel sensor (e.g., parallel sensor 600b) disposed at the second body. The electronic device detects whether the first body 302 is parallel to the first plane 501 and the second body 503 is parallel to the second plane 502.
When the first main body is not parallel to the first plane, the electronic equipment outputs a first prompt to prompt a user that the first main body is not parallel to the first plane, and prompts the user to rotate the first main body. When the second main body is not parallel to the second plane, the electronic equipment outputs a second prompt to prompt the user that the second main body is not parallel to the second plane and prompt the user to rotate the second main body. First, the user may bend the display screen 194 inward or outward to rotate the first body such that the first body is parallel to the first plane. If the reflected wave received by the first parallel sensor is smaller than the preset threshold value, the electronic equipment determines that the first main body is not parallel to the first plane, the electronic equipment continues to output the first prompt until the reflected wave received by the first parallel sensor is larger than the preset threshold value, the electronic equipment determines that the first main body is parallel to the first plane, and the electronic equipment outputs the third prompt to prompt the user that the first main body is parallel to the first plane. Then, keeping the first body unchanged, the user bends the display screen 194 inward or outward to rotate the second body so that the second body is parallel to the second plane. If the reflected wave received by the second parallel sensor is smaller than the predetermined threshold, the electronic device determines that the second main body is not parallel to the second plane, the electronic device continues to output the second prompt until the reflected wave received by the second parallel sensor is larger than the predetermined threshold, the electronic device determines that the second main body is parallel to the second plane, and the electronic device outputs the fourth prompt to prompt the user that the second main body is parallel to the second plane. Then, the electronic device recognizes an angle between the first body and the second body, and outputs the angle between the first body and the second body, that is, an angle of an angle to be measured.
Optionally, when the first body is not parallel to the first plane, the electronic device outputs a first prompt to prompt the user that the first body is not parallel to the first plane, and prompts the user to rotate the first body. When the second main body is not parallel to the second plane, the electronic equipment outputs a second prompt to prompt the user that the second main body is not parallel to the second plane and prompt the user to rotate the second main body. The user rotates the first body such that the first body is parallel to the first plane. The reflected wave received by the first parallel sensor is larger than a preset threshold value, the electronic equipment determines that the first main body is parallel to the first plane, and the electronic equipment outputs a third prompt for prompting a user that the first main body is parallel to the first plane. The electronic device starts to identify and record the angle between the first body and the second body. The user then bends the display screen 194 inward or outward to rotate the second body so that the second body is parallel to the second plane. When the second main body is parallel to the second plane, the recorded angle between the first main body and the second main body is the angle of the angle to be measured. In contrast to the above-described embodiment, it is not necessary here for the user to maintain the parallel state of the second plane and the second body. It should be noted that, in the above embodiments, the first body is rotated first, and then the second body is rotated after the first body is parallel to the first plane, it is understood that the second body may be rotated first and then the first body, or the first body and the second body may be rotated together.
In summary, the display screen 194 is bent to change the angle between the main bodies, so that the main bodies are parallel to the plane forming the angle to be measured, and then the angle to be measured can be measured by recognizing the angle between the main bodies, which is convenient for the user to measure the angle through the deformable electronic device.
The embodiment of the application discloses electronic equipment, includes: at least two bodies, a display screen; a processor; a memory; one or more sensors; an application program and a computer program. The above-described devices may be connected by one or more communication buses. Wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs comprising instructions which are operable to cause an electronic device to perform the steps of the embodiments described above. Wherein the one or more sensors may include a touch sensor, a parallel sensor or an acceleration sensor.
For example, the processor may be specifically the processor 110 shown in fig. 1, the memory may be specifically the internal memory and/or the external memory 120 shown in fig. 1, the display screen may be specifically the display screen 194 shown in fig. 1, the sensor may be specifically one or more sensors in the sensor module 180 shown in fig. 1, the touch sensor may be the touch sensor 180K shown in fig. 1, the parallel sensor may be the parallel sensor 180N shown in fig. 1, and the acceleration sensor may be the acceleration sensor 180E shown in fig. 1. The embodiment of the present application does not set any limit to this.
In addition, the embodiment of the application also provides a Graphical User Interface (GUI) on the electronic device, and the GUI specifically includes a GUI displayed by the electronic device when the electronic device executes the method.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware or any combination thereof. When implemented using a software program, may take the form of a computer program product, either entirely or partially. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (26)

1. A method for measuring an angle applied to an electronic device, wherein the electronic device comprises a first body and a second body, the first body and the second body are connected, and the first body is bendable relative to the second body; the first angle to be measured is an included angle between the first plane and the second plane;
the method comprises the following steps:
in the process that the first main body is bent relative to the second main body, the electronic equipment executes first detection, and the first detection is used for detecting whether the first main body is parallel to the first plane or not;
the electronic equipment identifies an included angle between the first main body and the second main body;
the electronic device outputs a first angle; when the first angle is that the first main body is parallel to the first plane and the second main body is parallel to the second plane, the electronic device identifies an included angle between the first main body and the second main body.
2. The method of claim 1, further comprising:
and in the process that the second main body is bent relative to the first main body, the electronic equipment executes second detection, and the second detection is used for detecting whether the second main body is parallel to the second plane or not.
3. The method of claim 1, wherein the second plane is positioned parallel to the second body.
4. A method according to any of claims 1-3, wherein the second angle to be measured is the angle between the second plane and the third plane; the electronic equipment further comprises a third main body, the third main body is connected with the second main body, and the third main body can be bent relative to the second main body;
the method further comprises the following steps:
in the process that the third main body is bent relative to the second main body, the electronic device executes a third detection, wherein the third detection is used for detecting whether the third main body is parallel to the third plane or not;
the electronic equipment identifies an included angle between the second main body and the third main body;
and the electronic equipment outputs a second angle, and when the second plane is parallel to the second main body and the third plane is parallel to the third main body, the electronic equipment identifies an included angle between the second main body and the third main body.
5. The method of any of claims 1-4, wherein the first detecting, the second detecting, and the third detecting comprise:
the electronic equipment sends the emission waves through a parallel sensor arranged on the main body;
the electronic device receives a reflected wave through the parallel sensor provided on the main body;
the electronic device determines that the main body is parallel to the plane if a reflected wave received by a parallel sensor provided to the main body is greater than a first threshold;
the electronic device determines that the body is not parallel to the plane if a reflected wave received by a parallel sensor provided to the body is smaller than a second threshold.
6. The method of any of claims 1-4, wherein the first detecting, the second detecting, and the third detecting comprise:
the electronic equipment sends the emission waves through a parallel sensor arranged on the main body;
the electronic device receives a reflected wave through the parallel sensor provided on the main body;
the electronic device determines that the main body is parallel to the plane if a reflected wave received by a parallel sensor provided to the main body is a maximum value.
7. The method according to claim 5 or 6,
the identifying of the included angle of the first body and the second body comprises:
in response to the electronic device determining that the first body is parallel to the first plane, the electronic device identifying an angle of the first body to the second body; or
In response to the electronic device determining that the second body is parallel to the second plane, the electronic device identifying an angle of the first body to the second body; or
In response to the electronic device determining that the first body is parallel to the first plane and the second body is parallel to the second plane, the electronic device identifies an angle of the first body to the second body.
8. The method according to any one of claims 5 to 7,
the identification of the included angle between the second body and the third body comprises:
in response to the electronic device determining that the third body is parallel to the third plane, the electronic device identifying an angle of the second body to the third body; or
In response to the electronic device determining that the second body is parallel to the second plane, the electronic device identifying an angle of the second body to the third body; or
In response to the electronic device determining that the second body is parallel to the second plane and the third body is parallel to the third plane, the electronic device identifies an angle of the second body to the third body.
9. The method according to claim 5 or 6,
the electronic device outputting the first angle comprises:
responsive to the electronic device determining that the first body is parallel to the first plane, the electronic device outputting the first angle; or
Responsive to the electronic device determining that the second body is parallel to the second plane, the electronic device outputting the first angle; or
In response to the electronic device determining that the first body is parallel to the first plane and the second body is parallel to the second plane, the electronic device outputs the first angle.
10. The method according to claims 5-7,
the electronic device outputting the second angle comprises:
responsive to the electronic device determining that the third body is parallel to the third plane, the electronic device outputting the second angle; or
Responsive to the electronic device determining that the second body is parallel to the second plane, the electronic device outputting the second angle; or
In response to the electronic device determining that the second body is parallel to the second plane and the third body is parallel to the third plane, the electronic device outputs the second angle.
11. The method according to any one of claims 1-10, further comprising:
if the plane is not parallel to the main body, the electronic equipment outputs a prompt;
wherein the prompt is to prompt a user that the plane is not parallel to the body.
12. The method of any one of claims 1-11, wherein the electronic device identifying the angle between the first body and the second body, or the electronic device identifying the angle between the second body and the third body, comprises:
the electronic device acquires a first acceleration detected by a first acceleration sensor provided to the main body and a second acceleration detected by a second acceleration sensor provided to the other main body;
the electronic equipment determines a first posture of the main body according to the first acceleration and determines a second posture of the other main body according to the second acceleration;
and the electronic equipment determines the included angle between the main body and the other main body according to the first posture and the second posture.
13. An electronic device, comprising:
the first body and the second body are connected, and the first body can be bent relative to the second body;
at least one parallel sensor, each parallel sensor comprising a transmitter for transmitting a transmitted wave and a receiver for receiving a reflected wave; the at least one parallel sensor is arranged on the first body, or on the second body, or on the first body and the second body;
a processor;
a memory for storing a computer program;
the computer program comprises instructions that, when executed by the processor, cause the electronic device to perform the following steps to measure an angle of an included angle of a first plane and a second plane:
performing a first detection by the at least one parallel sensor during bending of the first body relative to the second body, the first detection being used to detect whether the first body is parallel to the first plane;
identifying an angle between the first body and the second body;
outputting a first angle; when the first angle is that the first main body is parallel to the first plane and the second main body is parallel to the second plane, the electronic device identifies an included angle between the first main body and the second main body.
14. The electronic device of claim 13, wherein the instructions, when executed by the processor, cause the electronic device to further perform the steps of:
performing a second detection by the at least one parallel sensor during bending of the second body relative to the first body, the second detection being used to detect whether the second body is parallel to the second plane.
15. The electronic device of claim 13,
wherein the second plane is positioned parallel to the second body.
16. The electronic device of any of claims 13-15, further comprising a third body, the third body coupled to the second body, the third body being bendable relative to the second body;
the at least one parallel sensor is disposed at the third body;
when executed by the processor, cause the electronic device to further perform the following steps to measure an angle of an included angle of the second plane and the third plane:
performing a third detection by the at least one parallel sensor during bending of the third body relative to the second body, the third detection being used to detect whether the third body is parallel to the third plane;
identifying an angle between the second body and the third body;
and outputting a second angle, wherein when the second plane is parallel to the second main body and the third plane is parallel to the third main body, the electronic equipment identifies an included angle between the second main body and the third main body.
17. The electronic device of any of claims 13-16,
the first detection, the second detection, and the third detection include:
the electronic device determines that the main body is parallel to the plane if the reflected wave received by the parallel sensor provided to the main body is greater than a first threshold;
the electronic device determines that the main body is not parallel to the plane if the reflected wave received by the parallel sensor provided to the main body is smaller than a second threshold.
18. The electronic device of any of claims 13-16,
the first detection, the second detection, and the third detection include:
the electronic device determines that the main body is parallel to the plane if a reflected wave received by a parallel sensor provided to the main body is a maximum value.
19. The electronic device of claim 17 or 18,
the identifying of the included angle of the first body and the second body comprises:
identifying an angle of the first body to the second body in response to the electronic device determining that the first body is parallel to the first plane; or
Identifying an angle of the first body to the second body in response to the electronic device determining that the second body is parallel to the second plane; or
Identifying an angle of the first body with the second body in response to the electronic device determining that the first body is parallel to the first plane and the second body is parallel to a second plane.
20. The electronic device of any of claims 17-19,
the identification of the included angle between the second body and the third body comprises:
identifying an angle of the second body with the third body in response to the electronic device determining that the third body is parallel to the third plane; or
Identifying an angle of the second body with the third body in response to the electronic device determining that the second body is parallel to the second plane; or
Identifying an angle of the second body with the third body in response to the electronic device determining that the second body is parallel to the second plane and the third body is parallel to the third plane.
21. The electronic device of claim 17 or 18,
the electronic device outputting the first angle comprises:
outputting the first angle in response to the electronic device determining that the first body is parallel to the first plane; or
Outputting the first angle in response to the electronic device determining that the second body is parallel to the second plane; or
Outputting the first angle in response to the electronic device determining that the first body is parallel to the first plane and the second body is parallel to the second plane.
22. The electronic device of claims 17-19,
the electronic device outputting the second angle comprises:
outputting the second angle in response to the electronic device determining that the third body is parallel to the third plane; or
Outputting the second angle in response to the electronic device determining that the second body is parallel to the second plane; or
Outputting the second angle in response to the electronic device determining that the second body is parallel to the second plane and the third body is parallel to the third plane.
23. The electronic device of any of claims 13-22, wherein the instructions, when executed by the processor, cause the electronic device to further perform the steps of:
and if the plane is not parallel to the main body, outputting a prompt that the plane is not parallel to the main body.
24. The electronic device of any of claims 13-23,
the electronic device further comprises a first acceleration sensor and a second acceleration sensor;
the electronic equipment discerns the first main part with the contained angle of second main part, or the electronic equipment discerns the second main part with the contained angle of third main part includes:
the electronic device acquires a first acceleration detected by a first acceleration sensor provided to the main body and a second acceleration detected by a second acceleration sensor provided to the other main body;
the electronic equipment determines a first posture of the main body according to the first acceleration and determines a second posture of the other main body according to the second acceleration;
and the electronic equipment determines the included angle between the main body and the other main body according to the first posture and the second posture.
25. A computer-readable storage medium having instructions stored therein, which when run on an electronic device, cause the electronic device to perform the method of any of claims 1-12.
26. A computer program product comprising instructions for causing an electronic device to perform the method according to any of claims 1-12 when the computer program product is run on the electronic device.
CN201910418166.8A 2019-05-20 2019-05-20 Angle measuring method and electronic equipment Pending CN111966162A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910418166.8A CN111966162A (en) 2019-05-20 2019-05-20 Angle measuring method and electronic equipment
PCT/CN2020/090949 WO2020233554A1 (en) 2019-05-20 2020-05-19 Angle measurement method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910418166.8A CN111966162A (en) 2019-05-20 2019-05-20 Angle measuring method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111966162A true CN111966162A (en) 2020-11-20

Family

ID=73358279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910418166.8A Pending CN111966162A (en) 2019-05-20 2019-05-20 Angle measuring method and electronic equipment

Country Status (2)

Country Link
CN (1) CN111966162A (en)
WO (1) WO2020233554A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216103A (en) * 1996-02-13 1999-05-05 阿玛达美都丽股份有限公司 Angle detection method for bending machine, angle detection apparatus and angle sensor
CN102120230A (en) * 2010-12-03 2011-07-13 长沙中联重工科技发展股份有限公司 Device and method for measuring bending angle of bent piece
CN104866073A (en) * 2014-02-21 2015-08-26 联想(北京)有限公司 Information processing method, system thereof and electronic equipment comprising information processing system
CN107741761A (en) * 2017-10-19 2018-02-27 广东欧珀移动通信有限公司 Method, apparatus, terminal and the storage medium of measurement angle
US20180060010A1 (en) * 2016-08-25 2018-03-01 Samsung Electronics Co., Ltd. Electronic device including a plurality of touch displays and method for changing status thereof
CN108027650A (en) * 2015-09-11 2018-05-11 三星电子株式会社 For measuring the method for the angle between display and the electronic equipment using this method
US20180299970A1 (en) * 2017-04-18 2018-10-18 Samsung Electronics Co., Ltd Motion detection method and electronic device supporting the same
CN109375889A (en) * 2018-09-10 2019-02-22 Oppo广东移动通信有限公司 Display control method and Related product
CN109556537A (en) * 2018-11-09 2019-04-02 西安易朴通讯技术有限公司 Angle detection device and foldable electronic
CN109671356A (en) * 2019-01-03 2019-04-23 京东方科技集团股份有限公司 A kind of collapsible display device and its control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100575747B1 (en) * 2003-10-29 2006-05-03 엘지전자 주식회사 Folder-type mobile terminal with measurement function and measurement method using it
KR20130091196A (en) * 2012-02-07 2013-08-16 삼성전자주식회사 Folder type apparatus and control method thereof
KR102056898B1 (en) * 2013-01-22 2019-12-18 삼성디스플레이 주식회사 Flexible display and method for measuring angle of the same
CN109682327B (en) * 2019-01-25 2022-01-18 Oppo广东移动通信有限公司 Angle measuring device and electronic apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216103A (en) * 1996-02-13 1999-05-05 阿玛达美都丽股份有限公司 Angle detection method for bending machine, angle detection apparatus and angle sensor
CN102120230A (en) * 2010-12-03 2011-07-13 长沙中联重工科技发展股份有限公司 Device and method for measuring bending angle of bent piece
CN104866073A (en) * 2014-02-21 2015-08-26 联想(北京)有限公司 Information processing method, system thereof and electronic equipment comprising information processing system
CN108027650A (en) * 2015-09-11 2018-05-11 三星电子株式会社 For measuring the method for the angle between display and the electronic equipment using this method
US20180060010A1 (en) * 2016-08-25 2018-03-01 Samsung Electronics Co., Ltd. Electronic device including a plurality of touch displays and method for changing status thereof
US20180299970A1 (en) * 2017-04-18 2018-10-18 Samsung Electronics Co., Ltd Motion detection method and electronic device supporting the same
CN107741761A (en) * 2017-10-19 2018-02-27 广东欧珀移动通信有限公司 Method, apparatus, terminal and the storage medium of measurement angle
CN109375889A (en) * 2018-09-10 2019-02-22 Oppo广东移动通信有限公司 Display control method and Related product
CN109556537A (en) * 2018-11-09 2019-04-02 西安易朴通讯技术有限公司 Angle detection device and foldable electronic
CN109671356A (en) * 2019-01-03 2019-04-23 京东方科技集团股份有限公司 A kind of collapsible display device and its control method

Also Published As

Publication number Publication date
WO2020233554A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN110058777B (en) Method for starting shortcut function and electronic equipment
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
CN109559270B (en) Image processing method and electronic equipment
CN111666119A (en) UI component display method and electronic equipment
CN113994317A (en) User interface layout method and electronic equipment
CN110543287A (en) Screen display method and electronic equipment
WO2021258814A1 (en) Video synthesis method and apparatus, electronic device, and storage medium
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
WO2021082815A1 (en) Display element display method and electronic device
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
CN112751954A (en) Operation prompting method and electronic equipment
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
CN113452945A (en) Method and device for sharing application interface, electronic equipment and readable storage medium
WO2022105702A1 (en) Method and electronic device for saving image
CN112437341B (en) Video stream processing method and electronic equipment
CN110058729B (en) Method and electronic device for adjusting sensitivity of touch detection
CN115914461A (en) Position relation identification method and electronic equipment
CN115032640B (en) Gesture recognition method and terminal equipment
CN114995715B (en) Control method of floating ball and related device
CN111982037B (en) Height measuring method and electronic equipment
CN113407300B (en) Application false killing evaluation method and related equipment
CN113970965A (en) Message display method and electronic equipment
WO2020233554A1 (en) Angle measurement method and electronic device
WO2022166550A1 (en) Data transmission method and electronic device
CN113905334B (en) Information sharing method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201120

RJ01 Rejection of invention patent application after publication