CN109298805A - Proximity state recognition methods, device, terminal device and storage medium - Google Patents

Proximity state recognition methods, device, terminal device and storage medium Download PDF

Info

Publication number
CN109298805A
CN109298805A CN201811123760.6A CN201811123760A CN109298805A CN 109298805 A CN109298805 A CN 109298805A CN 201811123760 A CN201811123760 A CN 201811123760A CN 109298805 A CN109298805 A CN 109298805A
Authority
CN
China
Prior art keywords
terminal device
touch screen
proximity state
tolerance data
mutual tolerance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811123760.6A
Other languages
Chinese (zh)
Inventor
戴聪
莫斐
郑灿杰
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811123760.6A priority Critical patent/CN109298805A/en
Publication of CN109298805A publication Critical patent/CN109298805A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04108Touchless 2D- digitiser, i.e. digitiser detecting the X/Y position of the input means, finger or stylus, also when it does not touch, but is proximate to the digitiser's interaction surface without distance measurement in the Z direction

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a kind of proximity state recognition methods, device, terminal device and storage medium, wherein method includes: the touch information obtained to terminal device touch screen, acquires the mutual tolerance data of the touch screen;Contact object corresponding with the mutual tolerance data is identified close to object identification model according to preset;Judge whether the contact object belongs to preset target object, belong to the target object if knowing, it is determined that is currently proximity state.Pass through this method, it can be realized without installing infrared proximity transducer close to identification, it can reduce the difficulty of object proximity identification, improve the applicability of proximity state identification, it solves to carry out approaching the terminal device known and be not suitable for shielding comprehensively otherwise in the related technology using infrared proximity transducer, causes to carry out approaching identification difficulty big technical problem in the terminal device shielded comprehensively.

Description

