CN111766981A - Identification method and device, electronic equipment and storage medium - Google Patents

Identification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111766981A
CN111766981A CN202010616015.6A CN202010616015A CN111766981A CN 111766981 A CN111766981 A CN 111766981A CN 202010616015 A CN202010616015 A CN 202010616015A CN 111766981 A CN111766981 A CN 111766981A
Authority
CN
China
Prior art keywords
test points
touch
screen
preset
touch variation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010616015.6A
Other languages
Chinese (zh)
Inventor
闫俊超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chipone Technology Beijing Co Ltd
Original Assignee
Chipone Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chipone Technology Beijing Co Ltd filed Critical Chipone Technology Beijing Co Ltd
Priority to CN202010616015.6A priority Critical patent/CN111766981A/en
Publication of CN111766981A publication Critical patent/CN111766981A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Landscapes

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

Abstract

The application provides an identification method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring touch variation corresponding to the test point; calculating the number of target test points which accord with a first preset condition in the test points; the first preset condition includes: the touch variation corresponding to the test point is larger than the average value of the touch variation, and the test points are communicated; and when the number of the target test points is larger than the preset value of the number of the test points, determining the current frame as a stacked screen and laid down effective frame. The method realizes the identification of the screen folding mode, thereby improving the accuracy of touch identification.

Description

Identification method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of touch technologies, and in particular, to an identification method and apparatus, an electronic device, and a storage medium.
Background
In a touch system, a touch sensor on a screen acquires screen touch quantity according to a time interval, and the touch change quantity can be obtained by subtracting a reference touch quantity from a real-time screen touch quantity. The touch variation amount may indicate a touch behavior to the screen. Under certain conditions, the reference touch quantity can be automatically adjusted to ensure the accuracy of touch identification.
Under the condition that two touch equipment are bright, when the screens are close to each other, in the moment that two screens are overlapped together, the condition that screen touch volume increases can all appear in the overlapping screen area of two screens. In the prior art, under the condition of no touch, the reference touch quantity is finely adjusted according to the change of the screen touch quantity, so that the reference touch quantity can more accurately represent the data touch event at the nearest neighbor moment. In the screen folding event, the increase of the screen touch amount triggers a reference touch amount fine adjustment mechanism to adjust the reference touch amount to be close to the increased screen touch amount.
In the actual test situation, the event needs to be recognized, and a scheme is adopted when the event is judged, so that the normal touch quantity is recovered after the screen is lifted, and the recognition of the normal touch event is not influenced.
Disclosure of Invention
The embodiment of the application provides an identification method, which realizes identification of a screen overlapping mode, so that whether a reference touch quantity is updated or not can be determined according to whether the screen overlapping mode appears or not in subsequent touch identification.
The embodiment of the application provides an identification method, which comprises the following steps:
acquiring touch variation corresponding to the test point;
calculating the number of target test points which accord with a first preset condition in the test points; the first preset condition includes: the touch variation corresponding to the test point is larger than the average value of the touch variation, and the test points are communicated;
and when the number of the target test points is larger than the preset value of the number of the test points, determining the current frame as a stacked screen and laid down effective frame.
In an embodiment, the method further comprises:
and according to a preset time interval, repeatedly acquiring the touch variation and judging the effective frame of the overlapped screen put-down, and when the continuous frame number of the effective frame of the overlapped screen put-down is greater than the preset frame number, determining that the current mode is the overlapped screen put-down mode.
In an embodiment, the obtaining of the touch variation corresponding to the test point includes:
and acquiring the touch induction quantity corresponding to the full screen test point.
In an embodiment, before the calculating the number of target test points in the test points that meet the first preset condition, the method further includes:
traversing the full screen test points, and counting the number of the first test points with the touch variation larger than the average value of the touch variation;
judging whether a second test point with the touch variation in a preset interval exists or not;
judging whether a second preset condition is met, and calculating the number of target test points in the full screen test points when the second preset condition is met; the second preset condition includes: the second test points exist, the average value of the touch variation is larger than a first preset value, and the number of the first test points is larger than a second preset value.
In an embodiment, the traversing the full screen test points, and counting the number of the first test points with the touch variation larger than the average value of the touch variation includes:
judging whether the maximum value of the full-screen touch variation is within a preset range;
and when the touch variation is within the preset range, counting the number of the first test points with the touch variation larger than the average value of the touch variation.
In an embodiment, the calculating the number of target test points in the test points that meet a first preset condition includes:
selecting a second test point as a first starting test point;
searching for the test points which are larger than the average value of the touch variation in the test points at the upper, lower, left and right positions of the first starting test point;
repeating the searching process by taking the test point larger than the average value of the touch variation as a second initial test point until no test point larger than the average value of the touch variation exists;
counting the number of the searched test points which are larger than the average value of the touch variation; and counting the number of the test points to obtain the number of the target test points.
In an embodiment, the preset value of the number of the test points is obtained by calculating according to the following steps:
calculating the touch variation level according to the average value of the touch variation;
if the touch variation level is equal to 0, the preset value of the number of the test points is the second preset value; otherwise, the preset value of the number of the test points is a result obtained by dividing the second preset value by the touch variable quantity grade.
In an embodiment, after the determining that the screen-folding-down mode is currently performed, the method further includes:
and setting the flag position triggering the reference touch quantity updating mechanism as no.
In an embodiment, after the determining that the screen-folding-down mode is currently performed, the method further includes:
acquiring touch variation corresponding to the test point;
traversing the test points, and acquiring the number of third test points with the touch variation smaller than a third preset value and the number of first test points with the touch variation larger than the average value of the touch variation;
judging whether a third preset condition is met, and determining that the current frame is a screen-folding uplifting effective frame when the third preset condition is met; the third preset condition includes: the average value of the touch variation is smaller than a first preset value, the number of the first test points is smaller than a preset value of the number of the test points, and the number of the third test points is smaller than a preset value of the number of the test points.
In an embodiment, the method further comprises:
and according to a preset time interval, repeatedly performing the operation of acquiring the touch variable quantity and judging whether the effective frame is lifted by the overlapped screen, and when the continuous frame number of the effective frame lifted by the overlapped screen is greater than the preset frame number, determining that the current mode is the overlapped screen lifting mode.
In an embodiment, after the determining that the screen folding and lifting mode is currently the screen folding and lifting mode, the method further includes:
the update of the reference touch amount is started.
In another aspect, the present application further provides an identification apparatus, including:
the variable quantity acquisition module is used for acquiring the touch variable quantity corresponding to the test point;
the number calculation module is used for calculating the number of target test points which meet a first preset condition in the test points; the first preset condition includes: the touch variation corresponding to the test point is larger than the average value of the touch variation, and the test points are communicated;
and the screen folding judgment module is used for determining that the current frame is a screen folding and laying-down effective frame when the number of the target test points is greater than the preset value of the number of the test points.
Further, the present application also provides an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the identification method provided by the embodiment of the application.
Further, the present application also provides a computer-readable storage medium, which stores a computer program, where the computer program is executable by a processor to perform the identification method provided by the embodiments of the present application.
According to the technical scheme provided by the embodiment of the application, the number of the target test points meeting the first preset condition in the test points is calculated by obtaining the touch variation corresponding to the test points, when the number of the target test points is larger than the preset value of the number of the test points, the current frame is determined to be a screen-folding and effective frame, the screen-folding mode is identified, and therefore whether the reference touch quantity is updated or not can be determined according to whether the screen-folding mode appears or not in the subsequent touch identification, and the accuracy of the touch identification is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic view of an application scenario of an identification method according to an embodiment of the present application;
fig. 2 is a schematic view of an application scenario of an identification method according to another embodiment of the present application;
fig. 3 is a schematic view of an application scenario of an identification method according to another embodiment of the present application;
fig. 4 is a schematic flowchart of an identification method according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of the embodiment shown in FIG. 3 before step S320;
FIG. 6 is a detailed flowchart of step S320 in the corresponding embodiment of FIG. 3;
FIG. 7 is a schematic flow chart of the corresponding implementation of FIG. 3 after step S330;
fig. 8 is a process diagram of an identification method according to another embodiment of the present application;
fig. 9 is a block diagram of an identification apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a scene schematic diagram of an identification method provided in an embodiment of the present application. As shown in fig. 1, the scenario includes: a first touch device 110 and a second touch device 120. The first touch device 110 and the second touch device 120 may be a mobile phone, a tablet computer, etc., and the first touch device 110 and the second touch device 120 may be disposed to overlap each other. The first touch device 110 and the second touch device 120 may adopt the method for identifying the screen folding mode provided by the embodiment to realize the identification of the screen folding lowering mode and the screen folding lifting mode, so as to improve the accuracy of the subsequent touch identification.
In one embodiment, as shown in fig. 2, the first touch device 110 includes a touch screen 111 and a controller 112. The touch screen 111 may include a plurality of touch sensors 1110, and the controller 112 may be connected to the plurality of touch sensors 1110 on the touch screen 111 and implement the identification method provided by the embodiment to identify the overlay mode.
The first touch device 110 further includes a controller 112. The controller 112 may include a processor 1121 and a memory 1122 for storing instructions executable by the processor 1121; the processor 1121 is configured to execute the identification method provided herein.
The processor 1121 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, and includes a Central processing unit (CPU, for short), a Network processor (NP, for short), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 1122 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The present application also provides a computer-readable storage medium storing a computer program executable by the processor 1121 to perform the identification method provided herein.
Fig. 3 is a schematic view of an application scenario of an identification method according to another embodiment of the present application. As shown in fig. 3, the application scenario includes a third touch device 130. The third touch device 130 may be a mobile phone including a foldable screen. The third touch device 130 includes a first folded screen 1301 and a second folded screen 1302, and the second folded screen 1302 may overlap the first folded screen 1301 by being rotated. When the screen is in the folded state, i.e. the second folded screen 1302 overlaps the first folded screen 1301, the third touch device 130 is in the folded screen down mode; when the screen is unfolded and the second folded screen 1302 does not contact the first folded screen 1301, the third touch device 130 is in the folded screen lifting mode. The third touch device 130 can adopt the method for identifying the stacked screen mode provided by the embodiment, so that the identification of the stacked screen lowering mode and the stacked screen lifting mode is realized, corresponding data processing is performed, and the accuracy of subsequent touch identification is improved.
Fig. 4 is a flowchart illustrating an identification method according to an embodiment of the present application. As shown in fig. 4, the method includes the following steps S310-S330.
Step S310: and acquiring the touch variation corresponding to the test point.
The touch variation is data indicating a touch behavior on the touch screen. Touch sensors are arranged at all positions of the touch screen, and the touch sensors can acquire the screen touch quantity in real time. And taking the screen touch quantity acquired in the non-touch state as a reference touch quantity, and subtracting the reference touch quantity from the screen touch quantity to obtain the touch variation at the moment. The test points in this step are referred to as touch sensors. And obtaining the screen touch quantity collected by the test point on the preset position of the screen, and subtracting the reference touch quantity to obtain the touch variation corresponding to the test point.
Step S320: calculating the number of target test points which accord with a first preset condition in the test points; the first preset condition includes: and the touch variation corresponding to the test points is larger than the average value of the touch variation, and the test points are communicated.
When two screens are overlapped together, a large connected area with large touch variation exists. Therefore, in this step, the number of the mutually connected test points in which the touch variation is larger than the average value of the touch variation is calculated, and the number of the test points is taken as the number of the target test points. Wherein, connected means that a certain target test point is at least adjacent to one other target test point.
Step S330: and when the number of the target test points is larger than the preset value of the number of the test points, determining the current frame as a stacked screen and laid down effective frame.
The touch variation is acquired at preset time intervals, and each acquisition is called a frame. The effective frame of the folded screen and the put-down frame means that the screens of the two complete machines are in an overlapped state in the current frame, or the two folded screens of the folded screen equipment are in an overlapped state. In this step, when the number of the target test points is greater than the preset value of the number of the test points, the current frame is determined to be a stacked screen and effective frame put down.
According to the technical scheme provided by the embodiment of the application, the number of the target test points meeting the first preset condition in the test points is calculated by obtaining the touch variation corresponding to the test points, and when the number of the target test points is greater than the preset value of the number of the test points, the current frame is determined to be a stacked screen and an effective frame is put down, so that the identification of the stacked screen mode is realized, whether the reference touch quantity is updated or not can be determined according to whether the stacked screen mode appears or not in the subsequent touch identification, and the accuracy of the touch identification is improved.
In an embodiment, the method provided in the embodiment of the present application further includes: and according to a preset time interval, repeatedly acquiring the touch variation and judging the effective frame of the overlapped screen put-down, and when the continuous frame number of the effective frame of the overlapped screen put-down is greater than the preset frame number, determining that the current mode is the overlapped screen put-down mode.
When the current frame is determined to be a screen-overlap-down valid frame, it is stated that the screen may overlap another screen at this frame. However, noise and other factors may also cause the occurrence of effective frames during screen overlapping and dropping, which may cause misjudgment of the screen overlapping and dropping mode. Generally, when the effective frame is put down by overlapping the screen for a certain number of frames, the influence of other external factors can be eliminated. Therefore, it can be further determined that the current screen-folding drop mode is indeed in by continuing screen-folding drop active frames.
In this step, the touch variation is obtained at preset time intervals, and each time is called a frame. In each frame, according to the method provided by the embodiment corresponding to fig. 4, the touch amount is obtained and the effective frame is determined by overlapping the screen and dropping the screen. And if the continuous frame number of the effective frame put down by the overlapped screen is greater than the preset frame number value, determining that the current mode is the overlapped screen put down mode.
In an embodiment, the obtaining of the touch variation corresponding to the test point may be obtaining of the touch variation corresponding to the full-screen test point. And acquiring the screen touch quantity corresponding to the test point of the full screen, and subtracting the reference touch quantity at the corresponding position to obtain the touch variation corresponding to the test point of the full screen.
In one embodiment, as shown in FIG. 5, before step S320, the method further includes the following steps S410-S430.
Step S410: and traversing the full-screen test points, and counting the number of the first test points with the touch variation larger than the average value of the touch variation.
The touch variation average value is an average value of touch variations corresponding to the full-screen test point. The number of the first test points is the number of the test points with the touch variation larger than the average value of the touch variation.
Step S420: and judging whether a second test point with the touch variation in the preset interval exists or not.
The preset interval may be a certain interval in which the left endpoint of the interval is greater than the average value of the touch variation. In one embodiment, the preset interval is (diffaverage + (diffax-diffaverage)/2 ∞), where diffaverage represents the average value of the touch variation and diffax represents the maximum value of the touch variation. The second test point is a test point in a preset interval. And traversing the full screen test points, and if the test points are in the preset interval, determining that the second test point exists.
Step S430: judging whether a second preset condition is met, and calculating the number of target test points in the full screen test points when the second preset condition is met; the second preset condition includes: the second test points exist, the average value of the touch variation is larger than a first preset value, and the number of the first test points is larger than a second preset value.
Wherein, the second preset value can be calculated by adopting formula (1):
Figure BDA0002561127960000101
wherein ValidDifCntTh represents a second preset value, RowMax represents the number of rows of the matrix of the test points, ColMax represents the number of columns of the matrix of the test points, and x, y and z are configuration parameters; x is in the interval [1, RowMax]Y is in the interval (1, ColMax), z is in the interval
Figure BDA0002561127960000102
In an embodiment, step S410 specifically includes: judging whether the maximum value of the full-screen touch variation is within a preset range; and when the touch variation is within the preset range, counting the number of the first test points with the touch variation larger than the average value of the touch variation.
Wherein the preset range may be expressed as (Thlo, thi), which respectively represent a low preset value and a high preset value of the maximum value of the touch variation amount. When the maximum value of the touch variation is in the preset range, the maximum value is in a state that the two screens are overlapped, so that the next judgment is carried out.
In an embodiment, before determining whether the maximum value of the full screen touch variation is within the preset range, it may be determined whether the switch of the screen folding processing mechanism is turned on. And when the switch of the screen folding processing mechanism is turned on, judging the maximum value of the full screen touch quantity.
In one embodiment, as shown in fig. 6, step S320 specifically includes the following steps S510-S540.
Step S510: and selecting a second test point as a first starting test point.
Wherein, the first starting test point refers to the starting test point of all the searching steps. In an embodiment, the first second test point searched in step S420 may be selected as the first start test point.
Step S520: and searching for the test points which are larger than the average value of the touch variation in the test points at the upper, lower, left and right positions of the first starting test point.
The test points are arranged on the screen at certain intervals in a matrix form. In this step, four test points at the upper, lower, left and right positions of the first start test point are searched, and a test point larger than the average value of the touch test points among the four test points is found.
Step S530: and repeating the searching process by taking the test point larger than the average value of the touch variation as a second initial test point until no test point larger than the average value of the touch variation exists.
And the second starting test point refers to the starting test point of the searching step. And taking the test point which is searched in the S520 and is larger than the average value of the touch variation as the initial test point of the search, searching the test points which are larger than the average value of the touch variation on the upper, lower, left and right positions of the second initial test point by adopting the same searching method, and repeating the searching process until no test point which is larger than the average value of the touch variation exists.
Step S540: counting the number of the searched test points which are larger than the average value of the touch variation; and counting the number of the test points to obtain the number of the target test points.
And after the search is finished, counting the number of all searched test points. Because each searching process extends from the initial test point to the test points at the upper, lower, left and right positions, all the test points form a communication area, and the test points are communicated. Moreover, each time the test points are searched for, the touch variation of all the searched test points is larger than the average value of the touch variation. Therefore, the test points obtained by searching are all target test points meeting the first preset condition. And counting the number of the test points obtained by searching, and taking the number as the number of the target test points.
In an embodiment, the preset value of the number of the test points is obtained by calculating according to the following steps: calculating the touch variation level according to the average value of the touch variation; if the touch variation level is equal to 0, the preset value of the number of the test points is the second preset value; otherwise, the preset value of the number of the test points is a result obtained by dividing the second preset value by the touch variable quantity grade.
The touch variation level is an index for measuring the level of the touch variation. In one embodiment, the touch variation level can be calculated by equation (2):
Diflevel=DifAverage/10 (2)
wherein, diffevel represents the touch variation level, and diffaverage represents the average value of the touch variation. In addition, the second preset value can be calculated by using the formula (1).
In an embodiment, after determining that the screen-folding-down mode is currently in, the method further comprises: and setting the flag position triggering the reference touch quantity updating mechanism as no.
When two screens are overlapped, the screen overlapping area can increase the screen touch amount due to the action of the touch screen. This triggers an update mechanism of the reference touch amount, so that the reference touch amount is updated to the screen touch amount after screen folding. After the screen stack is lifted, the updating of the reference touch amount may cause that the touch behavior cannot be recognized. Therefore, the reference touch amount at the time of screen stacking should be maintained at a value before screen stacking. Therefore, after the current screen folding and dropping mode is determined, the flag position for triggering the reference touch quantity updating mechanism is set to be negative, so that the condition that the reference touch quantity updating mechanism is not triggered is ensured, and the accuracy of subsequent touch identification can be improved.
In one embodiment, as shown in FIG. 7, after determining that the screen-folding-down mode is currently in use, the method further includes the following steps S610-S630.
Step S610: and acquiring the touch variation corresponding to the test point.
When one screen is overlapped on another screen, the screen may be lifted up after a while. Therefore, after the current screen folding and dropping mode is determined, the judgment of the screen folding and lifting mode can be carried out immediately. In this step, the touch variation corresponding to the test point at the preset position of the screen is obtained. In an embodiment, the touch variation corresponding to the full screen test point may be obtained.
Step S620: and traversing the test points, and acquiring the number of third test points with the touch variation smaller than a third preset value and the number of first test points with the touch variation larger than the average value of the touch variation.
In an embodiment, the third preset value may be obtained according to a preset range of a maximum value of the touch variation. As described above, the preset range of the touch variation amount may be represented as (Thlo, Thhi), and the third preset value may be represented as-Thlo/3.
Step S630: judging whether a third preset condition is met, and determining that the current frame is a screen-folding uplifting effective frame when the third preset condition is met; the third preset condition includes: the average value of the touch variation is smaller than a first preset value, the number of the first test points is smaller than a preset value of the number of the test points, and the number of the third test points is smaller than a preset value of the number of the test points.
The preset value of the number of the test points can be calculated according to the method provided by the embodiment. When one screen is lifted from two screens, the screen touch amount is obviously reduced, and the touch variation is also obviously reduced because the reference touch amount is not changed. In addition, due to the function of screen folding, the touch variation of the screen folding area can be in an unstable state, a small part of the touch variation can be changed into a negative value, and the number of the test points smaller than a certain negative value is not too many. Therefore, in this step, whether the current frame is a screen-folding lifting effective frame is judged by judging whether the average value of the touch variation is smaller than a first preset value, whether the number of the first test points is smaller than a preset value of the number of the test points, and whether the number of the third test points is smaller than the preset value of the number of the test points.
In an embodiment, after determining that the current frame is a screen-folding lifting valid frame, the method provided in the embodiment of the present application further includes:
and according to a preset time interval, repeatedly performing the operation of acquiring the touch variable quantity and judging whether the effective frame is lifted by the overlapped screen, and when the continuous frame number of the effective frame lifted by the overlapped screen is greater than the preset frame number, determining that the current mode is the overlapped screen lifting mode.
The judgment of the overlapped screen lifting mode is the same as that of the overlapped screen lowering mode, and in order to avoid misjudgment caused by other factors, when the continuous frame number of the overlapped screen lifting effective frame is greater than the preset frame number value, the overlapped screen lifting mode is determined at present.
In an embodiment, after the determining that the current screen folding and lifting mode is the screen folding and lifting mode, a method provided by an embodiment of the present application further includes: the update of the reference touch amount is started.
After the current mode is determined to be the screen folding and lifting mode, updating of the reference touch quantity is started, and the zone bit of the screen folding and lowering mode and the zone bit of the screen folding and lifting mode are cleared.
Fig. 8 is a process diagram of an identification method according to another embodiment of the present application. As shown in fig. 8, the process includes the following steps S701 to S714.
S701: acquiring touch variation corresponding to a full-screen test point;
s702: calculating the number of target test points which accord with a first preset condition in the full screen test points;
s703: judging whether the number of the target test points is larger than the preset value of the number of the test points, if so, entering a step S704, and if not, returning to the step S701;
s704: determining the current frame as a screen-overlapped and laid-down effective frame;
s705: judging whether the continuous frame number of the effective frame laid down by the overlapped screen is greater than the preset frame number value, if so, entering a step S706, and if not, returning to the step S701;
s706: determining that the current screen folding and dropping mode is adopted;
s707: setting the flag position for triggering the reference touch quantity updating mechanism as no;
s708: acquiring touch variation corresponding to a full-screen test point;
s709: traversing the full-screen test points, and acquiring the number of third test points with the touch variation smaller than a third preset value and the number of first test points with the touch variation larger than the average value of the touch variation;
s710: judging whether the average value of the touch variation is smaller than a first preset value, whether the number of the first test points is smaller than a preset value of the number of the test points, and whether the number of the third test points is smaller than the preset value of the number of the test points, if so, entering a first step S711, and if not, returning to the step S708;
s711: determining the current frame as a screen-folding uplifting effective frame;
s712: judging that the continuous frame number of the effective frame laid down by the overlapped screen is greater than the preset frame number value, if so, entering the step S713, and if not, returning to the step S708;
s713: determining that the current screen folding and lifting mode is adopted;
s714: the update of the reference touch amount is started.
It should be noted that, when the determination results in steps S703, S705, S710, and S712 are no and the acquisition of the touch variation is performed again, the touch variation of the next frame is already acquired.
The following are embodiments of the apparatus of the present application that may be used to perform the above-described embodiments of the identification method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, refer to the embodiments of the identification method of the present application.
Fig. 9 is a block diagram of an identification apparatus according to an embodiment of the present application. As shown in fig. 9, the apparatus includes: a variation obtaining module 810, a number calculating module 820 and a screen folding judging module 830.
And a variation obtaining module 810, configured to obtain a touch variation corresponding to the test point.
A number calculating module 820, configured to calculate the number of target test points in the test points that meet a first preset condition; the first preset condition includes: and the touch variation corresponding to the test points is larger than the average value of the touch variation, and the test points are communicated.
And the screen folding judgment module 830 is configured to determine that the current frame is a screen folding and laying-down effective frame when the number of the target test points is greater than the preset value of the number of the test points.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above identification method, and is not described herein again.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (14)

