WO2020233581A1 - Procédé de mesure de hauteur et dispositif électronique - Google Patents

Procédé de mesure de hauteur et dispositif électronique Download PDF

Info

Publication number
WO2020233581A1
WO2020233581A1 PCT/CN2020/091180 CN2020091180W WO2020233581A1 WO 2020233581 A1 WO2020233581 A1 WO 2020233581A1 CN 2020091180 W CN2020091180 W CN 2020091180W WO 2020233581 A1 WO2020233581 A1 WO 2020233581A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
measured
contact
distance
main body
Prior art date
Application number
PCT/CN2020/091180
Other languages
English (en)
Chinese (zh)
Inventor
卞苏成
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020233581A1 publication Critical patent/WO2020233581A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/02Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C5/00Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Definitions

  • the embodiments of the present invention relate to the field of electronic technology, and in particular to a method and electronic equipment for measuring height.
  • a virtual measuring ruler 101 is displayed on the display screen of the electronic device.
  • the user can measure the height of the object 102 through the ruler 101.
  • the user aligns the "0" scale of the ruler 101 with the starting point of the measurement target, and reads the value corresponding to the end point of the measurement target to achieve height measurement.
  • the height of the measurement target is 8.5 cm.
  • the embodiments of the present application provide a method and an electronic device for measuring height, which facilitate users to measure the height of an object.
  • an embodiment of the present application provides a height measurement method applied to an electronic device.
  • the electronic device includes at least a first body, a second body, and a first connecting shaft connecting the first body and the second body.
  • the first body and the second body surround the first body.
  • the connecting shaft can be rotated.
  • a possible height measurement method The object to be measured is placed on the first body, and the user rotates the second body to make the second body contact the object to be measured.
  • the method specifically includes: electronic equipment detecting the object to be measured Whether the object is in contact with the second body; the electronic device recognizes the angle between the first body and the second body; when the object to be measured is in contact with the second body, the electronic device recognizes the contact point of the object to be measured and the second body to the first connection The distance of the axis; the electronic device obtains the height of the object to be measured according to the aforementioned included angle and the aforementioned distance; the electronic device outputs the height of the object to be measured.
  • Another possible height measurement method is to place the object to be measured between the first body and the second body, and the user rotates the first body and/or the second body to make the object to be measured and the first body and the second body respectively Contact
  • the method specifically includes: the electronic device detects whether the object to be measured is in contact with the first body; the electronic device detects whether the object to be measured is in contact with the second body; the electronic device detects the clip between the first body and the second body Angle; when the object to be measured is in contact with the first body, the electronic device recognizes the first distance from the first contact point of the object to be measured and the first body to the first connecting axis; between the object to be measured and the second body When making contact, the electronic device recognizes the second distance between the object to be measured and the second contact of the second body to the first connecting axis; the electronic device obtains the height of the object to be measured according to the included angle, the first distance and the second distance.
  • L 2 is the first distance from the first contact to the first connecting shaft
  • L 3 is the second distance from the second contact to the first connecting shaft
  • is the angle between the first body and the second body.
  • the user can conveniently measure the height of the object.
  • the angle between the subjects can be identified in different ways.
  • One possible way is to identify whether the object to be measured is in contact with the main body through a pressure sensor.
  • the electronic device can first detect whether it is in contact with the object to be measured, and after the electronic device detects contact with the object to be measured, the angle between the first body and the second body can be identified, specifically: The electronic device recognizes the included angle between the first body and the second body: in response to the object to be measured contacting the second body, the electronic device recognizes the included angle between the first body and the second body. The above-mentioned electronic device recognizes the included angle between the first body and the second body: in response to the object to be measured contacting the second body and the object to be measured contacts the first body, the electronic device recognizes the clip between the first body and the second body. angle.
  • the electronic device can trigger the detection of whether it is in contact with the object to be measured in response to the first input of the user, specifically: the electronic device receives the first input; in response to the first input, the electronic device detects Whether the object to be measured is in contact with the main body.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes a first body, a second body, a first connecting shaft, a processor, and a memory for storing computer programs.
  • the first connecting shaft is used to connect the first body and the second body, the first body and the second body can rotate around the first connecting shaft;
  • the computer program includes instructions, when the instructions are executed by the processor, the electronic device is executed The method of any one of the first aspect.
  • the present application provides a computer storage medium including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the method described in any one of the first aspect.
  • this application provides a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute the method described in any one of the first aspect.
  • the present application provides a graphical user interface, which specifically includes a graphical user interface displayed when an electronic device executes any method as in the first aspect.
  • the electronic equipment described in the second aspect, the computer storage medium described in the third aspect, the computer program product described in the fourth aspect, and the graphical user interface described in the fifth aspect provided above are all used to execute
  • the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
  • Figure 1 shows a method of measuring height in the prior art.
  • FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 3 is a software structure block diagram of an electronic device provided by an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of yet another electronic device provided by an embodiment of this application.
  • FIG. 6 is a schematic diagram of a scene of a method for measuring height according to an embodiment of this application.
  • FIG. 7 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of the application.
  • FIG. 8 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of the application.
  • FIG. 9 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of this application.
  • FIG. 10 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of this application.
  • FIG. 11 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of this application.
  • FIG. 12 is a schematic structural diagram of yet another electronic device provided by an embodiment of this application.
  • FIG. 13 is a schematic structural diagram of another electronic device provided by an embodiment of this application.
  • FIG. 14 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of this application.
  • 15 is a schematic flowchart of a method for measuring height provided by an embodiment of this application.
  • FIG. 16 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of the application.
  • FIG. 17 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of this application.
  • FIG. 18 is a schematic diagram of a scene of yet another method for measuring height according to an embodiment of the application.
  • a and/or B in the embodiments of the present application is merely an association relationship describing associated objects, indicating that there can be three types of relationships, for example, there may be three types of relationships, such as A alone, A and B at the same time, and B alone.
  • the character "/" in the embodiment of the present application generally indicates that the associated objects before and after are in an "or" relationship.
  • the method for measuring height can be applied to electronic equipment.
  • the electronic device may be, for example, a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), a digital camera, a personal digital assistant (PDA for short), a navigation device, and a mobile Internet Device (Mobile Internet Device, MID), vehicle-mounted device or wearable device (Wearable Device), etc.
  • FIG. 2 shows a schematic diagram of the structure of the 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, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transmitter receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous transmitter receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • 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 charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed 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.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • 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 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to 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, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • the capacitance of that point changes.
  • the pressure sensor 180A can detect the touched position and output the coordinates of the touched point.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G 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 uses a photodiode to detect infrared reflected light from nearby objects. 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 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can 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 call and data communication.
  • the electronic device 100 adopts an eSIM, that is, 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 adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes a layered Android system as an example to illustrate the software structure of the electronic device 100.
  • FIG. 3 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains 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 the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • the display screen 194 may be deformable.
  • the deformable display screen 194 may be referred to as a "flexible screen.”
  • Deformation means that the radius of curvature of a part of the display screen 194 of the electronic device is smaller than the reference value.
  • the deformation may be any one of bending, twisting, curling, and combinations thereof.
  • 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.
  • FIG. 4 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the application.
  • the electronic device 100 includes a connection unit 301, a main body 302, a main body 303, and a display screen 194.
  • the connecting unit 301 is used to connect the main body 302 and the main body 303.
  • the size of the main body 302 and the main body 303 may be the same or different.
  • the thickness of the main body 302 and the main body 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 can be bent inward or outward through the connecting unit to change the angle between the main bodies.
  • the angle ⁇ between the main body 302 and the main body 303 is the included angle between the main body 302 and the main body 303 (ie, an angle less than 180 degrees).
  • the electronic device is in a flat state, which may also be referred to as an unfolded state.
  • the main body 302 and the main body 303 are located on the same horizontal plane.
  • the angle ⁇ between the main body 302 and the main body 303 is 180 degrees.
  • the electronic device may change from a flat state to a folded state, or from a folded state to a flat state.
  • the electronic device is in a folded state.
  • the main body 302 and the main body 303 are parallel to each other, the display screen 194 faces the inside of the electronic device, and the angle ⁇ between the main body 302 and the main body 303 is 0 degree.
  • the display screen 194 is bent inward from the flat state to the folded state, the main body 302 and/or the main body 303 rotates inwardly around the axis of the connecting unit (shown by the dotted line in Figure 5(a)), the angle between the main body 302 and the main body 303 It gradually becomes smaller, and the angle between the main body 302 and the main body 303 gradually decreases from 180 degrees to 0 degrees.
  • the main body 303 and/or the main body 303 rotate outwards around the axis of the connecting unit, the angle between the main body 302 and the main body 303 gradually increases, and the main body 302 and the main body 303 The angle increased from 0 degrees to 180 degrees.
  • the object 500 to be measured is placed on any main body of the electronic device (eg, main body 302), and the other main body of the electronic device (eg, main body) is bent inwardly. 303), so that the other main body rotates around the connecting unit (for example, the connecting unit 301) until the object 500 to be measured contacts the other main body.
  • the object 500 to be measured is in contact with the main body 303, and the contact point is a point 600.
  • the calculation formula for the height h of the object to be measured is shown in Equation 1:
  • is the angle between two main bodies (for example, the angle between main body 302 and main body 303).
  • FIG 6 (d) shown in FIG, L 1 is a contact point (e.g., point 600) to the connection unit (e.g., unit 301 is connected) distance.
  • the distance from the contact to the connecting unit refers to the distance from the contact to the axis of the connecting unit.
  • the axis of the connecting unit may be referred to as a connecting shaft.
  • the height h of the object to be measured can be calculated.
  • the electronic device 100 can detect the position of the contact point (eg, point 600) through the pressure sensor 180A.
  • the main body 303 rotates inward about the axis of the connecting unit 301 to contact the object 500, a force acts on the pressure sensor 180A.
  • the electronic device 100 can determine the position of the contact according to the capacitance change of each point detected by the pressure sensor, and output the coordinates of the contact.
  • the electronic device 100 may include a plurality of pressure sensors 180A, which are respectively disposed on each main body.
  • the electronic device may include a pressure sensor 700a and a pressure sensor 700b.
  • the pressure sensor 700a is disposed on the main body 302, and the pressure sensor 700b is disposed on the main body 303.
  • the capacitance of the point changes, and the pressure sensor 700a or the pressure sensor 700b determines the position of the point and outputs the coordinates of the point.
  • x 1 axis is the horizontal direction of the plane where the main body 302 is located; y 1 axis is the direction perpendicular to the x 1 axis in the plane where the main body 302 is located; x2 axis Is the horizontal direction of the plane where the main body 303 is located; the y2 axis is the direction perpendicular to the x2 axis in the plane where the main body 303 is located.
  • the object 500 to be measured is placed on the main body 302, the main body 303 is bent inward, and the main body 303 rotates inwardly around the axis of the connecting unit 301 until it comes into contact with the object 500. 600, the capacitance at the point 600 changes, the pressure sensor 700b determines the position of the point 600, and outputs the coordinates (x, y) of the point 600. It can be understood that, at this time, the distance L 1 is the abscissa x of the touch point (eg, point 600).
  • the pressure sensor provided on the multiple main bodies may be one pressure sensor.
  • the electronic device may include a pressure sensor 701, and the pressure sensor 701 is disposed on the main body 302 and the main body 303.
  • the pressure sensor 701 determines the position of the point and outputs the coordinates of the point.
  • the coordinate system is shown in Fig. 8(a) and Fig. 8(c)
  • the x 3 axis is the horizontal direction of the plane where the display screen 194 is located
  • the y 3 axis is the direction perpendicular to the x 3 axis in the plane where the display screen 194 is located.
  • the object 500 to be measured is placed on the main body 302, the main body 303 is bent inward, and the main body 303 rotates inward around the axis of the connecting unit 301 until it comes into contact with the object, and a force acts on the point 600 ,
  • the capacitance at the point 600 changes, the pressure sensor 701 determines the position of the point 600, and outputs the coordinates (x, y) of the point 600.
  • the distance L 1 is the difference between the abscissa x of the touch point (eg, point 600) and the abscissa x of the touch point (eg, point 600).
  • the electronic device can identify the distance L 1 from the contact point to the connection unit through the pressure sensor.
  • the electronic device 100 can recognize the angle between the main bodies (for example, the angle between the main body 302 and the main body 303). For example, the electronic device 100 may recognize the angle between the subjects through the acceleration sensor 180E.
  • the electronic device 100 includes a plurality of acceleration sensors 180E, which are respectively disposed in each main body.
  • the electronic device can detect the acceleration of each axis (e.g., x-axis, y-axis, and z-axis) of each main body through the acceleration sensor provided in each main body (eg, main body 302, main body 303), and according to the detected acceleration of each axis
  • Large and small electronic devices can determine the posture of each subject (e.g., the posture of the main body 302 and the posture of the main body 303), and then determine the angle between the subject according to the posture of any subject and another subject (e.g., according to the posture and The posture of the main body 303 determines the angle between the main body 302 and the main body 303).
  • the electronic device 100 may include a first acceleration sensor and a second acceleration sensor.
  • the first acceleration sensor is disposed on the main body 302; the second acceleration sensor is disposed on the main body 303.
  • the first acceleration sensor detects the acceleration of the main body 302 on the x1, y1, and z1 axes, respectively.
  • the x1, y1 and z1 axes are shown in Figure 9(a), the x1 axis is the horizontal direction of the plane where the main body 302 is located; the y1 axis is the direction perpendicular to the x1 axis in the plane where the main body 302 is located; the z1 axis is the direction perpendicular to the main body 302 The direction perpendicular to the plane where 302 is located.
  • the second acceleration sensor detects the acceleration of the main body 303 on the x2, y2, and z2 axes, respectively.
  • the x2, y2, and z2 axes are shown in Figure 9(a), and the x2 axis is the horizontal direction of the plane where the main body 303 is located; the y2 axis is the direction perpendicular to the x2 axis in the plane where the main body 303 is located; and the z2 axis is the direction perpendicular to the main body 303. The direction perpendicular to the plane where 303 is located.
  • the electronic device 100 may determine the posture of each body based on the acceleration of each axis detected by the acceleration sensor provided in each body. For example, the electronic device 100 may determine the posture of the main body 302 according to the acceleration of the x1, y1 and z1 axes, and determine the posture of the main body 303 according to the acceleration of the x2, y2 and z2 axes. Exemplarily, the electronic device 100 may calculate the angle ⁇ z1 between the z1 axis and the horizontal direction according to the accelerations of the x1, y1 and z1 axes, and calculate the angle ⁇ between the z2 axis and the horizontal direction according to the accelerations of the x2, y2 and z2 axes. z2 . The calculation formula is shown in formula 2:
  • a z is the acceleration of the x-axis
  • a y is the acceleration of the y-axis
  • a z is the acceleration of the z-axis
  • ⁇ z is the angle between the z axis and the horizontal direction.
  • the electronic device 100 can determine the angle between the two main bodies according to the postures of any one main body and the other main body. For example, the electronic device 100 may determine the angle between the main body 302 and the main body 303 according to the postures of the main body 302 and the main body 303. It is understandable that, as shown in Figure 9(b), the electronic device can calculate the angle between the main body 302 and the main body 303 according to the angle ⁇ z1 between the z1 axis and the horizontal direction, and the angle ⁇ z2 between the z2 axis and the horizontal direction. ⁇ , its calculation formula is shown in formula 3:
  • the angle between the main body 302 and the main body 303 is calculated based on the angle between the z1 axis and the horizontal direction and the angle between the z2 axis and the horizontal direction as an example.
  • the method of calculating the angle between the main body 302 and the main body 303 is not limited to this.
  • the electronic device 100 can calculate the angle between the main body 302 and the main body 303 according to the included angle ⁇ x1 between the x1 axis and the horizontal direction, and the included angle ⁇ x2 between the x2 axis and the horizontal direction, and the calculation formula is shown in Equation 4:
  • the electronic device 100 may calculate the angle ⁇ x1 between the x1 axis and the horizontal direction according to the accelerations of the x1, y1 and z1 axes, and obtain the angle ⁇ x2 between the x2 axis and the horizontal direction according to the accelerations of the x2, y2 and z2 axes.
  • the calculation formula is shown in formula 5:
  • the electronic device 100 may determine the angle between the subjects through the gyro sensor 180B.
  • the electronic device may include multiple gyroscope sensors, which are respectively disposed in each main body.
  • the electronic device can detect the angular velocity of each axis (eg, x-axis, y-axis, and z-axis) of each main body (eg, main body 302, main body 303) through the gyro sensor provided in each main body (eg, main body 302, main body 303), according to the detected angular velocity on each axis
  • the electronic device can determine the posture of each subject (e.g., the posture of the subject 302 and the posture of the subject 303), and then determine the angle between the subject according to the posture of any subject and the other subject (e.g., according to the posture of the subject 302 and the subject
  • the posture of 303 determines the angle between the main body 302 and the main body 303).
  • the electronic device 100 may include a first gyroscope sensor and a second gyroscope sensor.
  • the first gyroscope sensor is disposed on the main body 302;
  • the second gyroscope sensor is disposed on the main body 303.
  • the electronic device 100 can calculate the posture of the main body 302 by the angular velocity detected by the first gyro sensor, and calculate the posture of the main body 303 by the angular velocity detected by the second gyro sensor; then, according to the posture of the main body 302 and the posture of the main body 303, the electronic The device can determine the angle between the main body 302 and the main body 303.
  • the method of identifying the angle between the subjects in the embodiments of the present application includes but is not limited to the above examples.
  • the electronic device 100 may determine the angle between the subjects through the acceleration sensor 180E and the gyro sensor 180B.
  • the electronic device 100 further includes a rotation sensor. The electronic device 100 can determine the angle between any body and the other body by detecting the rotation angle of the body through the rotation sensor.
  • the electronic device can recognize the included angle between the main bodies (ie, an angle less than 180 degrees).
  • the electronic device can calculate the object to be measured (such as , The height h of the object 500), so as to realize the measurement of the height of the object.
  • the method for measuring the height provided by the embodiment of the present application uses a deformable electronic device to measure the height of an object, and the operation is simple.
  • the object to be measured is a cube as an example. It can be understood that the method for measuring height provided in the embodiments of the present application can be used to measure the height of objects of various shapes. For example, as shown in FIGS. 10(a) and 10(b), the object to be measured may also be a cone (for example, object 501), trapezoid (for example, object 502) and other irregularly shaped objects.
  • the object to be measured may also be a cone (for example, object 501), trapezoid (for example, object 502) and other irregularly shaped objects.
  • the description is made by taking the object to be measured on any main body of the electronic device and bending the other main body of the electronic device as an example.
  • the object to be measured can be clamped between any main body of the electronic device and another main body for measurement.
  • the object to be measured (e.g., object 503) is sandwiched between two main bodies (e.g., between the main body 302 and the main body 303), so that one end of the object to be measured is connected to any one of the electronic equipment
  • the main body (for example, main body 303) is in contact with the first contact (for example, point 602), and the other end of the object to be measured is in contact with another main body (for example, main body 302) of the electronic device, and the contact is the second contact Point (e.g. point 603).
  • the calculation formula for the height h of the object to be measured is shown in Equation 6:
  • is the angle between the two main bodies (for example, the angle between the main body 302 and the main body 303).
  • L 2 is the distance from the first contact point (for example, point 602) to the connecting unit (for example, connecting unit 301).
  • L 3 is the distance from the second contact point (for example, point 603) to the connection unit (for example, connection unit 301).
  • the distance from the first contact to the connecting unit refers to the distance from the first contact to the axis of the connecting unit
  • the distance from the second contact to the connecting unit refers to the distance from the second contact to the connecting unit The distance of the axis.
  • the electronic device can calculate the object to be measured (For example, the height h of the object 503), so as to realize the measurement of the height of the object.
  • the electronic device can identify the distance L 2 from the first contact to the connecting unit through the pressure sensor and the distance L 3 from the second contact to the connecting unit.
  • the electronic device can measure the object to be measured with a high height.
  • FIG. 12 is a schematic structural diagram of yet another electronic device 100 provided by an embodiment of the application.
  • the electronic device 100 includes: a connection unit 401, a connection unit 402, a main body 403, a main body 404, and a main body 405.
  • the connecting unit 401 is used for connecting the main body 403 and the main body 404
  • the connecting unit 402 is used for connecting the main body 404 and the main 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 main body 402, the main body 403, and the main body 404 may have the same size and the same thickness.
  • the display screen 194 can be bent inward or outward through the connecting unit 401, so that the main body 403 and the main body 404 can rotate around the axis of the connecting unit 401 (shown by the dashed line on the left side of FIG. 12) to change the main body 403 and the main body 404.
  • the angle between the display screen 194 can be bent inward or outward through the connecting unit 402, so that the main body 404 and the main body 405 can rotate around the axis of the connecting unit 403 (shown by the dotted line on the right side of Figure 12) to change the main body 404 And the angle between the main body 405.
  • the electronic device 100 with the same size of the main body 301 and the main body 302 is taken as an example for description. It is understood that the size of the main body 302 and the main body 303 may be different. For example, as shown in FIG. 13(a), the size of the main body 302 may be larger than the main body 303. The size of the main body 403, the main body 404 and the main body 405 may also be different. For example, as shown in FIG. 13(b), the sum of the width of the main body 403 and the main body 405 is equal to the width of the main body 404.
  • the electronic device 100 can recognize the angle between any two main bodies, such as the angle between the main body 403 and the main body 404, the angle between the main body 404 and the main body 405, and the difference between the main body 403 and the main body 405.
  • the angle between. A method of identifying the angle between the main body 403 and the main body 404, a method of the angle between the main body 404 and the main body 405, and a method of the angle between the main body 403 and the main body 405. , Refer to the description in FIG. 9, which will not be repeated here.
  • the electronic device 100 includes one or more pressure sensors.
  • the electronic device 100 may include pressure sensors 700a, 700b, and 700c.
  • the pressure sensor 700a is disposed on the main body 403
  • the pressure sensor 700b is disposed on the main body 404
  • the pressure sensor 700c is disposed on the main body 405.
  • the electronic device 100 can identify the distance between any contact point and the connection unit through the pressure sensor. For a detailed method, refer to the description of the above-mentioned embodiment, which will not be repeated here.
  • the object to be measured is placed on any main body, and then the display screen 194 is bent to make the other main body contact the object to be measured.
  • the electronic device 100 recognizes the angle ⁇ between any two bodies and the distance L 1 from the contact to the connecting unit, and calculates the height of the object to be measured based on the angle ⁇ and the distance L 1 .
  • an embodiment of the present invention provides a method for measuring height, and the method includes:
  • Step 1501. The electronic device receives a user's first input.
  • the first input is used to instruct the electronic device to start measuring the height of the object.
  • the user touches the icon 801 to open the measurement application.
  • the electronic device opens the measurement application.
  • the electronic device may display interface 902 and/or interface 903.
  • the interface 902 or the interface 903 may include instructions for use to inform the user how to measure the height of the object using the electronic device.
  • the interface 902 or the interface 903 may include a start measurement button 802.
  • the measurement button 802 is used to instruct the electronic device to start measuring the height of the object.
  • the electronic device receives the user's first input.
  • the first input may be: the user touches the measurement start button 802.
  • Step 1502 in response to the first input, the electronic device triggers the pressure sensor.
  • Step 1503 The electronic device detects whether the object to be measured is in contact with the main body of the electronic device through the pressure sensor.
  • step 1504 If touched, go to step 1504; if not touched, go to step 1503 repeatedly.
  • the user places the object to be measured on the first body, bends the second body inward, and the second body rotates around the axis of the connecting unit until the apex of the object to be measured contacts the second body.
  • a force acts on the pressure sensor arranged on the second body, the capacitance between the electrodes of the pressure sensor changes, and the electronic device determines that the object to be measured is in contact with the second body.
  • the capacitance between the electrodes of the pressure sensor provided on the second body does not change, and the electronic device determines that the object to be measured is not in contact with the second body. If the electronic device determines that the object to be measured is in contact with the second body, step 1504 is executed. If the electronic device determines that the object to be measured is not in contact with the second body, step 1503 is repeated.
  • the user places the object 500 to be measured on the main body 302 and bends the main body 303 inward until the vertex A of the object 500 to be measured contacts the main body 303 .
  • a force acts on the pressure sensor 700b, the capacitance between the electrodes of the pressure sensor 700b changes, and the electronic device determines that the object to be measured is in contact with the main body 303.
  • the first body is the body 302
  • the second body is the body 303.
  • the user places the object 500 to be measured on the main body 404 and bends the main body 405 inward until the vertex A of the object 500 to be measured contacts the main body 405 .
  • the first body is the body 404
  • the second body is the body 405.
  • the user can place the object between the first body and the second body, and bend the first body and/or the second body inward until one end of the object to be measured contacts the first body , The other end of the object to be measured is in contact with the second body.
  • a force acts on the pressure sensor arranged on the first body, the capacitance between the electrodes of the pressure sensor changes, and the electronic device determines that the object to be measured is in contact with the first body.
  • the capacitance between the electrodes of the pressure sensor provided on the first body does not change, and the electronic device determines that the object to be measured is not in contact with the first body.
  • step 1504 is performed.
  • step 1503 is repeated.
  • Step 1504 The electronic device recognizes the angle ⁇ between the first body and the second body.
  • the angle between the first body and the second body is the angle between the main body 302 and the main body 303.
  • the angle between the first body and the second body is the angle between the main body 404 and the main body 405.
  • Step 1505 The electronic device recognizes the distance from the contact point to the connection unit connecting the first body and the second body.
  • the electronic device recognizes the distance L 1 from the contact point to the connection unit connecting the first body and the second body.
  • the distance from the contact point to the connecting unit connecting the first body and the second body is the distance from the point 604 to the connecting unit 301.
  • the distance from the contact point to the connection unit connecting the first body and the second body is the distance from the point 605 to the connection unit 402.
  • the electronic device recognizes the distance L 2 from the first contact to the connection unit and the distance L 3 from the second contact to the connection unit.
  • the distance L 2 from the first contact to the connection unit and the distance L 3 from the second contact to the connection unit.
  • Step 1506 The electronic device calculates the height of the object to be measured according to the angle and the distance.
  • the electronic device may calculate the height h of the object to be measured according to the angle ⁇ and the distance L 1 .
  • the electronic device can obtain the height h of the object to be measured according to formula 1.
  • the electronic device may calculate the height h of the object to be measured according to the angle ⁇ , the distance L 2 , and the distance L 3 . From the angle ⁇ , the distance L 2 , and the distance L 3, the electronic device can obtain the height h of the object to be measured according to formula 6.
  • Step 1507 The electronic device outputs the height h.
  • the electronic device may display the height h on the display screen 194.
  • the electronic device may display the height on the display screen 194 covering the second body; or, as shown in FIG. 17(f), the electronic device may The height is displayed on the display screen 194 covering other bodies (for example, the body 403) other than the first body and the second body.
  • the electronic device may voice output the height h.
  • the electronic device may output a voice message that "the height of the measured object is 5 cm".
  • the height measurement method described in FIG. 15 uses a pressure sensor to detect the position of the contact point to measure the height of the object. It can be understood that, alternatively, the electronic device may also detect the position of the contact through a touch sensor.
  • the electronic device may also display a reference line on the display screen, allowing the user to align the reference line and place the object to be measured.
  • the electronic device displays a reference line 1400 on the main body 303.
  • the distance between the reference line 1400 and the connecting unit 301 is D 1 .
  • the user bends the main body 303 inward so that the apex of the object 500 is in contact with the main body 303, and the contact point is on the reference line 1400.
  • the electronic device recognizes the angle ⁇ between the main body 302 and the main body 303.
  • the electronic device calculates the height h of the object according to the distance D 1 and the angle ⁇ , and the calculation formula is shown in Equation 7:
  • the electronic device may also display a reference line 1400 on the main body 302, the reference line 1400 and the connection unit The distance of 301 is D 2 .
  • the user bends the main body 303 inward so that the apex of the object 500 is in contact with the main body 303.
  • the electronic device recognizes the angle ⁇ between the main body 302 and the main body 303.
  • the electronic device calculates the height h of the object according to the distance D2 and the angle ⁇ , and the calculation formula is shown in Equation 8:
  • the reference line can be displayed on the display screen, and the step of detecting the contact point by the pressure sensor can be omitted.
  • This method can be used for electronic devices that do not have pressure sensors.
  • the embodiment of the application discloses an electronic device, including: a display screen; a processor; a memory; one or more sensors; an application program and a computer program.
  • the above devices can be connected through one or more communication buses.
  • the one or more computer programs are stored in the foregoing memory and configured to be executed by the one or more processors, and the one or more computer programs include instructions, and the foregoing instructions may be used to execute the foregoing application embodiments.
  • the one or more sensors mentioned above may include a touch sensor, a pressure sensor or an acceleration sensor.
  • the foregoing processor may specifically be the processor 110 shown in FIG. 1
  • the foregoing memory may specifically be the internal memory and/or the external memory 120 shown in FIG. 1
  • the foregoing display screen may specifically be the display shown in FIG. Screen 194
  • the above-mentioned sensor may be one or more sensors in the sensor module 180 shown in FIG. 1
  • the above-mentioned touch sensor may be the touch sensor 180K shown in FIG. 1
  • the above-mentioned pressure sensor may be the pressure sensor shown in FIG. 180A
  • the aforementioned acceleration sensor may be the acceleration sensor 180E shown in FIG. 1.
  • the embodiments of the application do not impose any restriction on this.
  • GUI graphical user interface
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)

