CN113552982A - Data input method and electronic equipment - Google Patents

Data input method and electronic equipment Download PDF

Info

Publication number
CN113552982A
CN113552982A CN202110828640.1A CN202110828640A CN113552982A CN 113552982 A CN113552982 A CN 113552982A CN 202110828640 A CN202110828640 A CN 202110828640A CN 113552982 A CN113552982 A CN 113552982A
Authority
CN
China
Prior art keywords
data
value
pressing force
force value
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110828640.1A
Other languages
Chinese (zh)
Inventor
安玉新
吴越
刘墩建
陈维强
孙永良
于涛
李建伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense TransTech Co Ltd
Original Assignee
Hisense TransTech 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 Hisense TransTech Co Ltd filed Critical Hisense TransTech Co Ltd
Priority to CN202110828640.1A priority Critical patent/CN113552982A/en
Publication of CN113552982A publication Critical patent/CN113552982A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The disclosure provides a data input method and an electronic device. The method comprises the following steps: continuously acquiring a pressing force value of a user after receiving a data input request sent by the user; for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining intermediate input data corresponding to the pressing force based on the pressing force value, and displaying the intermediate input data; and when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force values as target data required to be input by the user. Therefore, the method and the device can directly convert the pressing force degree through the pressing force degree value of the user to obtain the target data required to be input by the user, do not need the manual data input by the user, simplify the operation process and improve the data input efficiency.

Description

Data input method and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data input method and an electronic device.
Background
With the rapid development of the internet, electronic devices are becoming more popular, and various applications are becoming more popular, and during the application use process, the input of data (for example, data of height, weight, age, etc.) is performed basically by using a keyboard (a keyboard of the electronic device itself and/or a third party keyboard) or by scrolling a list, for example, a user inputs time by scrolling the list, as shown in fig. 1, which is an interface diagram of a user inputting time by scrolling the list. As shown in fig. 1, the user adjusts the minutes of time by scrolling through the list. However, the two methods are cumbersome to operate, resulting in low data input efficiency.
Disclosure of Invention
The exemplary embodiments of the present disclosure provide a data input method and an electronic device, which are used to simplify the data input operation process and improve the data input efficiency.
A first aspect of the disclosure provides an electronic device, the processor configured to:
continuously acquiring a pressing force value of a user after receiving a data input request sent by the user;
for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining intermediate input data corresponding to the pressing force value based on the pressing force value;
when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force value as target data required to be input by the user;
the display unit is configured to display the intermediate input data and the target data.
In this embodiment, after a data input request sent by a user is received, pressing force values of the user are continuously acquired, for any one acquired pressing force value, if it is determined that the pressing force value is greater than a specified threshold, intermediate input data corresponding to the pressing force value is determined based on the pressing force value, and when the acquired pressing force value of the user is the specified threshold, the intermediate input data obtained based on a last pressing force value of the pressing force value is determined as target data that the user needs to input. Therefore, in the embodiment, the pressing strength can be directly converted through the pressing strength value of the user to obtain the target data required to be input by the user, the data is not required to be manually input by the user, the operation process is simplified, and the data input efficiency is improved.
In one embodiment, the processor, in performing the determining of the intermediate input data corresponding to the pressing force value based on the pressing force value, is specifically configured to:
determining a first data type corresponding to the data entry request; wherein the first data type is used for representing the name of data;
determining the intermediate input data based on the pressing force values and data limit values corresponding to the first data type, wherein the data limit values include a target data maximum value, a target data minimum value, and a pressing force maximum value.
In this embodiment, a first data type of data is determined, and intermediate input data is determined based on the pressing magnitude and a data limit value corresponding to the first data type, so that there are corresponding data limit values for different first data types in this embodiment, and the intermediate input data is determined based on the corresponding data limit values, so as to ensure that the determination of the intermediate input data is more accurate.
In an embodiment, the processor performs the determining the intermediate input data based on the pressing force value and the data limit value corresponding to the first data type, specifically configured to:
subtracting the target data maximum value and the target data minimum value to obtain a first intermediate value; and the number of the first and second electrodes,
multiplying the first intermediate value by the pressing force value to obtain a second intermediate value;
and dividing the maximum pressing force degree value by the second intermediate value to obtain the intermediate input data.
In the embodiment, the intermediate input data is determined by the maximum value of the target data, the minimum value of the target data and the maximum value of the pressing force degree in the pressing force degree and the data limit value through a specific calculation method, so that the accuracy of the intermediate input data is ensured.
In one embodiment, the processing performs the determining intermediate input data corresponding to the compressive force value based on the compressive force value, specifically configured to:
determining a data growth rate based on the pressing force value;
determining a data increasing value by using the data increasing speed and a pressing time length corresponding to the pressing force value, wherein the pressing time length is timed from the acquisition of the pressing force value different from the last pressing force value;
and obtaining the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value.
In this embodiment, a data increasing speed is determined based on the pressing force value, a data increasing value is determined by using the data increasing speed and a pressing time corresponding to the pressing force value, and finally, the intermediate input data is obtained by using the data increasing value and the intermediate input data determined based on the last pressing force value. Therefore, when large data is input, the mode is utilized to input more quickly, the input efficiency is improved, and the time of a user is saved.
In one embodiment, the processor performs the determining of the data growth rate based on the pressing force value, specifically configured to:
determining a first increase value by using a preset increase value and the pressing force value; and the number of the first and second electrodes,
and obtaining the data growth speed based on the first growth value and a preset growth index.
The embodiment determines a first increase value by using a preset increase value and the pressing force value; and obtaining the data growth speed based on the first growth value and a preset growth index. Thereby, it is ensured that the determined growth rate corresponds to the pressing force value. That is, the larger the pressing force degree is, the larger the growth rate is, and the smaller the pressing force degree is, the smaller the growth rate is.
In one embodiment, the processor performs the determining a first increase value using a preset increase value and the pressing force value, specifically configured to:
adding the preset increasing value and the pressing force value to obtain a first increasing value;
obtaining the data growth rate based on the first growth value and a preset growth exponent includes:
and performing power operation on the first growth value by using a preset growth exponent to obtain the data growth speed.
In the embodiment, the first growth value and the data growth speed are ensured to be more accurate.
In an embodiment, the processor executes the determining of the data increase value by using the data increase speed and the pressing duration corresponding to the pressing magnitude, and is specifically configured to:
multiplying the data growth speed by the pressing duration to obtain a data growth value;
the obtaining of the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value includes:
and adding the data increment value and the intermediate input data determined based on the last pressing degree to obtain the intermediate input data.
This embodiment ensures that the intermediate input data is obtained more accurately.
A second aspect of the present disclosure provides a data input method, the method comprising:
continuously acquiring a pressing force value of a user after receiving a data input request sent by the user;
for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining intermediate input data corresponding to the pressing force based on the pressing force value, and displaying the intermediate input data;
and when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force values as target data required to be input by the user.
In one embodiment, the determining intermediate input data corresponding to the pressing force value based on the pressing force value includes:
determining a first data type corresponding to the data entry request; wherein the first data type is used for representing the name of data;
determining the intermediate input data based on the pressing force values and data limit values corresponding to the first data type, wherein the data limit values include a target data maximum value, a target data minimum value, and a pressing force maximum value.
In one embodiment, the determining the intermediate input data based on the data limit values corresponding to the compression magnitude values and the first data type includes:
subtracting the target data maximum value and the target data minimum value to obtain a first intermediate value; and the number of the first and second electrodes,
multiplying the first intermediate value by the pressing force value to obtain a second intermediate value;
dividing the maximum value of the pressing force degree by the second intermediate value to obtain the intermediate input data
In one embodiment, the determining intermediate input data corresponding to the pressing force value based on the pressing force value includes:
determining a data growth rate based on the pressing force value;
determining a data increasing value by using the data increasing speed and a pressing time length corresponding to the pressing force value, wherein the pressing time length is timed from the acquisition of the pressing force value different from the last pressing force value;
and obtaining the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value.
In one embodiment, the determining a data growth rate based on the pressing force value includes:
determining a first increase value by using a preset increase value and the pressing force value; and the number of the first and second electrodes,
and obtaining the data growth speed based on the first growth value and a preset growth index.
In one embodiment, the determining a first increase value using a preset increase value and the pressing force value includes:
adding the preset increasing value and the pressing force value to obtain a first increasing value;
obtaining the data growth rate based on the first growth value and a preset growth exponent includes:
and performing power operation on the first growth value by using a preset growth exponent to obtain the data growth speed.
In one embodiment, the determining a data increase value by using the data increase speed and the pressing time length corresponding to the pressing force value includes:
multiplying the data growth speed by the pressing duration to obtain a data growth value;
the obtaining of the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value includes:
and adding the data increment value and the intermediate input data determined based on the last pressing degree to obtain the intermediate input data.
According to a third aspect provided by embodiments of the present disclosure, there is provided a computer storage medium storing a computer program for executing the method according to the second aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is one of the schematic interfaces of an electronic device according to one embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an electronic device according to one embodiment of the present disclosure;
FIG. 3 is one of the flow diagrams of a data entry method according to one embodiment of the present disclosure;
FIGS. 4A-4B are second schematic interface diagrams of an electronic device according to an embodiment of the disclosure;
FIG. 5 is a second flowchart of a data input method according to an embodiment of the present disclosure;
FIG. 6 is a third schematic flow chart diagram of a data input method according to an embodiment of the present disclosure;
FIG. 7 is a fourth flowchart illustrating a data entry method according to an embodiment of the present disclosure;
FIG. 8 is a data entry device according to one embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The term "and/or" in the embodiments of the present disclosure describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present disclosure is for more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not form a limitation on the technical solution provided in the embodiment of the present disclosure, and as a person having ordinary skill in the art knows, with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present disclosure is also applicable to similar technical problems. In the description of the present disclosure, the term "plurality" means two or more unless otherwise specified.
In the prior art, data (such as height, weight, age and the like) is basically input by using a keyboard (a keyboard of the electronic device and/or a third party keyboard) or by scrolling a list, but the operation is cumbersome in this way, so that the data input efficiency is low.
Therefore, the present disclosure provides a data input method, in which after a data input request sent by a user is received, pressing force values of the user are continuously acquired, and for any one of the acquired pressing force values, if it is determined that the pressing force value is greater than a specified threshold, intermediate input data corresponding to the pressing force value is determined based on the pressing force value, and when the acquired pressing force value of the user is the specified threshold, the intermediate input data obtained based on a last pressing force value of the pressing force values is determined as target data that the user needs to input. Therefore, the method and the device can directly convert the pressing force degree through the pressing force degree value of the user to obtain the target data required to be input by the user, and the user does not need to manually input the data through a keyboard or a scroll bar, so that the operation process is simplified, and the data input efficiency is improved.
Before describing the scheme of the present disclosure in detail, first, the electronic device in the present disclosure is described in detail, and the electronic device in the embodiment of the present disclosure may be a mobile phone, a tablet computer, or the like. First, the structure of the electronic device will be explained.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 2, the electronic device in the embodiment of the present disclosure includes: a Radio Frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, a camera 270, a communication interface 280, and a Wireless Fidelity (WiFi) module 290.
Those skilled in the art will appreciate that the configuration of the electronic device shown in fig. 2 does not constitute a limitation of the electronic device, and that embodiments of the present disclosure provide electronic devices that may include more or fewer components than those shown, or that certain components may be combined, or that a different arrangement of components may be provided.
The following describes each component of the electronic device 200 in detail with reference to fig. 2:
the RF circuit 210 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 210 sends downlink data of the base station to the processor 230 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 210 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuit 210 may also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the electronic device 200 realizes Access to a data network through an Access Point (AP) to which the WiFi module 290 can be connected. The WiFi module 290 may be used for receiving and transmitting data during communication.
The electronic device 200 may be physically connected to other terminals through the communication interface 280. Optionally, the communication interface 280 is connected to the communication interface of the other terminal through a cable, so as to implement data transmission between the electronic device 200 and the other terminal.
The electronic device 200 is capable of implementing a communication service, and the electronic device 200 needs to have a data transmission function, that is, the electronic device 200 needs to include a communication module inside. Although fig. 2 shows communication modules such as the RF circuit 210, the WiFi module 290, and the communication interface 280, it is understood that at least one of the above components or other communication modules (such as a bluetooth module) for implementing communication exists in the electronic device 200 for data transmission.
For example, when the electronic device 200 is a mobile phone, the electronic device 200 may include the RF circuit 210 and may further include the WiFi module 290; when the electronic device 200 is a computer, the electronic device 200 may include the communication interface 280 and may further include the WiFi module 290; when the electronic device 200 is a tablet computer, the electronic device 200 may include the WiFi module.
The memory 240 may be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the electronic device 200 by executing the software programs and modules stored in the memory 240, and when the processor 230 executes the program codes in the memory 240, part or all of the processes in fig. 2 of the embodiments of the present disclosure can be implemented.
Alternatively, the memory 240 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
Further, the memory 240 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 250 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the electronic apparatus 200.
Alternatively, the input unit 250 may include a touch panel 251 and other input terminals 252.
The touch panel 251, also referred to as a touch screen, may collect touch operations of a user (for example, operations of the user on or near the touch panel 251 using any suitable object or accessory such as a finger, a stylus pen, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 251 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 230, and can receive and execute commands sent by the processor 230. In addition, the touch panel 251 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
Optionally, the other input terminals 252 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 260 may be used to display information input by a user or information provided to a user and various menus of the electronic apparatus 200. The display unit 260 is a display system of the electronic device 200, and is configured to present an interface to implement human-computer interaction.
The display unit 260 may include a display panel 261. Alternatively, the Display panel 261 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 251 may cover the display panel 261, and when the touch panel 251 detects a touch operation on or near the touch panel 251, the touch panel transmits the touch operation to the processor 230 to determine the type of the touch event, and then the processor 230 provides a corresponding visual output on the display panel 261 according to the type of the touch event.
Although in fig. 2, the touch panel 251 and the display panel 261 are two independent components to implement the input and output functions of the electronic device 200, in some embodiments, the touch panel 251 and the display panel 261 may be integrated to implement the input and output functions of the electronic device 200.
The processor 230 is a control center of the electronic device 200, connects various components using various interfaces and lines, and performs various functions of the electronic device 200 and processes data by operating or executing software programs and/or modules stored in the memory 240 and calling data stored in the memory 240, thereby implementing various services based on the electronic device.
Optionally, the processor 230 may include one or more processing units. Optionally, the processor 230 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 230.
The camera 270 is configured to implement a shooting function of the electronic device 200, and shoot a picture or a video.
The electronic device 200 also includes a power source 220 (such as a battery) for powering the various components. Optionally, the power supply 220 may be logically connected to the processor 230 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
Although not shown, the electronic device 200 may further include at least one sensor, which is not described in detail herein.
Referring to the drawings, the disclosed data input method is described in detail, and fig. 3 is a schematic flow chart of the data input method according to the present disclosure, which may include the following steps:
step 301: continuously acquiring a pressing force value of a user after receiving a data input request sent by the user;
for example, as shown in FIG. 4A, an interface diagram of an electronic device that is a user. In the figure, the user wants to input height, weight and age data, when the user clicks any one of the input boxes corresponding to height, weight and age, the electronic device receives a data input request sent by the user, displays a corresponding input pressure button, and takes the case that the user clicks the input box corresponding to height as an example for explanation, after the user clicks the input box corresponding to height, an interface schematic diagram of corresponding height input is displayed, as shown in fig. 4A, the user can click the pressure button in the figure to realize the input of height data, and in fig. 4A, the user does not press the pressure button at this time, so that the corresponding height data is 0 cm.
The input mode of each type of data can be input by using the mode shown in fig. 4A.
The continuous acquisition may be real-time acquisition or may be acquired once every specified time length. The configuration may be set according to specific situations, and the embodiment is not limited herein.
Step 302: for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining intermediate input data corresponding to the pressing force based on the pressing force value, and displaying the intermediate input data;
for example, as shown in fig. 4B, when the user starts to continuously press the pressure button, the height data corresponding to the pressing force value of the user is displayed in the interface, and the user can adjust the corresponding height input value by adjusting the pressing force. When the displayed data is the data which the user wants to input, the user can release the hand, and the user can press the pressure button to input the corresponding data corresponding to the height data before the user releases the hand in the corresponding height input box.
It should be noted that, the user can input various types of data through the flow of fig. 4A to 4B to input the data.
Step 303: and when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force values as target data required to be input by the user.
For example, if the specified threshold is 0. When the user sees that the intermediate input data in the interface of the electronic equipment is the data which the user wants to input, the user can stop pressing the pressure button. At this time, if the pressing force value obtained by the electronic device is 0, that is, a threshold is specified, the intermediate input data obtained based on the previous pressing force value is the target data.
It should be noted that the specific value of the designated threshold in this embodiment is only used for illustration of this embodiment, and the designated threshold is not limited, where the specific value of the designated threshold may be set according to an actual situation, and this embodiment is not limited herein.
In one embodiment, the intermediate input data may be determined in two ways:
the first method is as follows: as shown in fig. 5, the following steps may be included:
step 501: determining a first data type corresponding to the data entry request; wherein the first data type is used for representing the name of data;
for example, the first data type includes at least one of height, weight, age, date, and the like.
Step 502: determining the intermediate input data based on the pressing force values and data limit values corresponding to the first data type, wherein the data limit values include a target data maximum value, a target data minimum value, and a pressing force maximum value.
The data limit values corresponding to different first data types are different, and the data limit values corresponding to the first data types can be determined through table 1.
Figure BDA0003174642920000121
Figure BDA0003174642920000131
TABLE 1
Among them, it should be noted that: maximum value of degree of pressing Fmax1、Fmax2、Fmax3And Fmax4The components may be the same or different, and may be set according to specific practical situations, and the present embodiment is not limited herein.
In one embodiment, step 502 may be embodied as: subtracting the target data maximum value and the target data minimum value to obtain a first intermediate value; then multiplying the first intermediate value by the pressing force value to obtain a second intermediate value; and dividing the maximum value of the pressing force degree by the second intermediate value to obtain the intermediate input data. Wherein the intermediate input data is obtainable by equation (1):
Sr=Fmax/(Mmax-Mmin)×F……(1);
wherein, FmaxAt the maximum value of the pressing force, MmaxIs the maximum value of the target data, MminThe target data minimum value is denoted as F, and the pressing force value is denoted as F.
It should be noted that: the method of the first embodiment is used to determine the intermediate input data when the data input by the user is data having upper and lower limits, such as height, weight, age, date, etc.
The second method comprises the following steps: as shown in fig. 6, the following steps may be included:
step 601: determining a data growth rate based on the pressing force value;
in one embodiment, the data growth rate may be determined by:
determining a first increase value by using a preset increase value and the pressing force value; and obtaining the data growth speed based on the first growth value and a preset growth index.
In an embodiment, specifically, the preset growth value and the pressing force value are added to obtain the first growth value, and a preset growth exponent is used to perform an exponentiation operation on the first growth value to obtain the data growth rate. The data growth rate can be determined by equation (2):
v=(m+F)r……(2);
where v is the data growth rate, m is a preset growth value, which may be 1 in this embodiment, F is a pressing magnitude, and r is a preset growth exponent.
Step 602: determining a data increasing value by using the data increasing speed and a pressing time length corresponding to the pressing force value, wherein the pressing time length is timed from the acquisition of the pressing force value different from the last pressing force value;
in one embodiment, the data growth value may be determined by:
and multiplying the data growth speed by the pressing duration to obtain the data growth value. The data growth value may be determined by equation (3):
Sincrease=v×t……(3);
Wherein S isIncreaseAnd t is the pressing duration.
Step 603: and obtaining the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value.
In one embodiment, step 603 may be embodied as: and adding the data increment value and the intermediate input data determined based on the last pressing degree to obtain the intermediate input data. The intermediate input data can be obtained by equation (4):
Sr=Sincrease+Sr-1……(4);
Wherein S isr-1Intermediate input data, S, determined for the last degree of pressingrAnd inputting the determined intermediate input data.
In one embodiment, the intermediate input data may be determined directly by equation (5):
Sr=Sr-1+(m+F)r×t……(5)。
it should be noted that: in the second mode, whether the input data has upper and lower limits or not is not displayed, and the input data with the upper and lower limits and without the upper and lower limits can determine the middle input data by using the second mode. The data without upper and lower limits may be data such as stock, purchase quantity, etc.
In one embodiment, before step 302 is executed, it is first determined whether target data to be input has upper and lower limits based on the data input request, and if it is determined that the target data to be input has the upper and lower limits, the method described in any of the first or second modes may be used to determine intermediate input data. And if the target data needing to be input is determined not to have upper and lower limits, determining the intermediate input data by using the method in the second mode.
Wherein, whether the target data needing to be input has an upper limit and a lower limit can be determined by the following method:
and determining whether the target data to be input has upper and lower limits or not according to the preset corresponding relation between each first data type and whether the target data has the upper and lower limits or not. The corresponding relationship between each first data type and whether the first data type has an upper limit and a lower limit may be shown in table 2:
a first data type Whether or not to have upper and lower limits
Age (age) Having upper and lower limits
Height of a person Having upper and lower limits
Body weight Having upper and lower limits
Number of Having no upper or lower limits
Stock keeping Having no upper or lower limits
TABLE 2
For further understanding of the technical solution of the present disclosure, taking the example of determining the intermediate input data by using the method in the second usage method as an example, the following detailed description with reference to fig. 7 may include the following steps:
step 701: continuously acquiring a pressing force value of a user after receiving a data input request sent by the user;
step 702: for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining a data growth speed based on the pressing force value;
step 703: determining a data increasing value by using the data increasing speed and a pressing time length corresponding to the pressing force value, wherein the pressing time length is timed from the acquisition of the pressing force value different from the last pressing force value;
step 704: obtaining intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value;
step 705: and when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force values as target data required to be input by the user.
The data input method of the present disclosure as described above can also be implemented by a data input device based on the same disclosure concept. The effect of the data input device is similar to that of the method, and is not repeated herein.
Fig. 8 is a schematic structural diagram of a data input device according to an embodiment of the present disclosure.
As shown in fig. 8, the data input apparatus 800 of the present disclosure may include a pressing force value acquisition module 810, an intermediate input data determination module 820, and a target data determination module 830.
The pressing force value obtaining module 810 is configured to continuously obtain a pressing force value of a user after receiving a data input request sent by the user;
an intermediate input data determining module 820, configured to determine, for any one obtained pressing force value, intermediate input data corresponding to the pressing force based on the pressing force value if it is determined that the pressing force value is greater than a specified threshold, and display the intermediate input data;
and a target data determining module 830, configured to determine, when the obtained pressing force value of the user is the specified threshold, intermediate input data obtained based on a last pressing force value of the pressing force value, as target data that needs to be input by the user.
In an embodiment, the intermediate input data determining module 820 specifically includes:
a first data type determining unit 821 for determining a first data type corresponding to the data input request; wherein the first data type is used for representing the name of data;
an intermediate input data determining unit 822, configured to determine the intermediate input data based on the pressing force degree values and data limit values corresponding to the first data type, where the data limit values include a target data maximum value, a target data minimum value, and a pressing force degree maximum value.
In an embodiment, the intermediate input data determining unit 821 is specifically configured to:
subtracting the target data maximum value and the target data minimum value to obtain a first intermediate value; and the number of the first and second electrodes,
multiplying the first intermediate value by the pressing force value to obtain a second intermediate value;
and dividing the maximum pressing force degree value by the second intermediate value to obtain the intermediate input data.
In an embodiment, the intermediate input data determining module 820 further includes:
a data growth rate determination unit 823 that determines a data growth rate based on the pressing force value;
a data increase value determination unit 824 configured to determine a data increase value using the data increase speed and a pressing time length corresponding to the pressing force value, where the pressing time length is counted from the acquisition of the pressing force value different from the previous pressing force value;
the intermediate input data determining unit 821 is further configured to obtain the intermediate input data according to the data increment value and the intermediate input data determined based on the previous pressing force value.
In an embodiment, the data growth rate determining unit 823 is specifically configured to:
determining a first increase value by using a preset increase value and the pressing force value; and the number of the first and second electrodes,
and obtaining the data growth speed based on the first growth value and a preset growth index.
In one embodiment, the data growth rate determining unit 823 is configured to determine a first growth value by using the preset growth value and the pressing force value, and specifically is configured to:
adding the preset increasing value and the pressing force value to obtain a first increasing value;
the data growth rate determining unit 823 is configured to obtain the data growth rate based on the first growth value and the preset growth exponent, and specifically configured to:
and performing power operation on the first growth value by using a preset growth exponent to obtain the data growth speed.
In an embodiment, the data increment value determining unit 824 is specifically configured to:
multiplying the data growth speed by the pressing duration to obtain a data growth value;
the obtaining of the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value includes:
and adding the data increment value and the intermediate input data determined based on the last pressing degree to obtain the intermediate input data.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device in accordance with the present disclosure may include at least one processor, and at least one computer storage medium. Wherein the computer storage medium stores program code which, when executed by the processor, causes the processor to perform the steps of the data input method according to various exemplary embodiments of the present disclosure described above in this specification. For example, the processor may perform steps 301-303 as shown in FIG. 3.
In some possible embodiments, various aspects of a data input method provided by the present disclosure may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the data input method according to various exemplary embodiments of the present disclosure described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a random access computer storage media (RAM), a read-only computer storage media (ROM), an erasable programmable read-only computer storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only computer storage media (CD-ROM), an optical computer storage media piece, a magnetic computer storage media piece, or any suitable combination of the foregoing.
The program product for data entry of embodiments of the present disclosure may employ a portable compact disc read-only computer storage medium (CD-ROM) and include program code, and may be run on an electronic device. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., through the internet using an internet service provider).
It should be noted that although several modules of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk computer storage media, CD-ROMs, optical computer storage media, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable computer storage medium produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications can be made in the present disclosure without departing from the spirit and scope of the disclosure. Thus, if such modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include such modifications and variations as well.

Claims (10)

1. An electronic device, comprising a processor and a display unit, wherein:
the processor configured to:
continuously acquiring a pressing force value of a user after receiving a data input request sent by the user;
for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining intermediate input data corresponding to the pressing force value based on the pressing force value;
when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force value as target data required to be input by the user;
the display unit is configured to display the intermediate input data and the target data.
2. The electronic device according to claim 1, wherein the processor, in performing the determining of the intermediate input data corresponding to the pressing force value based on the pressing force value, is specifically configured to:
determining a first data type corresponding to the data entry request; wherein the first data type is used for representing the name of data;
determining the intermediate input data based on the pressing force values and data limit values corresponding to the first data type, wherein the data limit values include a target data maximum value, a target data minimum value, and a pressing force maximum value.
3. The electronic device according to claim 2, wherein the processor performs the determining of the intermediate input data based on the pressing force value and the data limit value corresponding to the first data type, in particular configured to:
subtracting the target data maximum value and the target data minimum value to obtain a first intermediate value; and the number of the first and second electrodes,
multiplying the first intermediate value by the pressing force value to obtain a second intermediate value;
and dividing the maximum pressing force degree value by the second intermediate value to obtain the intermediate input data.
4. The electronic device according to claim 1, wherein the processing performs the determining of intermediate input data corresponding to the pressing force value based on the pressing force value, in particular configured to:
determining a data growth rate based on the pressing force value;
determining a data increasing value by using the data increasing speed and a pressing time length corresponding to the pressing force value, wherein the pressing time length is timed from the acquisition of the pressing force value different from the last pressing force value;
and obtaining the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value.
5. The electronic device of claim 4, wherein the processor performs the determining a data growth rate based on the pressing force value, in particular configured to:
determining a first increase value by using a preset increase value and the pressing force value; and the number of the first and second electrodes,
and obtaining the data growth speed based on the first growth value and a preset growth index.
6. The electronic device according to claim 5, wherein the processor performs the determining a first increase value using a preset increase value and the pressing force value, in particular configured to:
adding the preset increasing value and the pressing force value to obtain a first increasing value;
obtaining the data growth rate based on the first growth value and a preset growth exponent includes:
and performing power operation on the first growth value by using a preset growth exponent to obtain the data growth speed.
7. The electronic device of claim 4, wherein the processor performs the determining of the data growth value using the data growth rate and the pressing duration corresponding to the pressing magnitude, and is specifically configured to:
multiplying the data growth speed by the pressing duration to obtain a data growth value;
the obtaining of the intermediate input data through the data growth value and the intermediate input data determined based on the last pressing force value includes:
and adding the data increment value and the intermediate input data determined based on the last pressing degree to obtain the intermediate input data.
8. A method of data entry, the method comprising:
continuously acquiring a pressing force value of a user after receiving a data input request sent by the user;
for any one acquired pressing force value, if the pressing force value is determined to be larger than a specified threshold value, determining intermediate input data corresponding to the pressing force based on the pressing force value, and displaying the intermediate input data;
and when the acquired pressing force value of the user is the designated threshold, determining intermediate input data obtained based on the last pressing force value of the pressing force values as target data required to be input by the user.
9. The method of claim 8, wherein determining intermediate input data corresponding to the compression force values based on the compression force values comprises:
determining a first data type corresponding to the data entry request; wherein the first data type is used for representing the name of data;
determining the intermediate input data based on the pressing force values and data limit values corresponding to the first data type, wherein the data limit values include a target data maximum value, a target data minimum value, and a pressing force maximum value.
10. The method of claim 9, wherein determining the intermediate input data based on the compression magnitude values and the data limit values corresponding to the first data type comprises:
subtracting the target data maximum value and the target data minimum value to obtain a first intermediate value; and the number of the first and second electrodes,
multiplying the first intermediate value by the pressing force value to obtain a second intermediate value;
and dividing the maximum pressing force degree value by the second intermediate value to obtain the intermediate input data.
CN202110828640.1A 2021-07-22 2021-07-22 Data input method and electronic equipment Pending CN113552982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110828640.1A CN113552982A (en) 2021-07-22 2021-07-22 Data input method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110828640.1A CN113552982A (en) 2021-07-22 2021-07-22 Data input method and electronic equipment

