CN108446067B - Touch display terminal, virtual key position adjusting method thereof and storage medium - Google Patents

Touch display terminal, virtual key position adjusting method thereof and storage medium Download PDF

Info

Publication number
CN108446067B
CN108446067B CN201810222408.1A CN201810222408A CN108446067B CN 108446067 B CN108446067 B CN 108446067B CN 201810222408 A CN201810222408 A CN 201810222408A CN 108446067 B CN108446067 B CN 108446067B
Authority
CN
China
Prior art keywords
virtual
touch
virtual key
dot matrix
display terminal
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
CN201810222408.1A
Other languages
Chinese (zh)
Other versions
CN108446067A (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.)
Shanghai Taikun Pharmaceutical Technology Co.,Ltd.
Original Assignee
Shanghai Taikun Pharmaceutical Technology 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 Shanghai Taikun Pharmaceutical Technology Co ltd filed Critical Shanghai Taikun Pharmaceutical Technology Co ltd
Priority to CN201810222408.1A priority Critical patent/CN108446067B/en
Publication of CN108446067A publication Critical patent/CN108446067A/en
Application granted granted Critical
Publication of CN108446067B publication Critical patent/CN108446067B/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/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
    • 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

Landscapes

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

Abstract

The invention discloses a touch display terminal, a virtual key position adjusting method thereof and a storage medium, wherein the method comprises the following steps: generating a virtual dot matrix image corresponding to a touch screen of the touch display terminal; counting the number of times that positions, corresponding to all virtual points, on the touch screen in the virtual dot matrix image are touched; taking the graph of the virtual key as a mask, traversing each area of the virtual dot matrix type image, and matching an area with the minimum sum of touched times recorded by all the covered virtual points; and adjusting the virtual key to the display position of the touch screen corresponding to the area. By implementing the embodiment of the invention, the problem of shielding caused by superposition of the virtual key of the touch display terminal and the touch operation area or the touch operation key carried by the display interface can be solved.

Description

Touch display terminal, virtual key position adjusting method thereof and storage medium
Technical Field
The invention relates to the technical field of touch display, in particular to a touch display terminal, a virtual key position adjusting method thereof and a storage medium.
Background
At present, the screen occupation ratio of the mobile phone is higher and higher, and the space for setting the entity keys is smaller and smaller. Therefore, most mobile phones use virtual keys instead of physical function keys.
Such as ASSISITIVE TOUCH virtual keys of IPHONE phones. ASSISITIVE TOUCH can be dragged freely by the user to place them in different positions for convenient operation.
However, in many usage scenarios, ASSISITIVE TOUCH often blocks the user's reading view, covering some of the information that the user needs to read; or coincide with some touch operation areas or touch operation buttons carried by the application display interface, the user needs to manually move ASSISITIVE TOUCH to other positions to perform the button operation, which results in inconvenience in user operation.
Chinese patent application D1(CN 106569724A-a method, apparatus and terminal for dynamically setting virtual keys) discloses a method for dynamically setting virtual keys, which includes collecting the times of preset touch operations in the left and right regions of a screen within a preset time period; determining the holding state of the left hand and the right hand of the terminal according to the respectively collected times of the preset touch operation; for the left-hand holding state, adjusting the preset common virtual key setting position to the left side of the screen; for the holding state of the right hand, adjusting the preset common virtual key setting position to the right side of the screen; by adopting the scheme, if the user holds the terminal by the left hand, the preset common virtual key setting position is adjusted to the left side of the screen; if the user holds the terminal by the right hand, adjusting the preset common virtual key setting position to the right side of the screen; the operation of the user is facilitated, the user requirements are better met, and the user experience is improved.
Chinese patent application D2(CN 106406727A-a mobile terminal virtual key position transformation control method and mobile terminal) discloses a mobile terminal virtual key position transformation control method, comprising: A. presetting a virtual key with the highest use frequency as a high-frequency virtual key, and recording at least one left-hand fingerprint and at least one right-hand fingerprint in advance by a fingerprint identification module respectively; B. the fingerprint identification module is used for inputting and identifying a left-hand fingerprint or a right-hand fingerprint; C. and adjusting the display position of the high-frequency virtual key to the handheld direction of the mobile terminal according to the currently input fingerprint. D2, presetting a virtual key with the highest use frequency as a high-frequency virtual key, inputting a left-hand fingerprint and a right-hand fingerprint by the fingerprint identification module, inputting and identifying the left-hand fingerprint or the right-hand fingerprint by the fingerprint identification module, and finally adjusting the preset high-frequency virtual key according to the input fingerprint; the virtual keys arranged on the mobile terminal can change the positions of the high-frequency virtual keys according to the holding direction of the user, and the convenience of one-hand operation of the mobile terminal is improved.
Chinese patent application D3(CN 104978030A-software and method for automatically adjusting a display interface of a mobile phone based on left and right hands) judges whether a user operates with the left hand or the right hand by combining two methods of sliding slope detection and deflection angle detection, so that the distribution positions of icons and virtual keys on a touch screen are adjusted; in addition, the user can set the distribution positions of the icons and the virtual keys on the touch screen during left-hand operation and right-hand operation according to the use habit of the user.
Chinese patent D4(CN 104636043B-a display method and apparatus of virtual keys) discloses a display method of virtual keys, belonging to the technical field of digital input. The method comprises the following steps: recording the coordinates of the clicked position sample of the touch screen in real time; counting the coordinates recorded in the previous time period; analyzing the distribution condition of the position samples according to the statistical coordinates; and displaying the virtual keys to be displayed according to the distribution condition. By adopting the method and the device, the position of the virtual key to be displayed can be automatically adjusted according to the distribution statistics of the position sample of the touch screen clicked by the user in the recent time period, so that the operation of the user is facilitated.
Chinese patent D5(CN 103354581B-a method and system for automatically adjusting a mobile phone control by left and right hands) discloses a method and system for automatically adjusting a mobile phone control by identifying left and right hands, the method comprising the steps of: s1, collecting coordinate data of sliding operation of a user on the touch screen; s2, transmitting the coordinate data of the sliding to an application layer, and calculating the slope of the sliding by the application layer; s3, if the slope in the step S2 is larger than 0, the operation is carried out by the left hand, if the slope is smaller than 0, the operation is carried out by the right hand, and if the slope is close to 0 or infinity, the fact that the user slides the touch screen in the direction close to the vertical direction or the horizontal direction is explained; and S4, adjusting the position of the mobile phone control according to the left hand and the right hand identified in the step S3. According to the invention, the current left-hand operation or right-hand operation of the user is judged and identified directly by counting the sliding track of the touch screen without adding any new device, so that the position of the virtual key is adjusted.
However, none of the technical solutions disclosed in the above five patents (applications) mention the problem that a virtual key independent of a touch operation area carried in a display interface overlaps with some touch operation areas or touch operation buttons carried in the display interface itself to cause occlusion. Nor is a technical solution to solve the technical problem given.
Disclosure of Invention
The invention provides a touch display terminal, a virtual key position adjusting method thereof and a storage medium, which solve the problem of shielding caused by superposition of a virtual key of the touch display terminal and a touch operation area or a touch operation key carried by a display interface.
According to a first aspect of the present invention, the present invention provides a method for adjusting positions of virtual keys of a touch display terminal, including:
generating a virtual dot matrix image corresponding to a touch screen of the touch display terminal;
counting the number of times that positions, corresponding to all virtual points, on the touch screen in the virtual dot matrix image are touched;
taking the graph of the virtual key as a mask, traversing each area of the virtual dot matrix type image, and matching an area with the minimum sum of touched times recorded by all the covered virtual points;
and adjusting the virtual key to the display position of the touch screen corresponding to the area.
In an embodiment, a distance between two adjacent virtual points in the virtual dot matrix image is N times a distance between two adjacent touch points in the touch screen, where N is greater than or equal to 0 and less than or equal to a number of touch points owned by a row or a column of the touch screen.
Preferably, when the number of times that the positions of all the virtual points in the virtual dot matrix image on the touch screen are touched is counted, the number of times of touching for triggering the currently displayed virtual key is excluded.
In an embodiment, the virtual key is a touch key independent of a touch operation area carried in a display interface of the touch display terminal or outside the touch operation key.
In an embodiment, the method further comprises:
and generating a reference image based on the virtual dot matrix image and the counted number of times, wherein the pixel positions of the virtual points of the reference image corresponding to the virtual dot matrix image display different gray values according to the counted number of times.
In an embodiment, the method further comprises:
receiving an instruction which is input to a touch display terminal and indicates that the reference image is displayed, and displaying the reference image under the triggering of the instruction;
receiving an instruction which is input into a touch display terminal and represents that the virtual key is dragged, and displaying the virtual key to a dragged position under the triggering of the instruction;
recording the final position of the released virtual key after being dragged, and fixing the virtual key at the position.
In an embodiment, the method further comprises:
after receiving an instruction which is input into the touch display terminal and indicates that the virtual key is pressed for a long time, displaying the reference image;
and receiving and responding to an instruction which is input into the touch display terminal and represents that the virtual key is dragged, recording the final position of the virtual key released after dragging, and fixing the virtual key at the position.
According to a second aspect of the present invention, the present invention further provides a touch display terminal, including:
the virtual dot matrix image generation module is used for generating a virtual dot matrix image corresponding to a touch screen of the touch display terminal;
the counting module is used for counting the number of times that positions, corresponding to all the virtual points, on the touch screen are touched in the virtual dot matrix image;
the matching module is used for traversing each area of the virtual dot matrix type image by taking the graph of the virtual key as a mask to match an area with the minimum sum of touched times recorded by all the covered virtual points;
and the position adjusting module is used for adjusting the virtual keys to the display positions of the touch screen corresponding to the areas.
In an embodiment, a distance between two adjacent virtual points in the virtual dot matrix image is N times a distance between two adjacent touch points in the touch screen, where N is greater than or equal to 0 and less than or equal to a number of touch points owned by a row or a column of the touch screen.
Preferably, the counting module is configured to exclude the number of times of touching the currently displayed virtual key when the positions of all the virtual points in the virtual dot matrix image on the touch screen are touched.
In an embodiment, the virtual key is a touch key independent of a touch operation area carried in a display interface of the touch display terminal or outside the touch operation key.
In an embodiment, the touch display terminal further includes a reference image generation module, configured to generate a reference image based on the virtual dot matrix image and the counted number of times, where pixel positions of virtual points corresponding to the reference image and the virtual dot matrix image display different gray values according to the counted number of times.
Further, the touch display terminal further includes:
the reference image display module is used for receiving an instruction which is input to the touch display terminal and indicates that the reference image is displayed, and displaying the reference image under the triggering of the instruction;
the dragging response module is used for receiving an instruction which is input to the touch display terminal and represents that the virtual key is dragged, and displaying the virtual key to a dragged position under the triggering of the instruction;
and the fixed position confirmation module is used for recording the final position of the released virtual key after being dragged and fixing the virtual key at the position.
In one embodiment, the reference image display module is configured to display the reference image after receiving an instruction indicating that the virtual key is pressed for a long time, the instruction being input to the touch display terminal;
the dragging response module and the fixed position confirmation module are used for receiving and responding to an instruction which is input by the touch display terminal and used for representing dragging of the virtual key, recording the final position of the dragged virtual key and then releasing the virtual key, and fixing the virtual key at the position.
According to a third aspect of the present invention, the present invention further provides a touch display terminal, including:
a memory and a processor coupled with the memory; the memory is configured to store instructions, and the processor is configured to execute the instructions;
when executing the instruction, the processor executes the steps of the method for adjusting the position of the virtual key of the touch display terminal according to the first aspect of the present invention.
According to a fourth aspect of the present invention, the present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the method for adjusting the position of the virtual key of the touch display terminal according to the first aspect of the present invention.
By implementing the embodiment of the invention, the problem of shielding caused by superposition of the virtual key of the touch display terminal and the touch operation area or the touch operation key carried by the display interface can be solved.
Drawings
Fig. 1 is a schematic structural diagram of a touch display terminal according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a method for adjusting positions of virtual keys of a touch display terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram (or a schematic diagram of a reference image) of step 2.3 in an embodiment of the invention.
FIG. 4 is a schematic flow chart illustrating a method for adjusting positions of virtual keys of a touch display terminal according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a module of a touch display terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a module of a touch display terminal according to another embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. .
It should be noted that the touch display terminal of the present invention may be a mobile terminal or other electronic terminals having a touch display screen. The touch display terminal may be implemented in various forms. For example, the touch display terminal described in the embodiments of the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. However, those skilled in the art will appreciate that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to including elements particularly for moving purposes.
Fig. 1 is a schematic structural diagram of a touch display terminal (e.g., a mobile phone) according to an embodiment of the invention. 101 is a touch screen of the touch display terminal, and 102 is a virtual key displayed on the touch screen. It should be noted that the virtual key in the embodiments of the present invention is a touch key independent of a touch operation area carried in a display interface of the touch display terminal or other touch keys. Moreover, the positions of the touch keys can be displayed in different areas on the touch screen according to specific settings.
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The invention provides a position adjustment method for virtual keys of a touch display terminal, and please refer to fig. 2, wherein the method comprises the following steps:
step 2.1: and generating a virtual dot matrix image corresponding to a touch screen of the touch display terminal. For convenience of calculation, the size of the virtual dot matrix image may be consistent with the size of the touch screen.
Specifically, the distance between two adjacent virtual points in the virtual dot matrix image is N times the distance between two adjacent touch points in the touch screen, where N is greater than or equal to 0 and less than or equal to the number of touch points owned by a row or a column of the touch screen.
In this embodiment, a distance between two adjacent virtual points in the virtual dot matrix image may be 1 time of a distance between two adjacent touch points in the touch screen, that is, the distance between two adjacent virtual points in the virtual dot matrix image is equal to the distance between two adjacent touch points in the touch screen. In other embodiments, the distance between two adjacent virtual points in the virtual dot matrix image can be increased or decreased based on the distance.
It should be noted that the virtual dot matrix image referred to in this embodiment is not an image that needs to be actually displayed, and is understood to be not a real image, and belongs to a processing mechanism inside the system.
Of course, for the virtual dot matrix image, the distance between two adjacent virtual points may also be set by the user, and at this time, the virtual dot matrix image may also be displayed to the user. Therefore, the virtual dot matrix image may be an image that needs to be actually displayed in other embodiments.
Step 2.2: and counting the number of times that the positions of all the virtual points in the virtual dot matrix image on the touch screen are touched. In this step, the touch operation of the user on the touch screen is detected, and when the user touches the touch screen, as long as a certain virtual point in the virtual dot matrix image is "touched", the number of times of being touched of the virtual point is counted and added by 1.
Preferably, in order to make the counted number of times of touching more accurate, in this embodiment, when counting the number of times that positions, corresponding to all virtual points, on the touch screen in the virtual dot matrix image are touched, the number of times of touching for triggering the currently displayed virtual key is excluded.
Step 2.3: and taking the graph of the virtual key as a mask, traversing each area of the virtual dot matrix image, and matching an area with the minimum sum of the touched times recorded by all the covered virtual points. Through this matching process, the area on the touch screen that is touched by the user the least number of times can be derived. In different embodiments, the shape of the virtual keys may be different, such as circular, square, oval, and the like.
As shown in fig. 3, it simply shows that the area on the touch screen touched by the user the least times is obtained by masking the pattern of the virtual keys in step 2.3. 301 is a display area of the touch display screen, 302 is a graphic mask of the virtual key, and 303 shows a sum of touched times of each virtual point in the virtual dot matrix image.
Step 2.4: and adjusting the virtual key to the display position of the touch screen corresponding to the area. As shown in fig. 3, in step 2.3, the area with the smallest sum of the touched times recorded by all the virtual points covered by the virtual key pattern mask, i.e. the position shown by 302, is obtained. In this case, in step 2.4, the virtual key can be automatically adjusted to the display position corresponding to the area.
Of course, if there are more than one area with the smallest sum of the touched times, one area can be randomly selected as the position to which the virtual key needs to be finally adjusted. Or, the user can select the reminding message by the mode of displaying the reminding message.
It should be noted that the automatic adjustment of the virtual key position may be performed periodically, for example, once every preset time (for example, 5 minutes) during the time period of the operation and use of the touch display terminal by the user. Correspondingly, in step 2.2, when the number of times of being touched is counted, the number of times of being touched in a preset time period before the current time point may be counted.
In another embodiment, as shown in fig. 4, the method for adjusting the position of the virtual key of the touch display terminal further includes the following steps:
step 4.1: and generating a reference image based on the virtual dot matrix image and the counted number of times, wherein the pixel positions of the virtual points corresponding to the virtual dot matrix image in the reference image display different gray values according to the counted number of times, and the larger the number of times the virtual points are touched, the larger the displayed gray value is.
Please refer to fig. 3, which is a type of a reference image, 303, which is a virtual point displaying different gray values according to the counted number of times.
Of course, it is mentioned above that the virtual dot matrix image may also be an image that is actually required to be displayed to the user, and in only that case, the virtual dot matrix image may be directly used as the reference image. Both concepts are the same.
Step 4.2: and receiving an instruction which is input to the touch display terminal and represents that the reference image is displayed, and displaying the reference image under the triggering of the instruction. The instruction indicating to display the reference image may be generated after the user opens the position setting function of the virtual key on the setting interface of the touch display terminal. The instruction may also indicate that the virtual key is set. Specifically, at this time, the reference image may be displayed as a background image of the touch screen, so that the user may refer to the reference image when setting the virtual key position.
Step 4.3: and receiving an instruction which is input into the touch display terminal and represents dragging of the virtual key, and displaying the virtual key to a dragged position under the triggering of the instruction. Specifically, the instruction may be generated after detecting that the user presses the virtual key for a long time.
Step 4.4: and recording the final position of the released virtual key after the virtual key is dragged, and fixing the virtual key at the position.
Further, the steps 4.3-4.4 can be repeated for a plurality of times, and after the virtual key dragged by the user is released for the first time, the user can further press the dragged virtual key for a long time again to reset the position of the virtual key. When the user exits the virtual key position setting interface of the touch display terminal, the last release position can be fixed as the display position of the virtual key, and in this setting mode, the automatic position adjustment function of steps 2.3 and 2.4 may not be executed. Of course, the two virtual key position adjustment modes can be selected by the user on the setting interface.
Steps 2.2-2.4 in fig. 4 are the same as those in fig. 2, and are not repeated here.
Referring to fig. 5, based on the method for adjusting the position of the virtual key of the touch display terminal provided in the embodiment of the present invention, the present invention further provides a touch display terminal, which includes a virtual dot matrix image generation module 501, a statistics module 502, a matching module 503, and a position adjustment module 504.
The virtual dot matrix image generating module 501 is configured to generate a virtual dot matrix image corresponding to a touch screen of a touch display terminal. For convenience of calculation, the size of the virtual dot matrix image may be consistent with the size of the touch screen.
Specifically, the distance between two adjacent virtual points in the virtual dot matrix image is N times the distance between two adjacent touch points in the touch screen, where N is greater than or equal to 0 and less than or equal to the number of touch points owned by a row or a column of the touch screen.
In this embodiment, a distance between two adjacent virtual points in the virtual dot matrix image may be 1 time of a distance between two adjacent touch points in the touch screen, that is, the distance between two adjacent virtual points in the virtual dot matrix image is equal to the distance between two adjacent touch points in the touch screen. In other embodiments, the distance between two adjacent virtual points in the virtual dot matrix image can be increased or decreased based on the distance.
It should be noted that the virtual dot matrix image referred to in this embodiment is not an image that needs to be actually displayed, and is understood to be not a real image, and belongs to a processing mechanism inside the system.
Of course, for the virtual dot matrix image, the distance between two adjacent virtual points may also be set by the user, and at this time, the virtual dot matrix image may also be displayed to the user. Therefore, the virtual dot matrix image may be an image that needs to be actually displayed in other embodiments.
The counting module 502 is configured to count the number of times that positions of all virtual points in the virtual dot matrix image on the touch screen are touched. Specifically, the counting module 502 is configured to detect a touch operation of a user on the touch screen, and count the number of times that a virtual point is touched plus 1 as long as the user "touches" the virtual point in the virtual dot matrix image when the user touches the touch screen.
Preferably, in order to make the counted number of touches more accurate, in this embodiment, the counting module 502 is configured to exclude the number of touches for triggering the currently displayed virtual key when counting the number of times that positions, corresponding to all virtual points, on the touch screen in the virtual dot matrix image are touched.
The matching module 503 is configured to traverse each area of the virtual dot matrix image by using the graph of the virtual key as a mask, and match an area with the smallest sum of the touched times recorded by all the covered virtual points. Through this matching process, the area on the touch screen that is touched by the user the least number of times can be derived. In different embodiments, the shape of the virtual keys may be different, such as circular, square, oval, and the like.
As shown in fig. 3, it is simply shown that the matching module 503 obtains an area on the touch screen, which is touched by the user least times, by masking the pattern of the virtual key. 301 is a display area of the touch display screen, 302 is a graphic mask of the virtual key, and 303 shows a sum of touched times of each virtual point in the virtual dot matrix image.
The position adjusting module 504 is configured to adjust the virtual key to a display position of the touch screen corresponding to the area. As shown in fig. 3, the matching module 503 has obtained the area with the smallest sum of the touched times recorded by all the virtual points covered by the virtual key pattern mask, i.e. the position shown by 302. At this time, the position adjustment module 504 can automatically adjust the virtual key to the display position corresponding to the area.
Of course, if there are more than one area with the smallest sum of the touched times, the position adjustment module 504 may randomly select one area as the position to which the virtual key needs to be finally adjusted. Or, the user can select the reminding message by the mode of displaying the reminding message.
It should be noted that the automatic adjustment of the virtual key position may be performed periodically, for example, once every preset time (for example, 5 minutes) during the time period of the operation and use of the touch display terminal by the user. Correspondingly, when the counting module 502 counts the touched times, the touch times within a preset time period before the current time point may be counted.
In another embodiment, as shown in fig. 6, the touch display terminal further includes a reference image generation module 601. The reference image generating module 601 is configured to generate a reference image based on the virtual dot matrix image and the counted number of times, where pixel positions of virtual points corresponding to the reference image and the virtual dot matrix image display different gray values according to the counted number of times, and the larger the number of times the virtual points are touched, the larger the gray value is displayed.
Please refer to fig. 3, which is a type of a reference image, 303, which is a virtual point displaying different gray values according to the counted number of times.
Of course, it is mentioned above that the virtual dot matrix image may also be an image that is actually required to be displayed to the user, and in only that case, the virtual dot matrix image may be directly used as the reference image. Both concepts are the same.
Further, the touch display terminal further includes a reference image display module 602, a drag response module 603, and a fixed position confirmation module 604.
The reference image display module 602 is configured to receive an instruction, which is input to the touch display terminal and indicates to display a reference image, and display the reference image under the trigger of the instruction. The instruction indicating to display the reference image may be generated after the user opens the position setting function of the virtual key on the setting interface of the touch display terminal. The instruction may also indicate that the virtual key is set. Specifically, at this time, the reference image may be displayed as a background image of the touch screen, so that the user may refer to the reference image when setting the virtual key position.
The dragging response module 603 is configured to receive an instruction indicating dragging of the virtual key, which is input to the touch display terminal, and display the virtual key to a dragged position under the trigger of the instruction. Specifically, the instruction may be generated after detecting that the user presses the virtual key for a long time.
The fixed position confirmation module 604 is configured to record a final position of the virtual key released after being dragged, and fix the virtual key at the position.
Further, the steps executed by the dragging response module 603 and the fixed position confirmation module 604 may be repeated for a plurality of times, and after the virtual key dragged by the user is released for the first time, the user may further press the dragged virtual key for a long time again to reset the position of the virtual key. When the user exits from the virtual key position setting interface of the touch display terminal, the last release position may be fixed as the display position of the virtual key, and in this setting mode, the matching module 503 and the position adjusting module 504 may not perform the step of automatic position adjustment. Of course, the two virtual key position adjustment modes can be selected by the user on the setting interface.
The virtual dot matrix image generation module 501, the statistics module 502, the matching module 503, and the position adjustment module 504 in fig. 6 are the same as those in fig. 5, and are not repeated here.
Based on the position adjustment method for the virtual keys of the touch display terminal provided in the embodiment of the invention, the embodiment provides the touch display terminal, which comprises a memory and a processor coupled with the memory; the memory is used for storing instructions and the processor is used for executing the instructions.
When the processor executes the instruction, the steps of the method for adjusting the position of the virtual key of the touch display terminal provided by the embodiment of the invention are executed.
Illustratively, the instructions stored by the memory may be partitioned into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions. For example, the computer program instructions may be divided into the steps of the picture presentation methods provided by the various method embodiments described above.
Those skilled in the art will appreciate that the above description of a touch display terminal is merely an example and is not intended to be limiting, and that it may include more or less components than those described, or some components may be combined, or different components may include, for example, input/output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the touch display terminal and is connected with various parts of the whole touch display terminal by using various interfaces and lines.
The memory may be used to store computer program instructions and/or modules, and the processor may implement various functions of the touch display terminal by operating or executing the computer program instructions and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The touch display terminal integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, electrical signals, software distribution media, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A position adjusting method for a virtual key of a touch display terminal is characterized by comprising the following steps:
generating a virtual dot matrix image corresponding to a touch screen of the touch display terminal;
counting the number of times that positions, corresponding to all virtual points, on the touch screen in the virtual dot matrix image are touched;
taking the graph of the virtual key as a mask, traversing each area of the virtual dot matrix type image, and matching an area with the minimum sum of touched times recorded by all the covered virtual points;
adjusting the virtual key to a display position of the touch screen corresponding to the area;
the method further comprises the following steps:
generating a reference image based on the virtual dot matrix image and the counted number of times, wherein pixel positions of virtual points of the reference image corresponding to the virtual dot matrix image display different gray values according to the counted number of times;
receiving an instruction which is input to a touch display terminal and indicates that the reference image is displayed, and displaying the reference image under the triggering of the instruction;
receiving an instruction which is input into a touch display terminal and represents that the virtual key is dragged, and displaying the virtual key to a dragged position under the triggering of the instruction;
recording the final position of the released virtual key after being dragged, and fixing the virtual key at the position.
2. The method as claimed in claim 1, wherein the distance between two adjacent virtual points in the virtual dot matrix image is N times the distance between two adjacent touch points in the touch screen, where N is an integer greater than 0 and less than or equal to the number of touch points owned by a column or a row of the touch screen.
3. The method of claim 1, wherein the number of touches for triggering the currently displayed virtual key is excluded when counting the number of times the positions of all the virtual points in the virtual dot matrix image on the touch screen are touched.
4. The method of claim 1, wherein the virtual key is a touch key independent of a touch operation area carried in a display interface of the touch display terminal or other touch keys.
5. The method of claim 1, further comprising:
after receiving an instruction which is input into the touch display terminal and indicates that the virtual key is pressed for a long time, displaying the reference image;
and receiving and responding to an instruction which is input into the touch display terminal and represents that the virtual key is dragged, recording the final position of the virtual key released after dragging, and fixing the virtual key at the position.
6. A touch display terminal, comprising:
the virtual dot matrix image generation module is used for generating a virtual dot matrix image corresponding to a touch screen of the touch display terminal;
the counting module is used for counting the number of times that positions, corresponding to all the virtual points, on the touch screen are touched in the virtual dot matrix image;
the matching module is used for traversing each area of the virtual dot matrix type image by taking the graph of the virtual key as a mask to match an area with the minimum sum of touched times recorded by all the covered virtual points;
the position adjusting module is used for adjusting the virtual keys to display positions of the touch screen corresponding to the areas;
the reference image generation module is used for generating a reference image based on the virtual dot matrix image and the counted number of times, and the pixel positions of the virtual points corresponding to the reference image and the virtual dot matrix image display different gray values according to the counted number of times;
the touch display terminal also comprises a reference image display module, a dragging response module and a fixed position confirmation module;
the reference image display module is used for receiving an instruction which is input to the touch display terminal and represents a display reference image, and displaying the reference image under the triggering of the instruction;
the dragging response module is used for receiving an instruction which is input to the touch display terminal and represents that the virtual key is dragged, and displaying the virtual key to a dragged position under the triggering of the instruction;
the fixed position confirmation module is used for recording the final position of the released virtual key after being dragged and fixing the virtual key at the position.
7. A touch display terminal, comprising:
a memory and a processor coupled with the memory; the memory is configured to store instructions, and the processor is configured to execute the instructions;
wherein the processor executes the instructions to perform the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN201810222408.1A 2018-03-16 2018-03-16 Touch display terminal, virtual key position adjusting method thereof and storage medium Active CN108446067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810222408.1A CN108446067B (en) 2018-03-16 2018-03-16 Touch display terminal, virtual key position adjusting method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810222408.1A CN108446067B (en) 2018-03-16 2018-03-16 Touch display terminal, virtual key position adjusting method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN108446067A CN108446067A (en) 2018-08-24
CN108446067B true CN108446067B (en) 2021-04-06

