Identification method and device, electronic device, and storage medium

By obtaining and calculating the touch sensing amount difference value and the number of continuous sensing points of the screen sensing point, identifying the screen stacking mode and determining whether to update the reference touch amount, the recognition problem caused by changes in the touch sensing amount when the screen is superimposed and lifted is solved. Improves the accuracy of touch recognition.

CN111766980BActive Publication Date: 2025-01-14CHIPONE TECHNOLOGY (BEIJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010610785.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2025-01-14
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

When the screens of the two whole machines are bright, the touch sensing amount increases when the screens are stacked together, resulting in the "bulge" area of ​​the touch sensing amount, and the reference touch amount remains unchanged when the whole machine is lifted, which may lead to touch behavior Unrecognized.

Method used

By obtaining the touch sensing amount of the most edge and sub-edge sensing points of the screen, calculating the difference value and the number of continuous sensing points. If it is greater than the threshold, it is determined that the current frame is the stacked screen drop or lift mode, thereby determining whether to update the reference touch amount.

Benefits of technology

Accurate recognition of the stacked screen mode is achieved, errors in touch behavior recognition are avoided, and the accuracy of subsequent touch recognition is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111766980B_ABST
    Figure CN111766980B_ABST
Patent Text Reader

Abstract

The present application provides a recognition method and device, an electronic device, and a storage medium. The method includes: obtaining the touch sensing amount corresponding to the sensing points in the most edge column of the screen and the touch sensing amount corresponding to the sensing points in the second edge column; calculating the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row; calculating the number of continuous sensing points in the second edge column whose difference is greater than the first threshold and whose touch sensing amount is greater than the second threshold; if the number of continuous sensing points is greater than the third threshold, determining that the current frame is a valid frame for stacking screens. The method realizes the recognition of the stacking screen mode, so that in the subsequent touch recognition, it can be determined whether to update the reference touch amount according to whether the stacking screen mode occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of touch technology, and in particular to an identification method and device, an electronic device, and a storage medium. Background Art

[0002] When the two devices have their screens on and are placed close together, Figure 1 As shown in the figure, due to the effect of the touch screen, at the moment when the two screens are overlapped, the screen touch amount will increase in the overlapped area of ​​the two screens. At this time, the touch sensing amount in the overlapped area will also increase, and a "raised" area of ​​touch sensing amount will appear on the entire screen ( Figure 1 In addition, the increase in screen touch volume will trigger the reference touch volume correction mechanism, and the reference touch volume will be updated to the screen touch volume after the screen is stacked, so that the touch sensing volume is close to 0. When the whole machine is lifted from another whole machine, such as Figure 2 As shown in FIG. 1 , the screen touch amount in the previous overlapping screen area is reduced, while the reference touch amount remains unchanged, causing the touch sensing amount in the overlapping screen area to become a negative value, such as Figure 2 If you press in the negative area, the touch behavior may not be recognized. Summary of the invention

[0003] The embodiment of the present application provides a recognition method, which realizes the recognition of the overlapping screen mode, so that in subsequent touch recognition, it can be determined whether to update the reference touch amount according to whether the overlapping screen mode occurs.

[0004] The present application provides an identification method, which includes:

[0005] Get the touch sensing amount corresponding to the edge row of sensing points of the screen and the touch sensing amount corresponding to the second edge row of sensing points;

[0006] Calculate the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row;

[0007] Calculate the number of consecutive sensing points in a column of sensing points on the secondary edge, where the difference is greater than the first threshold and the touch sensing amount is greater than the second threshold;

[0008] If the number of the continuous sensing points is greater than the third threshold, it is determined that the current frame is a valid frame for overlapping the screen.

[0009] In one embodiment, the method further comprises:

[0010] The acquisition of the touch sensing amount and the determination of the effective frames of the stacked screen drop are repeated at preset time intervals. When the number of continuous frames of the effective frames of the stacked screen drop is greater than the frame number threshold, it is determined that the current mode is the stacked screen drop mode.

[0011] In one embodiment, after determining that the current mode is the stacked screen lowering mode, the method further includes:

[0012] The reference touch quantity update mechanism flag position will be triggered to No.

[0013] In one embodiment, acquiring the touch sensing amounts corresponding to a row of sensing points at the edge of the screen and the touch sensing amounts corresponding to a row of sensing points at the next edge of the screen includes:

[0014] For the four directions of the screen, the touch sensing amount corresponding to the most edge column of sensing points and the touch sensing amount corresponding to the second edge column of sensing points in each direction are obtained.

[0015] In one embodiment, if the number of continuous sensing points is greater than a third threshold, determining that the current frame is a valid frame for overlapping screens includes:

[0016] If in at least one of the four directions, the number of the continuous sensing points of the secondary edge is greater than the third threshold, it is determined that the current frame is a valid frame for overlapping screens.

[0017] In one embodiment, acquiring the touch sensing amounts corresponding to a row of sensing points at the edge of the screen and the touch sensing amounts corresponding to a row of sensing points at the next edge of the screen includes:

[0018] Determine whether the maximum value of the full-screen touch sensing amount is greater than a fourth threshold;

[0019] When the maximum value of the full-screen touch sensing amounts is greater than a fourth threshold, the touch sensing amounts corresponding to a column of sensing points at the edge of the screen and the touch sensing amounts corresponding to a column of sensing points at the next edge of the screen are obtained.

[0020] In one embodiment, after determining that the current mode is the stacked screen lowering mode, the method further includes:

[0021] For the four directions of the screen, the touch sensing amount is acquired and the number of continuous sensing points is calculated for each direction;

[0022] If the numbers of the continuous sensing points in the four directions are all less than the third threshold, it is determined that the current frame is a valid frame for lifting the overlapping screen.

[0023] In one embodiment, after determining that the current frame is a valid frame for lifting the overlapping screen, the method further includes:

[0024] The acquisition of the touch sensing amount and the determination of the effective frames of the stacked screen lifting are repeated at preset time intervals. When the number of continuous frames of the effective frames of the stacked screen lifting is greater than the frame number threshold, it is determined that the current mode is the stacked screen lifting mode.

[0025] In one embodiment, after determining that the current mode is the stacked screen lifting mode, the method further includes:

[0026] Enables updating of the reference touch volume.

[0027] On the other hand, the present application also provides an identification device, the device comprising:

[0028] A touch sensing quantity acquisition module is used to acquire the touch sensing quantities corresponding to a column of sensing points at the edge of the screen and the touch sensing quantities corresponding to a column of sensing points at the second edge;

[0029] A difference calculation module is used to calculate the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row;

[0030] A continuous sensing point calculation module, used to calculate the number of continuous sensing points in a column of sensing points on the secondary edge, the difference being greater than the first threshold and the touch sensing amount being greater than the second threshold;

[0031] The stacked screen lowering judgment module is used to determine that the current frame is a stacked screen lowering valid frame when the number of the continuous sensing points is greater than a third threshold.

[0032] Furthermore, the present application also provides an electronic device, the electronic device comprising:

[0033] processor;

[0034] a memory for storing processor-executable instructions;

[0035] The processor is configured to execute the identification method provided in the embodiment of the present application.

[0036] Furthermore, the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program can be executed by a processor to complete the identification method provided in the embodiment of the present application.

[0037] The technical solution provided by the above-mentioned embodiments of the present application obtains the touch sensing amount corresponding to the sensing points in a column of sensing points at the edge of the screen and the touch sensing amount corresponding to the sensing points in a column of sensing points at the secondary edge and calculates the difference between them, and then calculates the number of continuous sensing points in the column of sensing points at the secondary edge whose difference is greater than the first threshold and whose touch sensing amount is greater than the second threshold. If the number of continuous sensing points is greater than the third threshold, it is determined that the current frame is a valid frame for stacking screens, thereby realizing the recognition of the stacking screen mode. Therefore, in subsequent touch recognition, it can be determined whether to update the reference touch amount according to whether the stacking screen mode appears, thereby improving the accuracy of subsequent touch recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.

[0039] Figure 1 This is a schematic diagram of the data of the touch sensing amount at the moment the stacked screen is put down;

[0040] Figure 2 This is a schematic diagram of the data of the touch sensing amount when the stacked screen is lifted;

[0041] Figure 3 A schematic diagram of an application scenario of the identification method provided in one embodiment of the present application;

[0042] Figure 4 A schematic diagram of an application scenario of an identification method provided in another embodiment of the present application;

[0043] Figure 5 A schematic diagram of an application scenario of an identification method provided in another embodiment of the present application;

[0044] Figure 6 A schematic diagram of a flow chart of an identification method provided in an embodiment of the present application;

[0045] Figure 7 A schematic diagram of a recognition method according to another embodiment of the present invention;

[0046] Figure 8 A schematic diagram of touch sensing data after the stacked screen is lifted according to another embodiment of the present application;

[0047] Fig. 9 A block diagram of an identification device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0049] Similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0050] Figure 3 Schematic diagram of application scenarios of the identification method provided in the embodiment of the present application. Figure 3 As shown, the scene includes: a first touch device 110 and a second touch device 120. The first touch device 110 and the second touch device 120 can be a mobile phone, a tablet computer, etc. The first touch device 110 and the second touch device 120 can be placed overlapping each other. The first touch device 110 and the second touch device 120 can use the stacked screen mode recognition method provided in the embodiment to realize the recognition of the stacked screen down mode and the stacked screen up mode and perform corresponding data processing, thereby improving the accuracy of subsequent touch recognition.