1. An identification method, characterized in that the method comprises:
acquiring touch variation corresponding to the test point;
calculating the number of target test points which accord with a first preset condition in the test points; the first preset condition includes: the touch variation corresponding to the test point is larger than the average value of the touch variation, and the test points are communicated;
and when the number of the target test points is larger than the preset value of the number of the test points, determining the current frame as a stacked screen and laid down effective frame.
2. The identification method according to claim 1, characterized in that the method further comprises:
and according to a preset time interval, repeatedly acquiring the touch variation and judging the effective frame of the overlapped screen put-down, and when the continuous frame number of the effective frame of the overlapped screen put-down is greater than the preset frame number, determining that the current mode is the overlapped screen put-down mode.
3. The identification method according to claim 1, wherein the obtaining of the touch variation corresponding to the test point comprises:
and acquiring the touch variation corresponding to the full-screen test point.
4. The identification method according to claim 3, wherein before the calculating the number of target test points meeting the first preset condition among the test points, the method further comprises:
traversing the full screen test points, and counting the number of the first test points with the touch variation larger than the average value of the touch variation;
judging whether a second test point with the touch variation in a preset interval exists or not;
judging whether a second preset condition is met, and calculating the number of target test points in the full screen test points when the second preset condition is met; the second preset condition includes: the second test points exist, the average value of the touch variation is larger than a first preset value, and the number of the first test points is larger than a second preset value.
5. The identification method of claim 4, wherein the counting the number of the first test points with the touch variation larger than the average value of the touch variation through the full-screen test points comprises:
judging whether the maximum value of the full-screen touch variation is within a preset range;
and when the touch variation is within the preset range, counting the number of the first test points with the touch variation larger than the average value of the touch variation.
6. The identification method according to claim 4, wherein the calculating the number of target test points in the test points that meet a first preset condition comprises:
selecting a second test point as a first starting test point;
searching for the test points which are larger than the average value of the touch variation in the test points at the upper, lower, left and right positions of the first starting test point;
repeating the searching process by taking the test point larger than the average value of the touch variation as a second initial test point until no test point larger than the average value of the touch variation exists;
counting the number of the searched test points which are larger than the average value of the touch variation; and counting the number of the test points to obtain the number of the target test points.
7. The identification method according to claim 4, wherein the preset value of the number of the test points is calculated by the following steps:
calculating the touch variation level according to the average value of the touch variation;
if the touch variation level is equal to 0, the preset value of the number of the test points is the second preset value; otherwise, the preset value of the number of the test points is a result obtained by dividing the second preset value by the touch variable quantity grade.
8. The method of claim 2, wherein after determining that the current screen-fold-down mode is the screen-fold-down mode, the method further comprises:
and setting the flag position triggering the reference touch quantity updating mechanism as no.
9. The method of claim 2, wherein after determining that the current screen-fold-down mode is the screen-fold-down mode, the method further comprises:
acquiring touch variation corresponding to the test point;
traversing the test points, and acquiring the number of third test points with the touch variation smaller than a third preset value and the number of first test points with the touch variation larger than the average value of the touch variation;
judging whether a third preset condition is met, and determining that the current frame is a screen-folding uplifting effective frame when the third preset condition is met; the third preset condition includes: the average value of the touch variation is smaller than a first preset value, the number of the first test points is smaller than a preset value of the number of the test points, and the number of the third test points is smaller than a preset value of the number of the test points.
10. The method of claim 9, wherein after determining that the current frame is a screen-overlap lifted active frame, the method further comprises:
and according to a preset time interval, repeatedly performing the operation of acquiring the touch variable quantity and judging whether the effective frame is lifted by the overlapped screen, and when the continuous frame number of the effective frame lifted by the overlapped screen is greater than the preset frame number, determining that the current mode is the overlapped screen lifting mode.
11. The method of claim 10, wherein after determining that the current screen folding and lifting mode is achieved, the method further comprises:
the update of the reference touch amount is started.
12. An identification device, the device comprising:
the variable quantity acquisition module is used for acquiring the touch variable quantity corresponding to the test point;
the number calculation module is used for calculating the number of target test points which meet a first preset condition in the test points; the first preset condition includes: the touch variation corresponding to the test point is larger than the average value of the touch variation, and the test points are communicated;
and the screen folding judgment module is used for determining that the current frame is a screen folding and laying-down effective frame when the number of the target test points is greater than the preset value of the number of the test points.
13. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the identification method of any one of claims 1-11.
14. A computer-readable storage medium, characterized in that the storage medium stores a computer program executable by a processor to perform the identification method of any one of claims 1-11.
CN202010616015.6A 2020-06-29 2020-06-29 Identification method and device, electronic equipment and storage medium Pending CN111766981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010616015.6A CN111766981A (en) 2020-06-29 2020-06-29 Identification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010616015.6A CN111766981A (en) 2020-06-29 2020-06-29 Identification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111766981A true CN111766981A (en) 2020-10-13

Family

ID=72724359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010616015.6A Pending CN111766981A (en) 2020-06-29 2020-06-29 Identification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111766981A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139355A (en) * 2011-11-22 2013-06-05 索尼爱立信移动通讯有限公司 Foldable electronic device and detection method of opening and closing modes thereof
CN103257777A (en) * 2013-05-14 2013-08-21 深圳市汇顶科技股份有限公司 Control method of state of touch screen, touch screen and portable touch terminal
CN103477304A (en) * 2011-02-10 2013-12-25 三星电子株式会社 Portable device comprising a touch-screen display, and method for controlling same
US20160147363A1 (en) * 2014-11-26 2016-05-26 Samsung Display Co., Ltd. System and method of measuring continuous touch controller latency
KR20170047057A (en) * 2015-10-22 2017-05-04 엘지전자 주식회사 Display device
WO2020107401A1 (en) * 2018-11-30 2020-06-04 华为技术有限公司 Method for controlling on/off of screen, apparatus for controlling on/off of screen and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103477304A (en) * 2011-02-10 2013-12-25 三星电子株式会社 Portable device comprising a touch-screen display, and method for controlling same
CN103139355A (en) * 2011-11-22 2013-06-05 索尼爱立信移动通讯有限公司 Foldable electronic device and detection method of opening and closing modes thereof
CN103257777A (en) * 2013-05-14 2013-08-21 深圳市汇顶科技股份有限公司 Control method of state of touch screen, touch screen and portable touch terminal
US20160147363A1 (en) * 2014-11-26 2016-05-26 Samsung Display Co., Ltd. System and method of measuring continuous touch controller latency
KR20170047057A (en) * 2015-10-22 2017-05-04 엘지전자 주식회사 Display device
WO2020107401A1 (en) * 2018-11-30 2020-06-04 华为技术有限公司 Method for controlling on/off of screen, apparatus for controlling on/off of screen and electronic device

Similar Documents

Publication Publication Date Title
CN109446942B (en) Target tracking method, device and system
CN107808122B (en) Target tracking method and device
CN110706261A (en) Vehicle violation detection method and device, computer equipment and storage medium
CN111179311A (en) Multi-target tracking method and device and electronic equipment
EP2840528B1 (en) Method and apparatus for tracking object
CN108711161A (en) A kind of image partition method, image segmentation device and electronic equipment
CN110366100B (en) Terminal positioning method, positioning device, readable storage medium and terminal equipment
CN104238743A (en) Information processing apparatus, and information processing method
WO2022160675A1 (en) Root factor determination method and apparatus
CN111652230B (en) License plate recognition method, electronic device and storage medium
CN112598922B (en) Parking space detection method, device, equipment and storage medium
US10621427B2 (en) Information processing apparatus, storage medium, and information processing method for character recognition by setting a search area on a target image
CN111383246B (en) Scroll detection method, device and equipment
CN114391132A (en) Electronic equipment and screen capturing method thereof
CN111753826B (en) Vehicle and license plate association method, device and electronic system
CN104281851B (en) The extracting method and device of logo information
CN111177440A (en) Target image retrieval method and device, computer equipment and storage medium
CN111766981A (en) Identification method and device, electronic equipment and storage medium
CN106709489A (en) Processing method and device of character identification
CN109308710A (en) Monitoring method, computing device and computer readable storage medium
CN108875538B (en) Attribute detection method, device and system and storage medium
CN109948436A (en) The method and device of vehicle on a kind of monitoring road
CN111766980A (en) Identification method and device, electronic equipment and storage medium
CN110084157B (en) Data processing method and device for image re-recognition
US20230315783A1 (en) Classification apparatus, classification method and computer readable medium

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