CN108519849B - Touch information processing method and device, storage medium and electronic equipment - Google Patents

Touch information processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108519849B
CN108519849B CN201810299713.0A CN201810299713A CN108519849B CN 108519849 B CN108519849 B CN 108519849B CN 201810299713 A CN201810299713 A CN 201810299713A CN 108519849 B CN108519849 B CN 108519849B
Authority
CN
China
Prior art keywords
touch
pressure
video
touch information
pressure sensing
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.)
Expired - Fee Related
Application number
CN201810299713.0A
Other languages
Chinese (zh)
Other versions
CN108519849A (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 CN201810299713.0A priority Critical patent/CN108519849B/en
Publication of CN108519849A publication Critical patent/CN108519849A/en
Application granted granted Critical
Publication of CN108519849B publication Critical patent/CN108519849B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The method includes the steps that touch information is obtained through a pressure sensor and a timer which are arranged on electronic equipment, wherein the touch information comprises a pressure induction value and pressure duration; analyzing the touch information and determining touch operation indicated by the touch information; matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and loading the video control parameters and executing corresponding operation on the video elements. Therefore, touch operation input by a user can be acquired through the pressure sensor and the timer on the frame, the corresponding video control parameters are obtained by matching the video application program according to the touch operation, and the video control parameters are loaded to perform corresponding control on the video elements, so that the control diversity of the electronic equipment is improved, and the control efficiency of the electronic equipment is further improved.

Description

Touch information processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic device control technologies, and in particular, to a method and an apparatus for processing touch information, a storage medium, and an electronic device.
Background
At present, with the continuous development of electronic device technologies, electronic devices such as mobile phones have increasingly powerful functions, and users can easily realize a plurality of functions such as electronic shopping and entertainment through mobile phones, for example, users can perform video touch control by clicking a touch screen to realize a mobile phone video watching function.
However, the existing mobile phone video has higher and higher requirements on operation and control, and the touch control mode only through the touch screen is single, so that the control efficiency is low.
Disclosure of Invention
The embodiment of the application provides a touch information processing method and device, a storage medium and electronic equipment, which can improve the control efficiency of the electronic equipment.
A processing method of touch information is applied to electronic equipment, a pressure sensor is arranged on a frame of the electronic equipment, and the processing method comprises the following steps:
acquiring touch information, wherein the touch information comprises a pressure induction value and pressure duration;
analyzing the touch information and determining touch operation indicated by the touch information;
matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and
and loading the video control parameters and executing corresponding operation on the video elements.
A touch information processing apparatus, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring touch information which comprises a pressure induction value and pressure duration;
the determining module is used for analyzing the touch information and determining the touch operation indicated by the touch information;
the matching module is used for matching a video application program according to the touch operation so as to obtain a video control parameter corresponding to the touch operation;
and the loading module is used for loading the video control parameters and executing corresponding operation on the video elements.
A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of processing touch information as described above.
An electronic device, comprising:
a housing;
the pressure sensor is arranged on the side frame of the shell and used for acquiring a pressure induction value;
the timer is arranged in the shell and used for acquiring the pressure duration;
the memory is arranged in the shell and used for storing instructions and data; and
and the processor is arranged in the shell and used for executing the processing method of the touch information.
The method includes the steps that touch information is obtained through a pressure sensor and a timer which are arranged on electronic equipment, wherein the touch information comprises a pressure induction value and pressure duration; analyzing the touch information and determining touch operation indicated by the touch information; matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and loading the video control parameters and executing corresponding operation on the video elements. Therefore, touch operation input by a user can be acquired through the pressure sensor and the timer on the frame, the corresponding video control parameters are obtained by matching the video application program according to the touch operation, and the video control parameters are loaded to perform corresponding control on the video elements, so that the control diversity of the electronic equipment is improved, and the control efficiency of the electronic equipment is further improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 2 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a pressure sensor provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a pressure sensor circuit provided in an embodiment of the present application.
Fig. 5 is a first flowchart illustrating a method for processing touch information according to an embodiment of the present disclosure.
Fig. 6 is a second flowchart illustrating a touch information processing method according to an embodiment of the present disclosure.
Fig. 7 is a third flowchart illustrating a method for processing touch information according to an embodiment of the present disclosure.
Fig. 8 is a schematic block diagram of a touch information processing apparatus according to an embodiment of the present disclosure.
Fig. 9 is a schematic block diagram of a second module of a touch information processing apparatus according to an embodiment of the present disclosure.
Fig. 10 is a schematic diagram of a third module of a touch information processing apparatus according to an embodiment of the present disclosure.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be considered a software object executing on the computing system. The different components, modules, engines, and services described herein may be viewed as implementation objects on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The following is a detailed description of the analysis.
In the present embodiment, the description will be made from the perspective of a processing apparatus of touch information, which may be specifically integrated in an electronic device, such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 100 includes a cover plate 10, a display 20, a circuit board 30, and a housing 40.
The cover plate 10 is mounted to the display screen 20 to cover the display screen 20. The cover plate 10 may be a transparent glass cover plate. In some embodiments, the cover plate 10 may be a glass cover plate made of a material such as sapphire.
The display screen 20 is mounted on the housing 40 to form a display surface of the electronic device 100. In some embodiments, the display screen 20 includes a display area 21 and a non-display area 22. The display area 21 is used for displaying information such as images and texts. The non-display area 22 does not display information. The non-display area 22 may be used to set some functional components, such as a camera, a fingerprint recognition module, and the like. In some embodiments, the non-display area 22 may include a plurality of areas spaced apart from each other. For example, the non-display area 22 may include two areas located at the upper and lower portions of the display area 21.
In some embodiments, the display screen 20 may be displayed full screen. That is, the display 20 includes only the display area 21 and does not include the non-display area, as shown in fig. 2.
In some embodiments, the Display 20 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display.
The circuit board 30 is mounted inside the housing 40. The circuit board 30 may be a motherboard of the electronic device 100. Functional components such as a camera and a processor may be integrated on the circuit board 30. Meanwhile, the display screen 20 may be electrically connected to the circuit board 30.
In some embodiments, display control circuitry is disposed on the circuit board 30. The display control circuit outputs an electrical signal to the display screen 20 to control the display screen 20 to display information.
The housing 40 is used to form the outer contour of the electronic device 100. The housing 40 may be made of plastic or metal. The housing 40 may be integrally formed. A plurality of frames 41 are formed on the periphery of the housing 40, a pressure sensor 42 is arranged on each frame 41, and the pressure sensor 42 is electrically connected with the circuit board 30 and used for detecting a touch pressure value generated on the frame 41 and acquiring touch information when the touch pressure value is greater than a preset threshold value.
In an embodiment, the pressure sensor 42 may be a full bridge circuit composed of four resistors, so that when the frame 41 is slightly deformed by the pressing force applied to the frame 41 through the full bridge circuit provided on the frame 41 of the electronic device 100, the bridge resistors determine the magnitude of the pressing force applied according to the change of the voltage difference between the two ends of the pair of resistors.
In this embodiment, as shown in fig. 3, when the full-bridge circuit is composed of the piezoresistor R1, the resistor R2, the resistor R3 and the resistor R4 which are connected end to end and have the same resistance, when the piezoresistor is not subjected to the pressing force, all the resistance values in the bridge are equal, the resistance values of two opposite resistors are increased, and the resistance values of the other two resistors are decreased, so that the variation of the voltage is converted into the corresponding voltage value, and the magnitude of the pressing force is known according to the variation of the voltage value.
For example, as shown in fig. 4, when the values of the resistors R2 and R3 both receive a 1% decrease in the pressing force, the values of the resistors R1 and R4 increase by 1%, the voltage value between the two "middle" points changes from 0 to 2%, and the voltage value can be amplified to a level suitable for the ADC, and then the ADC converts the amplified sensor output voltage into a digital form, and then the digital form is handed to the controller or DSP in the circuit board for processing, so as to obtain the current pressing force.
Referring to fig. 5, fig. 5 is a first flowchart illustrating a method for processing touch information according to an embodiment of the present disclosure. Specifically, the method comprises the following steps:
step S101, touch information is obtained, wherein the touch information comprises a pressure induction value and pressure duration.
It should be noted that the pressure sensor 42 is disposed on a frame of the electronic device, and is connected to a circuit board in the electronic device, and is configured to sense a touch pressure value on the frame. The timer 43 may be disposed in a housing of the electronic device, and each time the pressure sensor 42 senses a pressure touch and the pressure touch is removed.
Step S102, analyzing the touch information, determining the touch operation indicated by the touch information,
it should be noted that the touch operations corresponding to different pressure sensing values and pressure durations are obtained by analyzing the pressure sensing values and the pressure durations of the control information. The touch operation may include performing a fast forward operation on the video element, performing a fast rewind operation on the video element, performing a volume up operation on the video element, and performing a volume down operation on the video element.
The step S102 may include the steps of:
step S1021, judging whether the pressure induction value of the touch information is larger than a pressure induction threshold value;
step S1022, determining whether the pressure duration of the touch information is greater than a duration threshold; and
in step S1023, an acquisition source of the touch information is determined.
The sequence of step S1021, step S1022, and step S1023 may be performed in the sequence of step S1021, step S1022, and step S1023, or in the sequence of step S1021, step S1023, and step S1022.
Referring to fig. 6, fig. 6 is a second flowchart illustrating a touch information processing method according to an embodiment of the present disclosure. The following description will be given taking as an example that the order of step S1021, step S1022, and step S1023 can be in the order of step S1021, step S1022, and step S1023.
First, step S1021 is performed, that is, a step of determining whether the pressure sensing value of the touch information is greater than a pressure sensing threshold is performed.
And if the pressure induction value of the touch information is greater than the pressure induction threshold, executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold, namely judging whether effective pressing is carried out according to the pressure induction value induced by the pressure inductor, so as to prevent misjudgment. If the pressure sensing value of the touch information is less than or equal to the pressure sensing threshold, performing a step of acquiring touch information, where the touch information is the pressure sensing value and the pressure duration acquired by the pressure sensor 42, that is, when the pressure sensing value sensed by the pressure sensor is too small, determining that the touch is invalid and ignoring the touch event.
Then, step S1022 is performed, that is, a step of determining whether the pressure duration of the touch information is greater than a duration threshold.
If the pressure duration of the touch information is greater than a duration threshold, determining that the touch operation is a long-time pressing operation, and executing a step of judging an acquisition source of the touch information; if the pressure duration of the touch information is smaller than the duration threshold, it is determined that the touch operation is a click operation, and the step of determining the acquisition source of the touch information is performed, that is, the touch operation of the user on the pressure sensor 42 is classified according to time by the timer 43, when the pressure duration of the touch information is larger than the duration threshold, it is determined that the touch operation is a long-time click operation, and when the pressure duration of the touch information is smaller than the duration threshold, it is determined that the touch operation is a click operation, so that the operation instruction of the user is effectively classified by the timer 43.
Finally, step S1023 is performed, that is, the acquisition source of the touch information is determined.
It should be noted that the acquisition source of the touch information includes a first pressure sensing area and a second pressure sensing area. The first pressure sensing area is responsible for a first type of operation that includes fast forward operation of the video element and volume up operation of the video element. The second pressure sensing area is responsible for a second type of operation, and the second type of operation comprises fast backward operation on the video element and volume reduction operation on the video element.
When the fact that the touch operation is the long-press operation is determined, when the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is the fast-forward operation on the video element; and when the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a fast backward operation on the video element.
When the touch operation is determined to be a clicking operation and the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is performed to increase the volume of the video element; and when the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a volume reduction operation on the video element.
Referring to fig. 7, fig. 7 is a third flowchart illustrating a touch information processing method according to an embodiment of the present disclosure. The following description will be given taking as an example that the order of step S1021, step S1022, and step S1023 can be in the order of step S1021, step S1023, and step S1022.
First, step S1021 is performed, that is, a step of determining whether the pressure sensing value of the touch information is greater than a pressure sensing threshold is performed.
And if the pressure induction value of the touch information is greater than the pressure induction threshold, executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold, namely judging whether effective pressing is carried out according to the pressure induction value induced by the pressure inductor, so as to prevent misjudgment. If the pressure sensing value of the touch information is less than or equal to the pressure sensing threshold, performing a step of acquiring touch information, where the touch information is the pressure sensing value and the pressure duration acquired by the pressure sensor 42, that is, when the pressure sensing value sensed by the pressure sensor is too small, determining that the touch is invalid and ignoring the touch event.
Then, step S1023 is performed, that is, the acquisition source of the touch information is determined.
It should be noted that the acquisition source of the touch information includes a first pressure sensing area and a second pressure sensing area.
When the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is a first type operation, and executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold; and when the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a second type operation, and executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold.
The first pressure sensing area is responsible for a first type of operation that includes fast forward operation of the video element and volume up operation of the video element. The second pressure sensing area is responsible for a second type of operation, and the second type of operation comprises fast backward operation on the video element and volume reduction operation on the video element.
Finally, step S1022 is performed, that is, it is determined whether the pressure duration of the touch information is greater than the duration threshold.
It should be noted that the touch operation of the user on the pressure sensor 42 is classified according to time by the timer 43, when the pressure duration of the touch information is greater than the duration threshold, it is determined that the touch operation is a long-press operation, and when the pressure duration of the touch information is less than the duration threshold, it is determined that the touch operation is a single-click operation, so that the operation instruction of the user is effectively classified by the timer 43.
When the touch operation is a first type operation and the pressure duration of the touch information is greater than a duration threshold, determining that the touch operation is a fast forward operation on the video element; and when the pressure duration of the touch information is less than or equal to a duration threshold, determining that the touch operation is to perform volume increase operation on the video element.
When the touch operation is a second type operation and the pressure duration of the touch information is greater than a duration threshold, determining that the touch operation is a fast-backward operation on the video element; and when the pressure duration of the touch information is less than or equal to a duration threshold, determining that the touch operation is to perform volume reduction operation on the video element.
It should be noted that the sequence of step S1021, step S1022, and step S1023 is not limited to the above two sequences, and may be flexibly adjusted according to the actual power consumption situation, the memory occupation situation, the response time duration, and the like.
The pressure sensors 42 may include at least two, so that the pressure sensors 42 are divided into two groups, one group is disposed in the first pressure sensing area, and the other group is disposed in the second pressure sensing area. Considering the operation habit of the user, because the touch operation of the user on the video is often performed alternatively, that is, the user performs fast forward operation on the video element, fast backward operation on the video element, volume up operation on the video element, and volume down operation on the video element are often performed alternatively, the timer 43 may be set to only one, when the first pressure sensing area senses the pressure, the timer 43 times the pressure sensed by the first pressure sensing area, and when the second pressure sensing area senses the pressure, the timer 43 times the pressure sensed by the second pressure sensing area, thereby avoiding the waste caused by using two timers 43.
And step S103, matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation.
The video application program stores video control parameters corresponding to the touch operation, for example, a parameter for controlling video fast forward corresponding to fast forward operation on the video element, a parameter for controlling video fast backward corresponding to fast backward operation on the video element, a parameter for controlling video volume increase corresponding to volume increase operation on the video element, and a parameter for reducing video volume corresponding to volume reduction operation on the video element. Further, according to the touch operation on the frame acquired by the pressure sensor 42, a video application program is matched, and a video control parameter corresponding to the touch operation can be obtained.
In step S104, the video control parameters are loaded, and corresponding operations are performed on the video elements.
The electronic equipment loads the video control parameters into the video, so that video elements (such as movies, TV shows and the like) execute corresponding operations according to the video control parameters, the control of the video elements can be realized by using frame touch besides the control of the video elements by the touch screen, a user can obtain better control feeling, and the control efficiency of the electronic equipment is improved.
In the processing method of touch information provided by this embodiment, touch information is acquired through a pressure sensor and a timer, which are arranged on an electronic device, where the touch information includes a pressure sensing value and a pressure duration; analyzing the touch information and determining touch operation indicated by the touch information; matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and loading the video control parameters and executing corresponding operation on the video elements. Therefore, touch operation input by a user can be acquired through the pressure sensor and the timer on the frame, the corresponding video control parameters are obtained by matching the video application program according to the touch operation, and the video control parameters are loaded to perform corresponding control on the video elements, so that the control diversity of the electronic equipment is improved, and the control efficiency of the electronic equipment is further improved.
In order to better implement the method for processing touch information provided in the embodiments of the present application, an embodiment of the present application further provides a device based on the method for processing touch information. The meaning of the noun is the same as that in the above touch information processing method, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 8, fig. 8 is a schematic block diagram of a touch information processing apparatus according to an embodiment of the present disclosure. Specifically, the touch information processing apparatus 300 includes: an acquisition module 31, a determination module 32, a matching module 33, and a loading module 34.
The obtaining module 31 is configured to obtain touch information, where the touch information includes a pressure sensing value and a pressure duration.
The pressure sensor 42 is disposed on a frame of the electronic device, connected to a circuit board in the electronic device, and configured to sense a touch pressure value on the frame. The timer 43 may be disposed in a housing of the electronic device, and each time the pressure sensor 42 senses a pressure touch and the pressure touch is removed. The acquisition module acquires the pressure sensing value detected by the pressure sensor 42 and acquires the pressure duration detected by the timer 43.
The determining module 32 is configured to analyze the touch information and determine a touch operation indicated by the touch information.
It should be noted that, the determining module 32 obtains the touch operations corresponding to different pressure sensing values and pressure durations by analyzing the pressure sensing values and the pressure durations of the control information. The touch operation may include performing a fast forward operation on the video element, performing a fast rewind operation on the video element, performing a volume up operation on the video element, and performing a volume down operation on the video element.
The determining module 32 may include a first judging module 321, a second judging module 322 and a third judging module 323.
The first determining module 321 is configured to determine whether a pressure sensing value of the touch information is greater than a pressure sensing threshold, that is, whether effective pressing is performed is determined according to the pressure sensing value sensed by the pressure sensor, so as to prevent erroneous determination. If the pressure sensing value of the touch information is less than or equal to the pressure sensing threshold, performing a step of acquiring touch information, where the touch information is the pressure sensing value and the pressure duration acquired by the pressure sensor 42, that is, when the pressure sensing value sensed by the pressure sensor is too small, determining that the touch is invalid and ignoring the touch event.
Referring to fig. 9, fig. 9 is a schematic diagram of a second module of a touch information processing apparatus according to an embodiment of the present disclosure. The first determining module 321 may include a first executing module 3211 and a restarting module 3212.
The first executing module 3211 is configured to, when the pressure sensing value of the touch information is greater than a pressure sensing threshold, instruct the second determining to execute the step of determining whether the pressure duration of the touch information is greater than a duration threshold, that is, after determining whether the touch information is an effective touch, perform classification of touch operations according to the pressure duration.
The restarting module 3212 is configured to instruct the obtaining module to execute the step of obtaining the touch information when the pressure sensing value of the touch information is less than or equal to a pressure sensing threshold, where the touch information includes the pressure sensing value and a pressure duration, that is, when the pressure sensing value sensed by the pressure sensor is too small, the touch is determined as an invalid press, and the touch event is ignored.
Referring to fig. 10, fig. 10 is a schematic diagram of a third module of a touch information processing apparatus according to an embodiment of the present disclosure. The first determining module 321 may include a second executing module 3211a and a restarting module 3212.
The second executing module 321 is configured to instruct the second determining module to execute the step of determining the obtaining source of the touch information when the pressure sensing value of the touch information is greater than the pressure sensing threshold, that is, after determining whether the touch information is an effective touch, classify the touch operation according to the obtaining source of the touch information.
The restarting module 3212 is configured to, as described above, instruct the obtaining module to execute the step of obtaining the touch information when the pressure sensing value of the touch information is less than or equal to the pressure sensing threshold, where the touch information includes the pressure sensing value and the pressure duration, that is, when the pressure sensing value sensed by the pressure sensor is too small, determine that the touch is an invalid press, and ignore the touch event.
The determination module 32 also includes a determination sub-module 324. The determination submodule 324 is configured to:
when the pressure duration of the touch information is greater than a duration threshold value and the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is a fast forward operation on the video element;
when the pressure duration of the touch information is greater than a duration threshold value and the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a fast-backward operation on the video element;
when the pressure duration of the touch information is less than or equal to a duration threshold value and the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is a volume increasing operation on the video element; or
And when the pressure duration of the touch information is less than or equal to a duration threshold value and the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a volume increasing operation on the video element.
The pressure sensors 42 may include at least two, so that the pressure sensors 42 are divided into two groups, one group is disposed in the first pressure sensing area, and the other group is disposed in the second pressure sensing area. Considering the operation habit of the user, because the touch operation of the user on the video is often performed alternatively, that is, the user performs fast forward operation on the video element, fast backward operation on the video element, volume up operation on the video element, and volume down operation on the video element are often performed alternatively, the timer 43 may be set to only one, when the first pressure sensing area senses the pressure, the timer 43 times the pressure sensed by the first pressure sensing area, and when the second pressure sensing area senses the pressure, the timer 43 times the pressure sensed by the second pressure sensing area, thereby avoiding the waste caused by using two timers 43.
The matching module 33 is configured to match a video application according to the touch operation to obtain a video control parameter corresponding to the touch operation.
The video application program stores video control parameters corresponding to the touch operation, for example, the matching module 33 is configured to perform fast forward control on the video element corresponding to fast forward operation, perform fast rewind control on the video element corresponding to fast rewind operation, perform volume increase operation on the video element corresponding to control a parameter for increasing the volume of the video, and perform volume decrease operation on the video element corresponding to a parameter for decreasing the volume of the video. Further, according to the touch operation on the frame acquired by the pressure sensor 42, a video application program is matched, and a video control parameter corresponding to the touch operation can be obtained.
The loading module 34 is configured to load the video control parameters, and perform corresponding operations on video elements.
The loading module 34 loads the video control parameters into the video, so that the video elements (such as movies, television shows, and the like) execute corresponding operations according to the video control parameters, and besides controlling the video elements by the touch screen, the control of the video elements can be realized by using frame touch, so that a user can obtain a better control feeling, and the control efficiency of the electronic device is improved.
According to the processing device for touch information provided by the embodiment, the touch information is acquired through a pressure sensor and a timer which are arranged on an electronic device, wherein the touch information comprises a pressure induction value and pressure duration; analyzing the touch information and determining touch operation indicated by the touch information; matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and loading the video control parameters and executing corresponding operation on the video elements. Therefore, touch operation input by a user can be acquired through the pressure sensor and the timer on the frame, the corresponding video control parameters are obtained by matching the video application program according to the touch operation, and the video control parameters are loaded to perform corresponding control on the video elements, so that the control diversity of the electronic equipment is improved, and the control efficiency of the electronic equipment is further improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 11, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
acquiring touch information, wherein the touch information comprises a pressure induction value and pressure duration;
analyzing the touch information and determining touch operation indicated by the touch information;
matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and
and loading the video control parameters and executing corresponding operation on the video elements.
In some embodiments, in the step of analyzing the touch information and determining the touch operation indicated by the touch information, the processor 501 may specifically perform the following steps:
judging whether the pressure induction value of the touch information is greater than a pressure induction threshold value;
judging whether the pressure duration of the touch information is greater than a duration threshold value or not; and
and judging the acquisition source of the touch information.
In some embodiments, in the step of determining whether the pressure sensing value of the touch information is greater than the pressure sensing threshold, the processor 501 may specifically perform the following steps:
if so, executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold;
if not, the step of acquiring touch information, which is the pressure sensing value and the pressure duration acquired by the pressure sensor 42, is executed.
In some embodiments, in the step of determining whether the pressure duration of the touch information is greater than the duration threshold, the processor 501 may specifically perform the following steps:
if so, determining that the touch operation is a long-press operation, and executing a step of judging an acquisition source of the touch information;
and if not, determining that the touch operation is a clicking operation, and executing the step of judging the acquisition source of the touch information.
In some embodiments, when the acquisition source of the touch information includes a first pressure sensing area and a second pressure sensing area, the determining that the touch operation is a long press operation and the determining of the acquisition source of the touch information is performed, the processor 501 may further specifically perform the following steps:
when the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is a fast forward operation on the video element;
and when the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a fast backward operation on the video element.
In some embodiments, when the acquisition source of the touch information includes a first pressure sensing area and a second pressure sensing area, the determining that the touch operation is a single-click operation and the determining of the acquisition source of the touch information is performed, the processor 501 may further specifically perform the following steps:
when the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is a volume increasing operation on the video element;
and when the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a volume reduction operation on the video element.
In some embodiments, in the step of determining whether the pressure sensing value of the touch information is greater than the pressure sensing threshold, the processor 501 may further specifically perform the following steps:
if so, executing a step of judging an acquisition source of the touch information, wherein the acquisition source of the touch information comprises a first pressure sensing area and a second pressure sensing area;
if not, the step of acquiring touch information, which is the pressure sensing value and the pressure duration acquired by the pressure sensor 42, is executed.
In some embodiments, in the step of determining the acquisition source of the touch information, the processor 501 may further specifically perform the following steps:
when the acquisition source of the touch information is a first pressure sensing area, determining that the touch operation is a first type operation, and executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold;
and when the acquisition source of the touch information is a second pressure sensing area, determining that the touch operation is a second type operation, and executing a step of judging whether the pressure duration of the touch information is greater than a duration threshold.
In some embodiments, after determining that the touch operation is the first type operation and performing the step of determining whether the pressure duration of the touch information is greater than the duration threshold, the processor 501 may further specifically perform the following steps:
if so, determining that the touch operation is a fast forward operation on the video element;
and if not, determining that the touch operation is a volume increasing operation on the video element.
In some embodiments, after determining that the touch operation is the second type operation and performing the step of determining whether the pressure duration of the touch information is greater than the duration threshold, the processor 501 may further specifically perform the following steps:
if so, determining that the touch operation is a fast backward operation on the video element;
and if not, determining that the touch operation is a volume reduction operation on the video element.
According to the electronic device provided by the embodiment, touch information is acquired through a pressure sensor and a timer which are arranged on the electronic device, wherein the touch information comprises a pressure induction value and pressure duration; analyzing the touch information and determining touch operation indicated by the touch information; matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation; and loading the video control parameters and executing corresponding operation on the video elements. Therefore, touch operation input by a user can be acquired through the pressure sensor and the timer on the frame, the corresponding video control parameters are obtained by matching the video application program according to the touch operation, and the video control parameters are loaded to perform corresponding control on the video elements, so that the control diversity of the electronic equipment is improved, and the control efficiency of the electronic equipment is further improved.
Referring to fig. 12, in some embodiments, the electronic device 500 may further include: pressure sensor 42, timer 43, display 503, radio frequency circuit 504, audio circuit 505, and power source 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The pressure sensor 42 is positioned in the shell and arranged on a side frame of the shell and used for acquiring a pressure sensing value;
the timer 43 is disposed in the housing and is used for acquiring the duration of the pressure.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 12, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the method for processing touch information in any one of the above embodiments.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
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.
It should be noted that, for the touch information processing method in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the touch information processing method in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the process of the embodiment of the touch information processing method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the touch information processing apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a method, an apparatus, a storage medium, and an electronic device for processing touch information provided in an embodiment of the present application, and a specific example is applied in the present application to explain principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for those 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 (4)

1. The utility model provides a processing method of touch-control information, is applied to electronic equipment, its characterized in that, be provided with pressure sensor and time-recorder on electronic equipment's the frame, pressure sensor is the full bridge circuit that four resistance are constituteed, full bridge circuit is used for when the frame receives the pressing force to produce little deformation, through the change of resistance both ends voltage difference, judges the size of applying the pressing force in order to obtain the forced induction value, processing method includes:
acquiring touch information, wherein the touch information comprises a pressure sensing value and pressure duration, the acquisition source of the touch information comprises a pressure sensor and a timer of a first pressure sensing area and a second pressure sensing area, the first pressure sensing area and the second pressure sensing area are arranged at different positions of a frame, the first pressure sensing area is responsible for first type operation, the first type operation comprises fast forward operation on a video element and volume increase operation on the video element, the second pressure sensing area is responsible for second type operation, and the second type operation comprises fast backward operation on the video element and volume decrease operation on the video element;
judging whether the pressure induction value of the touch information is greater than a pressure induction threshold value;
if so, judging whether the pressure duration of the touch information is greater than a duration threshold, if so, determining that the touch operation is a long-time pressing operation, and if not, determining that the touch operation is a clicking operation;
when the touch control operation is a long-press operation and a clicking operation, when the acquisition source of the long-press operation is a first pressure sensing area and the acquisition source of the clicking operation is a second pressure sensing area, determining that the long-press operation is a fast-forward operation on the video element, and simultaneously determining that the clicking operation is a volume reduction operation on the video element; when the acquisition source of the long-press operation is a second pressure sensing area and the acquisition source of the clicking operation is a first pressure sensing area, determining that the long-press operation is a fast backward operation on the video element, and simultaneously determining that the clicking operation is a volume increasing operation on the video element;
matching a video application program according to the touch operation to obtain a video control parameter corresponding to the touch operation, wherein the video control parameter comprises a progress parameter and a volume parameter;
if not, executing the step of acquiring touch information; and
and loading the video control parameters and executing corresponding operation on the video elements.
2. The utility model provides a processing apparatus of touch-control information, is applied to electronic equipment, a serial communication port, be provided with pressure sensor and time-recorder on electronic equipment's the frame, pressure sensor is the full-bridge circuit that four resistances are constituteed, full-bridge circuit is used for the frame receives the pressing force to produce when little deformation, through the change of resistance both ends voltage difference judges the size of applying the pressing force in order to obtain the forced induction value, processing apparatus includes:
the acquisition module is used for acquiring touch information, wherein the touch information comprises a pressure sensing value and pressure duration, the acquisition source of the touch information comprises a pressure sensor and a timer of a first pressure sensing area and a second pressure sensing area, the first pressure sensing area and the second pressure sensing area are arranged at different positions of a frame, the first pressure sensing area is responsible for first type operation, the first type operation comprises fast forward operation on a video element and volume increasing operation on the video element, the second pressure sensing area is responsible for second type operation, and the second type operation comprises fast backward operation on the video element and volume decreasing operation on the video element;
the determining module is used for judging whether the pressure induction value of the touch information is greater than a pressure induction threshold value; if so, judging whether the pressure duration of the touch information is greater than a duration threshold, if so, determining that the touch operation is a long-press operation, if not, determining that the touch operation is a click operation, and when the touch operation is the long-press operation and the click operation, and when the acquisition source of the long-press operation is a first pressure sensing area and the acquisition source of the click operation is a second pressure sensor, determining that the long-press operation is a fast forward operation on the video element, and simultaneously determining that the click operation is a volume reduction operation on the video element; when the acquisition source of the long-press operation is a second pressure sensing area and the acquisition source of the clicking operation is a first pressure sensor, determining that the long-press operation is a fast backward operation on the video element, and simultaneously determining that the clicking operation is a volume increasing operation on the video element;
the matching module is used for matching a video application program according to the touch operation to obtain video control parameters corresponding to the touch operation, and the video control parameters comprise a progress parameter and a volume parameter; if not, executing the step of acquiring touch information;
and the loading module is used for loading the video control parameters and executing corresponding operation on the video elements.
3. A storage medium, characterized by: the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the method of processing touch information according to claim 1.
4. An electronic device, comprising:
a housing;
the pressure sensor is arranged on a side frame of the shell and is a full-bridge circuit consisting of four resistors, and the full-bridge circuit is used for judging the magnitude of applied pressing force to obtain a pressure induction value through the change of voltage difference between two ends of the resistors when the frame is slightly deformed by the pressing force;
the timer is arranged in the shell and used for acquiring the pressure duration;
the memory is arranged in the shell and used for storing instructions and data; and
the processor is arranged in the shell and used for executing the touch information processing method of claim 1.
CN201810299713.0A 2018-04-04 2018-04-04 Touch information processing method and device, storage medium and electronic equipment Expired - Fee Related CN108519849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810299713.0A CN108519849B (en) 2018-04-04 2018-04-04 Touch information processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810299713.0A CN108519849B (en) 2018-04-04 2018-04-04 Touch information processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108519849A CN108519849A (en) 2018-09-11
CN108519849B true CN108519849B (en) 2021-02-09

Family

ID=63431961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810299713.0A Expired - Fee Related CN108519849B (en) 2018-04-04 2018-04-04 Touch information processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108519849B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503933B (en) * 2019-08-06 2022-06-03 东南大学 Flexible wearable piano and implementation method thereof
CN110636169B (en) * 2019-08-30 2021-07-16 联想(北京)有限公司 Information processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445393A (en) * 2016-10-31 2017-02-22 珠海市魅族科技有限公司 Audio video play control method and audio video play control device
CN107295438A (en) * 2017-07-04 2017-10-24 惠州市其正科技有限公司 A kind of legerity type Multifunctional portable stereo system
CN107608651A (en) * 2017-07-19 2018-01-19 肇庆市广应科通用航空研究院 Player fast forwarding and fast rewinding control method, system, storage medium and intelligent terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163187B (en) * 2015-08-27 2017-08-01 广东欧珀移动通信有限公司 A kind of video playing control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445393A (en) * 2016-10-31 2017-02-22 珠海市魅族科技有限公司 Audio video play control method and audio video play control device
CN107295438A (en) * 2017-07-04 2017-10-24 惠州市其正科技有限公司 A kind of legerity type Multifunctional portable stereo system
CN107608651A (en) * 2017-07-19 2018-01-19 肇庆市广应科通用航空研究院 Player fast forwarding and fast rewinding control method, system, storage medium and intelligent terminal

Also Published As

Publication number Publication date
CN108519849A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
KR101932210B1 (en) Method, system for implementing operation of mobile terminal according to touching signal and mobile terminal
CN110891144B (en) Image display method and electronic equipment
CN109343759B (en) Screen-turning display control method and terminal
WO2018214885A1 (en) Radio frequency interference processing method and electronic device
US20100265209A1 (en) Power reduction for touch screens
CN108733298B (en) Touch information processing method and device, storage medium and electronic equipment
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
CN109246474B (en) Video file editing method and mobile terminal
CN108519849B (en) Touch information processing method and device, storage medium and electronic equipment
CN110703972A (en) File control method and electronic equipment
CN108704307A (en) Processing method, device, storage medium and the electronic device of touch information
CN108958607B (en) Split screen display starting method and device, storage medium and electronic equipment
CN108563357A (en) Processing method, device, storage medium and the electronic equipment of touch information
CN111343321B (en) Backlight brightness adjusting method and related product
KR20140137629A (en) Mobile terminal for detecting earphone connection and method therefor
CN108563393A (en) device parameter adjusting method, device, storage medium and electronic equipment
CN106886351B (en) Display method and device of terminal time information and computer equipment
CN108646976B (en) Touch information processing method and device, storage medium and electronic equipment
CN108712528B (en) Information processing method and device, storage medium and electronic equipment
CN111368238A (en) Status bar adjusting method and device, mobile terminal and storage medium
CN108681432A (en) Processing method, device, storage medium and the electronic device of touch information
CN108429861B (en) Touch information processing method and device, storage medium and electronic equipment
CN112400309A (en) Message prompting method and related product
CN108737656B (en) Processing method and device of floating button, storage medium and electronic equipment
KR20140131262A (en) Mobile terminal and method for controlling screen

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210209