Family

ID=63194929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810222408.1A Active CN108446067B (en) 2018-03-16 2018-03-16 Touch display terminal, virtual key position adjusting method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN108446067B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109224436B (en) * 2018-08-28 2021-12-14 努比亚技术有限公司 Virtual key definition method based on game interface, terminal and storage medium
CN109782985A (en) * 2018-12-07 2019-05-21 广州市诚毅科技软件开发有限公司 A kind of visual intelligent key control method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049180A (en) * 2012-12-18 2013-04-17 深圳创维-Rgb电子有限公司 Method and device for processing user data at information inquiry terminal as well as terminal
US9589414B2 (en) * 2009-11-16 2017-03-07 Bally Gaming, Inc. Dynamic palpable controls for a gaming device
CN107105090A (en) * 2017-04-13 2017-08-29 上海与德科技有限公司 A kind of control method, device and the mobile terminal of suspension button
CN107678666A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of virtual key display methods, mobile terminal and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9589414B2 (en) * 2009-11-16 2017-03-07 Bally Gaming, Inc. Dynamic palpable controls for a gaming device
CN103049180A (en) * 2012-12-18 2013-04-17 深圳创维-Rgb电子有限公司 Method and device for processing user data at information inquiry terminal as well as terminal
CN107105090A (en) * 2017-04-13 2017-08-29 上海与德科技有限公司 A kind of control method, device and the mobile terminal of suspension button
CN107678666A (en) * 2017-09-14 2018-02-09 维沃移动通信有限公司 A kind of virtual key display methods, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108446067A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
KR102632647B1 (en) Methods and devices, electronic devices, and memory media for detecting face and hand relationships
JP6033502B2 (en) Touch input control method, touch input control device, program, and recording medium
KR102045232B1 (en) Gesture identification methods, devices, programs and recording media
US10346669B2 (en) Fingerprint entry prompting method and device
CN107077239B (en) Method for adjusting photographing focal length of mobile terminal through touch pad and mobile terminal
CN106843692B (en) Touch screen character display method and device
JP6560763B2 (en) Fingerprint recognition method, fingerprint recognition apparatus, program, and recording medium
CN106648063B (en) Gesture recognition method and device
EP3232314A1 (en) Method and device for processing an operation
US11679301B2 (en) Step counting method and apparatus for treadmill
CN104123720B (en) Image method for relocating, device and terminal
CN106612369A (en) Positioning information processing method and device
CN108446067B (en) Touch display terminal, virtual key position adjusting method thereof and storage medium
CN109359582B (en) Information searching method, information searching device and mobile terminal
CN104793879B (en) Object selection method and terminal device on terminal device
CN109873980B (en) Video monitoring method and device and terminal equipment
CN107122149A (en) Display methods, device and the terminal of application program
EP3246805B1 (en) Gesture operation response method and device
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area
CN112346597A (en) Touch processing method and device and electronic equipment
EP3995939A1 (en) Method and device for touch operation, and storage medium
CN111507144A (en) Touch area acquisition method and device, intelligent device and storage medium
CN107168631B (en) Application program closing method and device and terminal electronic equipment
CN114547073A (en) Aggregation query method and device for time series data and storage medium
CN111226190A (en) List switching method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210323

Address after: Part A1 and A2, 1st floor, building 2, 69 Xiya Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Applicant after: Shanghai Taikun Pharmaceutical Technology Co.,Ltd.

Address before: Room 202, building a, phase II, science and technology building, 1057 Nanhai Avenue, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: Xu Peipei

GR01 Patent grant
GR01 Patent grant