Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
At present, the digital picture recognition technology is widely used owing to advantages such as having discrimination height, processing convenience, especially receives publicity especially aspect face recognition.Face phase recognition technology is a development in recent years recognition technology the most fast, and the face of broad sense is discerned mutually and comprised that facial image acquisition, people's face location, face discern preliminary treatment, identity validation and identity mutually and search etc.; Only refer to narrowly carry out identity validation mutually or carry out identity and search by face.Face is known each other other basic hardware and is constituted camera, and after obtaining suitable digital picture, computer can be taken off out from background scene with target face, carry out again after certain processing with database in the contrast of face phase character, realize identification to face.Along with 3G (3rd Generation, 3G (Third Generation) Moblie) development of technology, for 3G portable terminal with digital picture recognition technology, its built-in camera can carry out image recognition to user's facial characteristics, wherein user's facial characteristics can be facial 2 fixing arbitrarily points such as eyes, nose, face, and the embodiment of the invention does not limit this.The embodiment of the invention is by being applied to user terminal with the digit recognition technology, thereby realizes regulating automatically the size of displaying contents in the user terminal and the function of the upset page, and particular content is as follows:
Embodiment 1
For according to the distance of user and user terminal and the variation of position, regulate the size and the page of displaying contents in the user terminal automatically, the embodiment of the invention provides a kind of method of regulating displaying contents, and referring to Fig. 1, this method comprises:
101: first image-forming information of facial characteristics in user terminal that obtains the user;
Wherein, user's facial characteristics can be that two, two eyebrows and facial fixing arbitrarily 2 get final product, and the embodiment of the invention does not limit this.
102: when being moved between user terminal and the user, obtain user's second image-forming information of facial characteristics in user terminal;
Wherein, the user terminal in the embodiment of the invention can be arbitrary subscriber equipmenies such as portable terminal, PC, PDA, and the embodiment of the invention does not limit this.
103:, regulate the displaying contents in the user terminal according to first image-forming information and second image-forming information.
Displaying contents in the embodiment of the invention can be font, picture and video etc., and the embodiment of the invention does not limit this.
Wherein, first image-forming information is first image-forming range and/or first image space, and second image-forming information is second image-forming range and/or second image space,
Wherein, when first image-forming information is first image-forming range, second image-forming information is second image-forming range, according to first image-forming information and second image-forming information, regulates the displaying contents in the user terminal, is specially:
According to first image-forming range and second image-forming range, regulate the size of displaying contents in the user terminal.
Wherein, when first image-forming information is first image space, second image-forming information is second image space, according to first image-forming information and second image-forming information, regulates the displaying contents in the user terminal, is specially:
According to first image space and second image space, regulate the page of displaying contents in the user terminal.
Wherein, when first image-forming information is first image-forming range and first image space, second image-forming information is second image-forming range and second image space,
According to first image-forming information and second image-forming information, regulate the displaying contents in the user terminal, be specially:
According to first image-forming range and second image-forming range, regulate the size of displaying contents in the user terminal;
According to first image space and second image space, regulate the page of displaying contents in the user terminal.
Further,, regulate the size of displaying contents in the user terminal, specifically comprise according to first image-forming range and second image-forming range:
Obtain the size of the displaying contents of user terminal when first image-forming range;
The size of the displaying contents after equaling to regulate according to the ratio of first image-forming range and second image-forming range with regulate before the ratio of size of displaying contents, calculate the size of the displaying contents after regulating;
According to the size of the displaying contents after regulating, the size of regulating displaying contents in the user terminal.
Further, according to the size of the displaying contents after regulating, the size of regulating displaying contents in the user terminal also comprises:
Whether the size of the displaying contents after judge regulating is in user terminal preset threshold scope and the screen size that whether surpasses user terminal;
The size of the displaying contents after regulating is in user terminal preset threshold scope and do not surpass the screen size of user terminal, then according to the size of the displaying contents after regulating, and the size of regulating displaying contents in the user terminal.
Further,, regulate the page of displaying contents in the user terminal, specifically comprise according to first image space and second image space:
Second image space and first image space are asked poor, obtain the changing value of image space;
According to the changing value of image space, regulate the page of displaying contents in the user terminal.
Further,, regulate the page of displaying contents in the user terminal, specifically comprise according to the changing value of image space:
Whether the size of changing value of judging image space greater than default position threshold, if then according to the direction of the changing value of image space, regulate the page of displaying contents in the user terminal.
Wherein, obtain user's first image-forming information of facial characteristics in user terminal, specifically comprise:
Obtain user's face-image by the camera of user terminal;
Face-image to the user is discerned, and obtains user's first image-forming information of facial characteristics in user terminal;
Correspondingly, when being moved between user terminal and the user, obtain user's second image-forming information of facial characteristics in user terminal, specifically comprise:
User's face-image when the camera by user terminal obtains and is moved between user terminal and the user;
User's face-image is discerned when being moved between user terminal and the user, obtains user's second image-forming information of facial characteristics in user terminal.
The method that the embodiment of the invention provides, when being moved between user terminal and the user, the image-forming range of facial characteristics in user terminal by the user and image space different, regulate the size and the page of the displaying contents of user terminal respectively, the user can get access to displaying contents more clearly and fully obtain displaying contents information, can also realize the automatic page turning function of user terminal, improve user's experience.
Embodiment 2
The embodiment of the invention provides a kind of method of regulating displaying contents, the facial characteristics of user in the embodiment of the invention with user's two eye distances from being that example, user terminal are that example, displaying contents are example with the font with the 3G portable terminal, thereby by the digital picture recognition technology to user's two eye distances from and the displaying contents discerned portable terminal of two positions automatically adjust, realized the size of automatic adjusting portable terminal displaying contents, referring to Fig. 2, the method to the embodiment of the invention is described below:
201: portable terminal obtains user's face-image by interior camera at distance users S place, and the image analysis processing of being obtained is obtained two of in portable terminal users' image-forming range H1.
Wherein, portable terminal is when obtaining user's face-image, the facial characteristics that needs definite user's face-image, facial characteristics in the embodiment of the invention with user's two eye distances from being example, also can be that facial arbitrarily 2 of fixing such as the distance of user's two ears, the distance of two eyebrows get final product, this embodiment of the invention is not limited.
Wherein, referring to Fig. 3, portable terminal and user's distance is S, obtains user's face-image by interior camera, and wherein the value of S can be set as required flexibly as long as can guarantee that the face-image that obtains is clear; Portable terminal is analyzed the image that obtains by the digital picture recognition technology, concrete analytic process can adopt the handling process of existing image recognition technology, the view data that collects is carried out image processing, identified two distances in portable terminal of user in the face-image, thereby obtain the image-forming range H1 of portable terminal two of the distance users S users of place, wherein the H1 here is meant on the inductor Sensor of portable terminal two image-forming range.
The actual range of supposing two of users in the embodiment of the invention is H, and the vertical range between camera lens and the inductor Sensor is L, and when the distance of user and portable terminal was S, the font size that portable terminal shows was T.
Portable terminal in the embodiment of the invention can be specially mobile phone, notebook computer, PDA etc., 3G portable terminal with number of support word image recognition technology in the embodiment of the invention is an example, and is also applicable for other methods of supporting the portable terminal embodiment of the invention of Digital image technology to provide.
Generally, camera and outer camera in the camera of 3G portable terminal is divided into, its China and foreign countries' camera is identical with the function of common camera, be used to obtain image or video in image pickup scope, the image that interior camera is used to obtain user self comprises user's face-image and scene on every side etc., realizes the video information of obtaining of video conversation.Portable terminal in the embodiment of the invention is an example with the face-image that interior camera obtains the user, can certainly obtain user's face-image by outer camera, and this embodiment of the invention is not limited.
202: when portable terminal when distance users S moves to S+ Δ S, portable terminal obtains user's face-image of this moment by interior camera, and this image analysis processing is obtained two of in portable terminal users' image-forming range H2.
Wherein, the interior camera of portable terminal according to preset time at interval as constantly obtained user's face-image in 1 second and carry out analyzing and processing and obtain two image-forming range, portable terminal and user's distance last two image-forming range of inductor Sensor that do not coexist is also correspondingly different.
Referring to Fig. 3, when portable terminal and user distance S+ Δ S, two image-forming ranges on inductor Sensor of user are H2.
203: portable terminal calculates the changing value Δ T of font size according to H1 and H2, and particular content is as follows:
Referring to Fig. 3, according to two of users' actual range H, the vertical range between camera lens and the inductor Sensor is L, and the image-forming range that portable terminal is two at distance users S place is H1, can get formula (1):
H/S=H1/L formula (1)
Image-forming range by two at distance users S+ Δ S place of portable terminals is H2, can get formula (2):
H/ (S+ Δ S)=H2/L formula (2)
Suppose that the font size that portable terminal shows in distance users S+ Δ S place is T+ Δ T, Δ T is the changing value of font size, can get formula (3):
(T+ Δ T)/T=(S+ Δ S)/S formula (3)
By above-mentioned formula (1) and formula (2), can get formula (4):
H1/H2=(S+ Δ S)/S formula (4)
By above-mentioned formula (3) and formula (4), can get formula (5):
Δ T/T=(H1-H2)/H2 formula (5)
Can know by formula (5), when portable terminal from distance users S, when moving to distance users S+ Δ S place, the shown font size of portable terminal with at S place and relevant at two image-forming ranges of the S+ Δ S user of place at portable terminal, therefore when the distance between portable terminal and the user changes, the shown font size of portable terminal also changes accordingly, and the size of variation is referring to formula (5).Formula (5) also can be derived: T+ Δ T/T=H1/H2, and the image-forming range that font after promptly regulating and user are two is inversely proportional to, and the image-forming range that the user is two is more little, and the font after the adjusting is big more; On the contrary, the image-forming range that the user is two is big more, and the font after the adjusting is more little.
204: according to the changing value of font size, judge font after the conversion whether in maximum font dot matrix and smallest font dot matrix scope, if, then according to the changing value of font size, the font size of regulating portable terminal automatically.
Wherein, portable terminal is owing to the restriction of the dot matrix of the smallest font of maximum font dot matrix that is subjected to self supporting and support, so the font size after the conversion must be in maximum font dot matrix and smallest font dot matrix scope, font after promptly changing must be smaller or equal to maximum font dot matrix, simultaneously more than or equal to the smallest font dot matrix, wherein the dot matrix here is meant pixel, and for example dot matrix is 6*6, and promptly length and width respectively are 6 pixels.For example: the maximum font dot matrix of portable terminal support is 8*8, the smallest font dot matrix is 2*2, if the font Δ T+T after the conversion is 4*4, font Δ T+T after the conversion simultaneously greater than smallest font dot matrix 2*2, then is adjusted to Δ T+T with font size by original T less than maximum font dot matrix 8*8 automatically so; If Δ T+T is 10*10 after the font conversion, the font Δ T+T after the conversion is greater than maximum font dot matrix 8*8, and do not regulate the font size that portable terminal shows this moment; If Δ T+T is 1*1 after the font conversion, the font after the conversion is less than smallest font dot matrix 2*2, and do not regulate the font size that portable terminal shows this moment.
For different portable terminals, himself maximum font dot matrix and smallest font dot matrix have nothing in common with each other, and the embodiment of the invention does not limit this.In addition, the font of portable terminal also is subjected to the restriction of mobile terminal screen size, and shown font size can not be greater than the screen of portable terminal, otherwise portable terminal can't display font or can't complete display font.
Above-mentioned steps 201-204 be when portable terminal from distance users S, when moving to distance users S+ Δ S place, the image that the shown font size of portable terminal is obtained according to different distance image-forming range of two of users in portable terminal is regulated automatically.
Wherein, displaying contents for portable terminal is the situation of image and video, the method that the embodiment of the invention provides is suitable equally, when displaying contents is image, the image that obtains according to different distance image-forming range of two in portable terminal, regulate the size of picture, but the picture size of being regulated can not be greater than the size of screen; When displaying contents is video, the image that obtains according to different distance image-forming range of two in portable terminal, the size of regulating video, but the video size of being regulated can not be greater than the size of screen.
The method that the embodiment of the invention provides, when distance between user terminal and the user is moved, the image-forming range difference of facial characteristics in user terminal by the user, regulate the size of the displaying contents of user terminal, when user terminal and user's distance becomes big, the displaying contents of regulating user terminal becomes big, so that the user can obtain displaying contents more clearly; When user terminal and user's distance diminished, the displaying contents of regulating user terminal diminished, so that the user can obtain more displaying contents information, has improved user's experience.
Embodiment 3
The embodiment of the invention provides a kind of method of regulating displaying contents, the facial characteristics of user in the embodiment of the invention with user's two eye distances from being that example, user terminal are that example, displaying contents are example with the font with the 3G portable terminal, thereby by the digital picture recognition technology to user's two eye distances from and the displaying contents discerned portable terminal of two positions automatically adjust, realized the automatic page turning of portable terminal displaying contents, referring to Fig. 4, the method to the embodiment of the invention is described below:
301: portable terminal obtains user's face-image by interior camera at distance users S place, and the image analysis processing of being obtained is obtained two of in portable terminal users' image space P1.
Wherein, portable terminal is when obtaining user's face-image, the facial characteristics that needs definite user's face-image, facial characteristics in the embodiment of the invention with user's two eye distances from being example, also can be that facial arbitrarily fixing position such as user's ear, nose gets final product, this embodiment of the invention is not limited.
Wherein, portable terminal and user's distance is S, obtains user's face-image by interior camera, and wherein the value of S can be set as required flexibly as long as can guarantee that the face-image that obtains is clear; Portable terminal is analyzed the image that obtains by the digital picture recognition technology, concrete analytic process can adopt the handling process of existing image recognition technology, the view data that collects is carried out image processing, identified two positional informations in portable terminal of user in the face-image, thereby obtain the image space P1 of portable terminal two of the distance users S users of place, the P1 here is two an image space information on the inductor Sensor of portable terminal.
Portable terminal in the embodiment of the invention can be specially mobile phone, notebook computer, PDA etc., 3G portable terminal with number of support word image recognition technology in the embodiment of the invention is an example, and is also applicable for other methods of supporting the portable terminal embodiment of the invention of Digital image technology to provide.
Generally, camera and outer camera in the camera of 3G portable terminal is divided into, its China and foreign countries' camera is identical with the function of common camera, be used to obtain image or video in image pickup scope, the image that interior camera is used to obtain user self comprises user's face-image and scene on every side etc., realizes the video information of obtaining of video conversation.Portable terminal in the embodiment of the invention is an example with the face-image that interior camera obtains the user, can certainly obtain user's face-image by outer camera, and this embodiment of the invention is not limited.
302: when portable terminal when distance users S moves to S+ Δ S, portable terminal obtains user's face-image of this moment by interior camera, and this image analysis processing is obtained two of in portable terminal users' image space P2.
Wherein, the interior camera of portable terminal according to preset time at interval as constantly obtained user's face-image in 1 second and carry out analyzing and processing and obtain two image space, portable terminal and user's position last two image space of inductor Sensor that do not coexist is also correspondingly different.Here said move refers to moving on the customer location, can be different apart from identical also distance before and after moving for twice.
303: portable terminal is according to two of two of users' image space P1 and users' image space P2, and whether the changing value Δ P that judges P1 and P2 greater than predetermined threshold value, if, execution in step 304; Otherwise, finish.
Wherein, preset time can be set at interval in the portable terminal, as 10 frames or 1 second, two positional information P1 and P2 at the image-forming range of inductor of user in the image that is obtained are analyzed, judge at first whether P1 is identical with P2, thereby judge whether portable terminal is moved on the position; If judge that two of users' image space P1 is identical with two of users' image space P2, judge that then portable terminal is not moved on the position, then do not regulate the display page of font; If judge that two of users' image space P1 is different with two of users' image space P2, judge that then portable terminal is moved on the position, whether the changing value Δ P=P2-P1 that calculates P2 and P1 greater than predetermined threshold value, if Δ P greater than predetermined threshold value, then execution in step 304; Otherwise, do not regulate the display page of font.Wherein the threshold value here can according to circumstances be provided with flexibly, and as can being H1/2, the calculating of Δ P here can horizontal direction also can vertical direction can also be actual range between the two positions, and the embodiment of the invention does not limit for the calculating of distance.
304:, regulate the page of display font according to the moving direction of P1 and P2.
Wherein, when Δ P greater than predetermined threshold value, the image space of then judging two of users is by the moving direction of P1 to P2, can whether be for example according to Δ P on the occasion of the moving direction of judging portable terminal, suppose if Δ P for just, judge that then portable terminal is moved to the right, the shown page is translated into down one page automatically when portable terminal being set being moved to the right; On the contrary, if Δ P judges then that for negative portable terminal is moved left, the shown page is translated into page up automatically when portable terminal being set being moved left.Certainly, Δ P also can be set for negative, judge that portable terminal is moved to the right, the shown page is translated into down one page automatically when portable terminal being set being moved to the right; Δ P judges that portable terminal is moved left for just, and the shown page is translated into page up automatically when portable terminal being set being moved left; The embodiment of the invention does not limit for the setting of moving direction and the setting of page turning, the moving direction of portable terminal can also be move up and down and in portable terminal P2 also be relative with the direction of P1, resulting positive and negative also be relative.
Above-mentioned steps 301-304 works as portable terminal from distance users S, and when moving to distance users S+ Δ S place, the shown font page of portable terminal is regulated automatically according to two of users' the variation of image space in portable terminal.Wherein, displaying contents for portable terminal is the situation of image and video, the method that the embodiment of the invention provides is suitable equally, when displaying contents is image, image space according to the image that is obtained two of users in portable terminal, regulate the size of picture, but the picture size of being regulated can not be greater than the size of screen; When displaying contents is video,, regulate the size of video, but the video size of being regulated can not be greater than the size of screen according to the image that is obtained two of users' in portable terminal image space.
The method that the embodiment of the invention provides, when being moved between user terminal and the user, the difference of the image space of facial characteristics in user terminal by the user, regulate the page of the displaying contents of user terminal, when the position of user terminal distance users is moved, can regulate the page realization page-turning function of displaying contents according to the moving direction of user terminal automatically, improve user's experience.
The method of the size of the displaying contents of the automatic adjusting portable terminal that provides in the method for the page of the displaying contents of the automatic adjusting portable terminal that the embodiment of the invention 3 provides and the embodiment of the invention 2 can separately be carried out, also can mutually combine and carry out simultaneously, obtain the image space of two of users' position during the image-forming range of the distance that for example can in step 201 or step 301, obtain two of users in portable terminal simultaneously in the portable terminal terminal, when the distance of mobile terminal user is moved (moving here can be that moving of distance also can be that moving of position moved when can also be distance and position), obtain the image space of two of users' position during the image-forming range of the distance of obtaining two of users in step 202 or the step 302 in portable terminal simultaneously in the portable terminal terminal, different according to image-forming range before and after moving and image space respectively in follow-up step are regulated the size and the position of displaying contents in the user terminal respectively.
Embodiment 4
For according to the distance of user and user terminal and the variation of position, regulate the size and the page of displaying contents in the user terminal automatically, the embodiment of the invention provides a kind of user terminal, and referring to Fig. 5, this user terminal comprises:
First acquisition module 401 is used for obtaining first image-forming information of user's facial characteristics at user terminal;
Wherein, user's facial characteristics can be that two, two eyebrows and facial fixing arbitrarily 2 get final product, and the embodiment of the invention does not limit this.
Wherein, the user terminal in the embodiment of the invention can be arbitrary subscriber equipmenies such as portable terminal, PC, PDA, and the embodiment of the invention does not limit this.
Second acquisition module 402 is used for when being moved between user terminal and the user, obtains user's second information of facial characteristics in user terminal;
Adjustment module 403 is used for according to first image-forming information and second image-forming information, regulates displaying contents in the user terminal.
Wherein, the displaying contents in the embodiment of the invention can be font, picture and video etc., and the embodiment of the invention does not limit this.
Wherein, first image-forming information is first image-forming range and/or first image space, and second image-forming information is second image-forming range and/or second image space.
Wherein, adjustment module 403 specifically comprises: regulate magnitude unit and regulate units of pages,
Regulate magnitude unit,, be used for obtaining first image-forming range of first image-forming information and second image-forming range in second image-forming information; According to first image-forming range and second image-forming range, regulate the size of displaying contents in the user terminal.
Regulate units of pages, be used for obtaining first image space of first image-forming information and second image space in second image-forming information; According to first image space and second image space, regulate the page of displaying contents in the user terminal.
Further, regulate magnitude unit, specifically comprise:
First obtains subelement, is used to obtain the size of the displaying contents of user terminal when first image-forming range;
First computation subunit, the size of the displaying contents after being used for ratio according to first image-forming range and second image-forming range and equaling to regulate with regulate before the ratio of size of displaying contents, calculate the size of the displaying contents after regulating;
First regulates subelement, is used for the size according to the displaying contents after regulating, the size of regulating displaying contents in the user terminal.
Further, regulate magnitude unit, also comprise:
Whether first judgment sub-unit, the size that is used to judge the displaying contents after the adjusting be in user terminal preset threshold scope and the screen size that whether surpasses user terminal; The size of the displaying contents after regulating is then regulated the size that subelement is regulated displaying contents in the user terminal by first in user terminal preset threshold scope and not above the screen size of user terminal.
Wherein, regulate units of pages, specifically comprise:
Second computation subunit is used for second image space and first image space are asked poor, obtains the changing value of image space;
Second judgment sub-unit, whether the size of changing value that is used to judge image space is greater than default position threshold
Second regulates subelement, and the size of changing value that is used for judging image space when first judgment sub-unit is during greater than default position threshold, according to the direction of the changing value of image space, the page of displaying contents in the adjusting user terminal.
Wherein, first acquisition module 401 specifically comprises:
First acquiring unit is used for obtaining by the camera of user terminal user's face-image;
First processing unit is used for user's face-image is discerned, and obtains user's first image-forming information of facial characteristics in user terminal;
Correspondingly, second acquisition module 402 specifically comprises:
Second acquisition unit is used for the face-image that camera by user terminal obtains user when being moved between user terminal and the user;
Second processing unit is used for when being moved between user terminal and the user user's face-image and discerns, and obtains user's second image-forming information of facial characteristics in user terminal.
The equipment that the embodiment of the invention provides, when being moved between user terminal and the user, the image-forming range of facial characteristics in user terminal by the user and image space different, regulate the size and the page of the displaying contents of user terminal respectively, the user can get access to displaying contents more clearly and fully obtain displaying contents information, can also realize the automatic page turning function of user terminal, improve user's experience.
The embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, for example, and in the hard disk of router, buffer memory or the CD.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.