[0051] In one embodiment, if Figure 4 As shown, the first touch control device 110 includes a touch screen 111 and a controller 112. The touch screen 111 may include multiple touch sensors 1110, and the controller 112 may be connected to the multiple touch sensors 1110 on the touch screen 111, and adopt the recognition method provided in the embodiment to realize the recognition of the overlapping screen mode.

[0052] The first touch control device 110 of the present application further includes a controller 112. The controller 112 may include a processor 1121 and a memory 1122 for storing executable instructions of the processor 1121; wherein the processor 1121 is configured to execute the identification method provided in the present application.

[0053] The processor 1121 can be an integrated circuit chip with signal processing capabilities. The above processor can be a general-purpose processor, including a central processing unit (Central chip with signal processing capabilities. The above processor is referred to as CPU), a network processor (Network chip with signal processing, referred to as NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0054] The memory 1122 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0055] The present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by the processor 1121 to complete the identification method provided by the present application.

[0056] Figure 5 This is a schematic diagram of an application scenario of the identification method provided by another embodiment of the present application. Figure 5 As shown, the application scenario includes a third touch device 130. The third touch device 130 may be a mobile phone including a folding screen. The third touch device 130 includes a first folding screen 1301 and a second folding screen 1302, and the second folding screen 1302 can overlap with the first folding screen 1301 by rotation. Then, when the screen is in a folded state, that is, when the second folding screen 1302 overlaps with the first folding screen 1301, the third touch device 130 is in a stacked screen down mode; when the screen is unfolded and the second folding screen 1302 is not in contact with the first folding screen 1301, the third touch device 130 is in a stacked screen up mode. The third touch device 130 can adopt the stacked screen mode recognition method provided in the embodiment to realize the recognition of the stacked screen down mode and the stacked screen up mode and perform corresponding data processing, thereby improving the accuracy of subsequent touch recognition.

[0057] Figure 6 Schematic diagram of the flow of the overlapping screen pattern recognition method provided in the embodiment of the present application. Figure 6 As shown, the method includes the following steps S510-S540.

[0058] Step S510: Acquire the touch sensing amounts corresponding to a row of sensing points at the edge of the screen and the touch sensing amounts corresponding to a row of sensing points at the next edge of the screen.

[0059] The touch sensing amount refers to the data obtained by subtracting the screen touch amount from the reference touch amount, which can indicate the touch action. In a capacitive touch screen, a frame of capacitance data in a non-touch state can be first collected as a reference touch amount, and then real-time capacitance data can be collected as the screen touch amount. The touch sensing amount is obtained by subtracting the screen touch amount from the reference touch amount.

[0060] In the touch screen, touch sensors are placed at various positions of the touch screen at certain intervals, and the touch sensors can obtain capacitance data at their positions so that the touch control system can sense the touch behavior at the positions. The sensing points in this step refer to the touch sensors at various positions of the screen.

[0061] The sensing points on the screen can form a matrix. A column of sensing points in this step can refer to a vertical column of the matrix or a horizontal column of the matrix. In this step, the sensing touch amount corresponding to the edgemost column of sensing points on the screen and the sensing touch amount corresponding to the secondary edge column of sensing points are obtained. The edgemost column of sensing points refers to a column of sensing points closest to the edge of the screen, and the secondary edge column of sensing points refers to a column of sensing points adjacent to the edgemost column of sensing points.

[0062] Step S520: Calculate the difference between the sensing points in the next edge column and the sensing points in the most edge column of the same row.

[0063] Wherein, the difference refers to the difference between the touch sensing quantities corresponding to the sensing points. In step S510, if the touch sensing quantities of the most edge column and the second edge column of the sensing point matrix are obtained, the second edge column is adjacent to the most edge column. And the sensing point matrix has n rows, then a touch sensing quantity matrix with n rows and two columns can be formed. If the touch sensing points of the most edge row and the second edge row of the sensing point matrix are obtained, and the sensing point matrix has m columns, then a touch sensing point matrix with two rows and m columns can be formed, and the matrix is ​​transposed to form a touch sensing quantity matrix with m rows and two columns. Wherein, n is the number of rows of the touch sensing point matrix, m is the number of columns of the touch sensing point matrix, and m and n are positive integers. Corresponding to the same row of the touch sensing quantity matrix, the difference between the touch sensing quantity of the second edge column of the row and the touch sensing quantity of the most edge column of the row is calculated.

[0064] Step S530: Calculate the number of consecutive sensing points in a column of sensing points on the secondary edge, where the difference is greater than the first threshold and the touch sensing amount is greater than the second threshold.

[0065] The continuous sensing points refer to the continuous sensing points in a column of sensing points, and the rows where these sensing points are located are adjacent to each other. In this step, in the column of sensing points at the secondary edge, the number of continuous sensing points whose difference is greater than the first threshold and whose touch sensing amount is greater than the second threshold is calculated.

[0066] Step S540: If the number of the continuous sensing points is greater than the third threshold, the current frame is determined to be a valid frame for overlapping the screen.

[0067] Among them, a valid frame for stacking screens refers to a frame in which the screen overlaps with the screen of another touch device, or the two folding screens of a folding screen device overlap with each other. When the two screens overlap, the edge area of ​​the screen will make the touch sensing amount of the secondary edge larger than the edge due to the physical characteristics of the capacitive screen, and the touch sensing amount of the stacked screen area will increase due to the touch screen effect during overlap. In the stacked screen scenario, the sensing points with these two characteristics are continuous. Therefore, if the number of continuous sensing points is greater than the third threshold, the current frame is determined to be a valid frame for stacking screens.

[0068] The technical solution provided by the above-mentioned embodiment of the present application obtains the touch sensing amount corresponding to the sensing point column at the edge of the screen and the touch sensing amount corresponding to the sensing point column at the secondary edge, and calculates the difference between them. Then, the number of continuous sensing points in the sensing point column at the secondary edge whose difference is greater than the first threshold and whose touch sensing amount is greater than the second threshold is calculated. If the number of continuous sensing points is greater than the third threshold, it is determined that the current frame is a valid frame for stacking screens, and the recognition of the stacking screen mode is realized. Therefore, in the subsequent touch recognition, it can be determined whether to update the reference touch amount according to whether the stacking screen mode appears, thereby improving the accuracy of subsequent touch recognition.

[0069] In one embodiment, the method provided in the embodiment of the present application also includes: repeating the acquisition of touch sensing amount and the judgment operation of effective frames of stacked screen putting down at a preset time interval, and when the number of continuous frames of the effective frames of stacked screen putting down is greater than the frame number threshold, determining that the current mode is stacked screen putting down mode.

[0070] When it is determined that the current frame is a valid frame for stacking screen down, it means that in this frame, the screen may just be put down and overlap with another screen. However, due to the influence of noise, other factors may also cause the appearance of a valid frame for stacking screen down, causing a misjudgment of the stacking screen down mode. Therefore, it can be further determined that the current state is indeed in the stacking screen down mode through continuous valid frames for stacking screen down.

[0071] In this step, the touch sensing amount is acquired at a preset time interval, and each acquisition is called a frame. Figure 6 According to the method provided in the corresponding embodiment, the acquisition of the touch amount and the determination of the effective frames of the stacked screen down are repeated. If the continuous number of effective frames of the stacked screen down is greater than the preset frame number threshold, it is determined that the current mode is the stacked screen down mode.

[0072] In one embodiment, after determining that the current mode is the stacked screen lowering mode, the method further includes: setting a flag position of triggering the reference touch amount update mechanism to no.

