CN108388387B - Information processing method, information processing device, computer equipment and storage medium - Google Patents

Information processing method, information processing device, computer equipment and storage medium Download PDF

Info

Publication number
CN108388387B
CN108388387B CN201810048573.XA CN201810048573A CN108388387B CN 108388387 B CN108388387 B CN 108388387B CN 201810048573 A CN201810048573 A CN 201810048573A CN 108388387 B CN108388387 B CN 108388387B
Authority
CN
China
Prior art keywords
touch screen
range
special
shaped
capacitance reference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810048573.XA
Other languages
Chinese (zh)
Other versions
CN108388387A (en
Inventor
古启才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201810048573.XA priority Critical patent/CN108388387B/en
Publication of CN108388387A publication Critical patent/CN108388387A/en
Application granted granted Critical
Publication of CN108388387B publication Critical patent/CN108388387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The invention relates to an information processing method, an information processing device, computer equipment and a storage medium. By calculating the average value of the capacitance reference value and judging whether the average value meets the preset threshold range, whether the touch screen is a special-shaped touch screen or a non-special-shaped touch screen can be judged more conveniently and accurately. The touch range and the information displayed on the interface are displayed according to the type of the touch screen, so that the problems that the software display content is disordered and even part of the area can not be displayed are solved, and the difference between the software interface and the interaction is reduced.

Description

Information processing method, information processing device, computer equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information processing method and apparatus, a computer device, and a storage medium.
Background
As the technology advances, the appearance of the terminal gradually changes. The display screen and the touch screen are the main core components of the appearance of the terminal. The touch screen and the display screen occupy the screen ratio, which greatly influences the experience of the user. The existing touch screens and display screens mainly have special-shaped screens and non-special-shaped screens. Terminals of non-special-shaped touch screens and display screens are common, and a notch groove is formed in the middle of the top of the special-shaped touch screens and the top of the display screens and used for installing components such as sensors. The left and right sides of the display screen are used for displaying, and the screen occupation ratio is further improved.
Due to the fact that the touch areas and the display areas of the special-shaped touch screen and the non-special-shaped touch screen are different, the touch screen has different triggering report ranges, when software of the non-special-shaped touch screen and the non-special-shaped display screen is burnt to a terminal of special-shaped touch display, the display content of the software is disordered, even a part of the area can not be displayed, and therefore the original interface and interaction have large difference.
Disclosure of Invention
Therefore, it is necessary to provide an information processing method, an information processing apparatus, a computer device, and a storage medium for solving the problem that when software of a non-special-shaped touch screen and a display screen is burned into a special-shaped touch display terminal, the display content of the software is disordered and even a part of the area is not displayable, which causes great difference between the original interface and interaction.
An information processing method comprising:
acquiring a capacitance reference value of a preset channel of the touch screen, and calculating an average value of the capacitance reference value;
judging whether the average value meets a preset threshold range or not to obtain a judgment result;
and displaying the preset touch range and the preset interface display content of the touch screen according to the judgment result.
In one embodiment, before obtaining the capacitance reference value of the preset channel, the method further includes:
setting a first touch range of a first touch screen, and setting display content of a first interface according to the first touch range;
setting a second touch range of a second touch screen, and setting display content of a second interface according to the second touch range;
the first touch screen is a special-shaped touch screen, and the second touch screen is a non-special-shaped touch screen.
In an embodiment, the displaying the preset touch range and the preset interface display content of the touch screen according to the determination result includes:
when the average value of the capacitance reference values meets a first threshold range or a third threshold range, the touch screen is a special-shaped touch screen, the touch range is shown to be the first touch range, and information displayed by the interface is shown according to the set display content of the first interface;
and when the average value of the capacitance datum data meets a second threshold range or a fourth threshold range, the touch screen is a non-special-shaped touch screen, the displayed touch range is the second touch range, and the information displayed by the interface is displayed according to the set display content of the second interface.
In one embodiment, the obtaining of the capacitance reference values of the preset channels and calculating an average value of the capacitance reference values includes:
acquiring a capacitance reference value of each channel of the touch screen, and storing the capacitance reference value;
searching a capacitance reference value of a preset channel in the stored capacitance reference values;
calculating the average value of the capacitance reference values of the preset channels;
the preset channel is a channel needing to be checked of the pre-equipment.
In one embodiment, before obtaining the capacitance reference value of the preset channel, the method further includes:
when no pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen;
if the touch screen is the special-shaped touch screen, storing the capacitance reference value range as the first threshold value range;
and if the touch screen is a non-special-shaped touch screen, storing the capacitance reference value range as the second threshold value range.
In one embodiment, before obtaining the capacitance reference value of the preset channel, the method further includes:
when a pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen;
if the touch screen is the special-shaped touch screen, storing the capacitance reference value range as the third threshold value range;
and if the touch screen is a non-special-shaped touch screen, storing the capacitance reference value range as the fourth threshold value range.
In one embodiment, the determining whether the average value meets a preset threshold range to obtain a determination result includes:
when the average value meets the first threshold value range, the fact that the touch screen is the special-shaped touch screen is obtained, and the first threshold value range is a capacitance reference numerical value range of the special-shaped touch screen when no pressing event exists;
when the average value meets the second threshold value range, the fact that the touch screen is a non-special-shaped touch screen is obtained, and the second threshold value range is a capacitance reference numerical value range of the non-special-shaped touch screen when no pressing event exists;
when the average value meets the third threshold value range, the fact that the touch screen is the special-shaped touch screen is obtained, and the third threshold value range is a capacitance reference numerical value range of the special-shaped touch screen when a pressing event exists;
and when the average value meets the fourth threshold range, the fact that the touch screen is a non-special-shaped touch screen is obtained, and the fourth threshold range is a capacitance reference numerical range of the non-special-shaped touch screen when a pressing event exists.
An information processing apparatus comprising:
the numerical value acquisition module is used for acquiring a capacitance reference numerical value of a preset channel of the touch screen and calculating the average value of the capacitance reference numerical value;
the range judgment module is used for judging whether the average value meets a preset threshold range or not to obtain a judgment result;
and the information adjusting module is used for displaying the preset touch range and the preset interface display content of the touch screen according to the judgment result.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method as set forth above.
According to the information processing method, the device, the computer equipment and the storage medium, the capacitance reference value of the preset channel of the touch screen is obtained, the average value of the capacitance reference value is calculated, whether the average value meets the preset threshold range or not is judged, a judgment result is obtained, and the preset touch range and the preset interface display content of the touch screen are displayed according to the judgment result. By calculating the average value of the capacitance reference value and judging whether the average value meets the preset threshold range, whether the touch screen is a special-shaped touch screen or a non-special-shaped touch screen can be judged more conveniently and accurately. The touch range and the information displayed on the interface are displayed according to the type of the touch screen, so that the problems that the software display content is disordered and even part of the area can not be displayed are solved, and the difference between the software interface and the interaction is reduced.
Drawings
FIG. 1 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 2 is a flow diagram of a method of information processing in one embodiment;
FIG. 3 is a flow diagram of a method for setting touch range and interface display content in one embodiment;
FIG. 4 is a schematic diagram of an interface of a shaped screen and a non-shaped screen in one embodiment;
FIG. 5 is a diagram illustrating interface content displayed by a shaped screen and interface content displayed by a non-shaped screen in one embodiment;
FIG. 6 is a flow diagram of a method of calculating an average in one embodiment;
FIG. 7A is a flow diagram of a method for setting a capacitance reference value range in the absence of a press event in one embodiment;
FIG. 7B is a flow diagram of a method for setting a capacitance reference value range in the presence of a press event in one embodiment;
FIG. 8 is a flowchart of a method for determining whether a touch screen is a shaped screen or a non-shaped screen in one embodiment;
FIG. 9 is a block diagram showing the configuration of an information processing apparatus according to an embodiment;
fig. 10 is a block diagram showing the configuration of an information processing apparatus according to another embodiment.
Detailed Description
In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather should be construed as broadly as the present invention is capable of modification in various respects, all without departing from the spirit and scope of the present invention.
In one embodiment, a computer device is provided, which may be a terminal, as shown in fig. 1, comprising a processor, a storage medium, a memory, a display, an input device, and a network interface connected by a system bus. The storage medium of the computer device stores an operating system, a database, and a computer program for implementing the information processing apparatus. The processor is used to provide computing and control capabilities to support the operation of the entire computer device. A display in a computer device is used to display an application interface, such as a special-shaped display screen display interface, a non-special-shaped display screen display interface, and the like, a memory provides an environment for running a computer program that implements an information processing apparatus in a storage medium, and a network interface is used to communicate with an external network. The structure shown in fig. 1 is a block diagram of only a part of the structure related to the present application, and does not constitute a limitation of the terminal to which the present application is applied, and a specific terminal may include more or less components than those shown in the drawings, or combine some components, or have a different arrangement of components.
In one embodiment, an information processing method is provided, which is exemplified by being applied to the computer device, as shown in fig. 2, and includes the following steps:
step S202, acquiring a capacitance reference value of a preset channel of the touch screen, and calculating an average value of the capacitance reference value.
The touch screen is an induction device which covers the terminal display screen and can receive external touch signals. The capacitance reference value refers to a reference capacitance value existing in a cross distribution of a transmitting channel and a receiving channel of the touch screen.
The preset channel of the touch screen is a preset channel to be checked. For example, the range of the transmission channel and the reception channel of the terminal is the range between the first transmission channel to the twelfth transmission channel and the first reception channel to the twelfth reception channel, and the channel to be checked may be set as the first transmission channel to the second transmission channel and the sixth reception channel to the ninth reception channel.
The terminal can locally acquire the capacitance reference value of the preset channel of the touch screen, and the terminal can calculate the average value of the capacitance reference value according to the preset channel and the capacitance reference value of the preset channel.
And step S204, judging whether the average value meets a preset threshold range or not to obtain a judgment result.
The preset threshold range may be a preset range of different channel capacitance reference values. The threshold range is obtained by sampling a capacitance reference value of a cross point of a transmitting channel and a receiving channel when the touch screen is electrified.
After the terminal calculates the average value of the capacitance reference value, whether the calculated average value is within the preset threshold range or not can be judged, and judgment results that the average value is within the preset threshold range and the average value is not within the preset threshold range are obtained.
And step S206, displaying the preset touch range and the preset interface display content of the touch screen according to the judgment result.
The preset touch range may be a set touch range on the terminal, and the preset interface display content may be display content on the interface set according to the touch range of the terminal.
And when the judgment result is that the average value is within the preset threshold range, the terminal can display a preset touch range and a preset interface display content. And when the judgment result is that the average value is not in the preset threshold range, the terminal can display other preset touch ranges and preset interface display contents.
The method comprises the steps of obtaining a capacitance reference value of a preset channel of the touch screen, calculating an average value of the capacitance reference value, judging whether the average value meets a preset threshold range or not, obtaining a judgment result, and displaying a preset touch range and preset interface display content of the touch screen according to the judgment result. By calculating the average value of the capacitance reference value and judging whether the average value meets the preset threshold range, the content displayed on the touch screen and the interface displayed on the terminal can be judged more conveniently and accurately, so that the problems that the software display content is disordered and even part of the area can not be displayed are avoided, and the difference between the software interface and the interaction is reduced.
As shown in fig. 3, in an embodiment, the information processing method may further include setting a touch range and interface display content, and includes the following specific steps:
step S302, a first touch range of the first touch screen is set, and display content of the first interface is set according to the first touch range.
Wherein the first touch screen is a shaped touch screen. The special-shaped touch screen is a special-shaped touch screen which is reformed on the basis of the touch screen. The special-shaped touch screen is special in shape, the touch range can be set according to the special shape of the touch screen, and the display content of the interface can also be set according to the special shape of the touch screen. For example, when there is a notch or a groove in the touch screen, the touch range of the touch screen may avoid the portion where the notch or the groove exists, the touch range may be other than the notch or the groove, and the display content of the interface may also be displayed on the interface where the notch or the groove does not exist.
Step S304, setting a second touch range of the second touch screen, and setting display content of the second interface according to the second touch range.
Wherein the second touch screen is a non-shaped touch screen. A non-shaped touch screen refers to a regular touch screen without cuts or grooves. The touch range of the non-special-shaped touch screen can be set according to the shape and the size of the touch screen, and the content displayed on the interface can also be set according to the shape and the size of the touch screen.
The display method comprises the steps of setting a first touch range of a first touch screen, setting display content of a first interface according to the first touch range, setting a second touch range of a second touch screen, and setting display content of the second interface according to the second touch range, wherein the first touch screen is a special-shaped touch screen, and the second touch screen is a non-special-shaped touch screen. The touch range corresponding to the touch screen and the display content of the interface can be quickly found according to the type of the touch screen, and the cost is saved.
In one embodiment, as shown in fig. 4, fig. 4 is an appearance diagram of a shaped touch screen and a shaped non-shaped touch screen. The shaped touch screen 410 is not a regular rectangle, and as shown in fig. 4, the shaped touch screen 410 may have a cut 412, and a portion of the cut 412 is not included in the touch range, but a portion around the cut 412 may be included in the touchable range. The portion of the cutout 412 may be fitted with sensors, cameras, etc. The non-shaped touch screen 420 may be a rectangle, and the touch range of the non-shaped touch screen 420 may be all ranges of the rectangle as shown in the figure. The touch ranges of the non-shaped touch screen and the shaped touch screen can be preset.
As shown in fig. 5, fig. 5 is a schematic diagram of interface contents displayed by an irregular screen and interface contents displayed by a non-irregular screen in an embodiment. The content displayed by the interface of the shaped touch screen 510 and the non-shaped touch screen 520 is preset. For example, as shown in fig. 5, both the shaped touch screen 510 and the non-shaped touch screen 520 show a chat interface diagram, wherein the shaped touch screen 510 may also have a notch 512, the shaped touch screen 510 displays interface contents in which names of chat objects are displayed below the notch 512 of the touch screen, and an alarm icon, a shake icon, a WIFI icon, and the like are displayed on the left and right sides of the notch 512 of the touch screen. In contrast, in the interface content displayed by the non-shaped touch screen 520, the name of the chat object, the alarm clock icon, the vibration icon, the WIFI icon, and the like are all displayed at the top of the touch screen. Similarly, a sensor, a camera, and the like can be mounted at the notch 512 of the shaped touch screen 510.
By presetting the touch screen ranges of the special-shaped touch screen and the non-special-shaped touch screen and the content displayed on the interface, after judging whether the touch screen is the special-shaped touch screen or the non-special-shaped touch screen, the terminal can quickly display the touch screen ranges and the content displayed on the interface corresponding to different touch screens, so that the problems that the displayed content of software is disordered and even part of the displayed content cannot be displayed are avoided, and the difference between the software interface and interaction is reduced.
In an embodiment, the provided information processing method may further include a process of displaying the touch range and the interface display content, and specifically may include: when the average value of the capacitance datum value meets the first threshold range or the third threshold range, the touch screen is a special-shaped touch screen, the display touch range is the first touch range, the information displayed by the interface is displayed according to the set display content of the first interface, when the average value of the capacitance datum value meets the second threshold range or the fourth threshold range, the touch screen is a non-special-shaped touch screen, the displayed touch range is the second touch range, and the information displayed by the interface is displayed according to the set display content of the second interface.
The first threshold range and the third threshold range are preset, the threshold range is met by the average value of the capacitance reference values in the special-shaped touch screen, and the first touch range and the first interface display content are preset touch ranges and display contents suitable for the special-shaped touch screen. The second threshold range and the fourth threshold range are preset, the threshold range is met by the average value of the capacitance datum data in the non-special-shaped touch screen, and the second touch range and the second interface display content are preset touch ranges and display contents suitable for the non-special-shaped touch screen. After the touch screen is judged to be the special-shaped touch screen or the non-special-shaped touch screen, the terminal can directly display the touch range and the display content corresponding to the touch screen according to the type of the touch screen.
In an embodiment, the provided information processing method may further include a process of calculating an average value, as shown in fig. 6, and the specific steps include:
and step S602, acquiring capacitance reference values of all channels of the touch screen, and storing the capacitance reference values.
Each channel of the touch screen has a capacitance reference value, and the terminal can store the acquired capacitance reference value after acquiring the capacitance reference value of each channel of the touch screen. For example, the terminal may create a file, store the acquired capacitance reference values of each channel in the file, and store the acquired capacitance reference values of each channel in a local database.
In step S604, a capacitance reference value of a preset channel is searched for from the stored capacitance reference values.
The capacitance reference value of the preset channel is a preset capacitance reference value of the channel to be tested. Because the terminal stores the capacitance reference value of each channel, the terminal can search the capacitance reference value corresponding to the preset channel from the stored capacitance reference values of each channel.
In step S606, an average value of the capacitance reference values of the preset channels is calculated.
The terminal can acquire the channel number of the preset channel, wherein the preset channel is a preset channel to be checked. The set channels to be checked have a specific channel number, the channel number of the preset channel can be set according to the requirement of checking the channels according to the specific requirement, and the channel number of the preset channel can be randomly set.
The terminal may calculate an average value of the preset channel capacitance reference values by calculating the average value. The terminal may calculate an average value of the capacitance reference values of the preset channels according to the number of the preset channels and the capacitance reference value of the preset channel.
The capacitance reference values of all the channels of the touch screen are obtained and stored, the capacitance reference values of the preset channels are searched in the stored capacitance reference values, and the average value of the capacitance reference values of the preset channels is calculated. The average value of the capacitance reference values of the preset channel can be accurately calculated, and therefore whether the touch screen is a special-shaped touch screen or a non-special-shaped touch screen can be conveniently and quickly judged.
As shown in fig. 7A, in an embodiment, the information processing method may further include a process of setting a capacitance reference value range when there is no pressing event, and the specific steps include:
in step S702A, when there is no pressing event, the capacitance reference value ranges of different channels of the touch screen are obtained.
The press event is an event in which the user operates the application by pressing while using the terminal. When the capacitance changes due to the conductive effect generated by the touch of the external object with the touch screen, the touch screen of the terminal can recognize the touch screen as the existence of the pressing event. The capacitance reference value ranges of the different channels of the touch screen are set to be different channels of the touch screen to be tested.
When the touch screen of the terminal determines that no pressing event exists, the set range of capacitance reference values of different channels needing to be checked can be obtained.
In step S704A, if the touch screen is a special-shaped touch screen, the storage capacitor reference value range is a first threshold value range.
The capacitance reference value ranges of the special-shaped touch screen and the non-special-shaped touch screen are different. When the touch screen is a special-shaped touch screen, the terminal may store the acquired capacitance reference value range as the first threshold value range.
In step S706A, if the touch screen is a non-shaped touch screen, the storage capacitor reference value range is a second threshold value range.
When the touch screen is a non-shaped touch screen, the terminal may store the acquired capacitance reference value range as the second threshold value range.
And when no pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen, wherein if the touch screen is a special-shaped touch screen, the storage capacitance reference value range is a first threshold value range, and if the touch screen is a non-special-shaped touch screen, the storage capacitance reference value range is a second threshold value range. And judging whether the capacitance reference value range belongs to the first threshold value range or the second threshold value range, so that whether the touch screen is a special-shaped touch screen or a non-special-shaped touch screen can be conveniently known when no pressing event exists.
As shown in fig. 7B, in an embodiment, the information processing method may further include a process of setting a capacitance reference value range when there is a pressing event, and the specific steps include:
in step S702B, when there is a pressing event, the capacitance reference value ranges of different channels of the touch screen are obtained.
The touch screen of the terminal can recognize the presence of the pressing event by detecting a capacitance change of the touch screen. In the case of a pressing event, the terminal may also acquire a capacitance reference value range to which the touch screen is set differently.
In step S704B, if the touch screen is a special-shaped touch screen, the storage capacitor reference value range is a third threshold value range.
The terminal may correspond the touch screen with the capacitance reference value range being the third threshold value range to the special-shaped touch screen.
In step S706B, if the touch screen is a non-shaped touch screen, the storage capacitor reference value range is a fourth threshold value range.
Similarly, the terminal may further correspond the touch screen with the capacitance reference value range being the fourth threshold value range to the special-shaped touch screen.
And when a pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen, wherein if the touch screen is a special-shaped touch screen, the storage capacitance reference value range is a third threshold value range, and if the touch screen is a non-special-shaped touch screen, the storage capacitance reference value range is a fourth threshold value range. And judging whether the capacitance reference value range belongs to the third threshold value range or the fourth threshold value range, the fact that the touch screen is a special-shaped touch screen or a non-special-shaped touch screen when a pressing event exists can be conveniently known.
In an embodiment, as shown in fig. 8, the provided information processing method may further include a process of determining whether the touch screen is a shaped screen or a non-shaped screen, and specifically includes:
and S802, when the average value meets a first threshold value range, the touch screen is obtained to be the special-shaped touch screen, and the first threshold value range is the capacitance reference numerical value range of the special-shaped touch screen when no pressing event exists.
Because the first threshold range is the capacitance reference value range of the special-shaped touch screen when no pressing event exists, when the average value meets the first threshold range without the pressing event, the terminal can obtain that the touch screen is the special-shaped touch screen.
Step S804, when the average value meets a second threshold value range, the touch screen is obtained to be a non-special-shaped touch screen, and the second threshold value range is a capacitance reference value range of the non-special-shaped touch screen when no pressing event exists.
The second threshold range is a preset capacitance reference value range of the non-special-shaped touch screen when no pressing event exists, and when the average value meets the second threshold range, the terminal can obtain that the touch screen is the non-special-shaped touch screen.
Step 806, when the average value meets a third threshold value range, it is obtained that the touch screen is the special-shaped touch screen, and the third threshold value range is a capacitance reference numerical range of the special-shaped touch screen when a pressing event exists.
The capacitance reference value range of the shaped touch screen is a third threshold range when a press event is present. When the average value is within the third threshold range, the terminal may conclude that the touch screen is a shaped touch screen.
And step S808, when the average value meets a fourth threshold range, the touch screen is determined to be a non-special-shaped touch screen, and the fourth threshold range is a capacitance reference numerical range of the non-special-shaped touch screen when a pressing event exists.
And when the pressing event exists, the capacitance reference value range of the non-special-shaped touch screen is a fourth threshold value range. When the average value falls within the fourth threshold range, the terminal may derive that the touch screen is a non-shaped touch screen.
When the average value does not satisfy the first threshold range, the second threshold range, the third threshold range and the fourth threshold range, the terminal can obtain information about damage of the touch screen, and at this time, the terminal can prompt in a vibration mode, a ringing mode, a prompt window popping mode or a log popping mode to indicate damage of the touch screen.
The type of the touch screen can be conveniently and quickly distinguished by judging which threshold value range the average value belongs to so as to obtain the mode that the touch screen is the special-shaped touch screen or the non-special-shaped touch screen, and then the content displayed by the interface is adjusted, so that the difference between a software interface and interaction is reduced.
In one embodiment, an information processing method is provided, and the specific steps for implementing the method are as follows:
first, when there is no pressing event, the terminal may acquire a set capacitance reference value range of different channels of the touch screen. When the touch screen of the terminal determines that no pressing event exists, the set range of capacitance reference values of different channels needing to be checked can be obtained. If the touch screen is the special-shaped touch screen, the reference numerical range of the storage capacitor is the first threshold range. And if the touch screen is a non-special-shaped touch screen, the reference numerical range of the storage capacitor is a second threshold range.
Then, when a pressing event exists, the terminal can also acquire the set capacitance reference value ranges of different channels of the touch screen. The touch screen of the terminal can recognize the presence of the pressing event by detecting a capacitance change of the touch screen. In the case of a pressing event, the terminal may also acquire a capacitance reference value range to which the touch screen is set differently. And if the touch screen is the special-shaped touch screen, the reference numerical range of the storage capacitor is a third threshold range. And if the touch screen is a non-special-shaped touch screen, the reference numerical range of the storage capacitor is a fourth threshold range.
Secondly, the terminal can set a first touch range of the first touch screen and set display content of the first interface according to the first touch range. Wherein the first touch screen is a shaped touch screen. The special-shaped touch screen is a special-shaped touch screen which is reformed on the basis of the touch screen. The special-shaped touch screen is special in shape, the touch range can be set according to the special shape of the touch screen, and the display content of the interface can also be set according to the special shape of the touch screen. For example, when there is a notch or a groove in the touch screen, the touch range of the touch screen may avoid the portion where the notch or the groove exists, the touch range may be other than the notch or the groove, and the display content of the interface may also be displayed on the interface where the notch or the groove does not exist. The terminal can also set a second touch range of the second touch screen, and set the display content of the second interface according to the second touch range. Wherein the second touch screen is a non-shaped touch screen. A non-shaped touch screen refers to a regular touch screen without cuts or grooves. The touch range of the non-special-shaped touch screen can be set according to the shape and the size of the touch screen, and the content displayed on the interface can also be set according to the shape and the size of the touch screen.
Then, the terminal can obtain a capacitance reference value of a preset channel of the touch screen, and calculate an average value of the capacitance reference value. The terminal can locally acquire the capacitance reference value of the preset channel of the touch screen, and the terminal can calculate the average value of the capacitance reference value. When the average value is calculated, the terminal can obtain the capacitance reference value of each channel of the touch screen and store the capacitance reference value. The terminal can also obtain the number of the channels of the preset channel, the capacitance reference value of the preset channel is searched in the stored capacitance reference values, and the terminal can also calculate the average value of the capacitance reference values of the preset channel according to the number of the preset channel and the capacitance reference value of the preset channel.
Then, the terminal can judge whether the average value meets a preset threshold range to obtain a judgment result. After the terminal calculates the average value of the capacitance reference value, whether the calculated average value is within the preset threshold range or not can be judged, and judgment results that the average value is within the preset threshold range and the average value is not within the preset threshold range are obtained. When the average value meets the first threshold range, the terminal can obtain that the touch screen is the special-shaped touch screen, and the first threshold range is the capacitance reference numerical range of the special-shaped touch screen when no pressing event exists. When the average value meets the second threshold range, the terminal can obtain that the touch screen is a non-special-shaped touch screen, and the second threshold range is a capacitance reference numerical range of the non-special-shaped touch screen when no pressing event exists. When the average value meets a third threshold range, the terminal can obtain that the touch screen is the special-shaped touch screen, and the third threshold range is a capacitance reference numerical range of the special-shaped touch screen when a pressing event exists. When the average value meets a fourth threshold range, the terminal can obtain that the touch screen is a non-special-shaped touch screen, and the fourth threshold range is a capacitance reference numerical range of the non-special-shaped touch screen when a pressing event exists. When the average value does not satisfy the first threshold range, the second threshold range, the third threshold range and the fourth threshold range, the terminal can obtain information about damage of the touch screen, and at this time, the terminal can prompt in a vibration mode, a ringing mode, a prompt window popping mode or a log popping mode to indicate damage of the touch screen.
And finally, the terminal can display the preset touch range and the preset interface display content of the touch screen according to the judgment result. The preset touch range may be a set touch range on the terminal, and the preset interface display content may be display content on the interface set according to the touch range of the terminal. When the average value of the capacitance datum value meets the first threshold range or the third threshold range, the touch screen is a special-shaped touch screen, the terminal can display that the touch range is the first touch range and display information displayed by the interface according to the set display content of the first interface, and when the average value of the capacitance datum value meets the second threshold range or the fourth threshold range, the touch screen is a non-special-shaped touch screen, the touch range which can be displayed by the terminal is the second touch range and display information displayed by the interface according to the set display content of the second interface. The first touch range and the first interface display content are preset touch ranges and display contents suitable for the special-shaped touch screen, and the second touch range and the second interface display content are preset touch ranges and display contents suitable for the non-special-shaped touch screen. After the touch screen is judged to be the special-shaped touch screen or the non-special-shaped touch screen, the terminal can directly display the touch range and the display content corresponding to the touch screen according to the type of the touch screen.
As shown in fig. 9, in an embodiment, there is provided an information processing apparatus, specifically including:
the value obtaining module 910 is configured to obtain a capacitance reference value of a preset channel of the touch screen, and calculate an average value of the capacitance reference value.
And the range judging module 920 is configured to judge whether the average value meets a preset threshold range, so as to obtain a judgment result.
The information adjusting module 930 is configured to display a preset touch range of the touch screen and preset interface display content according to the determination result.
In an embodiment, the information processing apparatus may be further configured to set a first touch range of a first touch screen, set display content of a first interface according to the first touch range, set a second touch range of a second touch screen, and set display content of the second interface according to the second touch range, where the first touch screen is a shaped touch screen and the second touch screen is a non-shaped touch screen.
In an embodiment, the information adjusting module 930 may be further configured to, when the average value of the capacitance reference data satisfies the first threshold range or the third threshold range, display the information displayed by the interface as a special-shaped touch screen, where the touch range is the first touch range, and display the information displayed by the interface according to the set display content of the first interface, and when the average value of the capacitance reference data satisfies the second threshold range or the fourth threshold range, display the information displayed by the interface as a non-special-shaped touch screen, where the displayed touch range is the second touch range, and display the information displayed by the interface according to the set display content of the second interface.
In an embodiment, the value obtaining module 910 may be further configured to obtain capacitance reference values of each channel of the touch screen, store the capacitance reference values, search the stored capacitance reference values for a preset channel, and calculate an average value of the capacitance reference values of the preset channel.
In one embodiment, as shown in fig. 10, an information processing apparatus provided may further include:
a value range obtaining module 940, configured to obtain the set capacitance reference value ranges of different channels of the touch screen when there is no pressing event.
The first threshold range storage module 950 is configured to store a capacitance reference value range as a first threshold range if the touch screen is a special-shaped touch screen.
A second threshold range storage module 960, configured to store the capacitance reference value range as a second threshold range if the touch screen is a non-shaped touch screen.
In one embodiment, the value range obtaining module 940 may be further configured to obtain the set capacitance reference value ranges of different channels of the touch screen when there is a pressing event, the threshold range first storage module 950 may be further configured to store the capacitance reference value range as a third threshold range if the touch screen is a shaped touch screen, and the threshold range second storage module 960 may be further configured to store the capacitance reference value range as a fourth threshold range if the touch screen is a non-shaped touch screen.
In an embodiment, the range determining module 920 may be further configured to determine that the touch screen is an irregular touch screen when the average value satisfies a first threshold range, the first threshold range is a capacitance reference value range of the irregular touch screen when no pressing event exists, determine that the touch screen is a non-irregular touch screen when the average value satisfies a second threshold range, the second threshold range is a capacitance reference value range of the non-irregular touch screen when no pressing event exists, determine that the touch screen is an irregular touch screen when the average value satisfies a third threshold range, the third threshold range is a capacitance reference value range of the irregular touch screen when a pressing event exists, determine that the touch screen is a non-irregular touch screen when the average value satisfies a fourth threshold range, and the fourth threshold range is a capacitance reference value range of the non-irregular touch screen when a pressing event exists.
In one embodiment, there is also provided a computer readable storage medium storing a computer program which when executed by a processor implements the steps of: the method comprises the steps of obtaining a capacitance reference value of a preset channel of the touch screen, calculating an average value of the capacitance reference value, judging whether the average value meets a preset threshold range or not, obtaining a judgment result, and displaying a preset touch range and preset interface display content of the touch screen according to the judgment result.
In one embodiment, the computer program when executed by the processor may further implement the steps of: the method comprises the steps of setting a first touch range of a first touch screen, setting display content of a first interface according to the first touch range, setting a second touch range of a second touch screen, and setting display content of the second interface according to the second touch range, wherein the first touch screen is a special-shaped touch screen, and the second touch screen is a non-special-shaped touch screen.
In one embodiment, the displaying, by the processor, the preset touch range of the touch screen and the preset interface display content according to the determination result includes: and when the touch screen is a non-special-shaped touch screen, the displayed touch range is a second touch range, and the information displayed by the interface is displayed according to the set display content of the second interface.
In one embodiment, the computer program is executed by a processor to obtain a capacitance reference value of a preset channel and calculate an average value of the capacitance reference value, and the method includes: the method comprises the steps of obtaining capacitance reference values of all channels of the touch screen, storing the capacitance reference values, obtaining the number of the channels of a preset channel, searching the capacitance reference values of the preset channel in the stored capacitance reference values, and calculating the average value of the capacitance reference values of the preset channel according to the number of the preset channel and the capacitance reference values of the preset channel.
In one embodiment, the computer program executed by the processor to set a capacitance baseline value range for no press event includes: and when no pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen, wherein if the touch screen is a special-shaped touch screen, the storage capacitance reference value range is a first threshold value range, and if the touch screen is a non-special-shaped touch screen, the storage capacitance reference value range is a second threshold value range.
In one embodiment, the computer program is executed by the processor to set a capacitance baseline value range for a compression event, comprising: and when a pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen, wherein if the touch screen is a special-shaped touch screen, the storage capacitance reference value range is a third threshold value range, and if the touch screen is a non-special-shaped touch screen, the storage capacitance reference value range is a fourth threshold value range.
In one embodiment, the computer program executed by the processor for determining whether the average value satisfies a predetermined threshold range to obtain a determination result includes: when the average value meets a first threshold value range, the touch screen is obtained to be a special-shaped touch screen, the first threshold value range is a capacitance reference numerical range of the special-shaped touch screen when no pressing event exists, when the average value meets a second threshold value range, the touch screen is obtained to be a non-special-shaped touch screen, the second threshold value range is a capacitance reference numerical range of the non-special-shaped touch screen when no pressing event exists, when the average value meets a third threshold value range, the touch screen is obtained to be the special-shaped touch screen, the third threshold value range is a capacitance reference numerical range of the special-shaped touch screen when a pressing event exists, when the average value meets a fourth threshold value range, the touch screen is obtained to be the non-special-shaped touch screen, and the fourth threshold value range is a capacitance reference numerical range of the non-special-shaped touch screen when a pressing event exists.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which is stored in a non-volatile computer-readable storage medium, and executed by at least one processor in a computer system, so as to implement the processes of the embodiments including the methods described above. Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An information processing method, characterized in that the method comprises:
acquiring capacitance reference values of preset channels of the touch screen, and calculating an average value of the capacitance reference values of the preset channels; the preset channel comprises a preset transmitting channel and a preset receiving channel;
judging whether the average value meets a preset threshold range or not to obtain a judgment result; the threshold range is obtained by sampling a capacitance reference value of a cross point of the transmitting channel and the receiving channel when the touch screen is electrified;
determining the type of the touch screen according to the judgment result;
when the type of the touch screen is the special-shaped touch screen, displaying a touch range and interface display content corresponding to the special-shaped touch screen; and when the type of the touch screen is a non-special-shaped touch screen, displaying a touch range and interface display content corresponding to the non-special-shaped touch screen.
2. The method of claim 1, wherein before obtaining the capacitance reference value of the preset channel, the method further comprises:
setting a first touch range of a first touch screen, and setting display content of a first interface according to the first touch range;
setting a second touch range of a second touch screen, and setting display content of a second interface according to the second touch range;
the first touch screen is a special-shaped touch screen, and the second touch screen is a non-special-shaped touch screen.
3. The method according to claim 2, wherein the determining the type of the touch screen according to the determination result; when the type of the touch screen is the special-shaped touch screen, displaying a touch range and interface display content corresponding to the special-shaped touch screen; when the type of the touch screen is a non-special-shaped touch screen, displaying a touch range and interface display content corresponding to the non-special-shaped touch screen, wherein the touch range and the interface display content comprise:
when the average value of the capacitance reference values meets a first threshold range or a third threshold range, the touch screen is a special-shaped touch screen, the displayed touch range is the first touch range, and information displayed by the interface is displayed according to the set display content of the first interface;
and when the average value of the capacitance datum data meets a second threshold range or a fourth threshold range, the touch screen is a non-special-shaped touch screen, the displayed touch range is the second touch range, and the information displayed by the interface is displayed according to the set display content of the second interface.
4. The method according to claim 1, wherein the obtaining of the capacitance reference values of the preset channels of the touch screen and the calculating of the average value of the capacitance reference values of the preset channels comprises:
acquiring a capacitance reference value of each channel of the touch screen, and storing the capacitance reference value;
searching a capacitance reference value of a preset channel in the stored capacitance reference values;
calculating the average value of the capacitance reference values of the preset channels;
the preset channel is a preset channel needing to be checked.
5. The method of claim 3, wherein before obtaining the capacitance reference value of the preset channel, the method further comprises:
when no pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen;
if the touch screen is the special-shaped touch screen, storing the capacitance reference value range as the first threshold value range;
and if the touch screen is a non-special-shaped touch screen, storing the capacitance reference value range as the second threshold value range.
6. The method of claim 5, wherein before obtaining the capacitance reference value of the preset channel, the method further comprises:
when a pressing event exists, acquiring the set capacitance reference value ranges of different channels of the touch screen;
if the touch screen is the special-shaped touch screen, storing the capacitance reference value range as the third threshold value range;
and if the touch screen is a non-special-shaped touch screen, storing the capacitance reference value range as the fourth threshold value range.
7. The method according to claim 6, wherein the determining whether the average value satisfies a preset threshold range, and obtaining a determination result comprises:
when the average value meets the first threshold value range, the fact that the touch screen is the special-shaped touch screen is obtained, and the first threshold value range is a capacitance reference numerical value range of the special-shaped touch screen when no pressing event exists;
when the average value meets the second threshold value range, the fact that the touch screen is a non-special-shaped touch screen is obtained, and the second threshold value range is a capacitance reference numerical value range of the non-special-shaped touch screen when no pressing event exists;
when the average value meets the third threshold value range, the fact that the touch screen is the special-shaped touch screen is obtained, and the third threshold value range is a capacitance reference numerical value range of the special-shaped touch screen when a pressing event exists;
and when the average value meets the fourth threshold range, the fact that the touch screen is a non-special-shaped touch screen is obtained, and the fourth threshold range is a capacitance reference numerical range of the non-special-shaped touch screen when a pressing event exists.
8. An information processing apparatus characterized in that the apparatus comprises:
the numerical value acquisition module is used for acquiring capacitance reference numerical values of preset channels of the touch screen and calculating the average value of the capacitance reference numerical values of the preset channels; the preset channel comprises a preset transmitting channel and a preset receiving channel;
the range judgment module is used for judging whether the average value meets a preset threshold range or not to obtain a judgment result; the threshold range is obtained by sampling a capacitance reference value of a cross point of the transmitting channel and the receiving channel when the touch screen is electrified;
the information adjusting module is used for determining the type of the touch screen according to the judgment result; when the type of the touch screen is the special-shaped touch screen, displaying a touch range and interface display content corresponding to the special-shaped touch screen; and when the type of the touch screen is a non-special-shaped touch screen, displaying a touch range and interface display content corresponding to the non-special-shaped touch screen.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201810048573.XA 2018-01-18 2018-01-18 Information processing method, information processing device, computer equipment and storage medium Active CN108388387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810048573.XA CN108388387B (en) 2018-01-18 2018-01-18 Information processing method, information processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810048573.XA CN108388387B (en) 2018-01-18 2018-01-18 Information processing method, information processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108388387A CN108388387A (en) 2018-08-10
CN108388387B true CN108388387B (en) 2021-08-13

Family

ID=63077257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810048573.XA Active CN108388387B (en) 2018-01-18 2018-01-18 Information processing method, information processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108388387B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052804A (en) * 2012-09-06 2014-03-20 Sharp Corp Touch panel system
CN105518596A (en) * 2013-03-12 2016-04-20 辛纳普蒂克斯公司 Device and method for localized force and proximity sensing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866317B (en) * 2012-09-24 2014-12-10 广东欧珀移动通信有限公司 Method and system for quick test of mobile terminal capacitive touch screen
CN106293444B (en) * 2015-06-25 2020-07-03 小米科技有限责任公司 Mobile terminal, display control method and device
CN107506071B (en) * 2017-08-01 2020-04-03 厦门天马微电子有限公司 Display panel and display device
CN107562316B (en) * 2017-08-29 2019-02-05 Oppo广东移动通信有限公司 Method for showing interface, device and terminal
CN107577495B (en) * 2017-09-05 2019-05-31 Oppo广东移动通信有限公司 Interface display method, device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052804A (en) * 2012-09-06 2014-03-20 Sharp Corp Touch panel system
CN105518596A (en) * 2013-03-12 2016-04-20 辛纳普蒂克斯公司 Device and method for localized force and proximity sensing

Also Published As

Publication number Publication date
CN108388387A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN106326091B (en) Method and system for detecting browser webpage compatibility
CN108520177B (en) Application software management method and device, mobile terminal and readable storage medium
CN117390330A (en) Webpage access method and device
CN110659092A (en) Webpage screenshot method and device, computer equipment and storage medium
CN111310195A (en) Security vulnerability management method, device, system, equipment and storage medium
EP3057006A1 (en) Method and device of filtering address
CN108388387B (en) Information processing method, information processing device, computer equipment and storage medium
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN104503674A (en) Screenshot picture generating method
CN110830716A (en) Image generation method and device, computer equipment and storage medium
CN104021324A (en) Method and device for writing safety verification
CN106201066B (en) Verification method, device and the terminal of information
CN106970973B (en) Information processing method and device and electronic equipment
CN110633412A (en) Page stay intention analysis method and device, computer equipment and storage medium
CN106933440B (en) Terminal operation method and device and terminal
CN114239042A (en) Industrial data desensitization method, apparatus, computer device and readable storage medium
CN110069731B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN109272059B (en) Dynamic data classification method and device
CN109324822B (en) PWA (public warning assistant) item detection method, computer-readable storage medium and terminal device
CN108513013B (en) Mode control method, device, user terminal and readable storage medium
CN112379800A (en) Electronic manual implementation method and device, readable storage medium and computer equipment
CN111611470A (en) Data processing method and device and electronic equipment
CN111381849A (en) Software updating method and device and electronic equipment
CN110618141A (en) Method, system and device for detecting glass defects
CN105808069B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant