Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
At present, digital image understanding technology is widely used owing to having the advantages such as discrimination is high, process is convenient, especially receives publicity especially in face recognition.Face phase recognition technology is development in recent years recognition technology the most fast, and the face of broad sense identifies that comprising facial image acquisition, Face detection, face identifies preliminary treatment, identity validation and identity finder etc. mutually mutually; Only refer in the narrow sense carry out identity validation mutually by face or carry out identity finder.Face is known each other other basic hardware and is configured to camera, and after obtaining suitable digital picture, target face can take off out by computer from background scene, then contrasts with the face phase character in database after carrying out certain process, realizes the identification to face.Along with 3G (3rd Generation, 3G (Third Generation) Moblie) development of technology, for the 3G mobile terminal with digital image understanding technology, its built-in camera can carry out image recognition to the facial characteristics of user, wherein the facial characteristics of user can be the 2 fixing arbitrarily points of the faces such as eyes, nose, face, and the embodiment of the present invention is not restricted this.The embodiment of the present invention by digital identification techniques is applied to user terminal, thus realizes automatically regulating the size of displaying contents in user terminal and the function of the upset page, and particular content is as follows:
Embodiment 1
In order to the change of the Distance geometry position according to user and user terminal, automatically regulate size and the page of displaying contents in user terminal, embodiments provide a kind of method of adjusting displayed content, see Fig. 1, the method comprises:
101: facial characteristics the first image-forming information in the user terminal obtaining user;
Wherein, the facial characteristics of user can be two, two eyebrows and fixing arbitrarily 2 of face, and the embodiment of the present invention is not restricted this.
102: when being moved between user terminal and user, obtain facial characteristics second image-forming information in the user terminal of user;
Wherein, the user terminal in the embodiment of the present invention can be arbitrary subscriber equipment such as mobile terminal, PC, PDA, and the embodiment of the present invention is not restricted this.
103: according to the first image-forming information and the second image-forming information, regulate the displaying contents in user terminal.
Displaying contents in the embodiment of the present invention can be font, picture and video etc., and the embodiment of the present invention is not restricted this.
Wherein, the first image-forming information is the first image-forming range and/or the first image space, and the second image-forming information is the second image-forming range and/or the second image space,
Wherein, when the first image-forming information is the first image-forming range, the second image-forming information is the second image-forming range, according to the first image-forming information and the second image-forming information, regulates the displaying contents in user terminal, is specially:
According to the first image-forming range and the second image-forming range, regulate the size of displaying contents in user terminal.
Wherein, when the first image-forming information is the first image space, the second image-forming information is the second image space, according to the first image-forming information and the second image-forming information, regulates the displaying contents in user terminal, is specially:
According to the first image space and the second image space, regulate the page of displaying contents in user terminal.
Wherein, when the first image-forming information is the first image-forming range and the first image space, the second image-forming information is the second image-forming range and the second image space,
According to the first image-forming information and the second image-forming information, regulate the displaying contents in user terminal, be specially:
According to the first image-forming range and the second image-forming range, regulate the size of displaying contents in user terminal;
According to the first image space and the second image space, regulate the page of displaying contents in user terminal.
Further, according to the first image-forming range and the second image-forming range, regulate the size of displaying contents in user terminal, specifically comprise:
Obtain the size of the displaying contents of user terminal when the first image-forming range;
The size equaling the displaying contents after regulating according to the ratio of the first image-forming range and the 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 adjustment, regulate the size of displaying contents in user terminal.
Further, according to the size of the displaying contents after adjustment, regulate the size of displaying contents in user terminal, also comprise:
Whether the size judging the displaying contents after regulating is in the threshold range of user terminal setting and whether exceed the screen size of user terminal;
The size of displaying contents after regulating is in the threshold range that user terminal set and do not exceed the screen size of user terminal, then according to the size of the displaying contents after regulating, and the size of displaying contents in adjustment user terminal.
Further, according to the first image space and the second image space, regulate the page of displaying contents in user terminal, specifically comprise:
Second image space and the first image space are asked poor, obtains the changing value of image space;
According to the changing value of image space, regulate the page of displaying contents in user terminal.
Further, according to the changing value of image space, regulate the page of displaying contents in user terminal, specifically comprise:
Judge whether the size of the changing value of image space is greater than default position threshold, if so, then according to the direction of the changing value of image space, regulate the page of displaying contents in user terminal.
Wherein, obtain facial characteristics first image-forming information in the user terminal of user, specifically comprise:
The face-image of user is obtained by the camera of user terminal;
The face-image of user is identified, obtains facial characteristics first image-forming information in the user terminal of user;
Correspondingly, when being moved between user terminal and user, obtaining facial characteristics second image-forming information in the user terminal of user, specifically comprise:
By the camera of user terminal obtain be moved between user terminal and user time user face-image;
The face-image of user when being moved between user terminal and user is identified, obtains facial characteristics second image-forming information in the user terminal of user.
The method that the embodiment of the present invention provides, when being moved between user terminal and user, by facial characteristics image-forming range in the user terminal and the difference of image space of user, regulate size and the page of the displaying contents of user terminal respectively, user can get displaying contents more clearly and fully obtain displaying contents information, the automatic page turning function of user terminal can also be realized, improve the experience of user.
Embodiment 2
Embodiments provide a kind of method of adjusting displayed content, the facial characteristics of the user in the embodiment of the present invention for two eye distances of user from, user terminal for 3G mobile terminal, displaying contents for font, by digital image understanding technology to two eye distances of user from and two positions identify thus the displaying contents of mobile terminal automatically adjusted, achieve the size automatically regulating mobile terminal displaying contents, see Fig. 2, below the method for the embodiment of the present invention is described:
201: mobile terminal obtains the face-image of user by interior camera at distance users S place, and obtained image analysis processing is obtained to the image-forming range H1 of user two in the terminal.
Wherein, mobile terminal is when obtaining the face-image of user, need the facial characteristics of the face-image determining user, facial characteristics in the embodiment of the present invention for two eye distances of user from, also can be facial 2 of fixing arbitrarily such as the distance of user two ear, the distance of two eyebrows, this embodiment of the present invention is not restricted.
Wherein, see Fig. 3, the distance of mobile terminal and user is S, is obtained the face-image of user by interior camera, as long as wherein the value of S can set flexibly as required and can ensure that the face-image of acquisition is clear; Mobile terminal is analyzed the image obtained by digital image understanding technology, concrete analytic process can adopt the handling process of existing image recognition technology, image procossing is carried out to the view data collected, identifies user two distance in the terminal in face-image, thus obtain the image-forming range H1 of mobile terminal distance users S place user two, wherein H1 here refers to the image-forming range of two on the inductor Sensor of mobile terminal.
Suppose in the embodiment of the present invention that the actual range of user two is H, the vertical range between camera lens and inductor Sensor is L, and when the distance of user and mobile terminal is S, the font size of mobile terminal display is T.
Mobile terminal in the embodiment of the present invention can be specially mobile phone, notebook computer, PDA etc., to support the 3G mobile terminal of digital image recognition technology in the embodiment of the present invention, other are supported that the method that the mobile terminal embodiment of the present invention of Digital image technology provides is also applicable.
Generally, the camera of 3G mobile terminal is divided into interior camera and outer camera, its China and foreign countries' camera is identical with the function of common camera, for obtaining image in image pickup scope or video, interior camera comprises face-image and the scene etc. around of user for the image obtaining user self, realizes the acquisition video information of video conversation.Within mobile terminal in the embodiment of the present invention, camera obtains the face-image of user is example, can certainly be obtained the face-image of user, be not restricted this embodiment of the present invention by outer camera.
202: when mobile terminal moves to S+ Δ S from distance users S, mobile terminal obtains user's face-image now by interior camera, and this image analysis processing is obtained to the image-forming range H2 of user two in the terminal.
Wherein, the interior camera of mobile terminal is according to predetermined time interval as constantly obtained the face-image of user for 1 second and carrying out the image-forming range that analyzing and processing obtains two, and the do not coexist image-forming range of upper two of inductor Sensor of mobile terminal and the distance of user is also correspondingly different.
See Fig. 3, when mobile terminal and user distance S+ Δ S, the image-forming range of user two on inductor Sensor is H2.
203: mobile terminal is according to H1 and H2, and calculate the changing value Δ T of font size, particular content is as follows:
See Fig. 3, according to the actual range H of user two, the vertical range between camera lens and inductor Sensor is L, and the image-forming range that mobile terminal is two at distance users S place is H1, can obtain formula (1):
H/S=H1/L formula (1)
Be H2 by mobile terminal at the image-forming range of distance users S+ Δ S two, formula (2) can be obtained:
H/ (S+ Δ S)=H2/L formula (2)
Assuming that mobile terminal is T+ Δ T, Δ T in the font size that distance users S+ Δ S place shows is the changing value of font size, formula (3) can be obtained:
(T+ Δ T)/T=(S+ Δ S)/S formula (3)
By above-mentioned formula (1) and formula (2), formula (4) can be obtained:
H1/H2=(S+ Δ S)/S formula (4)
By above-mentioned formula (3) and formula (4), formula (5) can be obtained:
Δ T/T=(H1-H2)/H2 formula (5)
Can be known by formula (5), when mobile terminal is from distance users S, when moving to distance users S+ Δ S place, font size shown by mobile terminal with at S place and relevant at the image-forming range of mobile terminal S+ Δ S place user two, therefore when the distance between mobile terminal and user changes, font size shown by mobile terminal also changes accordingly, and the size of change is see formula (5).Formula (5) also can be derived: T+ Δ T/T=H1/H2, and the font after namely regulating and the image-forming range of user two are inversely proportional to, and the image-forming range that user is two is less, and the font after adjustment is larger; On the contrary, the image-forming range that user is two is larger, and the font after adjustment is less.
204: according to the changing value of font size, judge that the font after converting is whether within the scope of maximum font dot matrix and smallest font dot matrix, if so, then according to the changing value of font size, regulates the font size of mobile terminal automatically.
Wherein, mobile terminal is owing to being subject to the restriction of the dot matrix of self maximum font dot matrix of support and the smallest font of support, so the font size after conversion must within the scope of maximum font dot matrix and smallest font dot matrix, namely the font after change must be less than or equal to maximum font dot matrix, be more than or equal to smallest font dot matrix simultaneously, wherein dot matrix here refers to pixel, and such as dot matrix is 6*6, and namely length and width are respectively 6 pixels.Such as: the maximum font dot matrix of mobile terminal support is 8*8, smallest font dot matrix is 2*2, if the font Δ T+T after conversion is 4*4, font Δ T+T so after conversion is less than maximum font dot matrix 8*8 and is greater than smallest font dot matrix 2*2 simultaneously, then font size is adjusted to Δ T+T automatically by original T; If Δ T+T is 10*10 after font conversion, the font Δ T+T after conversion is greater than maximum font dot matrix 8*8, does not now regulate the font size of mobile terminal display; If Δ T+T is 1*1 after font conversion, the font after conversion is less than smallest font dot matrix 2*2, does not now regulate the font size of mobile terminal display.
For different mobile terminals, the maximum font dot matrix of himself and smallest font dot matrix different, the embodiment of the present invention is not restricted this.In addition, the font of mobile terminal is also subject to the restriction of mobile terminal screen size, and shown font size can not be greater than the screen of mobile terminal, otherwise mobile terminal cannot display font or cannot complete display font.
Above-mentioned steps 201-204 is when mobile terminal is from distance users S, and when moving to distance users S+ Δ S place, the image-forming range of the image that the font size shown by mobile terminal obtains according to different distance user two in the terminal regulates automatically.
Wherein, the displaying contents for mobile terminal is the situation of image and video, and the method that the embodiment of the present invention provides is applicable equally, when displaying contents is image,
moving eventually according to the image that different distance obtains the image-forming range of two in end, regulate the size of picture, but the picture size regulated can not be greater than the size of screen; When displaying contents is video, the image obtained according to the different distance image-forming range of two in the terminal, regulate the size of video, but the video size regulated can not be greater than the size of screen.
The method that the embodiment of the present invention provides, when the spacing of user terminal and user is moved, different by the facial characteristics image-forming range in the user terminal of user, regulate the size of the displaying contents of user terminal, when the distance of user terminal and user becomes large, the displaying contents of user terminal is regulated to become large, so that user can obtain displaying contents more clearly; When the distance of user terminal and user diminishes, regulate the displaying contents of user terminal to diminish, so that user can obtain more displaying contents information, improve the experience of user.
Embodiment 3
Embodiments provide a kind of method of adjusting displayed content, the facial characteristics of the user in the embodiment of the present invention for two eye distances of user from, user terminal for 3G mobile terminal, displaying contents for font, by digital image understanding technology to two eye distances of user from and two positions identify thus the displaying contents of mobile terminal automatically adjusted, achieve the automatic page turning of mobile terminal displaying contents, see Fig. 4, below the method for the embodiment of the present invention is described:
301: mobile terminal obtains the face-image of user by interior camera at distance users S place, and obtained image analysis processing is obtained to the image space P1 of user two in the terminal.
Wherein, mobile terminal is when obtaining the face-image of user, need the facial characteristics of the face-image determining user, facial characteristics in the embodiment of the present invention for two eye distances of user from, also can be the position that face is fixing arbitrarily such as user's ear, nose, this embodiment of the present invention is not restricted.
Wherein, the distance of mobile terminal and user is S, is obtained the face-image of user by interior camera, as long as wherein the value of S can set flexibly as required and can ensure that the face-image of acquisition is clear; Mobile terminal is analyzed the image obtained by digital image understanding technology, concrete analytic process can adopt the handling process of existing image recognition technology, image procossing is carried out to the view data collected, identifies user two positional information in the terminal in face-image, thus obtaining the image space P1 of mobile terminal distance users S place user two, P1 is here the imaging position information of two on the inductor Sensor of mobile terminal.
Mobile terminal in the embodiment of the present invention can be specially mobile phone, notebook computer, PDA etc., to support the 3G mobile terminal of digital image recognition technology in the embodiment of the present invention, other are supported that the method that the mobile terminal embodiment of the present invention of Digital image technology provides is also applicable.
Generally, the camera of 3G mobile terminal is divided into interior camera and outer camera, its China and foreign countries' camera is identical with the function of common camera, for obtaining image in image pickup scope or video, interior camera comprises face-image and the scene etc. around of user for the image obtaining user self, realizes the acquisition video information of video conversation.Within mobile terminal in the embodiment of the present invention, camera obtains the face-image of user is example, can certainly be obtained the face-image of user, be not restricted this embodiment of the present invention by outer camera.
302: when mobile terminal moves to S+ Δ S from distance users S, mobile terminal obtains user's face-image now by interior camera, and this image analysis processing is obtained to the image space P2 of user two in the terminal.
Wherein, the interior camera of mobile terminal is according to predetermined time interval as constantly obtained the face-image of user for 1 second and carrying out the image space that analyzing and processing obtains two, and the do not coexist image space of upper two of inductor Sensor of mobile terminal and the position of user is also correspondingly different.Movement mentioned here refers to the movement on customer location, can be different apart from identical also distance before and after moving for twice.
303: mobile terminal, according to the image space P2 of the image space P1 of user two and user two, judges whether the changing value Δ P of P1 and P2 is greater than predetermined threshold value, if so, perform step 304; Otherwise, terminate.
Wherein, in mobile terminal, can be set predetermined time interval, as 10 frames or 1 second, two the positional information P1 at the image-forming range of inductor and P2 of user in obtained image are analyzed, first judge that whether P1 with P2 be identical, thus judge whether mobile terminal is moved in position; If judge that the image space P2 of the image space P1 of user two and user two is identical, then judge that mobile terminal is not moved in position, then do not regulate the display page of font; If judge that the image space P2 of the image space P1 of user two and user two is different, then judge that mobile terminal is moved in position, whether the changing value Δ P=P2-P1 calculating P2 and P1 is greater than predetermined threshold value, if Δ P is greater than predetermined threshold value, then performs step 304; Otherwise, do not regulate the display page of font.Wherein threshold value here can according to circumstances be arranged flexibly, as being H1/2, here Δ P calculating can horizontal direction can vertical direction can also be also actual range between two positions, the embodiment of the present invention is not restricted for the calculating of distance.
304: according to the moving direction of P1 and P2, regulate the page of display font.
Wherein, when Δ P is greater than predetermined threshold value, then judge the moving direction of image space by P1 to P2 of user two, can be such as whether moving direction on the occasion of judging mobile terminal according to Δ P, if assuming that Δ P is just, then judge that mobile terminal is moved, and arranges the page shown when mobile terminal is moved to the right and automatically translates into next page to the right; On the contrary, if Δ P is negative, then judge that mobile terminal is moved, and arranges the page shown when mobile terminal is moved left and automatically translates into page up left.Certainly, it is negative for also can arranging Δ P, judges that mobile terminal is moved to the right, arranges the page shown when mobile terminal is moved to the right and automatically translate into next page; Δ P is just, judges that mobile terminal is moved left, arranges the page shown when mobile terminal is moved left and automatically translate into page up; The embodiment of the present invention is not restricted for the setting of moving direction and the setting of page turning, and the moving direction of mobile terminal can also be to move up and down and the direction of P2 and P1 is also relative in the terminal, obtain positive and negative be also relative.
Above-mentioned steps 301-304 is that when moving to distance users S+ Δ S place, the font page shown by mobile terminal regulates automatically according to the image space change in the terminal of user two when mobile terminal is from distance users S.Wherein, displaying contents for mobile terminal is the situation of image and video, the method that the embodiment of the present invention provides is applicable equally, when displaying contents is image, according to the image space of obtained image user two in the terminal, regulate the size of picture, but the picture size regulated can not be greater than the size of screen; When displaying contents is video, according to the image space of obtained image user two in the terminal, regulate the size of video, but the video size regulated can not be greater than the size of screen.
The method that the embodiment of the present invention provides, when being moved between user terminal and user, by the difference of the facial characteristics image space in the user terminal of user, regulate the page of the displaying contents of user terminal, when the position of user terminal distance users is moved, page-turning function can be realized according to the page of the automatic adjusting displayed content of the moving direction of user terminal, improve the experience of user.
The method of the size of the displaying contents of the automatic adjustment mobile terminal provided in the method for the page of the displaying contents of the automatic adjustment mobile terminal that the embodiment of the present invention 3 provides and the embodiment of the present invention 2 can separately be carried out, also can be combined with each other and carry out simultaneously, such as, obtain the image space of position in mobile terminal terminal of user two during the distance that can obtain user two in step 201 or step 301 image-forming range in the terminal simultaneously, when distance of mobile terminal user is moved (moving the while that the movement of can be the movement of distance also can the be position of movement here can also being Distance geometry position), obtain the image space of position in mobile terminal terminal of user two during the distance obtaining user two in step 202 or step 302 image-forming range in the terminal simultaneously, in subsequent steps respectively according to the mobile image-forming range of front and back and the difference of image space, regulate size and the position of displaying contents in user terminal respectively.
Embodiment 4
In order to the change of the Distance geometry position according to user and user terminal, automatically regulate size and the page of displaying contents in user terminal, embodiments provide a kind of user terminal, see Fig. 5, this user terminal comprises:
First acquisition module 401, for obtaining facial characteristics first image-forming information in the user terminal of user;
Wherein, the facial characteristics of user can be two, two eyebrows and fixing arbitrarily 2 of face, and the embodiment of the present invention is not restricted this.
Wherein, the user terminal in the embodiment of the present invention can be arbitrary subscriber equipment such as mobile terminal, PC, PDA, and the embodiment of the present invention is not restricted this.
Second acquisition module 402, during for being moved between user terminal and user, obtains facial characteristics second information in the user terminal of user;
Adjustment module 403, for according to the first image-forming information and the second image-forming information, regulates displaying contents in user terminal.
Wherein, the displaying contents in the embodiment of the present invention can be font, picture and video etc., and the embodiment of the present invention is not restricted this.
Wherein, the first image-forming information is the first image-forming range and/or the first image space, and the second image-forming information is the second image-forming range and/or the second image space.
Wherein, adjustment module 403 specifically comprises: adjusting size unit and adjustment units of pages,
Adjusting size unit, for obtaining the first image-forming range in the first image-forming information and the second image-forming range in the second image-forming information; According to the first image-forming range and the second image-forming range, regulate the size of displaying contents in user terminal.
Regulate units of pages, for obtaining the first image space in the first image-forming information and the second image space in the second image-forming information; According to the first image space and the second image space, regulate the page of displaying contents in user terminal.
Further, adjusting size unit, specifically comprises:
First obtains subelement, for obtaining the size of the displaying contents of user terminal when the first image-forming range;
First computation subunit, for equaling the ratio of the size of the size of the displaying contents after regulating and the displaying contents before regulating according to the ratio of the first image-forming range and the second image-forming range, calculates the size of the displaying contents after regulating;
First regulates subelement, for the size according to the displaying contents after adjustment, regulates the size of displaying contents in user terminal.
Further, adjusting size unit, also comprises:
First judgment sub-unit, for judge the displaying contents after regulating size whether in the threshold range of user terminal setting and whether exceed the screen size of user terminal; The size of displaying contents after regulating is in the threshold range that user terminal set and do not exceed the screen size of user terminal, then regulate the size of displaying contents in subelement adjustment user terminal by first.
Wherein, regulate units of pages, specifically comprise:
Second computation subunit, for the second image space and the first image space are asked poor, obtains the changing value of image space;
Second judgment sub-unit, for judging whether the size of the changing value of image space is greater than default position threshold
Second regulates subelement, for when the first judgment sub-unit judges that the size of the changing value of image space is greater than default position threshold, according to the direction of the changing value of image space, regulates the page of displaying contents in user terminal.
Wherein, the first acquisition module 401, specifically comprises:
First acquiring unit, for obtaining the face-image of user by the camera of user terminal;
First processing unit, for identifying the face-image of user, obtains facial characteristics first image-forming information in the user terminal of user;
Correspondingly, the second acquisition module 402, specifically comprises:
Second acquisition unit, the face-image of user when being moved between user terminal and user for being obtained by the camera of user terminal;
Second processing unit, for identifying the face-image of user when being moved between user terminal and user, obtains facial characteristics second image-forming information in the user terminal of user.
The equipment that the embodiment of the present invention provides, when being moved between user terminal and user, by facial characteristics image-forming range in the user terminal and the difference of image space of user, regulate size and the page of the displaying contents of user terminal respectively, user can get displaying contents more clearly and fully obtain displaying contents information, the automatic page turning function of user terminal can also be realized, improve the experience of user.
The embodiment of the present invention can utilize software simulating, and corresponding software program can be stored in the storage medium that can read, such as, in the hard disk of router, buffer memory or CD.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.