[0073] At the moment when the two screens are stacked together, due to the effect of the touch screen, the screen touch amount in the stacked area of ​​the two screens will increase. The increase in the screen touch amount will trigger the update mechanism of the reference touch amount, and the reference touch amount will be updated to the screen touch amount after the stacked screen is stacked. In order to avoid the touch behavior being unable to be recognized due to the update of the reference touch amount after the stacked screen is lifted, the reference touch amount should remain unchanged at this time and maintain the value before the stacked screen is put down. Therefore, after determining that the current mode is the stacked screen down mode, the reference touch amount update mechanism flag position will be triggered to no to ensure that the reference touch amount update mechanism is not triggered, thereby improving the accuracy of subsequent touch recognition.

[0074] In one embodiment, step S510 specifically includes:

[0075] For the four directions of the screen, the touch sensing amount corresponding to the most edge column of sensing points and the touch sensing amount corresponding to the second edge column of sensing points in each direction are obtained.

[0076] For a square screen, the screen will have four directions: up, down, left, and right. In one embodiment, the matrix of touch sensing quantities corresponding to the sensing points is assumed to be data with a rows and b columns, where a and b are positive integers, a is the number of rows in the matrix of touch sensing quantities, and b is the number of columns in the matrix of touch sensing quantities. The touch sensing quantity corresponding to a certain sensing point is represented by Dif(i,j), where i represents the row number where the sensing point is located, and j represents the column number corresponding to the sensing point. Then the touch sensing quantity data of the most edge column in the left direction of the screen is obtained as Dif(i,1), and the touch sensing quantity data of the next edge column in the left direction of the screen is obtained as Dif(i,2), where the value of i is between 1 and a. According to this method, the touch sensing quantities of the most edge and the next edge in the other three directions can be obtained. By transposing the touch sensing quantity matrix obtained in the upper and lower directions, it can be converted into the same form as the touch sensing quantity matrix in the left and right directions.

[0077] In one embodiment, step S540 specifically includes:

[0078] If in at least one of the four directions, the number of the continuous sensing points of the secondary edge is greater than the third threshold, it is determined that the current frame is a valid frame for overlapping screens.

[0079] Because the two screens may only partially overlap, the touch sensing amounts obtained in the four directions are respectively calculated as continuous sensing points. If there is at least one direction in which the number of continuous sensing points on the secondary edge is greater than the third threshold, the current frame is determined to be a valid frame for overlapping screens.

[0080] In one embodiment, step S510 specifically includes: determining whether the maximum value of the full-screen touch sensing amount is greater than a fourth threshold; when the maximum value of the full-screen touch sensing amount is greater than the fourth threshold, obtaining the touch sensing amount corresponding to a column of sensing points at the edge of the screen and the touch sensing amount corresponding to a column of sensing points at the second edge of the screen.

[0081] In one embodiment, before determining whether the maximum value of the full-screen touch sensing amount is greater than the fourth threshold, it may be determined whether the overlapping screen processing mechanism switch is turned on. When the overlapping screen processing mechanism switch is turned on, the subsequent method is executed.

[0082] In one embodiment, after determining that the current mode is the stacked screen down mode, the method further includes: for the four directions of the screen, re-acquiring the touch sensing amount and calculating the number of continuous sensing points in each direction; if the number of continuous sensing points in the four directions is less than a third threshold, determining that the current frame is a stacked screen lifted valid frame.

[0083] When one screen is placed on top of another screen and overlaps, it may be lifted up after a while. Therefore, after determining that the current mode is the stacked screen down mode, the stacked screen lift mode can be determined. For the four directions of the screen, the method provided in the above embodiment can be used to re-acquire the touch sensing amount and calculate the number of continuous sensing points for each direction. Afterwards, since the stacked screen is lifted up, all edges of the screen will be lifted up, and the number of continuous sensing points will decrease after lifting. Therefore, when the number of continuous sensing points in the four directions is less than the third threshold, the current frame is determined to be a valid frame for stacked screen lift up.

[0084] In one embodiment, after determining that the current frame is a valid frame for lifting the overlapping screen, the method further includes:

[0085] The acquisition of the touch sensing amount and the determination of the effective frames of the stacked screen lifting are repeated at preset time intervals. When the number of continuous frames of the effective frames of the stacked screen lifting is greater than the frame number threshold, it is determined that the current mode is the stacked screen lifting mode.

[0086] The judgment is the same as the judgment of the stacked screen down mode. In order to avoid misjudgment caused by other factors, when the number of valid frames of stacked screen lifting is greater than the frame number threshold, it is determined that the current mode is stacked screen lifting mode.

[0087] In one embodiment, after determining that the current mode is the stacked screen lifting mode, the method further includes: starting to update the reference touch amount.

[0088] After determining that the current mode is the stacked screen lifting mode, the reference touch amount is updated, and the stacked screen lowering mode flag and the stacked screen lifting mode flag are both cleared.

[0089] Figure 7 FIG. 1 is a schematic diagram of the process of the overlapping screen pattern recognition method provided by an embodiment of the present application. Figure 7 As shown, the process includes the following steps S601-S614.

[0090] Step S601: Acquire the touch sensing amount corresponding to a row of sensing points at the edge of the screen and the touch sensing amount corresponding to a row of sensing points at the next edge of the screen;

[0091] Step S602: Calculate the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row;

[0092] Step S603: Calculate the number of consecutive sensing points in a column of sensing points on the secondary edge, where the difference is greater than the first threshold and the touch sensing amount is greater than the second threshold;

[0093] Step S604: determine whether the number of continuous sensing points is greater than a third threshold, if so, proceed to step S605, if not, proceed to step S601;

[0094] Step S605: Determine that the current frame is a valid frame for stacking screens;

[0095] Step S606: determine whether the number of valid frames after the stacked screen is put down is greater than the frame number threshold, if so, proceed to steps S607 and S608, if not, return to step S601;

[0096] Step S607: Determine that the current mode is the stacked screen down mode;

[0097] Step S608: setting the trigger reference touch amount update mechanism flag position to no;

[0098] Step S609: for the four directions of the screen, re-acquire the touch sensing amount and calculate the number of continuous sensing points for each direction;

[0099] Step S610: Determine whether the number of continuous sensing points in the four directions is less than the third threshold value. If so, proceed to step S611; if not, return to step S609;

[0100] Step S611: Determine that the current frame is a valid frame for lifting the overlapping screen;

[0101] Step S612: determine whether the number of continuous valid frames of the stacked screen lifting is greater than the frame number threshold, if so, proceed to step S613, if not, proceed to step S609;

[0102] Step S613: determining that the current mode is the stacked screen lifting mode;

[0103] Step S614: start updating the reference touch amount.

[0104] When the judgment results of the above steps S604, S606, S610, and S612 are no, when the touch sensing amount is acquired again, the touch sensing amount acquired is the touch sensing amount of the next frame.

[0105] In another embodiment of the present application, the stacked screen mode recognition method provided in the above embodiment of the present application is adopted, and the touch sensing amount after the stacked screen is lifted is as follows: Figure 8 It can be seen that the touch sensing amount after the stacked screen is lifted is close to 0, which effectively avoids the situation where the touch sensing amount has an obvious negative value area.

[0106] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the stacked screen pattern recognition method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the stacked screen pattern recognition method of the present application.

[0107] Fig. 9 is a block diagram of a stacked screen pattern recognition device provided by an embodiment of the present application. Fig. 9As shown, the device includes: a touch sensing amount acquisition module 810, a difference calculation module 820, a continuous sensing point calculation module 830 and a screen stacking effective frame judgment module 840.

[0108] The touch sensing amount acquisition module 810 is used to acquire the touch sensing amounts corresponding to a row of sensing points at the edge of the screen and the touch sensing amounts corresponding to a row of sensing points at the next edge of the screen.

[0109] The difference calculation module 820 is used to calculate the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row.

[0110] The continuous sensing point calculation module 830 is used to calculate the number of continuous sensing points in a column of sensing points on the secondary edge, where the difference is greater than the first threshold and the touch sensing amount is greater than the second threshold.

[0111] The overlapping screen lowering judgment module 840 is used to determine that the current frame is an overlapping screen lowering valid frame when the number of the continuous sensing points is greater than a third threshold.

[0112] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned overlapping screen pattern recognition method, which will not be repeated here.

[0113] In several embodiments provided in the present application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0114] In addition, the functional modules in the various 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.

[0115] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

Claims

