1. Technical Field
The present disclosure relates to electronic devices, and particularly, to an electronic device and a method for providing tactile stimulation adapted for the electronic device.
2. Description of Related Art
Many electronic devices, such as mobile phones, tablet computers, and multimedia players, employ touch-sensitive screens as input interfaces. However, a touch-sensitive screen does not provide very good tactile feedback to the user touching on the touch-sensitive screen as a conventional keyboard does which has a greater key-travel distance for a keystroke when operated. In order to improve the user experience, a number of vibrating mechanical members are arranged under the touch-sensitive screen. When sensing a touch operation on the touch-sensitive screen, the vibrating mechanical member at the point of touch begins to vibrate to provide tactile feedback to the user. However, a problem shared by most such electronic devices is that the electronic devices provide the same tactile sensations even when he or she touches different contents displayed on the touch-sensitive screen, which is an unsophisticated and undeveloped arrangement.
The technology of enabling the touch-sensitive screen to provide tactile feedback can be realized by delivering an electrosensory sensation in response to a touch operation on the touch-sensitive screen. However, the development of this kind of tactile feedback is not complete or satisfactory.
Therefore, what is needed is a means to solve the problem described above.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The modules in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding portions throughout the views.
The detecting module 11 detects a touch operation on the screen 10 according to signals from the screen 10.
The touch determining module 12 determines location information of touched locations. Specifically, when a body member touches the screen 10, a number of locations of the screen 10 are simultaneously touched, thus each time when a touch operation is executed, location information of a number of touched locations are determined.
The parameter setting module 13 provides a user interface 130 (see
The applications running on the electronic device 100 may be a game, or an image viewer for example. When the application runs, the electronic device 100 enters a predetermined mode of the running application and then displays an image including at least one object set by the mode on the screen 10. For example, when a racing game is run, the electronic device 100 enters a corresponding scene mode of the racing game and then displays objects including lanes, obstacles, tools to be selected, and awards. When an image viewer is run, the electronic device 100 enters the image viewing mode and then displays images of objects, such as sea, sandy beach, and trees for example.
The image identifying module 14 extracts a sub-image covered by the touched locations from the displayed image if the parameter setting module 13 determines that the electronic device 100 is to provide a tactile stimulation, and then identifies the objects included in the sub-image according to features of the sub-image. In the embodiment, the features of the sub-image may be the texture, the brightness difference, and the outline of the objects included in the sub-image. In the embodiment, the image identifying module 14 detects an outline of each object included in the sub-image according to a brightness difference between the object and the background, and then compares the detected outline of the object with different standard outlines of object models stored in the storage unit 30, to identify the objects included in the sub-image.
The control module 15 determines a number of electrodes 220 corresponding to one touched location according to the first relationship between the locations and the electrodes 220, and determines electrical parameters respectively corresponding to the objects included in the sub-image, according to a second relationship between different objects and electrical parameters stored in the storage unit 30. Then, the control module 15 energizes the determined electrodes 220 via the power supply unit 23 with the determined electrical parameters. Thus, the system 1 brings an improved tactile stimulation to the body member touching the screen 10 by making virtual objects displayed on the screen 10 come alive. In the embodiment, the electrical parameter may be the amplitude, or the wave frequency of the electricity energizing the electrodes 220.
In the alternative embodiment, the image identifying module 14 does not first determine the objects included in the new sub-image after extracting the new sub-image from the displayed image. Instead, after extracting the new sub-image from the displayed image, the image identifying module 14 compares the features of the new sub-image with that of the previous sub-image. If a difference between the features of the new sub-image and the previous sub-image is within a predetermined range, the control module 15 determines that the new sub-image and the previous sub-image have the same objects, and energizes the electrodes 220 corresponding to the new touched locations to the same extent as the electrical parameters applied to the objects included in the previous sub-image. Thus, the processing burden on the processor 40 can be significantly reduced.
In step S61, the detecting module 11 detects a touch operation on the screen 10 according to signals from the screen 10.
In step S62, the touch determining module 12 determines location information of touched locations.
In step S63, the parameter setting module 13 determines whether the electronic device 100 is to provide a tactile stimulation according to a selection by the user through the user interface 130; if yes, the procedure goes to step S64, otherwise, the procedure goes to step S65.
In step S64, the image identifying module 14 extracts a sub-image covered by the touched locations from an image displayed on the screen 10, and identifies objects included in the sub-image according to features of the sub-image.
In step S65, the processor 40 performs a variety of basic functions, such as zoom, page, and scroll functions in response to the touch operation without providing tactile stimulation.
In step S66, the control module 15 determines a number of electrodes 220 corresponding to one touched location, according to the first relationship between the locations and the electrodes 220, and determines electrical parameters respectively corresponding to the objects included in the sub-image, according to a second relationship between different objects and electrical parameters stored in the storage unit 30.
In step S67, the control module 15 energizes the determined electrodes 220 via the power supply unit 23 according to the determined electrical parameters. In the embodiment, the electrical parameters may be the amplitude or the wave frequency of the electricity energizing the electrodes 220.
In step S71, the detecting module 11 detects a touch operation on the screen 10 according to signals from the screen 10.
In step S72, the touch determining module 12 determines location information of touched locations of the touch operation and an occurrence time of touching each touch point.
In step S73, the image identifying module 14 extracts a sub-image covered by the touched locations, from an image displayed on the screen 10, and identifies objects included in the sub-image according to features of the sub-image.
In step S74, the control module 15 determines a number of electrodes 220 corresponding to one touched location, according to the first relationship between the locations and the electrodes 220, and determines electrical parameters respectively corresponding to the objects included in the sub-image, according to a second relationship between different objects and electrical parameters stored in the storage unit 30.
In step S75, the control module 15 energizes the determined electrodes 220 via the power supply unit 23 in accordance with the determined electrical parameters. In the embodiment, the electrical parameters may be the amplitude or the wave frequency of the electricity energizing the electrodes 220.
In step S76, the analyzing module 16 extracts a number of successively detected touched locations and determines whether the touch operation on the screen 10 is a slide operation, according to the location information of each extracted touched location; if yes, the procedure goes to step S77, otherwise, the procedure goes back to step S71.
In step S77, the calculating module 17 calculates an anticipated trajectory of the slide operation according to the location information and occurrence time of each determined touched location. The anticipated trajectory may be a subsequent touch trajectory of the slide operation, and the subsequent touch trajectory includes new touched locations touched after the earlier successively detected touched locations.
In step S78, the image identifying module 14 extracts a new sub-image covered by the new touched locations along the anticipated trajectory from the displayed image, and compares the features of the new sub-image with that of the previous sub-image. If a difference between the features of the new sub-image and the previous sub-image is within a predetermined range, the procedure goes to step S79, otherwise, the procedure goes to step S80.
In step S79, the control module 15 determines that the new sub-image and the previous sub-image have the same objects, and energizes the determined electrodes 220 corresponding to the new touched locations according to the same electrical parameters as were applied to the objects included in the previous sub-image.
In step S80, the image identifying module 14 determines the objects included in the new sub-image according to the features of the new sub-image, and the control module 15 determines electrical parameters respectively corresponding to the objects included in the new sub-image according to the second relationship, and energizes the electrodes 220 corresponding to the new touched locations along the anticipated trajectory via the power supply unit 23, according to the determined electrical parameters.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210552357.1 | Dec 2012 | CN | national |