Abstract

L'invention concerne un procédé de mesure de hauteur appliqué à un dispositif électronique (100). Le dispositif électronique (100) comprend au moins un premier corps principal (302), un second corps principal (303) et un premier arbre de liaison (301) reliant le premier corps principal (302) et le second corps principal (303), le premier corps principal (302) et le second corps principal (303) pouvant tourner autour du premier arbre de liaison (301). Un utilisateur place un objet à mesurer (500) sur le premier corps principal (302) et fait tourner le second corps principal (303) pour mesurer la hauteur de l'objet à mesurer (500). Le procédé de mesure comprend les étapes suivantes : le dispositif électronique (100) détecte si un objet à mesurer (500) est en contact avec le second corps principal (303) ; le dispositif électronique (100) identifie un angle inclus entre le premier corps principal (302) et le second corps principal (303) ; lorsque l'objet à mesurer (500) est en contact avec le second corps principal (303), le dispositif électronique (100) identifie la distance depuis un contact entre l'objet à mesurer (500) et le second corps principal (303) jusqu'au premier arbre de liaison (301) ; le dispositif électronique (100) calcule, en fonction de l'angle inclus et de la distance, la hauteur de l'objet à mesurer (500) ; et le dispositif électronique (100) fournit la hauteur de l'objet à mesurer (500).
PCT/CN2020/091180 2019-05-23 2020-05-20 Procédé de mesure de hauteur et dispositif électronique WO2020233581A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910433040.8A CN111982037B (zh) 2019-05-23 2019-05-23 一种测量高度的方法和电子设备
CN201910433040.8 2019-05-23