Proximity state recognition methods, device, terminal device and storage medium
Technical field
This application involves terminal device technical field more particularly to a kind of proximity state recognition methods, device, terminal device And storage medium.
Background technique
With the development of the terminal devices such as smart phone, the function that terminal device is supported is more and more, to meet user's A variety of demands.Existing terminal device is supported mostly close to identification, to control eventually when user is made a phone call using terminal device End equipment puts out screen, achievees the purpose that prevent accidentally to touch and save electricity.
Currently, in the related technology, infrared proximity transducer is installed usually in terminal device to identify the close of object.By It is to determine that object is set with terminal by emitting and receiving infrared light when infrared proximity transducer judges whether there is object proximity Whether the distance between standby and then close come judgment object according to distance, this requires infrared proximity transducers not by terminal The touch screen of equipment covers, to affect the screen accounting of terminal device, is not suitable in the terminal device shielded comprehensively, causes complete It carries out approaching in the terminal device of face and identifies that difficulty is big.
Summary of the invention
The application provides a kind of proximity state recognition methods, device, terminal device and storage medium, for solving related skill In art, carries out approaching the terminal device known and be not suitable for shielding comprehensively otherwise using infrared proximity transducer, cause to shield comprehensively Terminal device in approach the big technical problem of identification difficulty.
The application first aspect embodiment discloses a kind of proximity state recognition methods, comprising the following steps:
The touch information to terminal device touch screen is obtained, the mutual tolerance data of the touch screen are acquired;
Contact object corresponding with the mutual tolerance data is identified close to object identification model according to preset;
Judge whether the contact object belongs to preset target object, belong to the target object if knowing, it is determined that It is currently proximity state.
The proximity state recognition methods of the embodiment of the present application is adopted by obtaining the touch information to terminal device touch screen Collect the mutual tolerance data of touch screen, and identify contact object corresponding with mutual tolerance data close to object identification model according to preset, And then judge to contact whether object belongs to preset target object, and when contact object belongs to target object, determination is currently Proximity state.Hereby it is achieved that according to the mutual tolerance data of touch screen and preset identifying close to object identification model close to shape State can be realized the difficulty for reducing object proximity close to identification and identifying without installing infrared proximity transducer, improve close The applicability of state recognition;Pass through the mutual tolerance number of the ability collection touch when getting the touch information to terminal device touch screen According to, be conducive to save terminal device power consumption.
The application second aspect embodiment discloses a kind of proximity state identification device, comprising:
Acquisition module acquires the mutual tolerance data of the touch screen for obtaining the touch information to terminal device touch screen;
Identification module, for identifying contactant corresponding with the mutual tolerance data close to object identification model according to preset Body;
Determining module belongs to the mesh if knowing for judging whether the contact object belongs to preset target object Mark object, it is determined that be currently proximity state.
The proximity state identification device of the embodiment of the present application is adopted by obtaining the touch information to terminal device touch screen Collect the mutual tolerance data of touch screen, and identify contact object corresponding with mutual tolerance data close to object identification model according to preset, And then judge to contact whether object belongs to preset target object, and when contact object belongs to target object, determination is currently Proximity state.Hereby it is achieved that according to the mutual tolerance data of touch screen and preset identifying close to object identification model close to shape State can be realized the difficulty for reducing object proximity close to identification and identifying without installing infrared proximity transducer, improve close The applicability of state recognition;Pass through the mutual tolerance number of the ability collection touch when getting the touch information to terminal device touch screen According to, be conducive to save terminal device power consumption.
The application third aspect embodiment discloses a kind of terminal device, comprising: touch screen, memory, processor and deposits The computer program that can be run on a memory and on a processor is stored up, it is real when the processor executes the computer program The now proximity state recognition methods as described in aforementioned first aspect embodiment.
The application fourth aspect embodiment discloses a kind of computer readable storage medium, is stored thereon with computer journey Sequence realizes the proximity state recognition methods as described in aforementioned first aspect embodiment when the program is executed by processor.
The additional aspect and advantage of the application will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The above-mentioned and/or additional aspect and advantage of the application is from combining in description of the following accompanying drawings to embodiment by change It obtains obviously and is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of proximity state recognition methods provided by the embodiment of the present application;
Fig. 2 is the flow diagram of another kind proximity state recognition methods provided by the embodiment of the present application;
Fig. 3 is the flow diagram of another kind proximity state recognition methods provided by the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of proximity state identification device provided by the embodiment of the present application;
Fig. 5 is the structural schematic diagram of another kind proximity state identification device provided by the embodiment of the present application;
Fig. 6 is the structural schematic diagram of another proximity state identification device provided by the embodiment of the present application;And
Fig. 7 is a kind of structural schematic diagram of terminal device provided by the embodiment of the present application.
Specific embodiment
Presently filed embodiment is described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein from beginning Same or similar element or element with the same or similar functions are indicated to same or similar label eventually.Below by ginseng The embodiment for examining attached drawing description is exemplary, and is only used for explaining the application, and should not be understood as the limitation to the application.
In the description of the present application, it is to be understood that term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more feature.In the description of the present application In, the meaning of " plurality " is two or more, unless otherwise specifically defined.
Below with reference to the accompanying drawings proximity state recognition methods, device, terminal device and the storage for describing the embodiment of the present application are situated between Matter.
Fig. 1 is a kind of flow diagram of proximity state recognition methods provided by the embodiment of the present application, and this method can be with There is the terminal device of touch screen applied to smart phone, tablet computer etc..
As shown in Figure 1, the proximity state recognition methods may comprise steps of:
Step 101, the touch information to terminal device touch screen, the mutual tolerance data of collection touch are obtained.
In the embodiment of the present application, mutual capacitance sensors can be set on touch screen, for completing normal touch sensing, wrap Include multi-point touch.When terminal device gets the touch information to terminal device touch screen, acquires and touch from mutual capacitance sensors Touch the mutual tolerance data of screen.
, it is understood that can be obtained in different ways to the touch information of terminal device touch screen.For example, when eventually When end equipment detects that the program of current foreground operation is specific application program, it is believed that get to terminal device touch screen Touch information.
In another example pressure sensor can be arranged in the lower section of terminal device touch screen, when terminal device detects pressure When the pressure value variation of sensor, it is believed that get the touch information to terminal device touch screen.
In another example temperature sensor can be set in the lower section of terminal device touch screen, since the temperature of human body is higher, when When human contact's touch screen, temperature sensor can detecte the temperature change of contact position, at this time it is considered that getting pair The touch information of terminal device touch screen.
In the present embodiment, after getting the touch information to touch screen, terminal device is sensed from the mutual capacitance on touch screen Device acquires mutual tolerance data.
Step 102, contact object corresponding with mutual tolerance data is identified close to object identification model according to preset.
It wherein, is that preparatory training obtains close to object identification model.Developer can collect a large amount of user to end The mutual tolerance data and corresponding contact object that end equipment touch screen generates when being touched, by dividing the data of collection Class and analysis establish shape corresponding to mutual tolerance data and contact the mapping relations between object, and right using mutual tolerance data institute As training sample, training is obtained close to object identification model mapping relations between the shape answered and contact object.Proximity object Body identification model can be stored in advance in terminal device, or storage is in the server.
As an example, it is stored in terminal device close to object identification model.In this example, touch screen is acquired After mutual tolerance data, mutual tolerance data are input to it is preset close in object identification model, it is available corresponding with mutual tolerance data Contact object.
As an example, it is stored in cloud server close to object identification model.In this example, touch screen is acquired Mutual tolerance data after, mutual tolerance data can be sent to cloud server by terminal device, and cloud server is known according to close to object Other model obtains contact object corresponding with mutual tolerance data, and the contact object that will identify that is sent to terminal device.
Step 103, judge to contact whether object belongs to preset target object, belong to target object if knowing, it is determined that It is currently proximity state.
Wherein, target object can be preset.For example, target object can be set to the big face such as ear, palm, face Product object.When specific implementation, target object can be stored in terminal device in the form of a list.
In the present embodiment, after recognizing contact object corresponding with the mutual tolerance data of acquisition, preset mesh can be inquired Object is marked, to judge whether the contact object identified belongs to preset target object.When knowing the contact object category identified When target object, it is determined that be currently proximity state.For example, preset target object has ear, palm and area to reach s's Region, if the contact object recognized is the elliptical region that an area is greater than s, it is determined that be currently proximity state.
In the embodiment of the present application, according to mutual tolerance data of acquisition and preset close to object identification model and preset mesh Object is marked to identify proximity state, infrared proximity transducer is not necessarily to, is applicable not only to the terminal device of common touch screen, is also suitable It is applied widely in the terminal device shielded comprehensively, be conducive to the screen accounting for improving terminal device.
The proximity state recognition methods of the present embodiment, by obtaining the touch information to terminal device touch screen, acquisition touching The mutual tolerance data of screen are touched, and identify contact object corresponding with mutual tolerance data close to object identification model according to preset, in turn Judge to contact whether object belongs to preset target object, and when contact object belongs to target object, determines currently to be close State.Hereby it is achieved that according to the mutual tolerance data of touch screen and preset identifying proximity state, nothing close to object identification model Infrared proximity transducer, which need to be installed, can be realized the difficulty that object proximity identification is reduced close to identification, improve proximity state The applicability of identification;By the mutual tolerance data of the ability collection touch when getting the touch information to terminal device touch screen, Be conducive to save the power consumption of terminal device.
When the touch screen of object proximity terminal device, different contact positions touching intensity caused by touch screen is not Together, thus the mutual tolerance data generated also difference.In order to avoid misrecognition, in a kind of possible realization side of the embodiment of the present application In formula, the mutual tolerance data of the condition of satisfaction can be obtained only to carry out the identification of proximity state.To which the embodiment of the present application proposes Another proximity state recognition methods, Fig. 2 are the process of another kind proximity state recognition methods provided by the embodiment of the present application Schematic diagram.
As shown in Fig. 2, step 101 may comprise steps of on the basis of embodiment as shown in Figure 1:
Step 201, the capacitance of collection touch, and the capacitance of acquisition is compared with preset report point threshold value.
In the present embodiment, when terminal device gets the touch information to touch screen, the capacitance of collection touch, and The capacitance of acquisition is compared with preset report point threshold value, to judge whether the capacitance of acquisition reaches report point threshold value.
Wherein, terminal device can acquire capacitance from the mutual capacitance sensors on touch screen.Mutual capacitance sensors are installed Touch screen be properly termed as mutual capacitance screen.
The working principle of mutual capacitance screen is: mutual capacitance screen glass surface with tin indium oxide (Indium Tin Oxide, Referred to as ITO is a kind of transparent conductive material) transverse electrode and longitudinal electrode are made, two arrays of electrodes constitutes the two poles of the earth of capacitor, Capacitor is formed in the crosspoint of two arrays of electrodes.When object touches touch screen, affect near touch point between two electrodes Coupling, lead to the capacitance variation at touch point between the two electrodes.Detect capacitance size when, transverse electrode according to Secondary sending pumping signal, all longitudinal electrodes receive pumping signal simultaneously, and all transverse electrodes and longitudinal electricity thus can be obtained The capacitance size of pole joint.
Step 202, the capacitance for being up to report point threshold value is determined as mutual tolerance data.
Wherein, report point threshold value can be preset.
Due to mutual capacitance screen detection be transverse electrode and longitudinal electrode infall mutual capacitance, i.e. coupled capacitor, in cross Mutual capacitance can be generated to the intersection of electrode and longitudinal electrode, the mutual capacitance when human body touch mutual capacitance screen, at touch point It reduces.To the mutual tolerance data of acquisition be compared with report point threshold value, be up to the capacitor of report point threshold value in the present embodiment Value is determined as mutual tolerance data, that is to say, that by the capacitance of acquisition, the capacitance less than or equal to report point threshold value is determined as mutually Hold data, the identification for proximity state.
The proximity state recognition methods of the present embodiment, by the capacitance of collection touch, and by the capacitance of acquisition with Preset report point threshold value is compared, and then the capacitance for being up to report point threshold value is determined as mutual tolerance data, has reached as a result, pair The purpose that the capacitance of acquisition is screened only selects the capacitance for reaching report point threshold value to carry out proximity state as mutual tolerance data Identification advantageously reduces the probability of misrecognition, promotes user experience.
Fig. 3 is the flow diagram of another kind proximity state recognition methods provided by the embodiment of the present application.
As shown in figure 3, the proximity state recognition methods may comprise steps of:
Step 301, determine that currently running application program is pre-set programs in terminal device.
Wherein, pre-set programs can be other non-frequency applications in addition to the frequency applications such as phone, wechat.Pre-set programs It can be set before terminal device dispatches from the factory, sets itself can also be liked according to the use of oneself by user.
In the present embodiment, currently running application program in terminal device first can be obtained using the relevant technologies, then judge Whether the application program of front stage operation is pre-set programs.
As an example, the application of front stage operation can be determined according to the call parameters of ActivityLifecycle Program.For a certain application program, as ActivityLifecycle call parameters onResume (), it may be determined that this is answered Front stage operation state is currently at program.
As an example, if the packet name of the entitled application program of process where the Activity of foreground, is obtaining It, can be by obtaining progress information come the application program of indirect gain front stage operation when currently running application program.
After getting currently running application program, that is, can determine whether currently running application program is pre-set programs. Wherein, pre-set programs can be placed in blacklist, after getting currently running application program, inquire blacklist, if The application program is found in blacklist, it is determined that currently running application program belongs to destination application.
By just being carried out using the present processes after determining that currently running application program belongs to destination application Proximity state identification, can be avoided causes to identify more demanding application program (ratio to close because close identification is not sensitive enough Such as phone) false triggering is caused, the user experience is improved.
In addition, in the terminal device shielded comprehensively, it, usually will be complete because infrared proximity transducer is installed in not extra space Face carries out the identification of proximity state as virtual proximity sensor in such a way that poll detects suspension distance, power consumption compared with It is high.And in the present embodiment, for target application, proximity state identification is carried out by the way of acquisition mutual tolerance data when touching, nothing Poll is needed to detect suspension distance, to save power consumption.
Step 302, the touch information to terminal device touch screen, the mutual tolerance data of collection touch are obtained.
Step 303, contact object corresponding with mutual tolerance data is identified close to object identification model according to preset.
Step 304, judge to contact whether object belongs to preset target object.
Step 305, determine currently be proximity state.
It should be noted that it is right in previous embodiment to may refer to the description of step 302- step 305 in the present embodiment The description of step 101- step 103, details are not described herein again.
Step 306, according to operational order corresponding with currently running application program, corresponding operation is executed.
In application scenes, it usually needs carry out proximity state identification, prevent from accidentally touching to execute corresponding operation Hair.For example, user, during using terminal equipment, discovery touch screen surface has spot, and user at this time may be direct with hand Touch screen is wiped, if being identified at this time without proximity state and touch screen being made to be in operable state, is touched when user wipes When touching screen, maloperation may be led to because of touch, bring bad user experience.If carrying out proximity state identification, when user wipes It can be proximity state by the touch recognition of user, and then execute corresponding false-touch prevention operation, such as put out screen when wiping touch screen, Achieve the purpose that prevent maloperation.
In the present embodiment, for different application programs, different false-touch prevention operational orders can be preset.For example, For microblogging, it is that screen is graying and inoperable that false-touch prevention operational order, which is arranged,;For camera, false-touch prevention operational order, which is arranged, is Put out screen;Etc..In turn, after determination is currently proximity state, terminal device can further basis and currently running application The corresponding operational order of program executes corresponding operation.
As an example, the mapping relations between preset application program and corresponding operational order can be stored in advance In terminal device, after determining currently is proximity state, according to currently running application program, closed by inquiry mapping System can determine corresponding operational order, and then terminal device executes corresponding operation according to operational order.
Step 307, mutual tolerance data corresponding report point in touch screen is obtained.
In the present embodiment, the contact object of identification is compared with target object, when know contact object be not belonging to mesh When marking object, then mutual tolerance data corresponding report point in touch screen is further obtained.
As an example, mutual tolerance data corresponding report point in touch screen can touch touch screen in contact object When generating mutual tolerance data, according to the capacitance variations situation of touch screen, the coordinate value for calculating each touch point is obtained.And then knowing When contact object is not belonging to target object, the coordinate value of each touch point is obtained to determine the corresponding report point of each mutual tolerance data.
As an example, when terminal device obtains the mutual tolerance data of touch screen, each mutual tolerance data institute can be obtained simultaneously The coordinate value of corresponding touch point, and then corresponding report point is determined according to coordinate value.
Further, in a kind of possible implementation of the embodiment of the present application, it is right in touch screen that mutual tolerance data are obtained When the report point answered, mutual tolerance data can be compared with preset report point threshold value, and obtain the mutual tolerance number for reaching report point threshold value According to corresponding report point.
Step 308, the position and/or corresponding track based on report point in touch screen, responds current touch operation.
Wherein, position of the report point in touch screen can be determined according to the corresponding coordinate value of report point.
In the present embodiment, after obtaining the corresponding report point of mutual tolerance data, terminal device can be according to report point in touch screen Position and/or corresponding track, respond current touch operation.
For example, when the contact object identified according to mutual tolerance data is one, according to position of the report point in touch screen It sets, responds matched touch operation.For example, currently running application program is video playing application in terminal device, terminal is set Tri- videos of A, B and C are currently shown in standby display screen, the model where position of the report point in touch screen falls in video B When enclosing interior, if video B is not presently within broadcast state, video B is played as the response to contact object contact touch screen.
When report point is multiple, a track can be generated according to the sequencing of report point, terminal device can be according to rail The corresponding relationship of mark and touch operation determines the refined response operation of the corresponding touch operation in current track.For example, bright screen is arranged Under state, track " S " corresponding touch operation is screenshotss, then when the corresponding track of report point is " S ", terminal device interception display The content currently shown in interface.
It glides in another example two fingers can also be arranged from the top of terminal device display interface, corresponding interception is by region The touch operation of interface content.When the position of two-way report point is since the top of display interface, and the corresponding track of point is reported to be When sliding trace from top to bottom, the content for the display interface that terminal device interception two fingers slide past.For example, working as two fingers from end When the top of end equipment display interface is snapped down to the middle position of display interface, the content of top half in display interface is intercepted.
The proximity state recognition methods of the present embodiment is pre- by application program currently running in determining terminal device If just acquiring mutual tolerance data when program and carrying out approaching identification, can be avoided causes to know to close because close identification is not sensitive enough Not more demanding application program causes false triggering;By know contact object be not belonging to it is preset close to object when, obtain Mutual tolerance data corresponding report point in touch screen, position and/or corresponding track based on report point in touch screen, response are current Touch operation, know contact object belong to it is preset close to object when, determine currently be proximity state, and according to it is current The corresponding operational order of the application program of operation executes corresponding operation, avoids false triggering as a result, it is ensured that application program Normal operation, the user experience is improved.
In order to realize above-described embodiment, the application also proposes a kind of proximity state identification device.
Fig. 4 is a kind of structural schematic diagram of proximity state identification device provided by the embodiment of the present application.
As shown in figure 4, the proximity state identification device 40 includes: acquisition module 410, identification module 420, judgment module 430 and determining module 440.
Wherein, acquisition module 410, for obtaining the touch information to terminal device touch screen, the mutual tolerance of collection touch Data.
Identification module 420, for identifying contactant corresponding with mutual tolerance data close to object identification model according to preset Body.
Judgment module 430 contacts whether object belongs to preset target object for judging.
Determining module 440, for knowing that determining is currently proximity state when belonging to target object.
Further, in a kind of possible implementation of the embodiment of the present application, as shown in figure 5, implementing as shown in Figure 4 On the basis of example, acquisition module 410 may include:
Comparing unit 411, for the capacitance of collection touch, and by the capacitance of acquisition and preset report point threshold value into Row compares.
Determination unit 412, the capacitance for being up to report point threshold value are determined as mutual tolerance data.
It is compared by the capacitance of collection touch, and by the capacitance of acquisition with preset report point threshold value, in turn The capacitance for being up to report point threshold value is determined as mutual tolerance data, has achieved the purpose that screen the capacitance of acquisition as a result, It only selects the capacitance for reaching report point threshold value to carry out proximity state identification as mutual tolerance data, advantageously reduces the general of misrecognition Rate promotes user experience.
In a kind of possible implementation of the embodiment of the present application, as shown in fig. 6, on the basis of embodiment as shown in Figure 4 On, the proximity state identification device 40 further include:
Preprocessing module 400, for determining, currently running application program is pre-set programs in terminal device.
Respond module 450, for know contact object be not belonging to it is preset close to object when, obtain mutual tolerance data and touching Touch corresponding report point in screen;Position and/or corresponding track based on report point in touch screen, respond current touch operation.
Execution module 460 is used for after determination is currently proximity state, according to corresponding with currently running application program Operational order, execute corresponding operation.
By application program currently running in determining terminal device be pre-set programs when, just acquire mutual tolerance data progress Close to identification, can be avoided causes to identify that more demanding application program causes accidentally to touch to close because close identification is not sensitive enough Hair;By know contact object be not belonging to it is preset close to object when, obtain mutual tolerance data corresponding report point in touch screen, Position and/or corresponding track based on report point in touch screen, respond current touch operation, are knowing that contacting object belongs to It is preset close to object when, determine currently be proximity state, and according to operational order corresponding with currently running application program, Corresponding operation is executed, avoids false triggering as a result, it is ensured that the normal operation of application program, the user experience is improved.
It should be noted that the aforementioned explanation to close to state identification method embodiment is also applied for the embodiment Proximity state identification device, realization principle is similar, and details are not described herein again.
The proximity state identification device of the embodiment of the present application is adopted by obtaining the touch information to terminal device touch screen Collect the mutual tolerance data of touch screen, and identify contact object corresponding with mutual tolerance data close to object identification model according to preset, And then judge to contact whether object belongs to preset target object, and when contact object belongs to target object, determination is currently Proximity state.Hereby it is achieved that according to the mutual tolerance data of touch screen and preset identifying close to object identification model close to shape State can be realized the difficulty for reducing object proximity close to identification and identifying without installing infrared proximity transducer, improve close The applicability of state recognition;Pass through the mutual tolerance number of the ability collection touch when getting the touch information to terminal device touch screen According to, be conducive to save terminal device power consumption.
In order to realize above-described embodiment, the application also proposes a kind of terminal device, comprising: touch screen, memory, processor And the computer program that can be run on a memory and on a processor is stored, when processor executes computer program, realize such as Proximity state recognition methods described in previous embodiment.
Fig. 7 is a kind of structural schematic diagram of terminal device provided by the embodiment of the present application.
The terminal device that Fig. 7 is shown is only an example, should not function and use scope band to the embodiment of the present application Carry out any restrictions.
As shown in fig. 7, above-mentioned terminal device 200 includes: processor 23, the memory 32 connected by system bus 31 (for example, non-volatile memory medium), built-in storage 33, display layer 13 and touch screen 34.Wherein, the storage of terminal device 200 Device 32 is stored with operating system and computer-readable instruction.The computer-readable instruction can be executed by processor 23, on realizing State the proximity state recognition methods of any one embodiment.
Processor 23 can be used for providing calculating and control ability, support the operation of entire terminal device 200.Terminal device 200 built-in storage 33 provides environment for the computer-readable instruction operation in memory 32.The display layer 13 of terminal device 200 It can be OLED display layer or Micro LED display layer etc., touch screen 34 can be the mutual capacitance being arranged on display layer 13 Screen.The terminal device 200 can be mobile phone, tablet computer, laptop, personal digital assistant or wearable device (such as Intelligent bracelet, smartwatch, intelligent helmet, intelligent glasses) etc..It will be understood by those skilled in the art that being tied shown in Fig. 7 Structure, only the schematic diagram of part-structure relevant to the present invention program, does not constitute and is applied thereon to the present invention program Terminal device 200 restriction, specific terminal device 200 may include than more or fewer components shown in Fig. 7, or Certain components are combined, or with different component layouts.
The terminal device of the present embodiment, processor are close to realize by executing the computer program stored in memory State identification method, to realize according to mutual tolerance data of touch screen and preset close to identify close to object identification model State can be realized the difficulty for reducing object proximity close to identification and identifying without installing infrared proximity transducer, improve and connect The applicability of nearly state recognition;Pass through the mutual tolerance of the ability collection touch when getting the touch information to terminal device touch screen Data are conducive to the power consumption for saving terminal device.
The embodiment of the present application also proposed a kind of computer readable storage medium, be stored thereon with computer program, when this It realizes when program is executed by processor such as the proximity state recognition methods in previous embodiment.
In a kind of optional way of realization, the present embodiment can be using any group of one or more computer-readable media It closes.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable to deposit Storage media for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor Part, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: to have The electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
The computer readable storage medium of the application embodiment, may be provided in terminal device, be deposited thereon by executing The proximity state recognition methods of storage is realized according to the mutual tolerance data of touch screen and preset is identified close to object identification model Proximity state can be realized the difficulty for reducing object proximity close to identification and identifying without installing infrared proximity transducer, improve The applicability of proximity state identification;Pass through the ability collection touch when getting the touch information to terminal device touch screen Mutual tolerance data are conducive to the power consumption for saving terminal device.
The embodiment of the present application also proposed a kind of computer program product, when the instruction in computer program product is by handling When device executes, proximity state recognition methods as in the foregoing embodiment is executed.
In the description of this specification, reference term " embodiment ", " certain embodiments ", " schematically implementation The description of mode ", " example ", " specific example " or " some examples " etc. means embodiment or example is combined to describe specific Feature, structure, material or feature are contained at least one embodiment or example of the application.In the present specification, right The schematic representation of above-mentioned term is not necessarily referring to identical embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can be combined in any suitable manner in any one or more embodiments or example.
While there has been shown and described that presently filed embodiment, it will be understood by those skilled in the art that: These embodiments can be carried out with a variety of variations, modification, replacement in the case where not departing from the principle and objective of the application and become Type, scope of the present application are defined by the claims and their equivalents.