1. A recognition method, characterized in that: The method comprises: obtaining touch sensing amounts corresponding to a row of sensing points at the edge of the screen and touch sensing amounts corresponding to a row of sensing points at the second edge; The touch sensing amount refers to the data obtained by subtracting the screen touch amount from the reference touch amount; Calculate the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row; The difference refers to the difference between the touch sensing quantities corresponding to the sensing points; Calculate the number of consecutive sensing points in a column of sensing points on the secondary edge, where the difference is greater than the first threshold and the touch sensing amount is greater than the second threshold; If the number of the continuous sensing points is greater than the third threshold, it is determined that the current frame is a valid frame for overlapping the screen.

2. The identification method according to claim 1, characterized in that: The method further includes: repeating the acquisition of touch sensing quantity and the determination of effective frames of stacked screen drop at preset time intervals, and determining that the current mode is stacked screen drop when the number of continuous effective frames of stacked screen drop is greater than a frame number threshold.

3. The identification method according to claim 2, characterized in that: After determining that the current mode is the stacked screen lowering mode, the method further includes: Set the flag position that triggers the reference touch amount update mechanism to No.

4. The identification method according to claim 1, characterized in that: The step of acquiring the touch sensing amount corresponding to a row of sensing points at the edge of the screen and the touch sensing amount corresponding to a row of sensing points at the next edge of the screen includes: For the four directions of the screen, the touch sensing amount corresponding to the most edge column of sensing points and the touch sensing amount corresponding to the second edge column of sensing points in each direction are obtained.

5. The identification method according to claim 4, characterized in that: If the number of continuous sensing points is greater than a third threshold, determining that the current frame is a valid frame for stacking the screen includes: If in at least one of the four directions, the number of the continuous sensing points of the secondary edge is greater than the third threshold, it is determined that the current frame is a valid frame for overlapping screens.

6. The identification method according to claim 1, characterized in that: The step of acquiring the touch sensing amount corresponding to a row of sensing points at the edge of the screen and the touch sensing amount corresponding to a row of sensing points at the next edge of the screen includes: Determine whether the maximum value of the full-screen touch sensing amount is greater than a fourth threshold; When the maximum value of the full-screen touch sensing amounts is greater than a fourth threshold, the touch sensing amounts corresponding to a column of sensing points at the edge of the screen and the touch sensing amounts corresponding to a column of sensing points at the next edge of the screen are obtained.

7. The identification method according to claim 2, characterized in that: After determining that the current mode is the stacked screen lowering mode, the method further includes: For the four directions of the screen, the touch sensing amount is acquired and the number of continuous sensing points is calculated for each direction; If the numbers of the continuous sensing points in the four directions are all less than the third threshold, it is determined that the current frame is a valid frame for lifting the overlapping screen.

8. The identification method according to claim 7, characterized in that: After determining that the current frame is a valid frame for lifting the overlapping screen, the method further includes: The acquisition of the touch sensing amount and the determination of the effective frames of the stacked screen lifting are repeated at preset time intervals. When the number of continuous frames of the effective frames of the stacked screen lifting is greater than the frame number threshold, it is determined that the current mode is the stacked screen lifting mode.

9. The identification method according to claim 8, characterized in that: After determining that the current mode is the stacked screen lifting mode, the method further includes: Enables updating of the reference touch volume.

10. An identification device, characterized in that: The device comprises: A touch sensing quantity acquisition module is used to acquire the touch sensing quantities corresponding to a column of sensing points at the edge of the screen and the touch sensing quantities corresponding to a column of sensing points at the second edge; The touch sensing amount refers to the data obtained by subtracting the screen touch amount from the reference touch amount; A difference calculation module is used to calculate the difference between the sensing points in the second edge column and the sensing points in the most edge column of the same row; The difference refers to the difference between the touch sensing quantities corresponding to the sensing points; A continuous sensing point calculation module, used to calculate the number of continuous sensing points in a column of sensing points on the secondary edge, the difference being greater than the first threshold and the touch sensing amount being greater than the second threshold; The stacked screen lowering judgment module is used to determine that the current frame is a stacked screen lowering valid frame when the number of the continuous sensing points is greater than a third threshold.

11. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing processor-executable instructions; The processor is configured to execute the identification method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program can be executed by a processor to complete the identification method described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Display screen unfolding method and device and terminal

    CN107870724A

  • Touch detection method and computer-readable storage medium

    CN108762557A