Summary of the invention
The embodiment of the present invention provides the method and terminal of a kind of response region for adjusting icon, to click icon in userWhen, improve the accuracy rate that user clicks.
On the one hand, a kind of method of response region for adjusting icon is provided, which comprises
User is obtained to the touch information of icon, the touch information includes contact position coordinate and touch area;
Calculate the positioning coordinate of the contact position coordinate;
The icon is set on the basis of the positioning coordinate of the contact position coordinate and by range of the touch areaTouch-responsive areas.
Preferably, the positioning coordinate of the contact position coordinate is the average coordinates of the contact position coordinate;
Wherein, if the touch information is the information once touched, the average coordinates are a touch informationIn contact position coordinate average coordinates;If the touch information be more than or equal to the information touched twice, it is described flatEqual coordinate is the average coordinates for being greater than or equal to contact position coordinate in touch information twice.
Preferably, when the positioning coordinate for calculating the contact position coordinate, unusual contact position coordinate is rejected.
Preferably, the touch area is to merge touch area;Wherein, if the touch information is the letter once touchedBreath, then the touch area that merges is the touch area in a touch information;If the touch information be more than or equal toThe information touched twice, then the touch area that merges is described more than or equal to all touch areas in touch information twiceUnion.
Preferably, it is described using the touch area as range include: judge the touch area whether preset range itIt is interior, if so, using whole touch areas as the range;Otherwise, with the intersection of the touch area and the preset rangeAs the range.
Preferably, described includes: with the contact position coordinate on the basis of the positioning coordinate of the contact position coordinatePositioning coordinate centered on.
On the other hand, a kind of terminal is provided, comprising:
Acquiring unit, for obtaining user to the touch information of icon, the touch information include contact position coordinate andTouch area;
Computing unit, for calculating the positioning coordinate of the contact position coordinate;
Setting unit, on the basis of the positioning coordinate of the contact position coordinate and using the touch area as rangeThe touch-responsive areas of the icon is set.
Preferably, when the positioning coordinate for calculating the contact position coordinate, unusual contact position coordinate is rejected.
Preferably, the touch area is to merge touch area;Wherein, if the touch information is the letter once touchedBreath, then the touch area that merges is the touch area in a touch information;If the touch information be more than or equal toThe information touched twice, then the touch area that merges is described more than or equal to all touch areas in touch information twiceUnion.
Preferably, it is described using the touch area as range include: judge the touch area whether preset range itIt is interior, if so, using whole touch areas as the range;Otherwise, with the intersection of the touch area and the preset rangeAs the range.
The method and terminal for implementing a kind of response region for adjusting icon provided in an embodiment of the present invention have following beneficialEffect:
By obtaining user to the touch information of icon, which includes contact position coordinate and touch area, meterThe positioning coordinate for calculating contact position coordinate is arranged on the basis of the positioning coordinate of contact position coordinate and by range of touch areaThe touch-responsive areas of icon can improve the accuracy rate that user clicks, reduce the behaviour repeatedly of user when user clicks iconMake.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow diagram of the method for response region for adjusting icon provided in an embodiment of the present invention, the partyMethod the following steps are included:
Step S101 obtains user to the touch information of icon, and the touch information includes contact position coordinate and touchRegion.
Types of applications program is installed, application program is identified with icon, and user needs to start some application in terminalProgram needs to touch icon by finger or other articles such as stylus.Certainly, which is not limited to the figure of application programMark, can be any icon that can be touched at the terminal.
User touches the icon in terminal by finger or other articles, and terminal obtains user to the touch information of icon,The touch information includes contact position coordinate and touch area.User is contacted by finger or article with the touch screen of terminal,One or more contact position coordinates, region, that is, touch area that multiple contact position coordinate is constituted are had on touch screen.TouchingRegion is touched, in an embodiment of the invention, it can be understood as the profile that finger is contacted with touch screen.Such as the exemplary icon of Fig. 2Touch area schematic diagram respectively using 1, using 2 and apply 3 there are three application icon 22 on 21 current screen of terminal.User's finger touching application 1, finger and touch screen have multiple contacts, and each contact corresponds to contact position coordinate 23, this is multipleContact position coordinate 23 constitutes a profile, i.e. touch area 24.
Step S102 calculates the positioning coordinate of the contact position coordinate.
The present embodiment according to user itself to the touch-responsive areas of the touch information of icon setting icon, rather than according toThe touch-responsive areas of the default setting of terminal.When the touch-responsive areas of icon is arranged, it is necessary first to calculate contact positionThe positioning coordinate of coordinate, the positioning coordinate of the contact position coordinate are the average coordinates of contact position coordinate.
Wherein, if touch information is the information once touched, average coordinates are the contact position in a touch informationThe average coordinates of coordinate;If touch information is more than or equal to the information touched twice, average coordinates are more than or equal to twoThe average coordinates of contact position coordinate in secondary touch information.I.e., it is possible to the one or many touch informations of user be acquired, by multipleTouch information is acquired, the positioning coordinate of contact position coordinate can be made more acurrate.Wherein, the contact position in a touch informationSetting coordinate may include multiple coordinate points.
When calculating the positioning coordinate of contact position coordinate, need to reject unusual contact position coordinate.Unusual contact position is satMark namely not within a preset range or some default exclusions coordinate, these unusual contact position coordinates influence meterThe accuracy of the positioning coordinate of the contact position coordinate of calculation.For example, it is some obviously covered it is other except current iconThe contact position coordinate of icon is considered unusual contact position coordinate.
In another embodiment of the present invention, positioning coordinate needs not be average coordinates, can be randomly selected seatMark, or it is also possible to the centre coordinate of one or many touch areas.
Step S103 is arranged on the basis of the positioning coordinate of the contact position coordinate and by range of the touch areaThe touch-responsive areas of the icon.
Touch area is to merge touch area;Wherein, if the touch information is the information once touched, the mergingTouch area is the touch area in a touch information;If the touch information is more than or equal to the letter touched twiceBreath, then the touch area that merges is the union for being greater than or equal to all touch areas in touch information twice.
It include: centered on the positioning coordinate of contact position coordinate on the basis of the positioning coordinate of contact position coordinate.ThisIn center can be geometric center etc., may not necessarily be very accurate, that is to say, that can be an estimated value or it is approximate inThe heart.
It include: to judge the touch area whether within preset range using touch area as range, if so, with wholeTouch area is as the range, that is, above-mentioned merging touch area;Otherwise, Petting Area (is merged with the touch areaDomain) with the intersection of the preset range as the range.The preset range is that a region is arranged in advance, can be used toLimitation merges the size of touch area, avoids its excessive, in general, can be empirical value or statistical value.
The icon is set on the basis of the positioning coordinate of the contact position coordinate and by range of the touch areaTouch-responsive areas, that is, determine which coordinate points to delimit touch area as touch-responsive areas in.
The user does not have the touch area of icon it can be seen from the schematic diagram of the touch area of the exemplary icon of Fig. 2Positioned at application 1 icon within the scope of, therefore can reset using 1 icon touch-responsive areas, specifically calculateThe positioning coordinate of contact position coordinate is arranged on the basis of the positioning coordinate of contact position coordinate and as range using touch area and is schemedTarget touch-responsive areas, from figure 2 it can be seen that needing to lower touch-responsive areas.
After according to touch information of the user itself to icon, the touch-responsive areas of icon is set, user or rootIcon is touched according to the habit of itself, then the likelihood ratio that touch area is located at the touch-responsive areas of setting is located at terminal default settingTouch-responsive areas probability it is bigger, improve user click icon accuracy rate.
The method of the response region of a kind of adjustment icon provided according to embodiments of the present invention, by obtaining user to iconTouch information, which includes contact position coordinate and touch area, calculate the positioning coordinate of contact position coordinate, withContact position coordinate positioning coordinate on the basis of and using touch area be range setting icon touch-responsive areas, can withWhen icon is clicked at family, the accuracy rate that user clicks is improved, the operation repeatedly of user is reduced.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series ofCombination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described becauseAccording to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also knowIt knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the inventionIt is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodimentPoint, reference can be made to the related descriptions of other embodiments.
Fig. 2 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention, which includes:
Acquiring unit 11, for obtaining user to the touch information of icon, the touch information includes contact position coordinateAnd touch area.
Types of applications program is installed, application program is identified with icon, and user needs to start some application in terminalProgram needs to touch icon by finger or other articles such as stylus.Certainly, which is not limited to the figure of application programMark, can be any icon that can be touched at the terminal.
User touches the icon in terminal by finger or other articles, and acquiring unit 11 obtains touch of the user to iconInformation, the touch information include contact position coordinate and touch area.User is connect by the touch screen of finger or article and terminalTouching has one or more contact position coordinates, region, that is, Petting Area that multiple contact position coordinate is constituted on the touchscreenDomain.Touch area, in an embodiment of the invention, it can be understood as the profile that finger is contacted with touch screen.As Fig. 2 is exemplaryThe touch area schematic diagram of icon respectively using 1, using 2 and is answered there are three application icon 22 on 21 current screen of terminalWith 3.User's finger touching application 1, finger and touch screen have multiple contacts, and each contact corresponds to contact position coordinate 23, thisMultiple contact position coordinates 23 constitute a profile, i.e. touch area 24.
Computing unit 12, for calculating the positioning coordinate of the contact position coordinate.
The present embodiment according to user itself to the touch-responsive areas of the touch information of icon setting icon, rather than according toThe touch-responsive areas of the default setting of terminal.When the touch-responsive areas of icon is arranged, it is necessary first to which computing unit 12 is countedThe positioning coordinate of contact position coordinate is calculated, the positioning coordinate of the contact position coordinate is the average coordinates of contact position coordinate.
Wherein, if touch information is the information once touched, average coordinates are the contact position in a touch informationThe average coordinates of coordinate;If touch information is more than or equal to the information touched twice, average coordinates are more than or equal to twoThe average coordinates of contact position coordinate in secondary touch information.The one or many touch informations of user can be acquired, by multipleTouch information is acquired, the positioning coordinate of contact position coordinate can be made more acurrate.Wherein, the contact position in a touch informationSetting coordinate may include multiple coordinate points.
When calculating the positioning coordinate of contact position coordinate, need to reject unusual contact position coordinate.Unusual contact position is satMark namely not within a preset range or some default exclusions coordinate, these unusual contact position coordinates influence meterThe accuracy of the positioning coordinate of the contact position coordinate of calculation.For example, it is some obviously covered it is other except current iconThe contact position coordinate of icon is considered unusual contact position coordinate.
In another embodiment of the present invention, positioning coordinate needs not be average coordinates, can be randomly selected seatMark, or it is also possible to the centre coordinate of one or many touch areas.
Setting unit 13, on the basis of the positioning coordinate of the contact position coordinate and using the touch area as modelEnclose the touch-responsive areas that the icon is set.
Touch area is to merge touch area;Wherein, if the touch information is the information once touched, the mergingTouch area is the touch area in a touch information;If the touch information is more than or equal to the letter touched twiceBreath, then the touch area that merges is the union for being greater than or equal to all touch areas in touch information twice.
It include: centered on the positioning coordinate of contact position coordinate on the basis of the positioning coordinate of contact position coordinate.ThisIn center can be geometric center etc., may not necessarily be very accurate, that is to say, that can be an estimated value or it is approximate inThe heart.
It include: to judge the touch area whether within preset range using touch area as range, if so, with wholeTouch area is as the range, that is, above-mentioned merging touch area;Otherwise, Petting Area (is merged with the touch areaDomain) with the intersection of the preset range as the range.The preset range is that a region is arranged in advance, can be used toLimitation merges the size of touch area, avoids its excessive, in general, can be empirical value or statistical value.
The icon is set on the basis of the positioning coordinate of the contact position coordinate and by range of the touch areaTouch-responsive areas, that is, determine which coordinate points to delimit touch area as touch-responsive areas in.
The user does not have the touch area of icon it can be seen from the schematic diagram of the touch area of the exemplary icon of Fig. 2Positioned at application 1 icon within the scope of, therefore can reset using 1 icon touch-responsive areas, specifically calculateThe positioning coordinate of contact position coordinate is arranged on the basis of the positioning coordinate of contact position coordinate and as range using touch area and is schemedTarget touch-responsive areas, from figure 2 it can be seen that needing to lower touch-responsive areas.
After setting unit 13 is provided with the touch-responsive areas of icon is arranged according to touch information of the user itself to icon,User touches icon according further to the habit of itself, then the likelihood ratio that touch area is located at the touch-responsive areas of setting is located at eventuallyIt holds the probability of the touch-responsive areas of default setting bigger, improves the accuracy rate that user clicks icon.
The method of the response region of a kind of adjustment icon provided according to embodiments of the present invention, by obtaining user to iconTouch information, which includes contact position coordinate and touch area, calculate the positioning coordinate of contact position coordinate, withContact position coordinate positioning coordinate on the basis of and using touch area be range setting icon touch-responsive areas, can withWhen icon is clicked at family, the accuracy rate that user clicks is improved, the operation repeatedly of user is reduced.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be withIt is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned functionStorage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.MeterCalculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to anotherAny medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.WithFor this but be not limited to: computer-readable medium may include random access memory (Random Access Memory,RAM), read-only memory (Read-Only Memory, ROM), Electrically Erasable Programmable Read-Only Memory (ElectricallyErasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used inCarry or storage have instruction or data structure form desired program code and can by computer access any otherMedium.Furthermore.Any connection appropriate can become computer-readable medium.For example, if software is using coaxial cable, lightFine optical cable, twisted pair, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio andThe wireless technology of microwave etc is transmitted from website, server or other remote sources, then coaxial cable, optical fiber cable, doubleThe wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc includes in the fixing of affiliated medium.Such as this hairUsed in bright, disk (Disk) and dish (disc) include compress optical disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD),Floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical replicate data.Group aboveConjunction should also be as including within the protection scope of computer-readable medium.
In short, being not intended to limit of the invention the foregoing is merely the preferred embodiment of technical solution of the present inventionProtection scope.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included inWithin protection scope of the present invention.