Claims (10)

1. a kind of proximity state recognition methods, which is characterized in that the described method comprises the following steps:
The touch information to terminal device touch screen is obtained, the mutual tolerance data of the touch screen are acquired;
Contact object corresponding with the mutual tolerance data is identified close to object identification model according to preset;
Judge whether the contact object belongs to preset target object, belong to the target object if knowing, it is determined that is current For proximity state.
2. the method according to claim 1, wherein believing in the touch obtained to terminal device touch screen It ceases, before the mutual tolerance data for acquiring the touch screen, the method also includes:
Determine that currently running application program is pre-set programs in the terminal device.
3. the method according to claim 1, wherein the mutual tolerance data of the acquisition touch screen, comprising:
The capacitance of the touch screen is acquired, and the capacitance of acquisition is compared with preset report point threshold value;
The capacitance for being up to report point threshold value is determined as mutual tolerance data.
4. method according to claim 1-3, which is characterized in that the method also includes:
If it is preset close to object to know that the contact object is not belonging to, it is right in the touch screen to obtain the mutual tolerance data The report point answered;
Position and/or corresponding track based on the report point in the touch screen, respond current touch operation.
5. method according to claim 1-3, which is characterized in that determine currently also to wrap after proximity state It includes:
According to operational order corresponding with currently running application program, corresponding operation is executed.
6. a kind of proximity state identification device characterized by comprising
Acquisition module acquires the mutual tolerance data of the touch screen for obtaining the touch information to terminal device touch screen;
Identification module, for identifying contact object corresponding with the mutual tolerance data close to object identification model according to preset;
Judgment module, for judging whether the contact object belongs to preset target object;
Determining module, for knowing that determining is currently proximity state when belonging to the target object.
7. device according to claim 6, which is characterized in that described device further include:
Preprocessing module, for determining, currently running application program is pre-set programs in the terminal device.
8. device according to claim 6, which is characterized in that the acquisition module, comprising:
Comparing unit is carried out for acquiring the capacitance of the touch screen, and by the capacitance of acquisition and preset report point threshold value Compare;
Determination unit, the capacitance for being up to report point threshold value are determined as mutual tolerance data.
9. a kind of terminal device characterized by comprising touch screen, memory, processor and storage are on a memory and can be The computer program run on processor when the processor executes the computer program, is realized as appointed in claim 1-5 Proximity state recognition methods described in one.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Proximity state recognition methods according to any one of claims 1 to 5 is realized when execution.
CN201811123760.6A 2018-09-26 2018-09-26 Proximity state recognition methods, device, terminal device and storage medium Pending CN109298805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811123760.6A CN109298805A (en) 2018-09-26 2018-09-26 Proximity state recognition methods, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811123760.6A CN109298805A (en) 2018-09-26 2018-09-26 Proximity state recognition methods, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN109298805A true CN109298805A (en) 2019-02-01