Publications (1)

Publication Number Publication Date
WO2020233581A1 true WO2020233581A1 (fr) 2020-11-26

Family

ID=73436451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091180 WO2020233581A1 (fr) 2019-05-23 2020-05-20 Procédé de mesure de hauteur et dispositif électronique

Country Status (2)

Country Link
CN (1) CN111982037B (fr)
WO (1) WO2020233581A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023151568A1 (fr) * 2022-02-08 2023-08-17 广州视源电子科技股份有限公司 Procédé de mesure de taille d'objet, support de stockage et dispositif électronique

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11304466A (ja) * 1998-04-16 1999-11-05 Asahi Seimitsu Kk 測量機械の機械高測定方法
WO2013032041A1 (fr) * 2011-08-26 2013-03-07 Ryoo Min-Kyu Procédé permettant de mesurer une distance, une hauteur et une longueur au moyen d'un terminal de communication mobile
CN103344216A (zh) * 2013-07-26 2013-10-09 李良杰 高度测量仪
CN103644879A (zh) * 2013-11-25 2014-03-19 无锡莱吉特信息科技有限公司 一种高度测量工具
CN104881109A (zh) * 2014-02-28 2015-09-02 联想(北京)有限公司 一种动作识别方法、装置及电子设备
CN204924220U (zh) * 2015-04-24 2015-12-30 华中科技大学 一种适用于大型螺旋桨叶片的测厚装置
CN106918815A (zh) * 2017-04-12 2017-07-04 李良杰 激光测量仪
CN206671550U (zh) * 2017-03-28 2017-11-24 昌邑市创通电子科技有限公司 一种激光测距仪

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003269955A (ja) * 2002-03-11 2003-09-25 Junko Suginaka 距離等測定装置
CN104374264B (zh) * 2013-08-16 2017-11-24 上海汽车集团股份有限公司 测量距离及角度的量具
CN105547215A (zh) * 2015-08-18 2016-05-04 东莞酷派软件技术有限公司 一种物体尺寸测量方法及终端设备
CN105526895A (zh) * 2015-11-30 2016-04-27 北京奇虎科技有限公司 电子设备测距方法和电子设备
CN105674897B (zh) * 2015-12-30 2018-09-14 广东欧珀移动通信有限公司 测量物体高度的方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11304466A (ja) * 1998-04-16 1999-11-05 Asahi Seimitsu Kk 測量機械の機械高測定方法
WO2013032041A1 (fr) * 2011-08-26 2013-03-07 Ryoo Min-Kyu Procédé permettant de mesurer une distance, une hauteur et une longueur au moyen d'un terminal de communication mobile
CN103344216A (zh) * 2013-07-26 2013-10-09 李良杰 高度测量仪
CN103644879A (zh) * 2013-11-25 2014-03-19 无锡莱吉特信息科技有限公司 一种高度测量工具
CN104881109A (zh) * 2014-02-28 2015-09-02 联想(北京)有限公司 一种动作识别方法、装置及电子设备
CN204924220U (zh) * 2015-04-24 2015-12-30 华中科技大学 一种适用于大型螺旋桨叶片的测厚装置
CN206671550U (zh) * 2017-03-28 2017-11-24 昌邑市创通电子科技有限公司 一种激光测距仪
CN106918815A (zh) * 2017-04-12 2017-07-04 李良杰 激光测量仪

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023151568A1 (fr) * 2022-02-08 2023-08-17 广州视源电子科技股份有限公司 Procédé de mesure de taille d'objet, support de stockage et dispositif électronique

Also Published As

Publication number Publication date
CN111982037B (zh) 2022-07-29
CN111982037A (zh) 2020-11-24

Similar Documents

Publication Publication Date Title
WO2020259452A1 (fr) Procédé d'affichage plein écran pour terminal mobile et appareil
WO2021017889A1 (fr) Procédé d'affichage d'appel vidéo appliqué à un dispositif électronique et appareil associé
WO2021213164A1 (fr) Procédé d'interaction entre des interfaces d'application, dispositif électronique et support de stockage lisible par ordinateur
WO2020134869A1 (fr) Procédé de fonctionnement d'un dispositif électronique et dispositif électronique
WO2020253758A1 (fr) Procédé de disposition d'interface utilisateur et dispositif électronique
WO2021017901A1 (fr) Procédé d'affichage d'écran et dispositif électronique
WO2021036770A1 (fr) Procédé de traitement d'écran partagé et dispositif terminal
WO2021063237A1 (fr) Procédé de commande de dispositif électronique et dispositif électronique
WO2022127787A1 (fr) Procédé d'affichage d'image et dispositif électronique
WO2021082815A1 (fr) Procédé d'affichage d'élément d'affichage et dispositif électronique
WO2021218429A1 (fr) Procédé de gestion d'une fenêtre d'application, dispositif terminal et support de stockage lisible par ordinateur
CN113704205B (zh) 日志存储的方法、芯片、电子设备和可读存储介质
WO2021052070A1 (fr) Procédé d'identification de fréquence de trames et dispositif électronique
WO2022001258A1 (fr) Procédé et appareil d'affichage à écrans multiples, dispositif terminal et support de stockage
WO2020024108A1 (fr) Procédé d'affichage d'icônes d'application et terminal
WO2022170856A1 (fr) Procédé d'établissement de connexion et dispositif électronique
WO2021104122A1 (fr) Procédé et appareil permettant de répondre à une demande d'appel et dispositif électronique
WO2022143180A1 (fr) Procédé d'affichage collaboratif, dispositif terminal et support de stockage lisible par ordinateur
WO2022095744A1 (fr) Procédé de commande d'affichage vr, dispositif électronique et support de stockage lisible par ordinateur
CN113452945A (zh) 分享应用界面的方法、装置、电子设备及可读存储介质
WO2022179495A1 (fr) Procédé et appareil de rétroaction de risque de confidentialité, et premier dispositif terminal
WO2022105702A1 (fr) Procédé et dispositif électronique d'enregistrement d'image
CN112437341B (zh) 一种视频流处理方法及电子设备
WO2020233581A1 (fr) Procédé de mesure de hauteur et dispositif électronique
CN116048831B (zh) 一种目标信号处理方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20810261

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20810261

Country of ref document: EP

Kind code of ref document: A1