This application claims priority to Chinese Patent Application No. 201310684757.2, filed on Dec. 12, 2013, which is hereby incorporated by reference in its entirety
The present invention relates to the field of terminal technologies, and in particular, to a terminal configuration method and a terminal.
As a terminal continuously develops, rich functions of the terminal also make a user more convenient in life.
Currently, on the market, there are many terminals targeting old people. This type of terminal displays, by using function settings, especially large fonts, icons and menus on a screen, so that old people can use the terminal conveniently.
It can be learned from the foregoing that, a terminal needs to be set to obtain the foregoing screen effects. Currently, a terminal has many functions and old people lack knowledge of using the terminal; therefore, a series of operations, such as setting a character font on a terminal, may cause inconvenience for the old people.
Embodiments of the present invention provide a terminal configuration method and a terminal, which may make a user convenient to use a terminal.
According to a first aspect, an embodiment of the present invention discloses a terminal configuration method, where the method includes:
obtaining an image that includes a facial feature of a user; extracting the facial feature of the user from the image; obtaining, according to a preconfigured age model, an estimated age value that matches the facial feature of the user; and loading a preset user interface into the terminal according to the estimated age value.
With reference to the first aspect, in a first implementation manner of the first aspect, the loading a preset user interface into the terminal according to the estimated age value includes:
obtaining, according to the estimated age value, a configuration solution that is of the preset user interface and matches the estimated age value; and
loading the preset user interface into the terminal according to the configuration solution of the preset user interface.
With reference to the first aspect and the first implementation manner of the first aspect, in a second implementation manner of the first aspect, before the extracting the facial feature of the user from the image, the method further includes:
dividing the image into blocks and performing facial detection on different blocks to determine a position of a face; and
the extracting the facial feature of the user from the image includes:
extracting the facial feature of the user from the position of the face, where the facial feature of the user is used for performing age estimation.
With reference to the first aspect, the first implementation manner of the first aspect, or the second implementation manner of the first aspect, in a third implementation manner of the first aspect, before the obtaining, according to a preset age model, an estimated age value that matches the facial feature of the user, the method further includes:
collecting a voice of the user and extracting a feature of the voice; and
the obtaining, according to a preset age model, an estimated age value that matches the facial feature of the user includes:
obtaining, according to the preset age model, an estimated age value that matches the facial feature of the user and the feature of the voice.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, or the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, before the obtaining, according to a preset age model, an estimated age value that matches the facial feature of the user, the method further includes:
determining whether an estimated user age value corresponding to the facial feature of the user is saved;
when it is determined that the estimated user age value corresponding to the facial feature of the user is saved, loading the preset user interface into the terminal according to the saved estimated age value corresponding to the facial feature of the user; and
only when it is determined that the estimated user age value corresponding to the facial feature of the user is not saved, obtaining, according to the preset age model, the estimated age value that matches the facial feature of the user.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, or the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, after the obtaining, according to a preset age model, an estimated age value that matches the facial feature of the user, the method further includes:
saving a correspondence between the facial feature of the user and the obtained estimated age value.
According to a second aspect, an embodiment of the present invention discloses a terminal, where the terminal includes:
a camera, configured to obtain an image that includes a facial feature of a user;
an extracting unit, configured to extract the facial feature of the user from the image obtained by the camera;
an obtaining unit, configured to obtain, according to a preset age model, an estimated age value that matches the facial feature of the user extracted by the extracting unit; and
a loading unit, configured to load a preset user interface into the terminal according to the estimated age value obtained by the obtaining unit.
With reference to the second aspect, in a first implementation manner of the second aspect, the loading unit is specifically configured to:
obtain, according to the estimated age value obtained by the obtaining unit, a configuration solution that is of the preset user interface and matches the estimated age value; and load the preset user interface into the terminal according to the configuration solution of the preset user interface.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the terminal further includes a locating unit, where:
the locating unit divides the image obtained by the camera into blocks and performs facial detection on different blocks to determine a position of a face; and
the extracting unit extracts the facial feature of the user from the position of the face, where the facial feature of the user is used for performing age estimation.
With reference to the second aspect, the first implementation manner of the second aspect, or the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the terminal further includes a microphone, where:
the microphone is specifically configured to:
collect a voice of the user;
the extracting unit is further configured to:
extract a feature of the voice collected by the microphone; and
the obtaining unit is specifically configured to:
obtain, according to the preset age model, an estimated age value that matches the facial feature of the user and the feature of the voice of the user that are extracted by the extracting unit.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, or the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the terminal further includes a determining unit, where:
the determining unit is configured to determine whether an estimated user age value corresponding to the facial feature of the user extracted by the extracting unit is saved;
when the determining unit determines that the estimated user age value corresponding to the facial feature of the user is saved, the loading unit loads the preset user interface into the terminal according to the saved estimated age value corresponding to the facial feature of the user; and
the obtaining unit is specifically configured to:
only when the determining unit determines that the estimated user age value corresponding to the facial feature of the user is not saved, obtain, according to the preset age model, the estimated age value that matches the facial feature of the user.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, or the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the terminal further includes a saving unit, where:
the obtaining unit obtains, according to the preset age model, the estimated age value that matches the facial feature of the user; and
the saving unit saves a correspondence between the facial feature of the user extracted by the extracting unit and the estimated age value obtained by the obtaining unit.
It can be learned from the foregoing that, according to a terminal configuration method provided in an embodiment of the present invention, a terminal obtains an image of a facial feature of a user, obtains an estimated age value of the user according to the facial feature of the user in the image, and loads a preset user interface into the terminal according to an age of the user, which makes the user convenient to use the terminal and enhances user experience. Further, the terminal may further obtain a more accurate estimated age value by using the facial feature of the user and a feature of a voice of the user so that the preset user interface is loaded into the terminal according to the estimated age value, which provides a more proper configuration for the user and enhances user experience.
An embodiment of the present invention provides another terminal configuration method and another terminal, which may make a user convenience to use a terminal.
According to a first aspect, an embodiment of the present invention discloses another terminal configuration method and another terminal, where the method includes:
collecting a voice of a user;
extracting a feature of the voice;
obtaining, according to a preset age model, an estimated age value that matches the feature of the voice; and
loading a preset user interface into the terminal according to the estimated age value.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the loading a preset user interface into the terminal according to the estimated age value includes:
obtaining, according to the estimated age value, a configuration solution that is of the preset user interface and matches the estimated age value; and
loading the preset user interface into the terminal according to the configuration solution of the preset user interface.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the extracting a feature of the voice includes:
extracting a Mel frequency cepstrum coefficient MFCC of the voice and using the MFCC as the feature of the voice of the user.
With reference to the first aspect, the first implementation manner of the first aspect, or the second implementation manner of the first aspect, in a third implementation manner of the first aspect, before the obtaining, according to a preset age model, an estimated age value that matches a facial feature of the user, the method further includes:
determining whether an estimated user age value corresponding to the feature of the voice is saved;
when it is determined that the estimated user age value corresponding to the feature of the voice is saved, loading the preset user interface into the terminal according to the saved estimated age value corresponding to the feature of the voice; and
only when it is determined that the estimated user age value corresponding to the feature of the voice is not saved, obtaining, according to the preset age model, the estimated age value that matches the feature of the voice.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, or the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, after the obtaining an estimated age value that matches the feature of the voice, the method further includes:
saving a correspondence between the feature of the voice and the obtained estimated age value.
According to a second aspect, an embodiment of the present invention discloses a terminal, where the terminal includes a microphone, configured to collect a voice of a user;
an extracting unit, configured to extract a feature of the voice of the user collected by the microphone;
an obtaining unit, configured to obtain, according to a preset age model, an estimated age value that matches the feature of the voice extracted by the extracting unit; and
a loading unit, configured to load a preset user interface into the terminal according to the estimated age value obtained by the obtaining unit.
With reference to the second aspect, in a first implementation manner of the second aspect, the loading unit is specifically configured to:
obtain, according to the estimated age value obtained by the obtaining unit, a configuration solution that is of the preset user interface and matches the estimated age value; and load the preset user interface into the terminal according to the configuration solution of the preset user interface.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the extracting unit is specifically configured to:
extract a Mel frequency cepstrum coefficient MFCC of the voice of the user collected by the microphone and use the MFCC as the feature of the voice of the user.
With reference to the second aspect, the first implementation manner of the second aspect, or the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the terminal further includes a determining unit, where:
the determining unit is configured to determine whether an estimated user age value corresponding to the feature of the voice extracted by the extracting unit is saved;
when the determining unit determines that the estimated user age value corresponding to the feature of the voice is saved, the loading unit loads the preset user interface into the terminal according to the saved estimated age value corresponding to the feature of the voice; and
the obtaining unit is specifically configured to:
only when the determining unit determines that the estimated age value corresponding to the feature of the voice is not saved, obtain, according to the preset age model, the estimated age value that matches the feature of the voice.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, or the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the terminal further includes a saving unit, where:
the obtaining unit obtains, according to the preset age model, the estimated age value that matches the feature of the voice; and
the saving unit saves a correspondence between the feature of the voice and the estimated age value obtained by the obtaining unit.
It can be learned from the foregoing that, according to a terminal configuration method provided in another embodiment of the present invention, a terminal collects a voice of a user, obtains an estimated age value of the user by using a feature of the voice, and loads a preset user interface according to the estimated age value; and a method in which the terminal performs automatic configuration according to the voice of the user provides convenience for the user.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
The following describes a terminal configuration method in an embodiment of the present invention according to
101. Obtain an image that includes a facial feature of a user.
When the user starts or unlocks a terminal, a photographing apparatus of the terminal automatically starts and takes a facial photo to obtain an image that includes a facial feature of the user. The facial feature of the user usually includes areas surrounding eyes and a nose, a forehead area, and the like. The terminal may be a smartphone, a tablet computer, a notebook computer or the like. The photographing apparatus may be a camera or the like.
102. Extract the facial feature of the user from the image.
The obtained image that includes the facial feature of the user is divided into blocks, facial detection is performed on different blocks, and a position of a face may be determined by means of the detection. Then matching is performed by using a point distribution model on the face whose position is determined, key points of the face are marked, and the face is divided into several triangle areas by using these key points. Image data in different areas is transformed, by using local binary patterns LBPs, to obtain texture features. After transformation by using the LBPs, a value corresponding to a smooth area is smaller, otherwise, a value corresponding to a rough area is greater. These features in different areas form a value vector, and the value vector is used to represent the facial feature that is of the user and included in the image.
Optionally, as shown in
103. Obtain, according to a preset age model, an estimated age value that matches the facial feature of the user.
The value vector representing the facial feature of the user is input in the preset age model, and the estimated age value that matches the facial feature of the user is obtained by means of calculation. The value vector representing the facial feature of the user may be input in the preset age model by using a support vector machine (Support Vector Machine, SVM) algorithm, a neural network algorithm, or the like.
The preset age model is internally set in the terminal and may be obtained by training. Training the preset age model includes: collecting a large amount of facial image data having an age marker; obtaining a feature vector of the image by preprocessing the image and extracting a feature; and training the obtained feature vector and a corresponding age, so that an image age identification model is obtained, and a corresponding age can be obtained according to an input feature vector.
Optionally, as shown in
104. Load a preset user interface into the terminal according to the estimated age value.
The obtained estimated age value is input in a preset function configuration database to perform matching, to obtain a configuration solution that is of the preset user interface and corresponds to the estimated age value. A function recorded in the solution is loaded according to the obtained configuration solution of the preset user interface, so that a setting of the terminal is completed. The configuration solution of the preset user interface may include functions such as a character size setting, an image or icon size setting, default volume, voice broadcast, and a function of enabling position tracking.
It can be learned from the foregoing that, according to a terminal configuration method provided in an embodiment of the present invention, an estimated age value of a user is determined by automatically obtaining an image that includes a facial feature of the user, and a preset user interface is loaded into a terminal according to the estimated age value of the user, which makes the user convenient to use the terminal and enhances user experience.
As shown in
301. Obtain an image that includes a facial feature of a user.
When the user starts or unlocks a terminal, a photographing apparatus of the terminal automatically starts and takes a facial photo to obtain an image that includes a facial feature of the user. The facial feature of the user usually includes areas surrounding eyes and a nose, a forehead area, and the like. The terminal may be a smartphone, a tablet computer, a notebook computer or the like. The photographing apparatus may be a camera or the like.
302. Extract the facial feature of the user from the image.
The obtained image that includes the facial feature of the user is divided into blocks, facial detection is performed on different blocks, and a position of a face may be determined by means of the detection. Then matching is performed by using a point distribution model on the face whose position is determined, key points of the face are marked, and the face is divided into several triangle areas by using these key points. Image data in different areas is transformed, by using local binary patterns LBPs, to obtain texture features. After transformation by using the LBPs, a value corresponding to a smooth area is smaller, otherwise, a value corresponding to a rough area is greater. These features in different areas form a value vector, and the value vector is used to represent the facial feature that is of the user and included in the image.
303. Collect a voice of the user and extract a feature of the voice.
A piece of voice of the user is obtained by using a voice collecting device, and a Mel frequency cepstrum coefficient (Mel Frequency Cepstrum Coefficient, MFCC) of this piece of voice data is extracted and used as the feature of the voice of the user.
Optionally, as shown in
304. Obtain, according to a preset age model, an estimated age value that matches the facial feature of the user and the feature of the voice of the user.
The value vector representing the facial feature of the user and a voice feature parameter of the user, for example a value vector representing the feature of the voice of the user, are input in the preset age model, and the estimated age value that matches the facial feature of the user is obtained by means of calculation. The value vector representing the facial feature of the user may be input in the preset age model by using an SVM algorithm, a neural network algorithm or the like.
The preset age model is internally set in the terminal and is obtained by training facial image data and voice feature data. A corresponding age may be obtained according to the input vector of the facial feature of the user and the voice feature parameter of the user, that is the value vector representing the facial feature of the user and the value vector representing the feature of the voice.
Optionally, as shown in
305. Load a preset user interface into the terminal according to the estimated age value.
The estimated age value is input in a preset function configuration database to perform matching, to obtain a configuration solution that is of the preset user interface and corresponds to the estimated age value. A function recorded in a list is loaded according to the obtained configuration solution of the preset user interface, so that a setting of the terminal is completed. A function configuration list may include functions such as a character size setting, an image or icon size setting, default volume, voice broadcast, and a function of enabling position tracking.
It can be learned from the foregoing that, according to a terminal configuration method provided in an embodiment of the present invention, an estimated age value of a user is determined by obtaining a facial feature of the user and a feature of a voice of the user, and a preset user interface is loaded into a terminal according to the estimated age value of the user, which makes the user convenient to use the terminal and enhances user experience.
As shown in
501. Collect a voice of a user.
When the user starts or unlocks a terminal, a voice collecting apparatus of the terminal automatically starts and may collect a voice of the user as long as the user speaks.
502. Extract a feature of the voice.
A piece of voice of the user is obtained by using a voice collecting device, an MFCC of this piece of voice data is extracted and used as the feature of the voice of the user.
Optionally, as shown in
503. Obtain, according to a preset age model, an estimated age value that matches the feature of the voice.
A parameter representing the feature of the voice of the user is input in the preset age model, and the estimated age value that matches the feature of the voice of the user is obtained by means of calculation. A value vector representing the facial feature of the user is input in the preset age model by using an SVM algorithm, a neural network algorithm or the like.
The preset age model is internally set in the terminal and is obtained by training data of the feature of the voice. A corresponding age may be obtained from the preset age model according to the input voice feature parameter of the user.
Optionally, as shown in
504. Load a preset user interface into the terminal according to the estimated age value.
The estimated age value is input in a preset function configuration database to perform matching, to obtain a configuration solution that is of the preset user interface and corresponds to the estimated age value. A function recorded in a list is loaded according to the obtained configuration solution of the preset user interface, so that a setting of the terminal is completed. A function configuration list may include functions such as a character size setting, an image or icon size setting, default volume, voice broadcast, and a function of enabling position tracking.
It can be learned from the foregoing that, according to a terminal configuration method provided in an embodiment of the present invention, an estimated age value of a user is determined by using a feature of a voice of the user, and a preset user interface is loaded into a terminal according to the estimated age value of the user, which makes the user convenient to use the terminal and enhances user experience.
The following describes a terminal 70 in an embodiment of the present invention according to
a camera 701, an extracting unit 702, an obtaining unit 703, and a loading unit 704.
The camera 701 is configured to obtain an image that includes a facial feature of a user.
When the user starts or unlocks the terminal, the camera 701 may take a facial photo to obtain an image that includes a facial feature of the user. The facial feature of the user usually includes areas surrounding eyes and a nose, a forehead area, and the like.
Optionally, as shown in
The extracting unit 702 is configured to extract the facial feature of the user from the image obtained by the camera 701.
The extracting unit 702 performs matching on the face by using a point distribution model, marks key points of the face, divides the face into several triangle areas by using these key points, and transforms image data in different areas, by using local binary patterns LBPs, to obtain texture features. After transformation by using the LBPs, a value corresponding to a smooth area is smaller, otherwise, a value corresponding to a rough area is greater. These features in different areas form a value vector, and the extracting unit 702 uses the value vector to represent the facial feature that is of the user and included in the image.
Optionally, as shown in
The obtaining unit 703 is configured to obtain, according to the preset age model, the estimated age value that matches the facial feature of the user extracted by the extracting unit 702.
The obtaining unit 703 inputs, in the preset age model, a value vector representing the facial feature of the user extracted by the extracting unit 702, and obtains, by means of calculation, the estimated age value that matches the facial feature of the user. The value vector representing the facial feature of the user may be input in the preset age model by using a support vector machine (Support Vector Machine, SVM) algorithm, a neural network algorithm, or the like.
The preset age model is internally set in the terminal and may be obtained by training. Training the preset age model includes: collecting a large amount of facial image data having an age marker; obtaining a feature vector of the image by preprocessing the image and extracting a feature; and training the obtained feature vector and a corresponding age, so that an image age identification model is obtained, and a corresponding age can be obtained according to an input feature vector.
Optionally, as shown in
The loading unit 704 is configured to load a preset user interface into the terminal according to the estimated age value obtained by the obtaining unit 703.
The loading unit 704 inputs the estimated age value obtained by the obtaining unit 703 in a preset function configuration database to perform matching, to obtain a configuration solution that is of the preset user interface and corresponds to the estimated age value. A function recorded in the solution is loaded according to the obtained configuration solution of the preset user interface, so that a setting of the terminal is completed. The configuration solution of the preset user interface may include functions such as a character size setting, an image or icon size setting, default volume, voice broadcast, and a function of enabling position tracking.
It can be learned from the foregoing that, according to a terminal provided in an embodiment of the present invention, an estimated age value of a user is determined by automatically obtaining an image that includes a facial feature of the user, and a preset user interface is loaded into a terminal according to the estimated age value of the user, which makes the user convenient to use the terminal and enhances user experience.
The following describes a terminal 90 in an embodiment of the present invention according to
a camera 901, an extracting unit 902, a microphone 903, an obtaining unit 904, and a loading unit 905.
The camera 901 is configured to obtain an image that includes a facial feature of a user.
When the user starts or unlocks the terminal, the camera 901 may take a facial photo to obtain an image that includes a facial feature of the user. The facial feature of the user usually includes areas surrounding eyes and a nose, a forehead area, and the like.
Optionally, as shown in
The extracting unit 902 is configured to extract the facial feature of the user from the image obtained by the camera 901.
The extracting unit 902 performs matching, by using a point distribution model, on the face whose position is determined, marks key points of the face, divides the face into several triangle areas by using these key points, and transforms image data in different areas, by using local binary patterns LBPs, to obtain texture features. After transformation by using the LBPs, a value corresponding to a smooth area is smaller, otherwise, a value corresponding to a rough area is greater. These features in different areas form a value vector, and the extracting unit 902 uses the value vector to represent the facial feature that is of the user and included in the image.
The microphone 903 is configured to collect a voice of the user and the extracting unit 902 is configured to extract a feature of the voice.
The microphone 903 obtains a piece of voice of the user by using a voice collecting device. The extracting unit 902 extracts a Mel frequency cepstrum coefficient (Mel Frequency Cepstrum Coefficient, MFCC) of this piece of voice data and uses the coefficient as the feature of the voice of the user.
Optionally, as shown in
The obtaining unit 904 is configured to obtain, according to a preset age model, the estimated age value that matches the facial feature of the user extracted by the extracting unit 902.
The obtaining unit 904 inputs, in the preset age model, a value vector representing the facial feature of the user extracted by the extracting unit 902, and obtains, by means of calculation, the estimated age value that matches the facial feature of the user. The value vector representing the facial feature of the user may be input in the preset age model by using a support vector machine (Support Vector Machine, SVM) algorithm, a neural network algorithm, or the like.
The preset age model is internally set in the terminal and may be obtained by training. Training the preset age model includes: collecting a large amount of facial image data having an age marker; obtaining a feature vector of the image by preprocessing the image and extracting a feature; and training the obtained feature vector and a corresponding age, so that an image age identification model is obtained, and a corresponding age can be obtained according to an input feature vector.
Optionally, as shown in
The loading unit 905 is configured to load a preset user interface into the terminal according to the estimated age value obtained by the obtaining unit 904.
The loading unit 905 inputs the estimated age value obtained by the obtaining unit 904 in a preset function configuration database to perform matching, to obtain a configuration solution that is of the preset user interface and corresponds to the estimated age value. A function recorded in the solution is loaded according to the obtained configuration solution of the preset user interface, so that a setting of the terminal is completed. The configuration solution of the preset user interface may include functions such as a character size setting, an image or icon size setting, default volume, voice broadcast, and a function of enabling position tracking.
It can be learned from the foregoing that, according to a terminal provided in an embodiment of the present invention, an age of a user is determined by using a facial feature of the user and a feature of a voice of the user, and a preset user interface is loaded into a terminal according to the age of the user, which makes the user convenient to use the terminal and enhances user experience.
The following describes a terminal configuration apparatus 110 in an embodiment of the present invention according to
a microphone 1101, an extracting unit 1102, an obtaining unit 1103, and a loading unit 1104.
The microphone 1101 is configured to collect a voice of a user.
When a terminal is started or is unlocked, the microphone 1101 obtains a piece of voice of the user by using a voice collecting device.
The extracting unit 1102 is configured to extract a feature of the voice of the user collected by the microphone 1101.
The extracting unit 1102 extracts a Mel frequency cepstrum coefficient (Mel Frequency Cepstrum Coefficient, MFCC) of this piece of voice data collected by the collecting unit 1102, and uses the coefficient as the feature of the voice of the user.
Optionally, as shown in
The obtaining unit 1103 is configured to obtain, according to the preset age model, the estimated age value that matches the feature of the voice extracted by the extracting unit 1102.
The obtaining unit 1103 inputs, by using a support vector machine (Support Vector Machine, SVM) algorithm, a neural network algorithm or the like, the MFCC representing the feature of the voice of the user in the preset age model, and obtains, by means of calculation, the estimated age value that matches the feature of the voice of the user.
The preset age model is internally set in the terminal and obtained by training. Training the preset age model includes: collecting a large amount of voice data having an age marker; obtaining an MFCC of the voice by preprocessing the voice and extracting a feature; and training the obtained MFCC and a corresponding age by using a machine learning algorithm such as the SVM algorithm or the neural network algorithm, so that a preset age identification model is obtained and a corresponding age can be obtained according to an input MFCC.
Optionally, as shown in
The loading unit 1104 is configured to load a preset user interface into the terminal according to the estimated age value obtained by the obtaining unit 1103.
The loading unit 1104 inputs the estimated age value obtained by the obtaining unit 1103 in a preset function configuration database to perform matching, to obtain a configuration solution that is of the preset user interface and corresponds to the estimated age value. A function recorded in the solution is loaded according to the obtained configuration solution of the preset user interface, so that a setting of the terminal is completed. The configuration solution of the preset user interface may include functions such as a character size setting, an image or icon size setting, default volume, voice broadcast, and a function of enabling position tracking.
It can be learned from the foregoing that, according to a terminal provided in an embodiment of the present invention, an estimated age value of a user is determined by collecting a feature of a voice of the user, and a preset user interface is loaded according to the estimated age value of the user, which makes the user convenient to use the terminal and enhances user experience.
It should be noted that, for brief description, the foregoing method embodiments are represented as a series of actions. However, a person skilled in the art should appreciate that the present invention is not limited to the described sequence of the actions, because according to the present invention, some steps may be performed in another sequence or simultaneously. Next, it should be further appreciated by a person skilled in the art that the embodiments described in this specification all belong to exemplary embodiments, and the involved actions and modules are not necessarily required by the present invention.
Because content, such as information exchange and a performing process between modules in the foregoing apparatuses and systems, and that in the method embodiments of the present invention are based on a same conception, for detailed content, reference may be made to the descriptions in the method embodiments of the present invention, and no further details are provided herein.
A person of ordinary skill in the art may understand that all or a part of the processes of the methods in the embodiments may be implemented by a computer program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program runs, the processes of the methods in the embodiments are performed. The foregoing storage medium may include: a magnetic disk, an optical disc, a read-only memory (ROM: Read-Only Memory), or a random access memory (RAM: Random Access Memory).
Specific examples are used in this specification to describe the principle and implementation manners of the present invention. The descriptions of the foregoing embodiments are merely intended to help understand the method and ideas of the present invention. In addition, with respect to the implementation manners and the application scope, modifications may be made by a person of ordinary skill in the art according to the ideas of the present invention. In conclusion, content of this specification shall not be construed as a limitation on the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201310684757.2 | Dec 2013 | CN | national |