CN110162138A - Folding angles adjusting method, device and collapsible terminal - Google Patents

Folding angles adjusting method, device and collapsible terminal Download PDF

Info

Publication number
CN110162138A
CN110162138A CN201910285768.0A CN201910285768A CN110162138A CN 110162138 A CN110162138 A CN 110162138A CN 201910285768 A CN201910285768 A CN 201910285768A CN 110162138 A CN110162138 A CN 110162138A
Authority
CN
China
Prior art keywords
face
image
folding angles
folding
recognition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910285768.0A
Other languages
Chinese (zh)
Other versions
CN110162138B (en
Inventor
廖声洋
唐文斌
吴文昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology Co Ltd
Original Assignee
Beijing Maigewei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Maigewei Technology Co Ltd filed Critical Beijing Maigewei Technology Co Ltd
Priority to CN201910285768.0A priority Critical patent/CN110162138B/en
Publication of CN110162138A publication Critical patent/CN110162138A/en
Application granted granted Critical
Publication of CN110162138B publication Critical patent/CN110162138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a kind of folding angles adjusting method, device and collapsible terminal, a kind of folding angles adjusting method includes: to open Image Acquisition in response to the camera of collapsible terminal, and the image for being used for recognition of face is obtained from camera acquired image;Recognition of face is carried out to the image for recognition of face, obtains the face information carried in the image for recognition of face;According to face information, folding angles adjusting is carried out to the folding screen of collapsible terminal.In the embodiment of the present invention, it can be by obtaining the face information of collapsible terminal user in real time, based on real-time face information, come automatically adjust collapsible terminal folding screen folding angles, since the face information carried in the image that obtains in real time can largely reflect spatial position of the collapsible terminal user relative to the collapsible terminal, therefore the folding angles that folding screen can be relatively accurately adjusted in the case where being operated manually without user, improve adjusting efficiency.

Description

Folding angles adjusting method, device and collapsible terminal
Technical field
The present invention relates to field of artificial intelligence, in particular to a kind of folding angles adjusting method, device and foldable Terminal.
Background technique
With the development of science and technology with the promotion of technical industry application level, the performance of terminal is higher and higher, hardware It configures more and more complete.At the same time, to make the mode of appearance of terminal with more innovative and attraction, with flexible screen Collapsible terminal enters the sight of people gradually.
In the prior art, if to adjust the folding angles of folding screen in collapsible terminal, user is needed to grasp manually It is adjusted, operates comparatively laborious and is not easy control, efficiency is lower.
Summary of the invention
The embodiment of the present invention provides a kind of folding angles adjusting method, device and collapsible terminal, to solve the prior art Present in folding angles the technical issues of adjusting cumbersome, low efficiency.
According to the first aspect of the invention, a kind of folding angles adjusting method is disclosed, collapsible terminal is applied to, it is described Method includes:
Image Acquisition is opened in response to the camera of the collapsible terminal, is obtained from the camera acquired image Take the image in recognition of face;
Recognition of face is carried out to the image for recognition of face, obtains carrying in the image for recognition of face Face information, wherein the face information is for reflecting spatial position of the face relative to the collapsible terminal;
According to the face information, folding angles adjusting is carried out to the folding screen of the collapsible terminal.
Optionally, described that recognition of face is carried out to the image for recognition of face as one embodiment, obtain institute State the face information carried in the image for recognition of face, comprising:
By preset Face datection model, determining in the image for recognition of face whether there is face;
If there are faces in the image for recognition of face, the use is determined by the Face datection model Human face region in the image of recognition of face.
Optionally, described according to the face information as one embodiment, to the folding screen of the collapsible terminal Carry out folding angles adjusting, comprising:
According to the dimension information of the human face region, target folding angles are determined;
According to the target folding angles, the folding angles of the folding screen of the collapsible terminal are adjusted.
Optionally, as one embodiment, the dimension information according to the human face region determines target angle folding Degree, comprising:
According to the dimension information of the human face region, the equivalent diameter of the human face region is determined;
According to the equivalent circular of mapping relations and the human face region between preset equivalent diameter and folding angles Diameter determines target folding angles.
Optionally, as one embodiment, the mapping relations between the equivalent diameter and folding angles include:
Degree=D*K+C, wherein Degree is folding angles, and K is collapse factors, and D is equivalent diameter, and C is amendment Coefficient.
Optionally, described according to the target folding angles as one embodiment, adjust the folding of the collapsible terminal The folding angles of folded screen, comprising:
Determine the target folding angles whether within the scope of the folding angles of preset collapsible terminal;
If controlling the folding screen and adjusting to target folding angles;
If not, controlling the folding screen adjusts the maximum folded angle into the folding angles range.
According to the second aspect of the invention, a kind of folding angles regulating device is disclosed, collapsible terminal is applied to, it is described Device includes:
Image collection module opens Image Acquisition for the camera in response to the collapsible terminal, from the camera shooting The image for being used for recognition of face is obtained in head acquired image;
Face recognition module obtains described for people for carrying out recognition of face to the image for recognition of face The face information carried in the image of face identification, wherein the face information is for reflecting face relative to the foldable end The spatial position at end;
Angular adjustment module, for being folded to the folding screen of the collapsible terminal according to the face information Angular adjustment.
Optionally, as one embodiment, the face recognition module, comprising:
First determines submodule, for determining the image for being used for recognition of face by preset Face datection model In whether there is face;
Second determines submodule, for determining that the definitive result of submodule is in the case where being, to pass through institute described first State the human face region in the determining image for recognition of face of Face datection model.
Optionally, as one embodiment, the angular adjustment module, comprising:
Third determines submodule, for the dimension information according to the human face region, determines target folding angles;
Folding angles adjust submodule, for adjusting the folding of the collapsible terminal according to the target folding angles The folding angles of screen.
Optionally, as one embodiment, the third determines submodule, comprising:
Equivalent diameter determination unit determines the human face region for the dimension information according to the human face region Equivalent diameter;
Folding angles determination unit, for according between preset equivalent diameter and folding angles mapping relations, with And the equivalent diameter of the human face region, determine target folding angles.
Optionally, as one embodiment, the mapping relations between the equivalent diameter and folding angles include:
Degree=D*K+C, wherein Degree is folding angles, and D is equivalent diameter, and K is collapse factors, and C is amendment Coefficient.
Optionally, as one embodiment, the folding angles adjust submodule, comprising:
Angular range determination unit, for determine the target folding angles whether preset collapsible terminal folding In angular range;
First control unit, for controlling institute in the case where the definitive result of the angular range determination unit, which is, is Folding screen is stated to adjust to target folding angles;
Second control unit, for controlling institute in the case where the definitive result of the angular range determination unit is no It states folding screen and adjusts the maximum folded angle into the folding angles range.
According to the third aspect of the invention we, a kind of collapsible terminal is disclosed, comprising: memory, processor and be stored in On the memory and the program that can run on the processor, described program realize institute as above when being executed by the processor The step of folding angles adjusting method stated.
Optionally, as one embodiment, the collapsible terminal further include:
Screen and camera.
According to the fourth aspect of the invention, a kind of computer readable storage medium, the computer-readable storage are disclosed It is stored with program on medium, the step in folding angles adjusting method as described above is realized when described program is executed by processor Suddenly.
In the embodiment of the present invention, real-time people can be based on by obtaining the face information of collapsible terminal user in real time Face information, come automatically adjust collapsible terminal folding screen folding angles, due to the people carried in the image that obtains in real time Face information can largely reflect spatial position of the collapsible terminal user relative to the collapsible terminal, therefore can be with The folding angles that folding screen is relatively accurately adjusted in the case where being operated manually without user improve adjusting effect Rate.
Detailed description of the invention
Fig. 1 is the flow chart of the folding angles adjusting method of one embodiment of the present of invention;
Fig. 2 is the scene figure of the folding angles adjusting method of one embodiment of the present of invention;
Fig. 3 is the flow chart of the folding angles adjusting method of another embodiment of the invention;
Fig. 4 is the exemplary diagram of the human face region of one embodiment of the present of invention;
Fig. 5 is the structural schematic diagram of the collapsible terminal of one embodiment of the present of invention;
Fig. 6 is the structural schematic diagram of the folding angles regulating device of one embodiment of the present of invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
As terminal market competition is more and more fierce, merely relying on hardware configuration cannot attract more electronics to disappear Fei Zhe, in this case, more and more manufacturer terminals focus on differentiation functional planning, design and the marketing of product Etc..Currently, needing user to manually adjust, operation is compared when the folding angles of folding screen in adjusting collapsible terminal Cumbersome and be not easy control, efficiency is lower.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of folding angles adjusting methods, device and can Fold terminal.
A kind of folding angles adjusting method provided in an embodiment of the present invention is introduced first below.
It should be noted that method provided in an embodiment of the present invention is suitable for collapsible terminal, in practical applications, this can Folding terminal may include: foldable mobile phone, foldable panel computer and foldable TV etc., and the embodiment of the present invention does not make this It limits.
Fig. 1 is the flow chart of the folding angles adjusting method of one embodiment of the present of invention, as shown in Figure 1, this method can The following steps are included: step 101, step 102 and step 103, wherein
In a step 101, Image Acquisition is opened in response to the camera of collapsible terminal, from the collected figure of the camera The image for being used for recognition of face is obtained as in.
In the embodiment of the present invention, in an application scenarios, the automatic of open collapsible screen can be chosen whether by user Regulatory function, such as user click some button or icon to open/close the automatic regulation function of folding screen, when user selects When selecting the automatic regulation function of open collapsible screen, the camera of collapsible terminal opens Image Acquisition;When user selects to close When the automatic regulation function of folding screen, the camera of collapsible terminal stops Image Acquisition.
In the embodiment of the present invention, in another application scenarios, it can be set when meeting setting condition, automatically turn on folding The automatic regulation function of folded screen, wherein setting condition may include: terminal booting, a certain special time period etc..
In the embodiment of the present invention, " camera of collapsible terminal " can dispatch from the factory preset camera for collapsible terminal, Or the camera of wired connection or wireless connection is carried out with collapsible terminal.
In the embodiment of the present invention, camera acquired image can be with one or more, when camera acquired image When being one, directly using the image as the image for being used for recognition of face.It, can be with when camera acquired image is multiple Select one or more image as the image for being used for recognition of face from multiple collected images;Specifically, can basis The quantity of the computing capability selection image of collapsible terminal, optionally, when the computing capability of collapsible terminal is higher, from acquisition To multiple images in select multiple images as be used for recognition of face image, when the computing capability of collapsible terminal is lower When, select an image as the image for being used for recognition of face from multiple collected images.For example, can be from collected One or more picture quality is selected in multiple images, and higher (such as clarity is higher, face coverage extent is lower, and/or face Deflection angle is smaller etc.) image as the image for being used for recognition of face.
In a step 102, recognition of face is carried out to the image for recognition of face, obtained in the image for recognition of face The face information of carrying, wherein the face information is for reflecting spatial position of the face relative to collapsible terminal.
In the embodiment of the present invention, when the image for recognition of face is one, recognition of face directly is carried out to the image, Obtain lineup's face information;When the image for recognition of face is multiple, people is carried out to every image in multiple images Face identification, obtains multiple groups face information.
In the embodiment of the present invention, Face datection model can be pre-created by great amount of samples, use the people being pre-created Face detection model carries out recognition of face to the image for recognition of face;Also any people in the relevant technologies can be used Face recognizer (for example, template matching algorithm) carries out recognition of face, the embodiment of the present invention to the image for recognition of face This is not construed as limiting.
In the embodiment of the present invention, spatial position of the face relative to collapsible terminal may include: face (user) to can Fold the angle etc. of the distance and face of terminal relative to collapsible terminal.
In step 103, according to face information, folding angles adjusting is carried out to the folding screen of collapsible terminal.
In the embodiment of the present invention, when the image for recognition of face is one, it is based on lineup's face information, to foldable The folding screen of terminal carries out folding angles adjusting;When the image for recognition of face is multiple, it is based on multiple groups face information, Folding angles adjusting is carried out to the folding screen of collapsible terminal.
Consider when user is smaller at a distance from collapsible terminal, the visual angle of user is smaller, the Folding screen of collapsible terminal Curtain watches the content shown in folding screen conducive to user without folding;And when user is larger at a distance from collapsible terminal When, the visual angle of user is larger, and the folding screen of collapsible terminal is folded, and watches user the content shown in folding screen Influence it is smaller, and face information can largely reflect face relative to collapsible terminal spatial position (packet Include distance etc.);Therefore in the embodiment of the present invention, according to face information, folding angles are carried out to the folding screen of collapsible terminal It adjusts, can relatively accurately adjust the folding angles of folding screen.
In order to make it easy to understand, application scenario diagram as shown in connection with fig. 2 carries out technical solution provided in an embodiment of the present invention Description.As shown in Fig. 2, the folding screen of collapsible terminal 20 is not rolled over when user 21 is 1 meter at a distance from collapsible terminal 20 It is folded;When user 21 is 2 meters at a distance from collapsible terminal 20, the slightly folding of the folding screen of collapsible terminal 20;When with When family 21 is 3 meters at a distance from collapsible terminal 20, the folding screen of collapsible terminal 20 is further folded.
As seen from the above-described embodiment, in the embodiment, can by obtaining the face information of collapsible terminal user in real time, Based on real-time face information, come automatically adjust collapsible terminal folding screen folding angles, due to the figure obtained in real time The face information carried as in can largely reflect space of the collapsible terminal user relative to the collapsible terminal Position, therefore the angle folding of folding screen can be relatively accurately adjusted in the case where being operated manually without user Degree, improves adjusting efficiency.
Fig. 3 is the flow chart of the folding angles adjusting method of another embodiment of the invention, can in the embodiment of the present invention Face datection model is pre-created, using the Face datection model being pre-created, to the image progress for recognition of face Recognition of face, to improve the efficiency of recognition of face, at this point, as shown in figure 3, this method may comprise steps of: step 301, Step 302, step 303, step 304 and step 305, wherein
In step 301, Image Acquisition is opened in response to the camera of collapsible terminal, from the collected figure of the camera The image for being used for recognition of face is obtained as in.
In the embodiment of the present invention, in an application scenarios, the automatic of open collapsible screen can be chosen whether by user Regulatory function, when user selects the automatic regulation function of open collapsible screen, the camera of collapsible terminal is opened image and is adopted Collection;When user selects to close the automatic regulation function of folding screen, the camera of collapsible terminal stops Image Acquisition.
In the embodiment of the present invention, in another application scenarios, it can be set when meeting setting condition, automatically turn on folding The automatic regulation function of folded screen, wherein setting condition may include: terminal booting, a certain special time period etc..
In the embodiment of the present invention, " camera of collapsible terminal " can dispatch from the factory preset camera for collapsible terminal, Or the camera of wired connection or wireless connection is carried out with collapsible terminal.
In the embodiment of the present invention, camera acquired image can be with one or more, when camera acquired image When being one, directly using the image as the image for being used for recognition of face.It, can be with when camera acquired image is multiple Select one or more image as the image for being used for recognition of face from multiple collected images;Specifically, can basis The quantity of the computing capability selection image of collapsible terminal, optionally, when the computing capability of collapsible terminal is higher, from acquisition To multiple images in select multiple images as be used for recognition of face image, when the computing capability of collapsible terminal is lower When, select an image as the image for being used for recognition of face from multiple collected images.For example, can be from collected One or more picture quality is selected in multiple images, and higher (such as clarity is higher, face coverage extent is lower, and/or face Deflection angle is smaller etc.) image as the image for being used for recognition of face.
In step 302, it by preset Face datection model, determines and whether there is people in the image for recognition of face Face, if it is, step 303, does not otherwise deal with.
It can also include below for constructing Face datection model before above-mentioned steps 302 in the embodiment of the present invention Step (not shown): step 3001, step 3002, step 3003 and step 3004, wherein
In step 3001, the facial image sample of preset quantity is acquired;
In the embodiment of the present invention, it is contemplated that the sample data of selection is more, and training result is more accurate, reliable, therefore can To preferably select a large amount of facial image samples of acquisition, for example, 100,000 facial images of acquisition are as facial image sample.
In step 3002, face key point mark is carried out to facial image sample, obtains the facial image with mark;
In the embodiment of the present invention, face key point includes but is not limited to: facial contour point, eye contour point, nose profile Point, eyebrow outline point, forehead profile point, upper lip profile point and lower lip profile point.
In the embodiment of the present invention, in order to guarantee the accuracy of training result, face pass can be carried out to facial image sample Key point precisely marks, i.e. the accuracy of the input data of guarantee model training.The book for needing to illustrate can in the embodiment of the present invention To carry out face key point mark to facial image sample using any mask method in the relevant technologies.
In step 3003, the facial image with mark is divided into training set, verifying collection and test set;
In the embodiment of the present invention, training set is for the primary data as model training, and verifying collection is for assembling for training to training The model got is verified and is corrected, and test set is used to test the model that final training obtains, and measures the model Performance and accuracy the model can be used and carry out subsequent recognition of face if test passes through, if test is not led to It crosses, then re-starts model training.
In step 3004, model training is carried out to training set using preset model training algorithm, and using verifying Mid-module in the set pair analysis model training process is verified, until the verification result of verifying collection and the matching degree of annotation results reach To preset threshold, stops model training, obtain training pattern;Training pattern is tested using test set, if test is logical It crosses, then using training pattern as Face datection model.
In the embodiment of the present invention, the related algorithm of machine learning can be used, such as neural network algorithm, logistic regression are calculated Method etc. carries out model training to training set.
In the embodiment of the present invention, training pattern is tested using test set, if test does not pass through, is re-started Model training.
As it can be seen that Face datection is carried out to the image for recognition of face using face detection model in the embodiment of the present invention, Since Face datection model is to be trained using a large amount of facial image samples, correct and obtain therefore can relatively accurately carry out Face datection.
In the embodiment of the present invention, if for recognition of face image in be not present face, no longer to the image work at Reason, and camera collection image is continued through, therefrom selection is subsequently used for the image of recognition of face;If for recognition of face There are faces in image, then further determine that human face region.
In step 303, the human face region in the image for recognition of face is determined by Face datection model.
In the embodiment of the present invention, human face region is the region for covering face key point.The shape of human face region can be square Shape, or other shapes, such as hexagonal area, ellipse and circle etc..
In order to make it easy to understand, image-region 42 is to use as shown in figure 4, image-region 41 is the image for recognition of face Face in the image of recognition of face, image-region 43 are for the human face region in the image of recognition of face.
In step 304, according to the dimension information of human face region, target folding angles are determined.
In the embodiment of the present invention, in order to make it easy to understand, be described so that the shape of human face region is rectangle as an example, at this point, The dimension information of human face region may include: the width and length of human face region.
In the embodiment of the present invention, consider in face relative to collapsible terminal in angled inclined situation, according only to people The length in face region can not accurately determine target folding angles, according only to the width of human face region, can not also accurately determine Target folding angles can calculate its equivalent diameter of a circle, according to it in order to overcome this problem according to the size of human face region Equivalent diameter of a circle determines target folding angles, i.e. the equivalent circular in user's face region directly can overcome the angle of face to ask Topic, at this point, above-mentioned steps 304 can specifically include following steps (not shown): step 3041 and step 3042, wherein
In step 3041, according to the dimension information of human face region, the equivalent diameter of human face region is determined;
In one example, the length of human face region be H, width W, first calculate human face region area S=H*W, Its equivalent diameter of a circle is calculated later
In the embodiment of the present invention, when the image for recognition of face is one, according to the ruler of human face region in the image Very little information can determine an equivalent diameter, and the equivalent diameter is for determining target folding angles;When for recognition of face Image when being multiple, calculate separately the corresponding equivalent diameter of human face region in every image, it is multiple etc. to what is be calculated Effect circular diameter is weighted and averaged operation, and the equivalent diameter being weighted and averaged is for determining target folding angles.
In step 3042, according between preset equivalent diameter and folding angles mapping relations and face area The equivalent diameter in domain determines target folding angles.
In the embodiment of the present invention, the mapping relations between equivalent diameter and folding angles can be linear relationship, can also With non-linear relation.
In the embodiment of the present invention, when the mapping relations between equivalent diameter and folding angles are linear relationship, this is reflected The relationship of penetrating can be with are as follows: Degree=D*K+C, wherein Degree is folding angles, and K is collapse factors, and D is equivalent diameter, C For correction factor.In practical applications, C can be 0, or other numerical value.
In the embodiment of the present invention, collapse factors can be configured by research staff according to experimental data, can also be passed through Certain algorithm is calculated, and the embodiment of the present invention is not construed as limiting this.
In the embodiment of the present invention, target folding angles are as follows: the folding angles relative to collapsible terminal reset condition.
In step 305, according to target folding angles, the folding angles of the folding screen of collapsible terminal are adjusted.
In the embodiment of the present invention, it is contemplated that collapsible terminal usually all has limit folding angles, i.e., will not be unlimitedly It folds, if it exceeds the limit folding angles of collapsible terminal, will cause the damage of collapsible terminal, in order to overcome this to ask Topic, above-mentioned steps 305 can specifically include following steps (not shown): step 3051, step 3052 and step 3053, In,
In step 3051, determine target folding angles whether within the scope of the folding angles of preset collapsible terminal;
In the embodiment of the present invention, the folding angles range of collapsible terminal be (the minimum folding angles of collapsible terminal~ The maximum folded angle of collapsible terminal).
In step 3052, in situation of the target folding angles within the scope of the folding angles of preset collapsible terminal Under, control folding screen is adjusted to target folding angles;
In step 3053, in the target folding angles not situation within the scope of the folding angles of preset collapsible terminal Under, control folding screen adjusts the maximum folded angle into folding angles range.
As it can be seen that, when the folding angles for carrying out folding screen are adjusted, can first judge adjust in the embodiment of the present invention Whether the folding angles arrived are in the folded range of collapsible terminal, if adjusting to corresponding and folding in folded range Angle, if adjusted not in folded range to the maximum folded angle of collapsible terminal, to avoid the damage of collapsible terminal It is bad.
As seen from the above-described embodiment, in the embodiment, can by obtaining the face information of collapsible terminal user in real time, Based on real-time face information, come automatically adjust collapsible terminal folding screen folding angles, due to the figure obtained in real time The face information carried as in can largely reflect space of the collapsible terminal user relative to the collapsible terminal Position, therefore the angle folding of folding screen can be relatively accurately adjusted in the case where being operated manually without user Degree, improves adjusting efficiency.
For the ease of understanding technical solution of the present invention, in conjunction with the structure chart doubling of a specific collapsible terminal The process of folded angle automatic adjustment is described, and Fig. 5 shows the structure chart of the collapsible terminal of one embodiment of the present of invention, As shown in figure 5, collapsible terminal 500 may include: processor 501, screen 502, memory 503, fold 504 and of control module Camera (not shown), wherein screen 502 is flexible screen, and folding control module 504 includes 5041 He of face detection module Fold drive module 5042.
In one scenario, user opens the folding screen automatic regulation function based on Face datection and (such as clicks certain A button or icon), processor 501 loads folding screen from memory 503 and adjusts default parameters table, wherein the default It can recorde the folding angles range of folding screen, folding angles adjustment factor etc. in parameter list.
At the same time, processor 501 indicates that camera opens Image Acquisition, and processor 501 is from the collected figure of camera Selection is used for the image of recognition of face in picture, and indicates that face detection module 5041 carries out Face datection and determine to be somebody's turn to do to the image Human face region in image, processor 501 are straight according to the human face region information calculating equivalent circular that face detection module 5041 returns Diameter calculates target folding angles according to equivalent diameter, and instruction folds drive module 5042 after calculating target folding angles Screen 502 is driven to carry out the automatic adjustment of folding angles.
It should be noted that the structure chart of collapsible terminal shown in fig. 5 is merely illustrative structure chart, the embodiment of the present invention The structure of middle collapsible terminal is not limited to a kind of this structure, other can be realized the structure of present invention method also at this In the protection scope of inventive embodiments.
Fig. 6 is the structural schematic diagram of the folding angles regulating device of one embodiment of the present of invention, which is adjusted Device is applied to collapsible terminal, as shown in fig. 6, folding angles regulating device 600, may include: image collection module 601, Face recognition module 602 and angular adjustment module 603, wherein
Image collection module 601 is opened Image Acquisition for the camera in response to the collapsible terminal, is taken the photograph from described The image of recognition of face is used for as obtaining in head acquired image;
Face recognition module 602 obtains described be used for for carrying out recognition of face to the image for recognition of face The face information carried in the image of recognition of face, wherein the face information is for reflecting face relative to described foldable The spatial position of terminal;
Angular adjustment module 603, for being rolled over to the folding screen of the collapsible terminal according to the face information Folded angular adjustment.
As seen from the above-described embodiment, in the embodiment, can by obtaining the face information of collapsible terminal user in real time, Based on real-time face information, come automatically adjust collapsible terminal folding screen folding angles, due to the figure obtained in real time The face information carried as in can largely reflect space of the collapsible terminal user relative to the collapsible terminal Position, therefore the angle folding of folding screen can be relatively accurately adjusted in the case where being operated manually without user Degree, improves adjusting efficiency.
Optionally, as one embodiment, the face recognition module 602 may include:
First determines submodule, for determining the image for being used for recognition of face by preset Face datection model In whether there is face;
Second determines submodule, for determining that the definitive result of submodule is in the case where being, to pass through institute described first State the human face region in the determining image for recognition of face of Face datection model.
Optionally, as one embodiment, the angular adjustment module 603 may include:
Third determines submodule, for the dimension information according to the human face region, determines target folding angles;
Folding angles adjust submodule, for adjusting the folding of the collapsible terminal according to the target folding angles The folding angles of screen.
Optionally, as one embodiment, the third determines submodule, may include:
Equivalent diameter determination unit determines the human face region for the dimension information according to the human face region Equivalent diameter;
Folding angles determination unit, for according between preset equivalent diameter and folding angles mapping relations, with And the equivalent diameter of the human face region, determine target folding angles.
Optionally, as one embodiment, the mapping relations between the equivalent diameter and folding angles include:
Degree=D*K+C, wherein Degree is folding angles, and D is equivalent diameter, and K is collapse factors, and C is amendment Coefficient.
Optionally, as one embodiment, the folding angles adjust submodule, may include:
Angular range determination unit, for determine the target folding angles whether preset collapsible terminal folding In angular range;
First control unit, for controlling institute in the case where the definitive result of the angular range determination unit, which is, is Folding screen is stated to adjust to target folding angles;
Second control unit, for controlling institute in the case where the definitive result of the angular range determination unit is no It states folding screen and adjusts the maximum folded angle into the folding angles range.
As it can be seen that, when the folding angles for carrying out folding screen are adjusted, can first judge adjust in the embodiment of the present invention The folding angles arrived, if in the folded range of collapsible terminal, if adjusting to corresponding and folding in folded range Angle, if only adjusted not in folded range to the maximum folded angle of the limit, to avoid the damage of collapsible terminal.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
According to still another embodiment of the invention, the present invention also provides a kind of collapsible terminals, comprising: memory, place It manages device and is stored in the program that can be run on the memory and on the processor, described program is executed by the processor The step of folding angles adjusting method of the Shi Shixian as described in any one above-mentioned embodiment.
Optionally, in one embodiment, the collapsible terminal further include:
Screen and camera.
Still another embodiment in accordance with the present invention, the present invention also provides a kind of computer readable storage medium, the meter It is stored with program on calculation machine readable storage medium storing program for executing, is realized when described program is executed by processor such as any one above-mentioned embodiment institute The step in folding angles adjusting method stated.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of folding angles adjusting method provided by the present invention, device and collapsible terminal, carry out in detail It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments It is merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of folding angles adjusting method is applied to collapsible terminal, which is characterized in that the described method includes:
Image Acquisition is opened in response to the camera of the collapsible terminal, obtains and uses from the camera acquired image In the image of recognition of face;
Recognition of face is carried out to the image for recognition of face, obtains the people carried in the image for recognition of face Face information, wherein the face information is for reflecting spatial position of the face relative to the collapsible terminal;
According to the face information, folding angles adjusting is carried out to the folding screen of the collapsible terminal.
2. the method according to claim 1, wherein described carry out face to the image for recognition of face Identification obtains the face information carried in the image for recognition of face, comprising:
By preset Face datection model, determining in the image for recognition of face whether there is face;
If there are faces in the image for recognition of face, determined by the Face datection model described for people Human face region in the image of face identification.
3. according to the method described in claim 2, it is characterized in that, described according to the face information, to the foldable end The folding screen at end carries out folding angles adjusting, comprising:
According to the dimension information of the human face region, target folding angles are determined;
According to the target folding angles, the folding angles of the folding screen of the collapsible terminal are adjusted.
4. according to the method described in claim 3, it is characterized in that, the dimension information according to the human face region, determines Target folding angles, comprising:
According to the dimension information of the human face region, the equivalent diameter of the human face region is determined;
Equivalent circular according to mapping relations and the human face region between preset equivalent diameter and folding angles is straight Diameter determines target folding angles.
5. according to the method described in claim 4, it is characterized in that, the mapping between the equivalent diameter and folding angles is closed System includes:
Degree=D*K+C, wherein Degree is folding angles, and K is collapse factors, and D is equivalent diameter, and C is amendment system Number.
6., can described in adjustment according to the method described in claim 3, it is characterized in that, described according to the target folding angles Fold the folding angles of the folding screen of terminal, comprising:
Determine the target folding angles whether within the scope of the folding angles of preset collapsible terminal;
If controlling the folding screen and adjusting to target folding angles;
If it was not then controlling the folding screen adjusts the maximum folded angle into the folding angles range.
7. a kind of folding angles regulating device, it is applied to collapsible terminal, which is characterized in that described device includes:
Image collection module is opened Image Acquisition for the camera in response to the collapsible terminal, is adopted from the camera The image for being used for recognition of face is obtained in the image collected;
Face recognition module obtains described for face knowledge for carrying out recognition of face to the image for recognition of face The face information carried in other image, wherein the face information is for reflecting face relative to the collapsible terminal Spatial position;
Angular adjustment module, for carrying out folding angles to the folding screen of the collapsible terminal according to the face information It adjusts.
8. a kind of collapsible terminal characterized by comprising memory, processor and be stored on the memory and can be The program run on the processor is realized when described program is executed by the processor such as any one of claims 1 to 6 institute The step of folding angles adjusting method stated.
9. collapsible terminal according to claim 8, which is characterized in that the collapsible terminal further include:
Screen and camera.
10. a kind of computer readable storage medium, which is characterized in that it is stored with program on the computer readable storage medium, It realizes when described program is executed by processor such as the step in folding angles adjusting method described in any one of claims 1 to 6 Suddenly.
CN201910285768.0A 2019-04-10 2019-04-10 Folding angle adjusting method and device and foldable terminal Active CN110162138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910285768.0A CN110162138B (en) 2019-04-10 2019-04-10 Folding angle adjusting method and device and foldable terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910285768.0A CN110162138B (en) 2019-04-10 2019-04-10 Folding angle adjusting method and device and foldable terminal

Publications (2)

Publication Number Publication Date
CN110162138A true CN110162138A (en) 2019-08-23
CN110162138B CN110162138B (en) 2021-05-28

Family

ID=67639353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910285768.0A Active CN110162138B (en) 2019-04-10 2019-04-10 Folding angle adjusting method and device and foldable terminal

Country Status (1)

Country Link
CN (1) CN110162138B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826414A (en) * 2019-10-10 2020-02-21 珠海格力电器股份有限公司 Display control method and device of mobile terminal, terminal and medium
CN111124235A (en) * 2019-12-31 2020-05-08 维沃移动通信有限公司 Screen control method and flexible electronic equipment
CN111240567A (en) * 2020-01-08 2020-06-05 维沃移动通信有限公司 Display screen angle adjusting method and electronic equipment
CN111738043A (en) * 2019-12-10 2020-10-02 珠海大横琴科技发展有限公司 Pedestrian re-identification method and device
CN111967431A (en) * 2020-08-31 2020-11-20 珠海研果科技有限公司 Angle correction method and device
CN112135153A (en) * 2020-08-24 2020-12-25 珠海格力电器股份有限公司 Display device, control method and device thereof, and computer readable medium
CN113313758A (en) * 2021-05-28 2021-08-27 维沃移动通信有限公司 Folding angle calculation method and device, electronic equipment and storage medium
CN113852721A (en) * 2020-06-10 2021-12-28 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device
CN114333030A (en) * 2021-12-31 2022-04-12 科大讯飞股份有限公司 Image processing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219471A (en) * 2013-05-31 2014-12-17 Lg电子株式会社 Image display device and method of controlling the same
CN105138303A (en) * 2015-09-14 2015-12-09 联想(北京)有限公司 Information processing method and electronic equipment
US20170052566A1 (en) * 2014-04-30 2017-02-23 Lg Electronics Inc. Mobile terminal and control method therefor
CN107948430A (en) * 2017-11-29 2018-04-20 努比亚技术有限公司 A kind of display control method, mobile terminal and computer-readable recording medium
CN107958234A (en) * 2017-12-26 2018-04-24 深圳云天励飞技术有限公司 Client-based face identification method, device, client and storage medium
CN108037845A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Display control method, mobile terminal and computer-readable recording medium
CN109194793A (en) * 2018-10-29 2019-01-11 维沃移动通信有限公司 A kind of screen adjustment method and mobile terminal
CN109240504A (en) * 2018-09-25 2019-01-18 北京旷视科技有限公司 Control method, model training method, device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219471A (en) * 2013-05-31 2014-12-17 Lg电子株式会社 Image display device and method of controlling the same
US20170052566A1 (en) * 2014-04-30 2017-02-23 Lg Electronics Inc. Mobile terminal and control method therefor
CN105138303A (en) * 2015-09-14 2015-12-09 联想(北京)有限公司 Information processing method and electronic equipment
CN107948430A (en) * 2017-11-29 2018-04-20 努比亚技术有限公司 A kind of display control method, mobile terminal and computer-readable recording medium
CN108037845A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Display control method, mobile terminal and computer-readable recording medium
CN107958234A (en) * 2017-12-26 2018-04-24 深圳云天励飞技术有限公司 Client-based face identification method, device, client and storage medium
CN109240504A (en) * 2018-09-25 2019-01-18 北京旷视科技有限公司 Control method, model training method, device and electronic equipment
CN109194793A (en) * 2018-10-29 2019-01-11 维沃移动通信有限公司 A kind of screen adjustment method and mobile terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826414A (en) * 2019-10-10 2020-02-21 珠海格力电器股份有限公司 Display control method and device of mobile terminal, terminal and medium
CN111738043A (en) * 2019-12-10 2020-10-02 珠海大横琴科技发展有限公司 Pedestrian re-identification method and device
CN111124235A (en) * 2019-12-31 2020-05-08 维沃移动通信有限公司 Screen control method and flexible electronic equipment
CN111124235B (en) * 2019-12-31 2021-06-29 维沃移动通信有限公司 Screen control method and flexible electronic equipment
CN111240567A (en) * 2020-01-08 2020-06-05 维沃移动通信有限公司 Display screen angle adjusting method and electronic equipment
CN111240567B (en) * 2020-01-08 2021-03-26 维沃移动通信有限公司 Display screen angle adjusting method and electronic equipment
CN113852721A (en) * 2020-06-10 2021-12-28 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device
CN113852721B (en) * 2020-06-10 2023-01-10 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device
CN112135153A (en) * 2020-08-24 2020-12-25 珠海格力电器股份有限公司 Display device, control method and device thereof, and computer readable medium
CN111967431A (en) * 2020-08-31 2020-11-20 珠海研果科技有限公司 Angle correction method and device
CN113313758A (en) * 2021-05-28 2021-08-27 维沃移动通信有限公司 Folding angle calculation method and device, electronic equipment and storage medium
CN114333030A (en) * 2021-12-31 2022-04-12 科大讯飞股份有限公司 Image processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110162138B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN110162138A (en) Folding angles adjusting method, device and collapsible terminal
CN104243787B (en) Photographic method, photo management method and equipment
CN107609519B (en) A kind of localization method and device of human face characteristic point
WO2017012321A1 (en) Display state adjustment method, display state adjustment device and display device
US10616475B2 (en) Photo-taking prompting method and apparatus, an apparatus and non-volatile computer storage medium
EP3373202B1 (en) Verification method and system
CN109325488A (en) For assisting the method, device and equipment of car damage identification image taking
CN104537389B (en) Face identification method and device
KR101872635B1 (en) Automatic make-up evaluation system and operating method thereof
CN108460329B (en) Face gesture cooperation verification method based on deep learning detection
CN103793719A (en) Monocular distance-measuring method and system based on human eye positioning
CN110956071B (en) Eye key point labeling and detection model training method and device
CN106295533A (en) Optimization method, device and the camera terminal of a kind of image of autodyning
CN108960841A (en) Method of payment, apparatus and system
CN110378227A (en) Correct method, apparatus, equipment and the storage medium of sample labeled data
CN106031148A (en) Imaging device and method for automatic focus in an imaging device as well as a corresponding computer program
CN107404721A (en) Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment
Wei et al. Real-time head nod and shake detection for continuous human affect recognition
CN109120854A (en) Image processing method, device, electronic equipment and storage medium
CN109446880A (en) Intelligent subscriber participation evaluation method, device, intelligent elevated table and storage medium
CN105960801A (en) Enhancing video conferences
CN107851301A (en) System and method for selecting image to convert
CN108648280A (en) virtual role driving method and device, electronic equipment and storage medium
KR102045228B1 (en) Body Information Analysis Apparatus and Face Shape Simulation Method Thereof
US20130044135A1 (en) Electronic book and method for controlling display of files

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant