CN109992161B - Pressure detection method and detection device based on touch screen - Google Patents
Pressure detection method and detection device based on touch screen Download PDFInfo
- Publication number
- CN109992161B CN109992161B CN201910255709.9A CN201910255709A CN109992161B CN 109992161 B CN109992161 B CN 109992161B CN 201910255709 A CN201910255709 A CN 201910255709A CN 109992161 B CN109992161 B CN 109992161B
- Authority
- CN
- China
- Prior art keywords
- touch screen
- target
- user
- preset
- pressure value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
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 embodiment of the invention relates to the technical field of touch screens, and discloses a pressure detection method and a pressure detection device based on a touch screen, wherein the touch screen comprises a plurality of capacitive sensors, and the method comprises the following steps: when the fact that the user fingers press the touch screen is detected, the target number of the triggered capacitive sensors in the plurality of capacitive sensors is monitored, whether the target number is kept unchanged within preset time is detected, if the target number is kept unchanged, the contact area of the user fingers and the touch screen is determined according to the target number, and then the pressure value of the user fingers pressing the touch screen is obtained according to the contact area. By implementing the embodiment of the invention, the accuracy of pressure detection can be improved.
Description
Technical Field
The invention relates to the technical field of touch screens, in particular to a pressure detection method and a pressure detection device based on a touch screen.
Background
With the rapid development of science and technology, more and more touch products are appeared in our daily life, such as smart phones, digital cameras, vehicle-mounted touch screens and the like, and the touch products can form different visual effects by utilizing different pressures generated by pressing the touch screens, so that users can generate interactive feeling with the touch products. For example, when a passenger takes a vehicle, the passenger presses the vehicle-mounted touch screen with a finger to select a corresponding function, and the vehicle-mounted touch screen can form ripples with different visual effects at the pressing position of the finger of the passenger.
At present, the most common pressure detection method based on a touch screen generally includes that a pressure sensor is arranged below the touch screen to detect pressure changes, and then different visual effects are formed according to the pressure changes. As shown in fig. 1, a pressure sensor is provided below the in-vehicle touch panel, and when the in-vehicle touch panel is pressed by a finger, a minute deformation of the in-vehicle touch panel is detected by the pressure sensor below the in-vehicle touch panel, thereby detecting the pressure of the finger. However, in practice, it has been found that the accuracy of pressure detection is greatly reduced because the pressure sensor is susceptible to vehicle vibration on the vehicle.
Disclosure of Invention
The embodiment of the invention discloses a pressure detection method and a detection device based on a touch screen, which can improve the accuracy of pressure detection.
The first aspect of the embodiments of the present invention discloses a pressure detection method based on a touch screen, where the touch screen includes a plurality of capacitive sensors, and the method further includes:
monitoring a target number of triggered capacitive sensors of the plurality of capacitive sensors when it is detected that a user finger presses the touch screen;
detecting whether the target quantity is kept unchanged within a preset time;
if the number of the targets is not changed, determining the contact area between the user finger and the touch screen according to the target number;
and acquiring a pressure value of the user finger pressing the touch screen according to the contact area.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the detecting that the target number remains unchanged for a preset time, and before the determining the contact area between the user finger and the touch screen according to the target number, the method further includes:
dividing a target area according to the distribution condition of the triggered capacitive sensors on the touch screen; wherein the concentration of the triggered capacitive sensors in the target area is greater than a preset concentration; the area of the target area is larger than a first preset area and smaller than a second preset area;
judging whether the number of the target areas exceeds a preset number or not;
and if not, executing the step of determining the contact area between the user finger and the touch screen according to the target number.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the determining that the number of the target areas does not exceed a preset number, and before the determining the contact area between the user finger and the touch screen according to the target number, the method further includes:
acquiring a first triggered target capacitive sensor in the triggered capacitive sensors;
acquiring a first number of triggered capacitive sensors distributed on the left side of the vertical line and a second number of triggered capacitive sensors distributed on the right side of the vertical line by taking a vertical line where the target capacitive sensors are located relative to the touch screen as a reference;
judging whether the difference value between the first quantity and the second quantity is smaller than a preset difference value or not;
if the number of the triggered capacitive sensors is smaller than the preset number, taking a horizontal line where the target capacitive sensor is located relative to the touch screen as a reference, and acquiring a third number of the triggered capacitive sensors distributed on the upper side of the horizontal line and a fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line;
judging whether the difference value between the third quantity and the fourth quantity is smaller than the preset difference value or not;
and if the number of the objects is smaller than the target number, the step of determining the contact area between the user finger and the touch screen according to the target number is executed.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the obtaining, according to the contact area, a pressure value of the user's finger pressing the touch screen, the method further includes:
detecting whether the type corresponding to the display content on the position where the user finger presses the touch screen is a preset type or not;
if the type corresponding to the display content is the preset type, judging whether the pressure value is larger than a preset pressure value or not;
if the pressure value is larger than the preset pressure value, amplifying the display content, wherein the amplification factor and the pressure value are in a direct proportional relation;
and if the pressure value is smaller than or equal to the preset pressure value, reducing the display content, wherein the reduction multiple and the pressure value are in an inverse proportional relation.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the obtaining, according to the contact area, a pressure value of the user's finger pressing the touch screen, the method further includes:
when a setting instruction input by the user is received, outputting a plurality of preview images corresponding to the feedback effects on the touch screen;
receiving a target preview image selected by the user;
setting the feedback effect corresponding to the target preview image as a target feedback effect matched with the pressure value;
and storing the pressure value and the target feedback effect in a local cache in a correlation manner, so that when the pressure value is generated by subsequently pressing the touch screen, the target feedback effect is displayed on the touch screen.
A second aspect of the embodiments of the present invention discloses a pressure detection device based on a touch screen, where the touch screen includes a plurality of capacitive sensors, and the pressure detection device includes:
the monitoring unit is used for monitoring the target number of triggered capacitive sensors in the plurality of capacitive sensors when the fact that the user fingers press the touch screen is detected;
the first detection unit is used for detecting whether the target quantity keeps unchanged within preset time;
the determining unit is used for determining the contact area between the finger of the user and the touch screen according to the target number when the first detecting unit detects that the target number is kept unchanged within preset time;
and the first acquisition unit is used for acquiring the pressure value of the user finger pressing the touch screen according to the contact area.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the pressure detection apparatus further includes:
the dividing unit is used for dividing a target area according to the distribution condition of the triggered capacitive sensor on the touch screen after the first detection unit detects that the target number is kept unchanged within preset time and before the determining unit determines the contact area of the user finger and the touch screen according to the target number; wherein the concentration of the triggered capacitive sensors in the target area is greater than a preset concentration; the area of the target area is larger than a first preset area and smaller than a second preset area;
the first judging unit is used for judging whether the number of the target areas exceeds a preset number or not;
the determining unit is specifically configured to determine, when the first detecting unit detects that the number of the targets remains unchanged within a preset time and the first judging unit judges that the number of the target areas does not exceed the preset number, a contact area between the user's finger and the touch screen according to the number of the targets.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the pressure detection apparatus further includes:
the second acquisition unit is used for acquiring a first triggered target capacitive sensor in the triggered capacitive sensors after the first judgment unit judges that the number of the target areas does not exceed a preset number and before the determination unit determines the contact area between the finger of the user and the touch screen according to the target number;
the second acquisition unit is further used for acquiring a first number of the triggered capacitive sensors distributed on the left side of the vertical line and a second number of the triggered capacitive sensors distributed on the right side of the vertical line by taking the vertical line where the target capacitive sensor is located relative to the touch screen as a reference;
a second judging unit, configured to judge whether a difference between the first number and the second number is smaller than a preset difference;
the second obtaining unit is further configured to, when the second determining unit determines that the difference between the first number and the second number is smaller than a preset difference, obtain, with reference to a horizontal line where the target capacitive sensor is located relative to the touch screen, a third number of the triggered capacitive sensors distributed on an upper side of the horizontal line and a fourth number of the triggered capacitive sensors distributed on a lower side of the horizontal line;
the second determining unit is further configured to determine whether a difference between the third quantity and the fourth quantity is smaller than the preset difference;
the determining unit is specifically configured to determine, when the first detecting unit detects that the target number remains unchanged within a preset time, the first determining unit determines that the number of the target regions does not exceed the preset number, and the second determining unit determines that a difference between the third number and the fourth number is smaller than the preset difference, a contact area between the user's finger and the touch screen is determined according to the target number.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the pressure detection apparatus further includes:
the second detection unit is used for detecting whether the type corresponding to the display content at the position where the user finger presses the touch screen is a preset type or not after the first acquisition unit acquires the pressure value of the user finger pressing the touch screen according to the contact area;
the third judging unit is used for judging whether the pressure value is larger than a preset pressure value or not when the second detecting unit detects that the type corresponding to the display content at the position where the user finger presses the touch screen is a preset type;
the amplifying unit is used for amplifying the display content when the third judging unit judges that the pressure value is larger than a preset pressure value, wherein the amplification factor is in direct proportion to the pressure value;
and the reducing unit is used for reducing the display content when the third judging unit judges that the pressure value is less than or equal to the preset pressure value, wherein the reduction multiple and the pressure value are in an inverse proportional relation.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the pressure detection apparatus further includes:
the output unit is used for outputting a plurality of preview images corresponding to feedback effects on the touch screen when a set instruction input by the user is received after the first acquisition unit acquires the pressure value of the touch screen pressed by the finger of the user according to the contact area;
a receiving unit, configured to receive a target preview image selected by the user;
the setting unit is used for setting the feedback effect corresponding to the target preview image as a target feedback effect matched with the pressure value;
and the storage unit is used for storing the pressure value and the target feedback effect in a local cache in a correlation manner, so that when the pressure value is generated by subsequently pressing the touch screen, the target feedback effect is displayed on the touch screen.
The third aspect of the embodiment of the invention discloses a vehicle-mounted central control system which comprises a pressure detection device based on a touch screen, wherein the pressure detection device is disclosed by the second aspect of the embodiment of the invention.
The fourth aspect of the embodiment of the invention discloses a vehicle, which comprises the vehicle-mounted central control system disclosed by the second aspect of the embodiment of the invention.
The fifth aspect of the embodiments of the present invention discloses a pressure detection device based on a touch screen, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the pressure detection method based on the touch screen disclosed by the first aspect of the embodiment of the invention.
A sixth aspect of the present invention discloses a computer-readable storage medium storing a computer program, where the computer program enables a computer to execute the method for detecting pressure based on a touch screen disclosed in the first aspect of the present invention.
A seventh aspect of the present embodiments discloses a computer program product, which, when run on a computer, causes the computer to perform part or all of the steps of any one of the methods of the first aspect.
An eighth aspect of the present invention discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, and when the computer program product runs on a computer, the computer is enabled to execute part or all of the steps of any one of the methods in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the touch screen comprises a plurality of capacitive sensors, when the condition that the touch screen is pressed by the fingers of a user is detected, the number of triggered capacitive sensors is monitored in real time, when the number of triggered capacitive sensors is kept unchanged in preset time, the number of triggered capacitive sensors is taken as the target number, the contact area between the fingers of the user and the touch screen is determined according to the target number, and then the pressure value of the fingers of the user pressing the touch screen is calculated according to the contact area. Therefore, according to the force action principle, the larger the pressure of the user finger pressing the touch screen is, the larger the deformation of the user finger is, the larger the contact area between the user finger and the touch screen is, and the more the number of the trigger capacitive sensors is. Therefore, the contact area between the finger of the user and the touch screen can be determined according to the triggered number of the plurality of capacitive sensors arranged on the touch screen, the pressure constant born by the touch screen can be tested in advance according to the pressure equal to the ratio of the pressure born by the object to the stressed area, the pressure value of the finger of the user pressing the touch screen can be calculated according to the contact area between the finger of the user and the touch screen, no additional pressure sensor is needed, the influence of vehicle vibration can be avoided, and the accuracy of pressure detection is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is an exemplary diagram of a pressure sensor for sensing pressure as disclosed in an embodiment of the present invention;
FIG. 2 is a schematic flowchart of a method for detecting pressure based on a touch screen according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another method for detecting pressure based on a touch screen according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a pressure detection device based on a touch screen according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another touch screen-based pressure detection apparatus disclosed in the embodiments of the present invention;
FIG. 6 is a schematic structural diagram of another touch screen-based pressure detection apparatus disclosed in the embodiment of the present invention;
FIG. 7 is an exemplary diagram of a pressure sensing operation disclosed in embodiments of the present invention;
FIG. 8 is an exemplary diagram of another pressure sensing operation disclosed in embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", "third" and "fourth" etc. in the description and claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the present invention, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "center", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings. These terms are used primarily to better describe the invention and its embodiments and are not intended to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meanings of these terms in the present invention can be understood by those skilled in the art as appropriate. Furthermore, the terms "mounted," "disposed," "provided," "connected," and "connected" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meanings of the above terms in the present invention can be understood by those of ordinary skill in the art according to specific situations.
The embodiment of the invention discloses a pressure detection method and a detection device based on a touch screen, which can improve the accuracy of pressure detection. The following detailed description is made with reference to the accompanying drawings.
Example one
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a pressure detection method based on a touch screen according to an embodiment of the present invention. As shown in fig. 2, the method may include the following steps.
201. When it is detected that a user's finger presses the touch screen, the pressure detection device monitors a target number of triggered capacitive sensors among the plurality of capacitive sensors.
In the embodiment of the invention, the touch screen comprises a plurality of capacitive sensors, and when a finger of a user presses on the touch screen, the capacitive sensor at the position is triggered to indicate that the position on the touch screen is pressed.
In the embodiment of the present invention, the touch screen may be applied to a smart phone, a digital camera, and an intelligent vehicle, and the embodiment of the present invention is not limited. For convenience in understanding, the embodiment of the present invention is described by taking an intelligent automobile as an example, in the embodiment of the present invention, the touch screen is applied to the intelligent automobile, that is, the touch screen is mounted on an automobile, and when a passenger presses the touch screen with a finger, the pressure detection device may monitor, in real time, the target number of triggered capacitive sensors in the plurality of capacitive sensors included in the touch screen.
202. The pressure detection device detects whether the target number is kept unchanged within a preset time; if yes, go to step 203; if not, execution continues with step 202.
In the embodiment of the present invention, it can be understood that, when a finger of a user just presses a touch screen, since the finger of the user just begins to generate a small deformation, an area where the finger of the user just starts to contact the touch screen is small, at this time, a first capacitive sensor just triggers, please refer to fig. 7 together, fig. 7 is an exemplary diagram of a pressure detection operation disclosed in the embodiment of the present invention, as shown in fig. 7, a small square zebra cell is a capacitive sensor, and when the finger of the user just presses the touch screen, a capacitive sensor 0 is triggered. When the user's finger continues to press the touch screen, because the pressure of the user's finger pressing the touch screen slowly increases, the user's finger begins to slowly deform, the area contacting the touch screen gradually increases, and the triggered capacitive sensor slowly increases, please refer to fig. 8, fig. 8 is an exemplary diagram of another pressure detection operation disclosed in the embodiment of the present invention, as shown in fig. 8, a small square zebra cell is a capacitive sensor, and the area contacting the touch screen gradually increases as the user's finger continues to press the touch screen, and triggers a plurality of capacitive sensors such as capacitive sensor 1 to capacitive sensor 8. When the pressure of the user's finger pressing the touch screen remains unchanged, the user's finger stops continuing to deform, the area contacting the touch screen remains unchanged, the triggered capacitive sensor also remains unchanged, and when the pressure detection device detects that the target number of the triggered capacitive sensor remains unchanged within the preset time, step 203 is executed.
In the embodiment of the present invention, the preset time may be set by a tester through a large number of experiments, and the embodiment of the present invention is not limited.
203. And the pressure detection device determines the contact area between the fingers of the user and the touch screen according to the target number.
In the embodiment of the present invention, it can be understood that, since the area represented by a single capacitive sensor is known, when the pressure detection device detects that the target number of triggered capacitive sensors remains unchanged within the preset time, it indicates that the pressure of the user's finger pressing the touch screen does not change any more, and at this time, the pressure detection device may determine the contact area between the user's finger and the touch screen according to the target number of triggered capacitive sensors, that is, the product of the area represented by a single capacitive sensor and the target number of triggered capacitive sensors.
204. And the pressure detection device acquires the pressure value of the user finger pressing the touch screen according to the contact area.
In the embodiment of the present invention, it can be considered that the pressure applied to the touch screen is a constant, and the constant can be obtained by measuring in advance, so that the pressure detection device can calculate the pressure value of the user's finger pressing the touch screen according to the contact area between the user's finger and the touch screen, as shown in the following formula (1):
p=F/S (1)
wherein p is the pressure born by the touch screen, F is the pressure value of the user finger pressing the touch screen, and S is the contact area of the user finger and the touch screen.
As an alternative implementation manner, after the pressure detection device obtains the pressure value of the user's finger pressing the touch screen according to the contact area in step 204, the following steps may be further performed:
sending a friend making instruction to the service platform so that the service platform acquires a pressure value generated when the finger of the other user presses the other touch screen and reported by the other pressure detection device, acquires identity information of the other user, and returns the other pressure value and the identity information of the other user to the pressure detection device; the other pressure detection device is a pressure detection device which is included in a vehicle-mounted central control system of the other vehicle, and the identity information of the other user comprises sex, age and/or occupation;
judging whether the difference value between the pressure value and the other pressure value is smaller than a preset threshold value or not;
if the number of the user is smaller than the preset threshold value, acquiring identity information of the user;
generating a friend-making index according to the identity information of the user and the identity information of the other user;
when the friend making index is larger than a preset friend making index threshold value, friend making recommendation information is sent to the other pressure detection device, so that the other pressure detection device outputs the friend making recommendation information to the other user; and the friend making recommendation information at least comprises social account information of the user.
When the difference value between the pressure values generated by pressing the touch screen by the two users is smaller than the preset threshold value, the friend-making index is generated according to the identity information of the users and the identity information of the other user, namely, the possibility that the two users become friends is evaluated, and when the friend-making index is large enough, friend-making recommendation information is pushed to the other pressure detection device, so that the other pressure detection device outputs the friend-making recommendation information to the other user, friend making is realized through interaction with the touch screen, and user experience is improved.
As an alternative implementation manner, after the pressure detection device obtains the pressure value of the user's finger pressing the touch screen according to the contact area in step 204, the following steps may be further performed:
when a seat adjusting instruction input by a user is received, acquiring a seat adjusting relation table; the seat adjustment relation table is used for indicating the corresponding relation between the pressure generated by pressing the touch screen by the user and the seat adjustment amplitude;
according to the pressure value, obtaining a target seat adjustment amplitude matched with the pressure value from a seat adjustment relation table;
and adjusting the seat according to the target seat adjustment amplitude.
In the embodiment of the present invention, the seat adjustment relationship table may be set and stored in a local cache for a tester according to a large number of experiments, and is used for indicating a correspondence between pressure generated when a user presses a touch screen and a seat adjustment amplitude, where the larger the pressure value is, the larger the seat adjustment amplitude is, and the embodiment of the present invention is not limited.
By implementing the optional implementation mode, when the user feels that the posture of the current seat is not appropriate, the seat can be adjusted according to the pressure value, the interactivity is greatly improved, and the user experience is improved.
In the embodiment of the present invention, as an optional implementation manner, the pressure detection apparatus may be provided with a voice module, which may be configured to recognize an input voice command, such as a "please adjust the seat" adjustment password, where the adjustment password is used as a seat adjustment command, and when the adjustment password is detected, the pressure detection apparatus obtains the seat adjustment relationship table. By implementing the optional embodiment, the seat adjusting instruction can be input through voice, and then the seat adjustment can be carried out according to the pressure value, so that the interactivity is greatly improved.
It can be seen that, when the method described in fig. 2 is implemented, according to the force action principle, the larger the pressure of the user finger pressing the touch screen is, the larger the deformation of the user finger is, and the larger the contact area between the user finger and the touch screen is, so that the number of the triggered capacitive sensors is, the contact area between the user finger and the touch screen is determined by the pressure detection device according to the number of the triggered capacitive sensors arranged on the touch screen, and then the pressure value of the user finger pressing the touch screen is calculated according to the contact area, without additionally arranging a pressure sensor, the cost can be reduced, and the problem that the detection of the pressure by the conventional pressure sensor is easily influenced by the vibration of the vehicle is overcome, and the accuracy of the pressure detection is improved.
Example two
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another pressure detection method based on a touch screen according to an embodiment of the present invention. As shown in fig. 3, the method may include the following steps.
301. When it is detected that a user's finger presses the touch screen, the pressure detection device monitors a target number of triggered capacitive sensors among the plurality of capacitive sensors.
In the embodiment of the invention, the touch screen comprises a plurality of capacitive sensors, and when a finger of a user presses on the touch screen, the capacitive sensor at the position is triggered to indicate that the position on the touch screen is pressed.
302. The pressure detection device detects whether the target number is kept unchanged within a preset time; if yes, go to step 303; if not, execution continues with step 302.
303. The pressure detection device divides a target area according to the distribution condition of the triggered capacitive sensors on the touch screen, wherein the density of the triggered capacitive sensors in the target area is greater than a preset density, and the area of the target area is greater than a first preset area and smaller than a second preset area.
In the embodiment of the invention, for example, when a user carelessly presses a plurality of fingers on the touch screen, the pressure detection device divides a plurality of target areas. For example, when a user presses three fingers on the touch screen, the pressure detection device can divide three target areas according to the distribution of the triggered capacitive sensors on the touch screen.
304. The pressure detection device judges whether the number of the target areas exceeds a preset number or not; if not, go to step 305; if so, the flow ends.
In the embodiment of the present invention, it can be understood that when the number of the target areas exceeds the preset number, the user may be considered to touch the touch screen by mistake. For example, when the preset number is one, when the user presses the touch screen with three fingers, the pressure detection device may divide three target areas according to the distribution of the triggered capacitive sensors on the touch screen, and at this time, the number of the target areas exceeds the preset number, which indicates that the user mistakenly touches the touch screen, and the process is ended.
In the embodiment of the present invention, steps 303 to 304 are implemented, the target areas are divided according to the distribution of the triggered capacitive sensors on the touch screen, and whether the number of the target areas exceeds the preset number is determined, if so, the process is ended, so that the efficiency of pressure detection can be improved on the premise of avoiding the user from touching the touch screen by mistake.
305. The pressure detection device acquires a first triggered target capacitive sensor among the triggered capacitive sensors.
In the embodiment of the present invention, it can be understood that, when a finger of a user just presses a touch screen, since the finger of the user just begins to generate a small deformation and an area contacting the touch screen is small, a first capacitive sensor just is triggered at this time, and therefore, the pressure detection device may acquire a first triggered target capacitive sensor in the triggered capacitive sensors.
306. The pressure detection device acquires a first number of triggered capacitive sensors distributed on the left side of a vertical line and a second number of triggered capacitive sensors distributed on the right side of the vertical line by taking a vertical line of a target capacitive sensor relative to the touch screen as a reference.
In the embodiment of the present invention, it can be understood that when a user slides to the left after pressing the touch screen with a finger, with a vertical line where a target capacitive sensor is located with respect to the touch screen as a reference, a first number of triggered capacitive sensors distributed on the left side of the vertical line is greater than a second number of triggered capacitive sensors distributed on the right side of the vertical line; when a user slides to the right after pressing the touch screen by using fingers, taking a vertical line where a target capacitive sensor is located relative to the touch screen as a reference, wherein the first number of triggered capacitive sensors distributed on the left side of the vertical line is smaller than the second number of triggered capacitive sensors distributed on the right side of the vertical line; when the user does not slide after pressing the touch screen with a finger, the first number of triggered capacitive sensors distributed on the left side of the vertical line is approximately equal to the second number of triggered capacitive sensors distributed on the right side of the vertical line by taking the vertical line where the target capacitive sensor is located relative to the touch screen as a reference.
307. The pressure detection device judges whether the difference value between the first quantity and the second quantity is smaller than a preset difference value or not; if so, go to step 308; if not, the flow is ended.
In the embodiment of the present invention, the preset difference may be set by a tester according to a large number of experimental results, and the embodiment of the present invention is not limited. In the embodiment of the present invention, when the difference between the first number and the second number is smaller than the preset difference, it may be considered that, with reference to a vertical line on which the target capacitive sensor is located relative to the touch screen, the first number of triggered capacitive sensors distributed on the left side of the vertical line is approximately equal to the second number of triggered capacitive sensors distributed on the right side of the vertical line, that is, the user does not slide after pressing the touch screen with a finger.
As an alternative embodiment, after the pressure detecting device determines that the difference between the first number and the second number is greater than or equal to the preset difference, the following steps may be further performed:
if the first number is larger than the second number, controlling the current display content on the touch screen to slide leftwards so as to display the content of the next page on the touch screen;
and if the first number is smaller than the second number, controlling the currently displayed content on the touch screen to slide rightwards, so that the content of the previous page is displayed on the touch screen.
In the embodiment of the present invention, for example, when a user wants to display a next page of content on the touch screen, the user may use a finger to press the touch screen and then slide the touch screen to the left, so that a first number of triggered capacitive sensors distributed on the left side of the vertical line is greater than a second number of triggered capacitive sensors distributed on the right side of the vertical line, and at this time, the pressure detection device controls the currently displayed content on the touch screen to slide to the left, so that the next page of content is displayed on the touch screen. For another example, when the user wants to display the content of the previous page on the touch screen, the user may use a finger to press the touch screen and then slide the touch screen to the right, so that the first number of the triggered capacitive sensors distributed on the left side of the vertical line is smaller than the second number of the triggered capacitive sensors distributed on the right side of the vertical line, and at this time, the pressure detection device controls the currently displayed content on the touch screen to slide to the right, so that the content of the previous page is displayed on the touch screen.
By implementing the optional implementation mode, if the user slides to the left after pressing the touch screen by using the finger, the content of the next page can be displayed on the touch screen, and if the user slides to the right after pressing the touch screen by using the finger, the content of the previous page can be displayed on the touch screen, so that the interactivity is greatly improved.
308. The pressure detection device acquires a third number of triggered capacitive sensors distributed on the upper side of the horizontal line and a fourth number of triggered capacitive sensors distributed on the lower side of the horizontal line with reference to the horizontal line where the target capacitive sensor is located relative to the touch screen.
In the embodiment of the present invention, it can be understood that, when a user slides upwards after pressing the touch screen with a finger, with a horizontal line where a target capacitive sensor is located with respect to the touch screen as a reference, a third number of triggered capacitive sensors distributed on an upper side of the horizontal line is greater than a fourth number of triggered capacitive sensors distributed on a lower side of the horizontal line; when a user presses the touch screen by using a finger and slides downwards, taking a horizontal line where a target capacitive sensor is located relative to the touch screen as a reference, wherein the third number of triggered capacitive sensors distributed on the upper side of the horizontal line is smaller than the fourth number of triggered capacitive sensors distributed on the lower side of the horizontal line; when the user does not slide after pressing the touch screen with a finger, the third number of triggered capacitive sensors distributed on the upper side of the horizontal line is approximately equal to the fourth number of triggered capacitive sensors distributed on the lower side of the horizontal line, with the horizontal line where the target capacitive sensor is located relative to the touch screen as a reference.
309. The pressure detection device judges whether the difference value between the third quantity and the fourth quantity is smaller than a preset difference value or not; if yes, go to step 310; if not, the flow is ended.
In the embodiment of the present invention, when the difference between the third number and the fourth number is smaller than the preset difference, it may be considered that, with reference to a horizontal line where the target capacitive sensor is located relative to the touch screen, the third number of the triggered capacitive sensors distributed on the upper side of the horizontal line is approximately equal to the fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line, that is, the user does not slide after pressing the touch screen with a finger.
As an alternative embodiment, after the pressure detecting device determines that the difference between the third number and the fourth number is greater than or equal to the preset difference, the following steps may be further performed:
judging whether the touch screen is in a reading state or not;
if the reading state is achieved, and the third number is larger than the fourth number, controlling the current display content on the touch screen to slide upwards so that the user can read continuously;
if the reading state is achieved, and the third number is smaller than the fourth number, controlling the current display content on the touch screen to slide downwards so that the user can review the previous reading content;
if not, ending the process;
wherein the difference between the third number and the fourth number is in direct proportion to the sliding distance.
In the embodiment of the present invention, for example, when the user is reading by using the touch screen, the user may press the touch screen with a finger and slide the touch screen upwards when the user finishes reading the currently displayed content of the touch screen, so that the third number of the triggered capacitive sensors distributed on the upper side of the horizontal line is greater than the fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line, and at this time, the pressure detection device controls the currently displayed content on the touch screen to slide upwards, so that the user continues to read. For another example, when the user wants to review the previous reading content, the user may press the touch screen with a finger to slide downward, so that the third number of the triggered capacitive sensors distributed on the upper side of the horizontal line is smaller than the fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line, and at this time, the pressure detection device controls the currently displayed content on the touch screen to slide downward, so that the user can review the previous reading content.
By implementing the optional embodiment, if the user slides upwards after pressing the touch screen with the finger, the current display content on the touch screen can be made to slide upwards so that the user can continue reading, and if the user slides downwards after pressing the touch screen with the finger, the current display content on the touch screen can be made to slide downwards so that the user can review the previous reading content.
In the embodiment of the present invention, step 305 to step 309 are implemented, first, a first triggered target capacitive sensor in the triggered capacitive sensors is obtained, and then, if the number of triggered capacitive sensors passing through the left side and the right side of the vertical line of the target capacitive sensor is determined, and the difference between the number of triggered capacitive sensors on the left side and the number of triggered capacitive sensors on the right side is greater than or equal to a preset difference, the process is ended; and judging the number of triggered capacitive sensors passing through the upper side and the lower side of the horizontal line of the target capacitive sensor, and if the difference value between the number of triggered capacitive sensors on the upper side and the lower side is greater than or equal to a preset difference value, finishing the process. The pressure value that can slide and lead to after avoiding the user to use the finger to press the touch-sensitive screen detects the grow, reduces the pressure detection error.
310. And the pressure detection device determines the contact area between the fingers of the user and the touch screen according to the target number.
311. And the pressure detection device acquires the pressure value of the user finger pressing the touch screen according to the contact area.
In this embodiment of the present invention, as an optional implementation manner, after the pressure detection device obtains, according to the contact area, a pressure value of the user's finger pressing the touch screen in step 311, the following steps may be further performed:
when a setting instruction input by a user is received, outputting a plurality of preview images corresponding to feedback effects on a touch screen;
receiving a target preview image selected by a user;
setting the feedback effect corresponding to the target preview image as a target feedback effect matched with the pressure value;
and storing the pressure value and the target feedback effect in a local cache in a correlated manner, so that when the pressure value is generated by subsequently pressing the touch screen, the target feedback effect is displayed on the touch screen.
By implementing the optional implementation mode, the pressure value can be corresponding to the feedback effect of the touch screen, so that when a follow-up user presses the touch screen, the corresponding feedback effect can be displayed according to the pressure value generated by pressing the touch screen, and the user experience is improved.
312. The method comprises the steps that a pressure detection device detects whether a type corresponding to display content at a position where a user finger presses a touch screen is a preset type; if yes, go to step 313; if not, the flow is ended.
In the embodiment of the present invention, the preset type may be a picture type, a text type, or the like, and the embodiment of the present invention is not limited.
313. The pressure detection device judges whether the pressure value is larger than a preset pressure value or not; if so, go to step 314; if not, step 315 is performed.
In the embodiment of the present invention, the preset pressure value may be set by a tester through a large number of experiments, and the embodiment of the present invention is not limited.
314. The pressure detection device amplifies the display content, wherein the amplification factor is in direct proportion to the pressure value.
315. The pressure detection device performs reduction processing on the display content, wherein the reduction multiple is in inverse proportion to the pressure value.
In the embodiment of the invention, when the pressure detection device detects that the type corresponding to the display content at the position where the user presses the touch screen by the finger is a preset type, if the pressure value is greater than a preset pressure value, the pressure detection device amplifies the display content, wherein the amplification factor and the pressure value are in a direct proportional relation, namely the larger the pressure value is, the larger the amplification factor is; if the pressure value is smaller than or equal to the preset pressure value, the pressure detection device reduces the display content, and the reduction multiple and the pressure value are in an inverse proportional relation, namely the smaller the pressure value is, the larger the reduction multiple is.
For example, a user presses a picture displayed on a touch screen with a finger, at this time, the pressure detection device detects that a type corresponding to display content at a position where the user presses the touch screen with the finger is a preset type, then, it is determined whether a pressure value generated when the user presses the touch screen with the finger is greater than a preset pressure value, and if the pressure value is greater than the preset pressure value, the pressure detection device amplifies the picture; if the image is smaller than or equal to the preset pressure value, the image is reduced by the pressure detection device.
In the embodiment of the present invention, step 311 to step 314 are implemented, when the type corresponding to the display content at the position where the user presses the touch screen with the finger is the preset type, the display content may be amplified or reduced according to the size of the pressure value, so that interactivity is greatly improved, and user experience is improved.
It can be seen that, compared with the method described in fig. 2, the method described in fig. 3 can improve the efficiency of pressure detection on the premise of avoiding the user from touching the touch screen by mistake. In addition, the pressure value detection caused by sliding after the user presses the touch screen by using a finger can be prevented from becoming large, and the pressure detection error can be reduced. In addition, when the type corresponding to the display content at the position where the user finger presses the touch screen is a preset type, the display content can be amplified or reduced according to the size of the pressure value, so that the interactivity is greatly improved, and the user experience is improved.
EXAMPLE III
Referring to fig. 4, fig. 4 is a schematic structural diagram of a pressure detection device based on a touch screen according to an embodiment of the present invention. As shown in fig. 4, the pressure detecting means may include:
the monitoring unit 401 is configured to monitor a target number of triggered capacitive sensors in the plurality of capacitive sensors when it is detected that the user's finger presses the touch screen.
In the embodiment of the invention, the touch screen comprises a plurality of capacitive sensors, and when a finger of a user presses on the touch screen, the capacitive sensor at the position is triggered to indicate that the position on the touch screen is pressed.
A first detecting unit 402, configured to detect whether the target number remains unchanged for a preset time.
A determining unit 403, configured to determine, when the first detecting unit 402 detects that the number of targets remains unchanged within a preset time, a contact area between the finger of the user and the touch screen according to the number of targets.
The first obtaining unit 404 is configured to obtain a pressure value of the touch screen pressed by the finger of the user according to the contact area.
As an alternative implementation, after the first obtaining unit 404 obtains the pressure value of the user's finger pressing the touch screen according to the contact area, the following steps may be further performed:
sending a friend making instruction to the service platform so that the service platform acquires a pressure value generated when the finger of the other user presses the other touch screen and reported by the other pressure detection device, acquires identity information of the other user, and returns the other pressure value and the identity information of the other user to the pressure detection device; the other pressure detection device is a pressure detection device which is included in a vehicle-mounted central control system of the other vehicle, and the identity information of the other user comprises gender, age and/or occupation;
judging whether the difference value between the pressure value and the other pressure value is smaller than a preset threshold value or not;
if the value is smaller than the preset threshold value, acquiring the identity information of the user;
generating a friend-making index according to the identity information of the user and the identity information of the other user;
when the friend making index is larger than a preset friend making index threshold value, friend making recommendation information is sent to the other pressure detection device, so that the other pressure detection device outputs the friend making recommendation information to the other user; and the friend making recommendation information at least comprises social account information of the user.
When the difference value between the pressure values generated by pressing the touch screen by the two users is smaller than the preset threshold value, the friend-making index is generated according to the identity information of the users and the identity information of the other user, namely, the possibility that the two users become friends is evaluated, and when the friend-making index is large enough, friend-making recommendation information is pushed to the other pressure detection device, so that the other pressure detection device outputs the friend-making recommendation information to the other user, friend making is realized through interaction with the touch screen, and user experience is improved.
As an alternative implementation, after the first obtaining unit 404 obtains the pressure value of the user's finger pressing the touch screen according to the contact area, the following steps may be further performed:
when a seat adjusting instruction input by a user is received, acquiring a seat adjusting relation table; the seat adjustment relation table is used for indicating the corresponding relation between the pressure generated by pressing the touch screen by the user and the seat adjustment amplitude;
according to the pressure value, obtaining a target seat adjustment amplitude matched with the pressure value from a seat adjustment relation table;
and adjusting the seat according to the target seat adjustment amplitude.
In the embodiment of the present invention, the seat adjustment relationship table may be set and stored in a local cache for a tester according to a large number of experiments, and is used for indicating a correspondence between pressure generated when a user presses a touch screen and a seat adjustment amplitude, where the larger the pressure value is, the larger the seat adjustment amplitude is, and the embodiment of the present invention is not limited.
By implementing the optional implementation mode, when the user feels that the posture of the current seat is not appropriate, the seat can be adjusted according to the pressure value, the interactivity is greatly improved, and the user experience is improved.
In this embodiment of the present invention, as an optional implementation manner, the first obtaining unit 404 may be provided with a voice module, which may be configured to recognize an input voice instruction, such as a "please adjust the seat" adjustment password, where the adjustment password is used as a seat adjustment instruction, and when the adjustment password is detected, the first obtaining unit 404 obtains the seat adjustment relationship table. By implementing the optional embodiment, the seat adjusting instruction can be input through voice, and then the seat adjustment can be carried out according to the pressure value, so that the interactivity is greatly improved.
It can be seen that, in the implementation of the pressure detection device based on the touch screen described in fig. 4, according to the force action principle, the larger the pressure of the user finger pressing the touch screen is, the larger the deformation of the user finger is, the larger the contact area between the user finger and the touch screen is, and thus the number of the triggered capacitive sensors is, the contact area between the user finger and the touch screen is determined by the pressure detection device according to the number of the triggered capacitive sensors arranged on the touch screen, and then the pressure value of the user finger pressing the touch screen is calculated according to the contact area, without additionally arranging a pressure sensor, the cost can be reduced, and the pressure detection device overcomes the problem that the traditional pressure sensor is easily influenced by vehicle vibration in the pressure detection, and improves the accuracy of pressure detection.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another pressure detection device based on a touch screen according to an embodiment of the present invention. Among them, the pressure detection device shown in fig. 5 is further optimized from the pressure detection device shown in fig. 4. As compared with the pressure detecting device shown in fig. 4, the pressure detecting device shown in fig. 5 may further include:
a dividing unit 405, configured to divide a target area according to a distribution condition of the triggered capacitive sensor on the touch screen after the first detecting unit 402 detects that the number of targets remains unchanged within a preset time and before the determining unit 403 determines a contact area between the finger of the user and the touch screen according to the number of targets; the density of the triggered capacitive sensors in the target area is greater than a preset density, and the area of the target area is greater than a first preset area and smaller than a second preset area.
A first judging unit 406, configured to judge whether the number of target areas exceeds a preset number.
The determining unit 403 is specifically configured to determine a contact area between the finger of the user and the touch screen according to the target number when the first detecting unit 402 detects that the target number remains unchanged within the preset time and the first determining unit 406 determines that the number of the target areas does not exceed the preset number.
A second obtaining unit 407, configured to obtain a first triggered target capacitive sensor in the triggered capacitive sensors after the first determining unit 406 determines that the number of target areas does not exceed the preset number and before the determining unit 403 determines the contact area between the user's finger and the touch screen according to the target number.
The second obtaining unit 407 is further configured to obtain, with reference to a vertical line where the target capacitive sensor is located relative to the touch screen, a first number of triggered capacitive sensors distributed on the left side of the vertical line and a second number of triggered capacitive sensors distributed on the right side of the vertical line.
The second determining unit 408 is configured to determine whether a difference between the first number and the second number is smaller than a preset difference.
In the embodiment of the present invention, the preset difference may be set by a tester according to a large number of experimental results, and the embodiment of the present invention is not limited. In the embodiment of the present invention, when the difference between the first number and the second number is smaller than the preset difference, it may be considered that, with reference to a vertical line on which the target capacitive sensor is located relative to the touch screen, the first number of triggered capacitive sensors distributed on the left side of the vertical line is approximately equal to the second number of triggered capacitive sensors distributed on the right side of the vertical line, that is, the user does not slide after pressing the touch screen with a finger.
As an alternative embodiment, the pressure detection apparatus may further include a control unit, and after the second determination unit 408 determines that the difference between the first number and the second number is greater than or equal to a preset difference, the control unit may further perform the following steps:
if the first number is larger than the second number, controlling the current display content on the touch screen to slide leftwards so as to display the content of the next page on the touch screen;
and if the first number is smaller than the second number, controlling the currently displayed content on the touch screen to slide rightwards, so that the content of the previous page is displayed on the touch screen.
In the embodiment of the present invention, for example, when a user wants to display a next page of content on the touch screen, the user may use a finger to press the touch screen and then slide the touch screen to the left, so that a first number of triggered capacitive sensors distributed on the left side of the vertical line is greater than a second number of triggered capacitive sensors distributed on the right side of the vertical line, and at this time, the control unit controls the currently displayed content on the touch screen to slide to the left, so that the next page of content is displayed on the touch screen. For another example, when the user wants to display the content of the previous page on the touch screen, the user may use a finger to press the touch screen and then slide the touch screen to the right, so that the first number of the triggered capacitive sensors distributed on the left side of the vertical line is smaller than the second number of the triggered capacitive sensors distributed on the right side of the vertical line, and at this time, the control unit controls the currently displayed content on the touch screen to slide to the right, so that the content of the previous page is displayed on the touch screen.
By implementing the optional implementation mode, if the user slides to the left after pressing the touch screen by using the finger, the content of the next page can be displayed on the touch screen, and if the user slides to the right after pressing the touch screen by using the finger, the content of the previous page can be displayed on the touch screen, so that the interactivity is greatly improved.
The second obtaining unit 407 is further configured to obtain a third number of triggered capacitive sensors distributed on an upper side of the horizontal line and a fourth number of triggered capacitive sensors distributed on a lower side of the horizontal line, with reference to the horizontal line where the target capacitive sensor is located relative to the touch screen, when the second determining unit 408 determines that the difference between the first number and the second number is smaller than the preset difference.
The second determining unit 408 is further configured to determine whether a difference between the third number and the fourth number is smaller than a preset difference.
In the embodiment of the present invention, when the difference between the third number and the fourth number is smaller than the preset difference, it may be considered that, with reference to a horizontal line where the target capacitive sensor is located relative to the touch screen, the third number of the triggered capacitive sensors distributed on the upper side of the horizontal line is approximately equal to the fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line, that is, the user does not slide after pressing the touch screen with a finger.
As an alternative embodiment, after the second judging unit 408 judges that the difference between the third number and the fourth number is greater than or equal to the preset difference, the control unit may further perform the following steps:
judging whether the touch screen is in a reading state or not;
if the reading state is achieved, and the third number is larger than the fourth number, controlling the current display content on the touch screen to slide upwards so that the user can read continuously;
if the reading state is achieved, and the third number is smaller than the fourth number, controlling the current display content on the touch screen to slide downwards so that the user can review the previous reading content;
if not, ending the process;
wherein the difference between the third number and the fourth number is in direct proportion to the sliding distance.
In the embodiment of the present invention, for example, when the user is reading by using the touch screen, the user may press the touch screen with a finger and slide the touch screen upwards when the user finishes reading the currently displayed content of the touch screen, so that the third number of the triggered capacitive sensors distributed on the upper side of the horizontal line is greater than the fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line, and at this time, the control unit controls the currently displayed content on the touch screen to slide upwards, so that the user continues to read. For another example, when the user wants to review the previous reading content, the user may press the touch screen with a finger to slide downward, so that the third number of the triggered capacitive sensors distributed on the upper side of the horizontal line is smaller than the fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line, and at this time, the control unit controls the currently displayed content on the touch screen to slide downward, so that the user can review the previous reading content.
By implementing the optional embodiment, if the user slides upwards after pressing the touch screen with the finger, the current display content on the touch screen can be made to slide upwards so that the user can continue reading, and if the user slides downwards after pressing the touch screen with the finger, the current display content on the touch screen can be made to slide downwards so that the user can review the previous reading content.
The determining unit 403 is specifically configured to determine the contact area between the finger of the user and the touch screen according to the target number when the first detecting unit 402 detects that the target number remains unchanged for a preset time, the first determining unit 406 determines that the number of the target areas does not exceed the preset number, and the second determining unit 408 determines that the difference between the third number and the fourth number is smaller than the preset difference.
The second detecting unit 409 is configured to detect whether a type corresponding to the display content at the position where the user finger presses the touch screen is a preset type after the first obtaining unit 404 obtains the pressure value of the user finger pressing the touch screen according to the contact area.
The third determining unit 410 is configured to determine whether the pressure value is greater than the preset pressure value when the second detecting unit 409 detects that the type corresponding to the display content at the position where the user finger presses the touch screen is the preset type.
The amplifying unit 411 is configured to, when the third determining unit 410 determines that the pressure value is greater than the preset pressure value, amplify the display content, where the amplification factor and the pressure value are in a direct proportional relationship.
A reducing unit 412, configured to perform reducing processing on the display content when the third determining unit 410 determines that the pressure value is less than or equal to the preset pressure value, where a reduction multiple is in inverse proportion to the pressure value.
In the embodiment of the present invention, when the second detecting unit 409 detects that the type corresponding to the display content at the position where the user's finger presses the touch screen is the preset type, if the third determining unit 410 determines that the pressure value is greater than the preset pressure value, the amplifying unit 411 performs amplification processing on the display content, where the amplification factor and the pressure value are in a direct proportional relationship, that is, the larger the pressure value is, the larger the amplification factor is; if the third determining unit 410 determines that the pressure value is less than or equal to the preset pressure value, the reducing unit 412 performs a reducing process on the display content, where a reduction multiple and the pressure value are in an inverse proportional relationship, that is, the smaller the pressure value, the larger the reduction multiple.
In this embodiment of the present invention, as an optional implementation manner, after the first obtaining unit 404 obtains, according to the contact area, a pressure value when the user's finger presses the touch screen, the following steps may be further performed:
when a setting instruction input by a user is received, outputting a plurality of preview images corresponding to feedback effects on a touch screen;
receiving a target preview image selected by a user;
setting the feedback effect corresponding to the target preview image as a target feedback effect matched with the pressure value;
and storing the pressure value and the target feedback effect in a local cache in a correlated manner, so that when the pressure value is generated by subsequently pressing the touch screen, the target feedback effect is displayed on the touch screen.
By implementing the optional implementation mode, the pressure value can be corresponding to the feedback effect of the touch screen, so that when a follow-up user presses the touch screen, the corresponding feedback effect can be displayed according to the pressure value generated by pressing the touch screen, and the user experience is improved.
It can be seen that, compared with the implementation of the pressure detection device based on the touch screen described in fig. 4, the implementation of the pressure detection device based on the touch screen described in fig. 5 can improve the efficiency of pressure detection on the premise of avoiding the user from touching the touch screen by mistake. In addition, the pressure value detection caused by sliding after the user presses the touch screen by using a finger can be prevented from becoming large, and the pressure detection error can be reduced. In addition, when the type corresponding to the display content at the position where the user finger presses the touch screen is a preset type, the display content can be amplified or reduced according to the size of the pressure value, so that the interactivity is greatly improved, and the user experience is improved.
EXAMPLE five
Referring to fig. 6, fig. 6 is a schematic structural diagram of another pressure detection device based on a touch screen according to an embodiment of the present invention. As shown in fig. 6, the pressure detecting means may include:
a memory 601 in which executable program code is stored;
a processor 602 coupled to a memory 601;
the processor 602 calls the executable program code stored in the memory 601 to execute any one of the touch screen-based pressure detection methods of fig. 2 to 3.
The embodiment of the invention discloses a vehicle-mounted central control system which comprises a pressure detection device based on a touch screen.
The embodiment of the invention discloses a vehicle, which comprises a vehicle-mounted central control system disclosed by the embodiment of the invention.
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute any one of the pressure detection methods based on a touch screen in figures 2-3.
An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to make a computer execute any one of the touch screen based pressure detection methods of fig. 2 to 3.
The embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, and when the computer program product runs on a computer, the computer is caused to execute part or all of the steps of the method in the above method embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are exemplary and alternative embodiments, and that the acts and modules illustrated are not required in order to practice the invention.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not imply an inevitable order of execution, and the execution order of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present invention, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of each embodiment of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood, however, that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information. In various embodiments of the present invention, it is understood that the meaning of "a and/or B" means that a and B are each present alone or both a and B are included.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The pressure detection method and the pressure detection device based on the touch screen disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.
Claims (12)
1. A method for touch screen based pressure detection, wherein the touch screen comprises a plurality of capacitive sensors, the method further comprising:
monitoring a target number of triggered capacitive sensors of the plurality of capacitive sensors when it is detected that a user finger presses the touch screen;
detecting whether the target quantity is kept unchanged within a preset time;
if the touch screen is kept unchanged, dividing a target area according to the distribution condition of the triggered capacitive sensors on the touch screen, wherein the concentration of the triggered capacitive sensors in the target area is greater than a preset concentration, and the area of the target area is greater than a first preset area and smaller than a second preset area;
judging whether the number of the target areas exceeds a preset number or not; if not, determining the contact area between the user finger and the touch screen according to the target number;
and acquiring a pressure value of the user finger pressing the touch screen according to the contact area.
2. The method of claim 1, wherein prior to said determining the contact area of the user's finger with the touch screen based on the target number, the method further comprises:
acquiring a first triggered target capacitive sensor in the triggered capacitive sensors;
acquiring a first number of triggered capacitive sensors distributed on the left side of the vertical line and a second number of triggered capacitive sensors distributed on the right side of the vertical line by taking a vertical line where the target capacitive sensors are located relative to the touch screen as a reference;
judging whether the difference value between the first quantity and the second quantity is smaller than a preset difference value or not;
if the number of the triggered capacitive sensors is smaller than the preset number, taking a horizontal line where the target capacitive sensor is located relative to the touch screen as a reference, and acquiring a third number of the triggered capacitive sensors distributed on the upper side of the horizontal line and a fourth number of the triggered capacitive sensors distributed on the lower side of the horizontal line;
judging whether the difference value between the third quantity and the fourth quantity is smaller than the preset difference value or not;
and if the number of the target fingers is smaller than the target number, the step of determining the contact area between the user finger and the touch screen according to the target number is executed.
3. The method according to claim 2, wherein after the obtaining of the pressure value of the user's finger pressing the touch screen according to the contact area, the method further comprises:
detecting whether the type corresponding to the display content on the position where the user finger presses the touch screen is a preset type or not;
if the type corresponding to the display content is the preset type, judging whether the pressure value is larger than a preset pressure value;
if the pressure value is larger than the preset pressure value, amplifying the display content, wherein the amplification factor and the pressure value are in a direct proportional relation;
and if the pressure value is smaller than or equal to the preset pressure value, reducing the display content, wherein the reduction multiple and the pressure value are in an inverse proportional relation.
4. The method according to any one of claims 1 to 3, wherein after the obtaining of the pressure value of the user's finger pressing the touch screen according to the contact area, the method further comprises:
when a setting instruction input by the user is received, outputting a plurality of preview images corresponding to the feedback effects on the touch screen;
receiving a target preview image selected by the user;
setting the feedback effect corresponding to the target preview image as a target feedback effect matched with the pressure value;
and storing the pressure value and the target feedback effect in a local cache in a correlation manner, so that when the pressure value is generated by subsequently pressing the touch screen, the target feedback effect is displayed on the touch screen.
5. A touch screen-based pressure detection device, wherein the touch screen includes a plurality of capacitive sensors, the pressure detection device comprising:
the monitoring unit is used for monitoring the target number of the triggered capacitive sensors in the plurality of capacitive sensors when the condition that the fingers of the user press the touch screen is detected;
the first detection unit is used for detecting whether the target quantity keeps unchanged within preset time;
the determining unit is used for determining the contact area between the finger of the user and the touch screen according to the target number when the first detecting unit detects that the target number is kept unchanged within preset time;
the first obtaining unit is used for obtaining a pressure value of the user finger pressing the touch screen according to the contact area;
the pressure detection device further includes:
the dividing unit is used for dividing a target area according to the distribution condition of the triggered capacitive sensors on the touch screen after the first detection unit detects that the target number is kept unchanged within a preset time and before the determining unit determines the contact area of the user finger and the touch screen according to the target number, wherein the density of the triggered capacitive sensors in the target area is greater than a preset density, and the area of the target area is greater than a first preset area and smaller than a second preset area;
the first judging unit is used for judging whether the number of the target areas exceeds a preset number or not;
the determining unit is specifically configured to determine, when the first detecting unit detects that the number of the targets remains unchanged within a preset time and the first judging unit judges that the number of the target areas does not exceed the preset number, a contact area between the user's finger and the touch screen according to the number of the targets.
6. The pressure detection apparatus according to claim 5, characterized by further comprising:
the second acquisition unit is used for acquiring a first triggered target capacitive sensor in the triggered capacitive sensors after the first judgment unit judges that the number of the target areas does not exceed a preset number and before the determination unit determines the contact area between the finger of the user and the touch screen according to the target number;
the second acquisition unit is further used for acquiring a first number of the triggered capacitive sensors distributed on the left side of the vertical line and a second number of the triggered capacitive sensors distributed on the right side of the vertical line by taking the vertical line where the target capacitive sensor is located relative to the touch screen as a reference;
a second judging unit, configured to judge whether a difference between the first number and the second number is smaller than a preset difference;
the second obtaining unit is further configured to, when the second determining unit determines that the difference between the first number and the second number is smaller than a preset difference, obtain, with reference to a horizontal line where the target capacitive sensor is located relative to the touch screen, a third number of the triggered capacitive sensors distributed on an upper side of the horizontal line and a fourth number of the triggered capacitive sensors distributed on a lower side of the horizontal line;
the second judging unit is further configured to judge whether a difference between the third number and the fourth number is smaller than the preset difference;
the determining unit is specifically configured to determine, when the first detecting unit detects that the target number remains unchanged within a preset time, the first determining unit determines that the number of the target regions does not exceed the preset number, and the second determining unit determines that a difference between the third number and the fourth number is smaller than the preset difference, a contact area between the user's finger and the touch screen is determined according to the target number.
7. The pressure detection apparatus according to claim 6, further comprising:
the second detection unit is used for detecting whether the type corresponding to the display content at the position where the user finger presses the touch screen is a preset type or not after the first acquisition unit acquires the pressure value of the user finger pressing the touch screen according to the contact area;
the third judging unit is used for judging whether the pressure value is larger than a preset pressure value or not when the second detecting unit detects that the type corresponding to the display content at the position where the user finger presses the touch screen is a preset type;
the amplifying unit is used for amplifying the display content when the third judging unit judges that the pressure value is larger than a preset pressure value, wherein the amplification factor is in direct proportion to the pressure value;
and the reducing unit is used for reducing the display content when the third judging unit judges that the pressure value is less than or equal to the preset pressure value, wherein the reduction multiple and the pressure value are in an inverse proportional relation.
8. The pressure detection apparatus according to any one of claims 5 to 7, characterized by further comprising:
the output unit is used for outputting a plurality of preview images corresponding to feedback effects on the touch screen when a set instruction input by the user is received after the first acquisition unit acquires the pressure value of the touch screen pressed by the finger of the user according to the contact area;
a receiving unit, configured to receive a target preview image selected by the user;
the setting unit is used for setting the feedback effect corresponding to the target preview image as a target feedback effect matched with the pressure value;
and the storage unit is used for storing the pressure value and the target feedback effect in a local cache in a correlation manner, so that when the pressure value is generated by subsequently pressing the touch screen, the target feedback effect is displayed on the touch screen.
9. An on-vehicle center control system, characterized in that, the on-vehicle center control system includes the pressure detection device based on touch screen of any one of claims 5-8.
10. A vehicle characterized by comprising the on-vehicle center control system according to claim 9.
11. A pressure detection device based on a touch screen is characterized by comprising:
a memory storing executable program code;
a central processor coupled to the memory;
the central processor calls the executable program code stored in the memory for executing a touch screen based pressure detection method according to any one of claims 1 to 4.
12. A computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute a touch screen-based pressure detection method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910255709.9A CN109992161B (en) | 2019-03-28 | 2019-03-28 | Pressure detection method and detection device based on touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910255709.9A CN109992161B (en) | 2019-03-28 | 2019-03-28 | Pressure detection method and detection device based on touch screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109992161A CN109992161A (en) | 2019-07-09 |
CN109992161B true CN109992161B (en) | 2022-05-13 |
Family
ID=67130877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910255709.9A Active CN109992161B (en) | 2019-03-28 | 2019-03-28 | Pressure detection method and detection device based on touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109992161B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7337574B2 (en) * | 2019-07-12 | 2023-09-04 | アルパイン株式会社 | Input detection device and input detection method |
CN111124193A (en) * | 2019-12-30 | 2020-05-08 | 深圳市汇顶科技股份有限公司 | Signal processing method and device of sensor |
CN115790819A (en) * | 2022-08-24 | 2023-03-14 | 宁波普瑞均胜汽车电子有限公司 | Vehicle-mounted touch equipment knocking detection method and device, touch equipment and storage medium |
TWI828559B (en) * | 2023-03-17 | 2024-01-01 | 達運精密工業股份有限公司 | Touch control system and touch control method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445311A (en) * | 2016-11-08 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | Icon display method, icon display device and terminal |
WO2017143823A1 (en) * | 2016-02-25 | 2017-08-31 | 上海斐讯数据通信技术有限公司 | Method and device for achieving electromagnetic interference resistance of capacitive touchscreen |
CN108647505A (en) * | 2018-04-19 | 2018-10-12 | Oppo广东移动通信有限公司 | Unlocked by fingerprint method and Related product |
CN109117063A (en) * | 2017-06-22 | 2019-01-01 | 广州市动景计算机科技有限公司 | A kind of method for down loading and device, a kind of terminal and storage medium |
-
2019
- 2019-03-28 CN CN201910255709.9A patent/CN109992161B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017143823A1 (en) * | 2016-02-25 | 2017-08-31 | 上海斐讯数据通信技术有限公司 | Method and device for achieving electromagnetic interference resistance of capacitive touchscreen |
CN106445311A (en) * | 2016-11-08 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | Icon display method, icon display device and terminal |
CN109117063A (en) * | 2017-06-22 | 2019-01-01 | 广州市动景计算机科技有限公司 | A kind of method for down loading and device, a kind of terminal and storage medium |
CN108647505A (en) * | 2018-04-19 | 2018-10-12 | Oppo广东移动通信有限公司 | Unlocked by fingerprint method and Related product |
Also Published As
Publication number | Publication date |
---|---|
CN109992161A (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109992161B (en) | Pressure detection method and detection device based on touch screen | |
CN107493495B (en) | Interactive position determining method, system, storage medium and intelligent terminal | |
KR101912930B1 (en) | Adaptive screen interfaces based on viewing distance | |
EP3221817B1 (en) | Screenshot based indication of supplemental information | |
US20200258517A1 (en) | Electronic device for providing graphic data based on voice and operating method thereof | |
US10762324B2 (en) | Pressure determination method and device and fingerprint recognition method and device | |
KR20150107755A (en) | Using distance between objects in touchless gestural interfaces | |
WO2017032006A1 (en) | Method and apparatus for displaying information | |
CN110889074B (en) | Page display method and device, storage medium and electronic equipment | |
US20130230193A1 (en) | Method and apparatus for adjusting volume using distance sensors | |
CN112835484B (en) | Dynamic display method and device based on operation body, storage medium and electronic equipment | |
US10339296B2 (en) | Terminal apparatus and control method for terminal apparatus | |
US20170180807A1 (en) | Method and electronic device for amplifying video image | |
CN105844241A (en) | Method and terminal for detecting touch control pressure | |
EP3940518A1 (en) | Method for moving interface elements, system, vehicle and storage medium | |
CN111078102B (en) | Method for determining point reading area through projection and terminal equipment | |
CN106201549A (en) | Control method and device for information in application program and terminal equipment | |
CN105739785A (en) | Method and equipment for fast regulating screen brightness through pressure touch control technology | |
CN111077997B (en) | Click-to-read control method in click-to-read mode and electronic equipment | |
CN107958146B (en) | Fingerprint verification method and device, storage medium and electronic equipment | |
CN105739780A (en) | Method and equipment for quickly regulating various parameters through pressure touch technology | |
CN109656402B (en) | Electronic device, control method thereof, and storage medium | |
CN116468003A (en) | Text display method, device, equipment and storage medium | |
CN107767712B (en) | Method and device for adjusting matching degree, storage medium and electronic equipment | |
US20170277340A1 (en) | Terminal control method and terminal |
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 |