Family

ID=65164411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811123760.6A Pending CN109298805A (en) 2018-09-26 2018-09-26 Proximity state recognition methods, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN109298805A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471068A (en) * 2019-07-23 2019-11-19 维沃移动通信有限公司 Proximity test method and mobile terminal
CN110703944A (en) * 2019-09-29 2020-01-17 Oppo广东移动通信有限公司 Touch data processing method and device, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855018A (en) * 2012-07-27 2013-01-02 北京爱格码科技有限责任公司 Method for achieving proximity sensing through touch screen capacitance induction
US20130076688A1 (en) * 2011-09-23 2013-03-28 Sony Mobile Communications Japan, Inc. Mobile terminal apparatus
CN103105987A (en) * 2012-12-28 2013-05-15 苏州瀚瑞微电子有限公司 Device and method for realizing approach switch function by utilizing capacitive touch screen
CN104102448A (en) * 2013-04-02 2014-10-15 义隆电子股份有限公司 Identification Method Of Floating Control Object
CN104160364A (en) * 2011-10-18 2014-11-19 卡内基梅隆大学 Method and apparatus for classifying touch events on a touch sensitive surface
CN104793818A (en) * 2014-01-22 2015-07-22 三星电子株式会社 Method for obtaining input in electronic device, electronic device, and storage medium
CN106293293A (en) * 2016-07-29 2017-01-04 维沃移动通信有限公司 The detection method of a kind of object distance state and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130076688A1 (en) * 2011-09-23 2013-03-28 Sony Mobile Communications Japan, Inc. Mobile terminal apparatus
CN104160364A (en) * 2011-10-18 2014-11-19 卡内基梅隆大学 Method and apparatus for classifying touch events on a touch sensitive surface
CN102855018A (en) * 2012-07-27 2013-01-02 北京爱格码科技有限责任公司 Method for achieving proximity sensing through touch screen capacitance induction
CN103105987A (en) * 2012-12-28 2013-05-15 苏州瀚瑞微电子有限公司 Device and method for realizing approach switch function by utilizing capacitive touch screen
CN104102448A (en) * 2013-04-02 2014-10-15 义隆电子股份有限公司 Identification Method Of Floating Control Object
CN104793818A (en) * 2014-01-22 2015-07-22 三星电子株式会社 Method for obtaining input in electronic device, electronic device, and storage medium
CN106293293A (en) * 2016-07-29 2017-01-04 维沃移动通信有限公司 The detection method of a kind of object distance state and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471068A (en) * 2019-07-23 2019-11-19 维沃移动通信有限公司 Proximity test method and mobile terminal
CN110471068B (en) * 2019-07-23 2021-09-14 维沃移动通信有限公司 Proximity detection method and mobile terminal
CN110703944A (en) * 2019-09-29 2020-01-17 Oppo广东移动通信有限公司 Touch data processing method and device, terminal and storage medium
CN110703944B (en) * 2019-09-29 2023-03-31 Oppo广东移动通信有限公司 Touch data processing method and device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106681638B (en) A kind of touch screen control method, device and mobile terminal
US9588621B2 (en) Touch screen controller and method for controlling thereof
CN105573538B (en) Sliding broken line compensation method and electronic equipment
CN106909297B (en) Data communication processing method and device, electronic equipment and touch display equipment
EP3719701A2 (en) Method for fingerprint recognition, electronic device, and non-transitory computer-readable storage medium
CN108616712B (en) Camera-based interface operation method, device, equipment and storage medium
CN109614207A (en) Processing method, equipment and the computer readable storage medium of boarding application
CN110209273A (en) Gesture identification method, interaction control method, device, medium and electronic equipment
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
CN110521288A (en) The printed circuit board of ground connection including connector and with different potentials and electronic equipment with the printed circuit board
CN106878809A (en) A kind of video collection method, player method, device, terminal and system
CN111208917B (en) Touch data processing method and device, intelligent equipment and storage medium
CN103906010A (en) Method for synchronizing messages among plurality of terminals, machine-readable storage medium, and server
CN108875643A (en) Fingerprint mould group, fingerprint identification method, device, storage medium and mobile terminal
CN105786277A (en) Touch screen with fingerprint identification function, and control method and electronic equipment thereof
CN112068698A (en) Interaction method and device, electronic equipment and computer storage medium
CN109298805A (en) Proximity state recognition methods, device, terminal device and storage medium
CN106325623A (en) Method and apparatus for monitoring touch on touch screen and terminal device
CN109740430B (en) Fingerprint input method and related equipment
CN107765900A (en) A kind of smart pen, the control method of smart pen, device, equipment and storage medium
US20140348334A1 (en) Portable terminal and method for detecting earphone connection
CN107533566A (en) Method, portable electric appts and the graphic user interface retrieved to the content of picture
CN109284060A (en) Display control method and relevant apparatus
CN108062175B (en) Screen operation control method and device and terminal
KR102079033B1 (en) Mobile terminal and method for controlling place recognition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201