Publications (1)

Publication Number Publication Date
CN113552982A true CN113552982A (en) 2021-10-26

Family

ID=78103996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110828640.1A Pending CN113552982A (en) 2021-07-22 2021-07-22 Data input method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113552982A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11259213A (en) * 1998-03-12 1999-09-24 Tanita Corp Numeral input method and bodily fat meter
EP1538428A1 (en) * 2003-12-02 2005-06-08 Seb S.A. Weighing apparatus with an integrated keyboard for an alphanumeric input
CN101593077A (en) * 2004-12-21 2009-12-02 微软公司 Pressure sensitive controls
CN105511784A (en) * 2015-12-02 2016-04-20 北京新美互通科技有限公司 Information input method, device and mobile terminal based on pressure detection
CN105630396A (en) * 2016-01-29 2016-06-01 网易(杭州)网络有限公司 Game numerical value input method and game numerical value input device for mobile terminal
CN106775430A (en) * 2017-03-30 2017-05-31 维沃移动通信有限公司 The characters input method and mobile terminal of a kind of mobile terminal
CN107037888A (en) * 2016-02-03 2017-08-11 北京搜狗科技发展有限公司 A kind of input method, device and the device for input
CN110413315A (en) * 2019-07-29 2019-11-05 维沃移动通信有限公司 A kind of application control method and electronic equipment
CN111352566A (en) * 2020-02-27 2020-06-30 维沃移动通信有限公司 Parameter adjusting method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11259213A (en) * 1998-03-12 1999-09-24 Tanita Corp Numeral input method and bodily fat meter
EP1538428A1 (en) * 2003-12-02 2005-06-08 Seb S.A. Weighing apparatus with an integrated keyboard for an alphanumeric input
CN101593077A (en) * 2004-12-21 2009-12-02 微软公司 Pressure sensitive controls
CN105511784A (en) * 2015-12-02 2016-04-20 北京新美互通科技有限公司 Information input method, device and mobile terminal based on pressure detection
CN105630396A (en) * 2016-01-29 2016-06-01 网易(杭州)网络有限公司 Game numerical value input method and game numerical value input device for mobile terminal
CN107037888A (en) * 2016-02-03 2017-08-11 北京搜狗科技发展有限公司 A kind of input method, device and the device for input
CN106775430A (en) * 2017-03-30 2017-05-31 维沃移动通信有限公司 The characters input method and mobile terminal of a kind of mobile terminal
CN110413315A (en) * 2019-07-29 2019-11-05 维沃移动通信有限公司 A kind of application control method and electronic equipment
CN111352566A (en) * 2020-02-27 2020-06-30 维沃移动通信有限公司 Parameter adjusting method and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张月红;: "一种对抗"肩窥"的身份认证技术研究与实践", 软件工程, no. 04, 5 April 2020 (2020-04-05) *
王丽滨;赵云鹏;: "基于STM32科学计算器系统的设计与实现", 卫星电视与宽带多媒体, no. 07, 5 April 2020 (2020-04-05) *

Similar Documents

Publication Publication Date Title
US9344838B2 (en) Data transmission method and apparatus, and terminal with touch screen
CN104778055B (en) Method and device for displaying progress bar
WO2014032611A1 (en) Desktop management method and device
CN106777009B (en) Intelligent equipment and task plan execution control method and device
CN105302452B (en) Operation method and device based on gesture interaction
CN106250122B (en) Information prompting method and device
CN109121008B (en) Video preview method, device, terminal and storage medium
US20150212693A1 (en) Interaction method and apparatus for listing data on mobile terminal
CN107104763B (en) Method and device for setting timeout retransmission duration
WO2014194759A1 (en) A method, apparatus, and system for controlling voice data transmission
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
CN105245432B (en) Unread message counting method and device and terminal
CN110798511B (en) Method for predicting number of daily active users of target APP and computer equipment
CN106502833B (en) Data backup method and device
CN106055598B (en) Information display method and device
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
WO2020001190A1 (en) Application program interface display method and device, readable storage medium, and mobile terminal
CN106294087B (en) Statistical method and device for operation frequency of business execution operation
CN107622234B (en) Method and device for displaying budding face gift
CN110277097B (en) Data processing method and related equipment
WO2020010995A1 (en) Icon arrangement method and apparatus, and readable storage medium and mobile terminal
CN106777383B (en) File sorting method and intelligent terminal
CN113552982A (en) Data input method and electronic equipment
CN104461485A (en) Window coloring method and user equipment
CN106657278B (en) Data transmission method and device and computer 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