CN108989546B - Approach detection method of electronic device and related product - Google Patents

Approach detection method of electronic device and related product Download PDF

Info

Publication number
CN108989546B
CN108989546B CN201810621567.9A CN201810621567A CN108989546B CN 108989546 B CN108989546 B CN 108989546B CN 201810621567 A CN201810621567 A CN 201810621567A CN 108989546 B CN108989546 B CN 108989546B
Authority
CN
China
Prior art keywords
electronic device
motion state
angle data
data
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.)
Active
Application number
CN201810621567.9A
Other languages
Chinese (zh)
Other versions
CN108989546A (en
Inventor
马静一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810621567.9A priority Critical patent/CN108989546B/en
Publication of CN108989546A publication Critical patent/CN108989546A/en
Application granted granted Critical
Publication of CN108989546B publication Critical patent/CN108989546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The application provides a proximity detection method of an electronic device and a related product, wherein the electronic device comprises: the method comprises the following steps of: when the electronic device is in a call, acquiring a plurality of angle data values of the electronic device; taking a capacitance value of the touch display screen; and determining the motion state of the electronic device according to the angle data values, and if the motion state is determined to be a set motion state, performing proximity judgment according to the capacitance value. The technical scheme provided by the application has the advantage of high user experience.

Description

Approach detection method of electronic device and related product
Technical Field
The present application relates to the field of communications and terminals, and in particular, to a method for proximity detection of an electronic device and a related product.
Background
In the prior art, mobile terminals (such as mobile phones, tablet computers, etc.) have become electronic devices preferred and most frequently used by users. The existing mobile terminal performs proximity detection in a mode of combining an infrared sensor and a touch screen, and when the proximity detection is performed through the touch screen, if the external environment changes, the capacitance of the touch screen is affected, a proximity detection error occurs, and the user experience degree is affected.
Disclosure of Invention
The embodiment of the application provides a proximity detection method of an electronic device and a related product, which can realize proximity detection in a mode of combining gestures and a touch screen, reduce the influence of an external environment on the touch screen, improve the precision of the proximity detection and improve the user experience.
In a first aspect, an embodiment of the present application provides an electronic device, including: the device comprises a processor, a touch display screen and an angle sensor, wherein the processor is respectively connected with the touch display screen and the angle sensor,
the angle sensor is used for acquiring a plurality of angle data values of the electronic device when the electronic device is in a call;
the touch display screen is used for acquiring a capacitance value of the touch display screen;
the processor is configured to determine a motion state of the electronic device according to the angle data values, and perform proximity determination according to the capacitance value if the motion state is determined as a set motion state.
In a second aspect, a proximity detection method for an electronic device is provided, the electronic device including: the method comprises the following steps of:
when the electronic device is in a call, acquiring a plurality of angle data values of the electronic device;
taking a capacitance value of the touch display screen;
and determining the motion state of the electronic device according to the angle data values, and if the motion state is determined to be a set motion state, performing proximity judgment according to the capacitance value.
In a third aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method provided in the second aspect.
In a fourth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being operable to cause a computer to perform the method provided by the second aspect.
The embodiment of the application has the following beneficial effects:
it can be seen that, after the angle sensor acquires the angle data of the electronic device, and then determining whether the set motion state is determined, such as determined as the set motion state, when the capacitance value of the touch display screen is judged to be close, the technical scheme provided by the application judges to be close through the gesture and the capacitance value of the touch display screen, avoids misjudgment, because although there may be abrupt changes in the corresponding environmental parameters, such as temperature, humidity, etc., there is no influence on the gesture with respect to the environmental parameters such as temperature, humidity, etc., and for the conversation, the gesture is a very important condition that passes through, and here, the detection of approach is carried out by setting the motion state, so that the interference of the abrupt change of the environmental parameters to the approach detection can be filtered, the detection precision is further improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 2 is a schematic view of an electronic device disclosed in an embodiment of the present application.
Fig. 3 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 4a is a schematic view of an angle curve provided in the embodiment of the present application.
Fig. 4b is a schematic structural diagram of an input matrix according to an embodiment of the present application.
Fig. 4c is a schematic structural diagram of inputting three-dimensional data according to an embodiment of the present application.
Fig. 5 is a flowchart illustrating a proximity detection method of an electronic device according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a mobile phone disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the electronic device provided in the first aspect, the processor is specifically configured to plot an angle graph of the plurality of angle data values and the time for acquiring the angle data values, divide the angle graph into a plurality of intervals according to a variation trend, calculate a plurality of differences between a maximum angle data value and a minimum angle data value in the plurality of intervals, determine that the electronic device is in a set motion state if at least one difference in the plurality of differences is greater than a set threshold, and otherwise, determine that the electronic device is in a non-set motion state.
In the electronic device provided in the first aspect, the processor is specifically configured to combine the plurality of angle data into input data, input the input data into a preset neural network model, execute a multi-layer forward calculation to obtain a forward calculation result, and determine whether to set a motion state according to the forward calculation result.
In the electronic device provided by the first aspect, the processor is specifically configured to extract, from the forward operation result, X elements whose element values are greater than a set threshold value and X positions corresponding to the X elements, where if there are more than X/2 positions in the X positions corresponding to a set motion state, determine that the forward operation result is in the set motion state, and if there are more than X/2 positions in the X positions corresponding to a non-set motion state, determine that the forward operation result is in the non-set motion state.
In the electronic device provided in the first aspect, the processor is specifically configured to obtain a type of sample input data in a training sample of a preset neural network model and an arrangement rule of the sample input data, and if the type is matrix data, form an input matrix from the multiple angle data according to the arrangement rule, and if the type is a three-dimensional data block, form an input three-dimensional data block from the multiple angle data according to the arrangement rule.
In the method provided in the second aspect, the determining the motion state of the electronic device according to the plurality of angle data values specifically includes:
drawing an angle curve graph according to the angle data values and the time for acquiring the angle data values, dividing the angle curve graph into a plurality of intervals according to the variation trend, calculating a plurality of difference values between the maximum angle data value and the minimum angle data value in the plurality of intervals, if at least one difference value in the plurality of difference values is larger than a set threshold value, determining that the electronic device is in a set motion state, otherwise, determining that the angle data value is in a non-set motion state.
In the method provided in the second aspect, the determining the motion state of the electronic device according to the plurality of angle data values specifically includes:
and forming the angle data into input data, inputting the input data into a preset neural network model, executing multilayer forward calculation to obtain a forward calculation result, and determining whether the motion state is a set motion state according to the forward calculation result.
In the method provided in the second aspect, the determining whether the motion state is the set motion state according to the forward calculation result specifically includes:
and extracting X elements with element values larger than a set threshold value and X positions corresponding to the X elements from the forward operation result, if X positions exceed X/2 positions corresponding to a set motion state, determining the set motion state of the forward operation result, and if X positions exceed X/2 positions corresponding to a non-set motion state, determining the forward operation result to be the non-set motion state.
In the method provided in the second aspect, the composing the plurality of angle data into input data specifically includes:
obtaining the type of sample input data and the arrangement rule of the sample input data in a training sample of a preset neural network model, if the type is matrix data, forming the angle data into an input matrix according to the arrangement rule, and if the type is a three-dimensional data block, forming the angle data into an input three-dimensional data block according to the arrangement rule.
Referring to fig. 1, fig. 1 is a schematic view of an electronic device according to an embodiment of the present disclosure, fig. 1 is a schematic view of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the touch screen display device comprises a shell 110, a circuit board 120, a battery 130 (optional), a cover plate 140, a touch screen display 150, an ultrasonic transmitter 160, an ultrasonic receiver 170 and a transceiver 180, wherein the circuit board 120, the ultrasonic transmitter 160, the ultrasonic receiver 170, the battery 130 and the cover plate 140 are arranged on the shell 110, and a circuit connected with the touch screen display 150 is further arranged on the circuit board 120; the circuit board 120 may further include: the application processor AP 190.
The transceiver 180 may be different transceivers according to different types of electronic devices, for example, the electronic device is a mobile phone, the transceiver may be a wireless antenna, and the transceiver may be a network port if the electronic device is a smart tv.
The touch Display screen may be a Thin Film Transistor-Liquid Crystal Display (TFT-LCD), a Light Emitting Diode (LED) Display screen, an Organic Light Emitting Diode (OLED) Display screen, or the like.
Referring to fig. 2, fig. 2 is a schematic structural diagram of another electronic device 200 disclosed in the embodiment of the present application, the electronic device 200 includes a storage and processing circuit 210, and a communication circuit 220 and an audio component 240 connected to the storage and processing circuit 210, wherein a touch display screen 230 or a touch component may be further disposed in some specific electronic devices 200.
The electronic device 200 may include control circuitry that may include storage and processing circuitry 210. The storage and processing circuit 210 may be a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 210 may be used to control the operation of the electronic device 200. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuit 210 may be used to run software in the electronic device 200, such as Voice Over Internet Protocol (VOIP) phone call applications, simultaneous interpretation functions, media playing applications, operating system functions, and the like. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 200, to name a few.
The electronic device 200 may also include input-output circuitry 250. The input-output circuit 250 may be used to enable the electronic apparatus 200 to input and output data, i.e., to allow the electronic apparatus 200 to receive data from an external device and also to allow the electronic apparatus 200 to output data from the electronic apparatus 200 to the external device. The input-output circuit 250 may further include a sensor 270. The sensors 270 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 250 may also include a touch sensor array (i.e., touch sensitive display screen 230). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 200 may also include an audio component 240. The audio component 240 may be used to provide audio input and output functionality for the electronic device 200. The audio components 240 in the electronic device 200 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 220 may be used to provide the electronic apparatus 200 with the capability to communicate with external devices. The communication circuit 220 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 220 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 220 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 220 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 220 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 200 may further include a battery, a power management circuit, and other input-output units 260. The input-output unit 260 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes or other status indicators, and the like.
A user may input commands through the input-output circuitry 250 to control the operation of the electronic device 200 and may use the output data of the input-output circuitry 250 to enable receipt of status information and other outputs from the electronic device 200.
The electronic device 200 may further comprise an ultrasonic transmitter and an ultrasonic receiver, which may be integrated with the audio component 240, in particular, if the audio component 240 comprises a microphone, which may integrate the functionality of the ultrasonic transmitter or the functionality of the ultrasonic receiver.
Referring to fig. 3, fig. 3 provides an electronic device 300, which is shown in fig. 3 and includes: the touch screen display device comprises a processor 301, a touch display screen 302 and an angle sensor 303, wherein the processor 301 is connected with the touch display screen 302 and the angle sensor 303 respectively, and the connection mode includes but is not limited to a bus mode, but can also adopt other modes, such as a single-wire connection mode.
The angle sensor 303 is used for acquiring angle data of the electronic device when the electronic device is in a call;
the angle sensor 303 may be a gyroscope, and the angle data may be a plurality of angle data, and may be data acquired by the gyroscope. The angle sensor may be other specific instruments, and the specific representation form of the angle sensor is not limited in the present application.
The touch display screen 302 is used for acquiring a capacitance value of the touch display screen;
the processor 301 is configured to determine a motion state of the electronic apparatus according to the angle data, and perform an approach determination according to the capacitance value if the motion state is determined to be a set motion state.
The approach determination method based on the capacitance value may be a general determination method, and the present application is not limited to the specific approach determination method.
According to the technical scheme, after the angle sensor acquires the angle data of the electronic device, the motion state of the electronic device is determined according to the angle data, if the motion state is set, the capacitance value of the touch display screen is judged to be close, the technical scheme provided by the application judges to be close through the gesture and the capacitance value of the touch display screen, misjudgment is avoided, although the temperature, the humidity and the like possibly have sudden changes due to corresponding environment parameters, the temperature, the humidity and the like do not have any influence on the gesture, and the gesture is a very important condition when a call is carried out, the detection of the approach due to the sudden changes of the environment parameters can be filtered, the detection precision is improved, and the user experience degree is improved.
The determining the motion state of the electronic device according to the angle data may specifically include:
the processor 301 is specifically configured to plot an angle graph (see fig. 4a) of the angle data value and the time for acquiring the angle data value, divide the angle graph into a plurality of intervals according to the variation trend, calculate a plurality of differences between a maximum angle data value and a minimum angle data value in the plurality of intervals, determine that the electronic device is in the set motion state if at least one of the plurality of differences is greater than a set threshold, and otherwise determine that the electronic device is in the non-set motion state.
The above-mentioned drawing method can adopt a smooth curve or a straight line connection method to obtain the angle curve graph. The present application does not limit the way the smooth curve is drawn.
The above trend may specifically include: monotonically increasing or monotonically decreasing.
The principle is based on that, the applicant analyzes the angle data value of a set motion state (e.g. gesture), and finds that the change rate of the angle data value is very large in the set motion state operation, taking a grab gesture as an example, when an electronic device is grabbed, the change of the angle data value is very large at the moment when the electronic device is received from a pocket to an ear, and the same is true for other gestures, if the change of the angle data value is relatively stable all the time, the gesture of the user of the electronic device is generally not changed, so that whether a gesture exists can be judged according to the change rate of the angle data value, corresponding to the technical scheme of the present application, namely, the judgment is carried out according to the difference between the maximum angle value and the minimum angle value corresponding to a plurality of intervals, and if a gesture continues, the change trend has a continuous time, so that the change trend is taken as a division mode of the intervals, this can reflect the particular form of the gesture.
Optionally, the determining the motion state of the electronic device according to the angle data specifically may include:
the processor 301 is specifically configured to combine the angle data into input data, input the input data into a preset neural network model, perform multi-layer forward calculation to obtain a forward calculation result, and determine whether the motion state is a set motion state according to the forward calculation result.
Optionally, the specifically determining whether the forward operation result is the set motion state may include: the processor 301 is specifically configured to extract, from the forward operation result, X elements whose element values are greater than a set threshold and X positions corresponding to the X elements, determine that the forward operation result is in the set motion state if X positions exceed X/2 positions, and otherwise determine that the forward operation result is in the non-set motion state if X positions exceed X/2 positions and correspond to the non-set motion state.
It should be noted that, whether the element value in the forward operation result corresponds to the set motion state or not may be determined during training, and as for the training sample input data, because it is labeled sample data, that is, it is known that the training sample input data belongs to the set motion state or not, the training sample (set motion state) is input into a preset neural network model to obtain the forward operation result, and a position corresponding to an element in the forward operation result that is greater than the set threshold value is the set motion state. Similarly, the training sample (non-set motion state) is input into a preset neural network model to obtain a forward operation result, and the position corresponding to the element in the forward operation result, which is greater than the set threshold value, is the non-set motion state. Therefore, whether the elements with different forward operation results correspond to the set motion state or the non-set motion state can be distinguished.
Optionally, the implementation manner of forming the input data by the multiple transmitting times, the multiple receiving times, and the multiple reflected signal strengths may specifically be:
the processor 301 is specifically configured to obtain a type of sample input data in a training sample of a preset neural network model and an arrangement rule of the sample input data, and if the type is matrix data, form an input matrix from a plurality of angle data according to the arrangement rule, and if the type is a three-dimensional data block, form an input three-dimensional data block from a plurality of angle data according to the arrangement rule.
The above-mentioned manner of input data is determined by a practical example, where the type of input data is matrix data, and the arrangement rule may be that the input data is arranged along the height (H) direction or arranged along the width (W) direction, and if the number of the plurality of angle data values is not enough to form the matrix, the number of the plurality of angle data values is made to form the matrix by supplementing zero elements. A specific supplementary schematic diagram is shown in fig. 4b, and as shown in fig. 4b, the final black boxes are elements that are filled with zeros, and each box in fig. 4b represents an element of a matrix.
The type of the input data is exemplified by a three-dimensional data block, and the arrangement rule may be that the data is arranged in a height (H) direction, in a width (W) direction, or in a depth (CI) direction, and if the number of the plurality of angle data values is not enough to form the three-dimensional data block, the number of the plurality of angle data values is made to form the three-dimensional data block by supplementing zero elements. The specific supplementary schematic diagram is shown in fig. 4c, and as shown in fig. 4c, the last black box is an element for supplementing zero, and each box in fig. 4c represents an element of a three-dimensional data block.
In the training method of the neural network model, each sample input data in a plurality of sample input data is input into the neural network model for training to update the weight data in the neural network model, all the plurality of sample input data are trained to update the weight data, the neural network model at the moment is a trained neural network model, and the weight data are not changed after the neural network model is trained. The plurality of sample input data at least needs to include: and setting sample input data corresponding to the motion state, and not setting sample input data corresponding to the motion state. Because the weight data in the preset neural network model is not changed, the input data which is input into the preset neural network model and is subjected to forward operation needs to be consistent with the type of the sample input data, and if the types are inconsistent, the result of the operation which is possibly executed by the neural network model has a lot of deviations. Specifically, matrix-matrix multiplication in mathematical computation and computation between three-dimensional data blocks are performed according to positions of elements, and if types of the elements are inconsistent, corresponding positions of the elements are changed, for example, an input matrix shown in fig. 4b and input three-dimensional data shown in fig. 4c are changed, even if the same multiple angle data values are used to respectively form the input matrix and the input three-dimensional data, positions of most elements in the input matrix and the input three-dimensional data are inconsistent due to the inconsistent types, and misalignment of the positions can cause a large deviation of a computed result, so that a forward output result is inaccurate, and an inaccurate forward output result can cause a deviation of a gesture determined according to the forward output result. The input data formed by the same type and the same arrangement rule can reduce the inconsistency of positions and types, and improve the accuracy of the forward output result.
Optionally, the processor 301 is specifically configured to obtain a type of sample input data in a training sample of a preset neural network model and an arrangement rule of the sample input data, where the type is matrix data [ H [ ]0】【W0Determining a total number Y of a plurality of angle data values, e.g. Y < H0*W0(ii) a Calculating n ═ Y-H0*W0Executing a process of inserting n values to obtain data after the insertion process, where the process of inserting n values specifically includes: inserting n angle data values into the angle data values, and forming an input matrix according to the arrangement rule by using the data after insertion processing, wherein the size of the input matrix is [ H ]0】【W0H, the H0Is a height value of the matrix, the W0May be the width value of the matrix.
The n angle data values may be inserted in various ways, for example, in an alternative way, the n angle data values are inserted after the plurality of angle data values, two adjacent transmission times of the n angle data values are a set time interval, the n angle data values may be an average value of the plurality of angle data values, of course, the n angle data values may also be n angle data values distributed discretely, the n angle data values distributed discretely are within a set range, and the average value of the n angle data values distributed discretely is the same as the average value of the plurality of received signal strengths.
The insertion mode can simulate the originally acquired n angle data values as much as possible, so that the authenticity of the input matrix data can be improved, and the accuracy of a forward operation result is improved.
Referring to fig. 5, fig. 5 provides a proximity detection method of an electronic device, the electronic device including: the method comprises the following steps of:
step S501, when the electronic device is in a call, acquiring a plurality of angle data values of the electronic device;
step S502, obtaining a capacitance value of the touch display screen;
step S503, determining a motion state of the electronic device according to the plurality of angle data values, and performing proximity determination according to the capacitance value if the motion state is determined to be set.
Optionally, the determining the motion state of the electronic device according to the angle data values specifically includes:
drawing an angle curve graph according to the angle data values and the time for acquiring the angle data values, dividing the angle curve graph into a plurality of intervals according to the change trend, calculating a plurality of difference values between the maximum angle data value and the minimum angle data value in the plurality of intervals, if at least one difference value in the plurality of difference values is larger than a set threshold value, determining that the electronic device is in a set motion state, otherwise, determining that the electronic device is in a non-set motion state.
The above-mentioned drawing method can adopt a smooth curve or a straight line connection method to obtain the angle curve graph. The present application does not limit the way the smooth curve is drawn.
The above trend may specifically include: monotonically increasing or monotonically decreasing.
The principle is based on that the applicant analyzes the angle data value of the gesture, and finds that the change rate of the angle data value is very large when the electronic device is held from a pocket to an ear when the electronic device is held in a set motion state, taking a holding gesture as an example, the change rate of the angle data value is very large when the electronic device is held, and the change rate of the angle data value is the same for other gestures, if the change rate of the angle data value is stable all the time, the gesture can be judged whether to exist or not through the change rate of the angle data value, and according to the technical scheme of the application, the judgment is carried out through the difference between the maximum angle value and the minimum angle value corresponding to a plurality of intervals, in addition, if one gesture continues, the change trend has a lasting time, so the change trend is taken as a division mode of the intervals, this can reflect the particular form of the gesture.
Fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present disclosure. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 910, memory 920, input/output unit 930, sensor 950, audio collector 960, Wireless Fidelity (WiFi) module 970, application processor AP980, touch display 933, power supply 990, and the like. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the input and output unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input/output unit 930 may include a fingerprint recognition apparatus 931, a face recognition apparatus 936, an iris recognition apparatus 937, and other input devices 932. The input-output unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. Wherein the content of the first and second substances,
the application processor AP980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions and processes of the mobile phone by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Optionally, AP980 may include one or more processing units; alternatively, the AP980 may integrate an application processor that handles primarily the operating system, user interface, and applications, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the AP 980.
Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the touch display screen according to the brightness of ambient light, and the proximity sensor may turn off the touch display screen and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio collector 960, speaker 961, microphone 962 may provide an audio interface between the user and the handset. The audio collector 960 can transmit the received electrical signal converted from the audio data to the speaker 961, and the audio data is converted into a sound signal by the speaker 961 for playing; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the electrical signal is received by the audio collector 960 and converted into audio data, and then the audio data is processed by the audio data playing AP980, and then the audio data is sent to another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
The above-mentioned mobile phone may further include: an ultrasonic transmitter, which may be integrally provided with the speaker 961, and an ultrasonic receiver, which may be integrally provided with the microphone 962. That is, the speaker 961 may emit an ultrasonic signal, and the microphone 962 may receive a reflected signal of the ultrasonic signal.
A sensor 950 for acquiring a plurality of angle data values of the electronic device when the electronic device is in a call;
the touch display screen 933 is used for acquiring a capacitance value of the touch display screen;
and the application processor AP980 is configured to determine a motion state of the electronic apparatus according to the plurality of angle data values, and perform proximity determination according to the capacitance value if the motion state is determined to be a set motion state.
Optionally, the application processor AP980 is specifically configured to draw an angle graph of the plurality of angle data values and the time for obtaining the angle data values, divide the angle graph into a plurality of intervals according to a variation trend, calculate a plurality of differences between a maximum angle data value and a minimum angle data value in the plurality of intervals, determine that the electronic device is in the set motion state if at least one of the plurality of differences is greater than a set threshold, and otherwise determine that the angle data value is in the non-set motion state.
Optionally, the application processor AP980 is specifically configured to combine the plurality of angle data into input data, input the input data into a preset neural network model, perform a multi-layer forward calculation to obtain a forward calculation result, and determine whether the motion state is a set motion state according to the forward calculation result.
Optionally, the application processor AP980 is specifically configured to extract, from the forward operation result, X elements whose element values are greater than a set threshold and X positions corresponding to the X elements, if there are more than X/2 positions in the X positions corresponding to a set motion state, determine that the forward operation result is in the set motion state, and if there are more than X/2 positions in the X positions corresponding to a non-set motion state, determine that the forward operation result is in the non-set motion state.
Optionally, the application processor AP980 is specifically configured to obtain a type of sample input data in a training sample of a preset neural network model and an arrangement rule of the sample input data, and if the type is matrix data, form an input matrix from the multiple angle data according to the arrangement rule, and if the type is a three-dimensional data block, form an input three-dimensional data block from the multiple angle data according to the arrangement rule.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope of not changing the essence of the application.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to various components, and optionally, the power supply may be logically connected to the AP980 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, a light supplement device, a light sensor, and the like, which are not described herein again.
It can be seen that the technical scheme that this application provided confirms whether in the sleep state through acquireing position and time, if in the sleep state, judge whether contain the settlement crowd through the picture that acquires, when containing the settlement crowd, control wireless transceiver's communication function, reduce wireless transceiver's radiation like this and to settlement crowd's influence, improve user's experience degree.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute any one of the proximity detection method embodiments of the electronic device described above.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods of proximity detection for an electronic device as recited in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An electronic device, comprising: the device comprises a processor, a touch display screen and an angle sensor, wherein the processor is respectively connected with the touch display screen and the angle sensor,
the angle sensor is used for acquiring a plurality of angle data values of the electronic device when the electronic device is in a call;
the touch display screen is used for acquiring a capacitance value of the touch display screen;
the processor is configured to draw an angle curve graph according to the plurality of angle data values and the time for obtaining the angle data values, divide the angle curve graph into a plurality of intervals according to a variation trend, calculate a plurality of difference values between a maximum angle data value and a minimum angle data value in the plurality of intervals, determine that the electronic device is in a set motion state if at least one difference value in the plurality of difference values is greater than a set threshold, otherwise determine that the electronic device is in a non-set motion state, determine that the electronic device is in the set motion state if the electronic device is in the set motion state, and perform proximity judgment according to the capacitance value to filter interference of sudden change of an environmental parameter on proximity detection, where the environmental parameter includes temperature and humidity.
2. The electronic device of claim 1,
the processor is specifically configured to combine the angle data values into input data, input the input data into a preset neural network model, execute a multi-layer forward calculation to obtain a forward calculation result, and determine whether the motion state is a set motion state according to the forward calculation result.
3. The electronic device of claim 2,
the processor is specifically configured to extract, from the forward operation result, X elements whose element values are greater than a set threshold and X positions corresponding to the X elements, where if X positions exceed X/2 positions corresponding to a set motion state, determine that the forward operation result is the set motion state, and if X positions exceed X/2 positions corresponding to a non-set motion state, determine that the forward operation result is the non-set motion state.
4. The electronic device of claim 1,
the processor is specifically configured to obtain a type of sample input data in a training sample of a preset neural network model and an arrangement rule of the sample input data, and if the type is matrix data, form an input matrix from the multiple angle data according to the arrangement rule, and if the type is a three-dimensional data block, form an input three-dimensional data block from the multiple angle data according to the arrangement rule.
5. A proximity detection method of an electronic device, the electronic device comprising: the method comprises the following steps of:
when the electronic device is in a call, acquiring a plurality of angle data values of the electronic device;
taking a capacitance value of the touch display screen;
drawing an angle curve graph according to the angle data values and the time for acquiring the angle data values, dividing the angle curve graph into a plurality of intervals according to the variation trend, calculating a plurality of difference values between the maximum angle data value and the minimum angle data value in the plurality of intervals, if at least one difference value in the plurality of difference values is greater than a set threshold value, determining that the electronic device is in a set motion state, otherwise, determining that the electronic device is in a non-set motion state, if the electronic device is in the set motion state, carrying out approach judgment according to the capacitance value, and filtering interference of sudden change of environmental parameters on approach detection, wherein the environmental parameters comprise temperature and humidity.
6. The method according to claim 5, wherein the determining the motion state of the electronic device according to the plurality of angle data values specifically comprises:
and forming the angle data into input data, inputting the input data into a preset neural network model, executing multilayer forward calculation to obtain a forward calculation result, and determining whether the motion state is a set motion state according to the forward calculation result.
7. The method according to claim 6, wherein the determining the motion state of the electronic device according to the plurality of angle data values specifically comprises:
and extracting X elements with element values larger than a set threshold value and X positions corresponding to the X elements from the forward operation result, if X positions exceed X/2 positions and are in a motion state correspondingly, determining that the forward operation result is in a set motion state, and if X positions exceed X/2 positions and are in a non-set motion state correspondingly, determining that the forward operation result is in a non-set motion state.
8. The method according to claim 5, wherein said composing said plurality of angle data into input data comprises:
obtaining the type of sample input data and the arrangement rule of the sample input data in a training sample of a preset neural network model, if the type is matrix data, forming the angle data into an input matrix according to the arrangement rule, and if the type is a three-dimensional data block, forming the angle data into an input three-dimensional data block according to the arrangement rule.
9. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a processor of a computer to perform the method according to any one of claims 5-8.
10. A computer device, characterized in that the computer device comprises a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform the method according to any one of claims 5-8.
CN201810621567.9A 2018-06-15 2018-06-15 Approach detection method of electronic device and related product Active CN108989546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810621567.9A CN108989546B (en) 2018-06-15 2018-06-15 Approach detection method of electronic device and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810621567.9A CN108989546B (en) 2018-06-15 2018-06-15 Approach detection method of electronic device and related product

Publications (2)

Publication Number Publication Date
CN108989546A CN108989546A (en) 2018-12-11
CN108989546B true CN108989546B (en) 2021-08-17

Family

ID=64541356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810621567.9A Active CN108989546B (en) 2018-06-15 2018-06-15 Approach detection method of electronic device and related product

Country Status (1)

Country Link
CN (1) CN108989546B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710109B (en) * 2018-12-28 2023-06-09 Oppo广东移动通信有限公司 Control method, control device, electronic device, and storage medium
CN110505341B (en) * 2019-07-31 2021-05-07 Oppo广东移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
CN117395979B (en) * 2023-12-13 2024-03-15 深圳市海罗光电有限公司 Method, device, equipment and storage medium for preventing electromagnetic interference of display

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685696A (en) * 2012-09-12 2014-03-26 中兴通讯股份有限公司 Method and device for controlling terminal screen during call and terminal
CN103941994A (en) * 2013-01-23 2014-07-23 中兴通讯股份有限公司 Sensing screen locking method and device of touch screen
KR20150121949A (en) * 2014-04-22 2015-10-30 삼성전자주식회사 Method and apparatus for recognizing gestures
CN104284012A (en) * 2014-06-14 2015-01-14 敦泰科技有限公司 Method for judging conversation state and personal mobile communication terminal
CN105278846B (en) * 2015-05-14 2019-05-17 维沃移动通信有限公司 Control the method and its mobile terminal in mobile terminal screen direction
CN105373712A (en) * 2015-10-22 2016-03-02 上海斐讯数据通信技术有限公司 Mobile terminal unlocking system and mobile terminal unlocking method based on neural network
CN106791086B (en) * 2016-12-19 2020-01-14 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN106874847A (en) * 2017-01-03 2017-06-20 深圳先进技术研究院 Tumble Forecasting Methodology and tumble airbag restraint device based on artificial neural network
CN107016347A (en) * 2017-03-09 2017-08-04 腾讯科技(深圳)有限公司 A kind of body-sensing action identification method, device and system
CN107797746B (en) * 2017-11-22 2020-04-10 Oppo广东移动通信有限公司 Display screen control method and device, storage medium and electronic equipment
CN108052960A (en) * 2017-11-28 2018-05-18 深圳市金立通信设备有限公司 Method, model training method and the terminal of identification terminal grip state

Also Published As

Publication number Publication date
CN108989546A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN107194224B (en) Unlocking control method and related product
CN109240551B (en) Method for controlling electronic device by using gestures and related product
CN107172267B (en) Fingerprint identification control method and related product
CN108900231B (en) Dynamic antenna adjustment method and related product
CN107292235B (en) fingerprint acquisition method and related product
CN109274812B (en) Method for controlling electronic device through ultrasonic gestures and related product
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN107180180B (en) Unlocking control method and related product
CN108989546B (en) Approach detection method of electronic device and related product
CN107317918B (en) Parameter setting method and related product
CN110531915B (en) Screen operation method and terminal equipment
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN108388340B (en) Electronic equipment control method and related product
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN107194223B (en) Fingerprint identification area display method and related product
CN107193470B (en) Unlocking control method and related product
CN107193475B (en) Unlocking control method and related product
CN108810261B (en) Antenna switching method in call and related product
CN108388459B (en) Message display processing method and mobile terminal
CN109121034B (en) Master-slave switching method based on volume and related product
CN108579078B (en) Touch operation method and related product
CN108491143B (en) Object movement control method and mobile terminal
CN110277097B (en) Data processing method and related equipment
CN108255632B (en) Fall data calculation method based on artificial intelligence and related product
CN108304709B (en) Face unlocking method and related product

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
GR01 Patent grant
GR01 Patent grant