CN110225229B - Photographing method and device, mobile terminal and storage medium - Google Patents

Photographing method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110225229B
CN110225229B CN201910452861.6A CN201910452861A CN110225229B CN 110225229 B CN110225229 B CN 110225229B CN 201910452861 A CN201910452861 A CN 201910452861A CN 110225229 B CN110225229 B CN 110225229B
Authority
CN
China
Prior art keywords
shooting angle
preview image
angle
camera
face
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.)
Active
Application number
CN201910452861.6A
Other languages
Chinese (zh)
Other versions
CN110225229A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910452861.6A priority Critical patent/CN110225229B/en
Publication of CN110225229A publication Critical patent/CN110225229A/en
Application granted granted Critical
Publication of CN110225229B publication Critical patent/CN110225229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders

Abstract

The application discloses a photographing method, a photographing device, a mobile terminal and a storage medium. The method comprises the following steps: acquiring a preview image acquired by a camera and displaying the preview image on the folding screen; comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image; if the current shooting angle is different from the target shooting angle, the rotating shaft mechanism is controlled to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum, so that the position of a camera arranged on the foldable shell component is automatically adjusted, and the face shooting angle in the preview image is automatically adjusted in a direction satisfied by a user.

Description

Photographing method and device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a photographing method, an apparatus, a mobile terminal, and a storage medium.
Background
Mobile terminals are usually provided with a camera for taking pictures, such as self-timer pictures. Generally, when taking a self-timer, the user needs to continuously move the mobile terminal to find a proper shooting angle to take a satisfactory picture. However, the process of finding a proper photographing angle is troublesome and it is not easy to find a satisfactory angle for the user.
Disclosure of Invention
In view of the above problems, the present application provides a photographing method, apparatus, mobile terminal and storage medium to improve the above problems.
In a first aspect, an embodiment of the present application provides a photographing method, which is applied to a mobile terminal, where the mobile terminal includes a foldable housing assembly, a foldable screen, a rotating shaft mechanism and a camera, the foldable housing assembly includes a first housing and a second housing that can be folded relatively, the rotating shaft mechanism is used to control the first housing and the second housing to be folded relatively, the foldable screen is laid on the foldable housing assembly, the foldable screen is folded along with the folding between the first housing and the second housing, the camera is disposed on the foldable housing assembly, and the method includes: acquiring a preview image acquired by a camera and displaying the preview image on the folding screen; comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image; if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
In a second aspect, the embodiment of the present application provides a photographing device, which is applied to a mobile terminal, the mobile terminal includes a foldable housing assembly, a foldable screen, a rotating shaft mechanism and a camera, the foldable housing assembly includes a first housing and a second housing that can be folded relatively, the rotating shaft mechanism is used for controlling the first housing and the second housing are folded relatively, the foldable screen is laid on the foldable housing assembly, the foldable screen is folded along with the folding between the first housing and the second housing, the camera is arranged on the foldable housing assembly, the device includes: the image acquisition module is used for acquiring a preview image acquired by the camera and displaying the preview image on the folding screen; the image comparison module is used for comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image; and the rotation control module is used for controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell if the current shooting angle is different from the target shooting angle until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, a foldable housing assembly, a foldable screen, a rotating shaft mechanism, and a camera, where the foldable housing assembly includes a first housing and a second housing that can be folded relatively, the rotating shaft mechanism is configured to control the first housing and the second housing to be folded relatively, the foldable screen is laid on the foldable housing assembly, the foldable screen is folded along with the folding between the first housing and the second housing, the camera is disposed on the foldable housing assembly, the memory, the rotating shaft mechanism, and the camera are coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
In a fourth aspect, the present application provides a computer-readable storage medium, in which program codes are stored, and the program codes can be called by a processor to execute the method described above.
According to the photographing method, the photographing device, the mobile terminal and the storage medium, if the photographing angle of the face in the preview image acquired by the camera at present is different from the target photographing angle of the face in the target standard image, the rotating shaft mechanism can be controlled to adjust the folding angle between the first shell and the second shell until the difference between the current photographing angle of the face in the preview image and the target photographing angle is minimum, so that the position of the camera arranged on the foldable shell component is automatically adjusted, and the face photographing angle in the preview image is automatically adjusted in a direction satisfied by a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic perspective view illustrating a mobile terminal provided in an embodiment of the present application in a folded state.
Fig. 2 is a schematic perspective view illustrating a mobile terminal in a partially unfolded state according to an embodiment of the present application.
Fig. 3 is a schematic perspective view illustrating a mobile terminal provided in an embodiment of the present application in a folded state.
Fig. 4a and 4b respectively show two other perspective views of the mobile terminal provided by the embodiment of the present application in a folded state.
Fig. 5 shows a flowchart of a photographing method provided in an embodiment of the present application.
Fig. 6 is a schematic diagram illustrating an expanded state of a mobile terminal in a photographing state according to an embodiment of the present application.
Fig. 7 shows another flowchart of a photographing method provided in an embodiment of the present application.
Fig. 8 shows a flowchart of a photographing method provided in an embodiment of the present application.
Fig. 9 shows a further flowchart of a photographing method provided in an embodiment of the present application.
Fig. 10 shows a flowchart of a photographing method provided in an embodiment of the present application.
Fig. 11 is a functional block diagram of a photographing apparatus according to an embodiment of the present application.
Fig. 12 shows a block diagram of a mobile terminal according to an embodiment of the present application.
Fig. 13 is a storage medium for storing or carrying program codes for implementing a photographing method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the development of image processing technology, especially the development of beauty technology, it is becoming more and more common for mobile terminals to be used for photographing, for example, mobile terminals are commonly used for people photographing, video chatting, live broadcasting and the like. The embodiment of the application takes the self-timer as an example for explanation, and the face of the same user is different in shooting angle, so that the beauty of the shot photo is greatly different, therefore, the user can generally find a better shooting angle for the face of the user when self-timer is carried out, and the shot photo is more attractive and satisfactory.
With the development of science and technology and the improvement of human requirements, the larger the screen of the mobile terminal is, but the larger the screen of the mobile phone is, the larger the size of the mobile terminal is, so that the convenience of carrying the mobile terminal is reduced while the operation of a user is facilitated. Thus, a folded display implemented by a flexible display results. The flexible screen is paid much attention to with its unique characteristic and huge potentiality, and flexible screen compares in traditional screen, has the strong and flexible characteristics of pliability, can alleviate the degree that equipment accident damaged, and durable degree is far higher than other screens to, flexible screen provides the user and has offered the new interactive mode based on the characteristic of can buckling, can satisfy the more demands of user to mobile terminal. The folding display screen realized by the flexible screen can be folded, so that the size of the screen is reduced, and the folding display screen is convenient for a user to carry.
The mobile terminal with the folding display screen is arranged, the whole mobile terminal can be folded due to the folding characteristic of the folding display screen, when the user takes a picture, the folding angle of the mobile terminal can be manually adjusted by the user, along with the folding of the mobile terminal, the position of a camera arranged on the mobile terminal is changed, the angle of the shot image is also changed, and the shot image is close to the shooting angle satisfied by the user.
The inventor finds that the user is inconvenient to operate because the folding angle is continuously adjusted manually, and when the folding angle is adjusted by one hand holding the mobile terminal, the hand holding the mobile terminal is easy to shake, and the folding angle is difficult to be adjusted to a proper angle.
In view of the above problems, the inventors have studied for a long time and proposed a photographing method, a photographing device, a mobile terminal and a storage medium provided in the embodiments of the present application, to obtain a preview image acquired by a camera, compare a photographing angle of a face in the preview image with a photographing angle of a face in a target standard image, and if there is a difference, control a rotating shaft mechanism to adjust a folding angle between a first housing and a second housing to adjust a position of the camera until the photographing angle of the face in the preview image and the photographing angle of the face in the target standard image reach a minimum difference, so as to achieve automatic adjustment of the position of the camera to a photographing angle that a user satisfies, and the adjustment process is convenient.
Referring to fig. 1, in fig. 1, a mobile terminal 100 according to an embodiment of the present disclosure is provided, where the mobile terminal 100 may include, but is not limited to, an electronic device such as a mobile phone, a tablet computer, a game machine, a smart wearable device, and a vehicle-mounted device. The mobile terminal 100 of the present embodiment is described by taking a mobile phone as an example.
The mobile terminal 100 includes a foldable housing assembly 110, a foldable screen 120, a hinge mechanism 113, a camera 115, and an electronic assembly (not shown), wherein the camera 115 is disposed on the housing assembly, the electronic assembly is disposed in the foldable housing assembly 110, and the foldable screen 120 is disposed on the foldable housing assembly 110. The foldable housing assembly 110 is used to carry the foldable screen 120 while shielding the electronic components. The electronic component may include, but is not limited to, a central processing unit, a memory, a receiver, a fingerprint module, and the like, and the specific electronic component may not be limited in this embodiment.
The foldable housing assembly 110 includes a first housing 111 and a second housing 112, and a hinge mechanism 113 for controlling the relative folding of the first housing 111 and the second housing 112. Specifically, the first housing 111 and the second housing 112 may be respectively connected to two sides of the rotating shaft mechanism 113. The second housing 112 can be folded or unfolded with respect to the first housing 111 through the rotating shaft mechanism 113, or the first housing 111 can be folded or unfolded with respect to the second housing 112 through the rotating shaft mechanism 113, so that the foldable housing assembly 110 is folded or unfolded, and the foldable screen 120 is driven to fold or unfold. When the foldable housing assembly 110 and the foldable screen 120 are folded, the mobile terminal 100 has a relatively small size and is convenient to store and carry. The rotating shaft mechanism 113 may be driven by a motor, and the motor may drive the rotating shaft to rotate according to a control signal of the processor.
As shown in fig. 1, the first casing 111 includes a first middle frame 1111 and a first cover 1112. One side of the first middle frame 1111 is connected to the hinge mechanism 113, which is used to support a part of the electronic components. The first cover 1112 is disposed on the first middle frame 1111. When the first casing 111 and the second casing 112 are overlapped, the first cover 1112 and the second casing 112 are overlapped, that is, the first cover 1112 is attached to the second casing 112. The second housing 112 includes a second middle frame 1121 and a second cover 1122. One side of the second middle frame 1121 is connected to a hinge mechanism 113, which is used for carrying a part of the structure of the electronic component. The second cover 1122 covers the second middle frame 1121. When the first casing 111 and the second casing 112 are overlapped, the second cover 1122 overlaps the first cover 1112, that is, the second cover 1122 fits to the first cover 1112.
The folding screen 120 is sequentially laid on the first casing 111 and the second casing 112. In this embodiment, the folding screen 120 is a flexible display screen. The foldable screen 120 is folded along with the folding between the first casing and the second casing, that is, the foldable screen is folded or unfolded along with the mutual turning of the first casing 111 and the second casing 112. The folding screen 120 is electrically connected to the electronic components so that the electronic components can control the operation of the folding screen 120.
Referring to fig. 1 and fig. 2, in the present embodiment, the foldable screen 120 includes a first display portion 121 connected to the first casing 111 and a second display portion 122 connected to the second casing 112. The first display portion 121 corresponds to the first display area 124, and the second display portion 122 corresponds to the second display area 125. The first display part 121 and the second display part 122 are folded or unfolded relatively with the first case 111 and the second case 112, respectively. In some embodiments, the first display part 121 and the second display part 122 may be an integrated structure, such that the foldable screen 120 is a one-piece flexible display screen; alternatively, in some other embodiments, the connecting portion of the first display portion 121 and the second display portion 122 is a flexible portion that can be bent to facilitate folding or unfolding between the first display portion 121 and the second display portion 122, and the rest of the first display portion 121 and the second display portion 122 may be an inflexible portion. In the present embodiment, when the first housing 111 and the second housing 112 are stacked, the first display portion 121 and the second display portion 122 are separated from each other, as shown in fig. 1, the mobile terminal 100 is configured as a fold-out screen, so that the user can observe the display content of the folding screen 120 even when the mobile terminal 100 is folded, thereby improving the convenience of using the mobile terminal 100. In some other embodiments, when the first casing 111 and the second casing 112 are stacked, the first display portion 121 and the second display portion 122 may also be stacked, so that the mobile terminal 100 is in a folded screen structure, and the folded screen 120 is prevented from being damaged by scratching.
It should be understood that the folding line 126 between the first display portion and the second display portion in the drawings is used to indicate the division of the first display portion and the second display portion, and does not indicate an actual line provided in the mobile terminal nor an actual line displayed in the folding screen 120. In addition, the names of the first display portion 121 and the second display portion 122 are only set for convenience of description, and are not limited to the structure of the foldable screen 120, in an actual application scenario, there may be no obvious boundary between the first display portion 121 and the second display portion 122, or the foldable screen 120 may appear in other dividing structures, for example, a portion connecting the first display portion and the second display portion is divided into bending display portions, the foldable screen 120 includes the first display portion 121, the second display portion 122 and the bending display portion connected between the first display portion 121 and the second display portion 122, and the first display portion and the second display portion are folded or unfolded with the folding or unfolding of the bending display portions.
In the mobile terminal 100 provided in the above embodiment of the present application, the mobile terminal 100 includes the first casing 111 and the second casing 112 that can be folded relatively, the first display portion 121 corresponding to the first casing 111, and the second display portion 122 corresponding to the second casing 112, so that the mobile terminal 100 is a two-fold mobile terminal that can be folded in two.
It is to be understood that the portions of the mobile terminal that can be folded with each other in the embodiments of the present application are not limited. For example, referring to fig. 3, in some embodiments, the mobile terminal 100 may further include a third casing 114 and a corresponding third display portion 127, the third casing 114 is rotatably connected between the first casing 111 and the second casing 112, and the third display portion 127 is disposed on the third casing 114 and connected between the first display portion 121 and the second display portion 122. At this time, both the first casing 111 and the second casing 112 can rotate relative to the third casing 114, and both the first display portion 121 and the second display portion 122 can be folded relative to the third display portion 127, so that the mobile terminal 100 is a three-fold mobile terminal capable of being folded twice.
In some embodiments, the display area of the third display part 127 may be substantially the same as the display area of the first display part 121 and the display area of the second display part 122, so that the first, second, and third display parts 121, 122, and 127 may be folded into a three-layer structure. In some embodiments, the display area of the third display part 127 may be equal to or greater than the sum of the display area of the first display part 121 and the display area of the second display part 122, and when folded, the first display part 121 and the second display part 122 may be simultaneously folded to be attached to the third display part 127.
It is understood that the third casing 114 and the third display portion 127 thereon can be disposed at other positions, for example, the third casing 114 can be rotatably connected to the side of the first casing 111 away from the second casing 112, or the third casing 114 can be rotatably connected to the side of the second casing 112 away from the first casing 111. It is also understood that the mobile terminal 100 may further include a fourth casing (not shown in the drawings) and a corresponding fourth display portion (not shown in the drawings), or the mobile terminal 100 may further include a fifth casing (not shown in the drawings) and a corresponding fifth display portion (not shown in the drawings), so that the mobile terminal 100 is a mobile terminal in a multi-fold structure, and thus, on the premise that the mobile terminal 100 has a larger display area, the mobile terminal has a smaller storage volume, which is beneficial to storage and carrying of the mobile terminal 100.
In the embodiment of the present application, the camera 115 may be disposed on the first casing 111, the second casing 112, or more than one camera is disposed on the first casing 111 and the second casing 112, as shown in fig. 2.
In addition, the camera may be a rotatable camera, which may rotate around the optical axis, or may rotate in a direction perpendicular to the folding direction as shown in fig. 4a and 4b, the direction shown by the arrow in fig. 4a and 4b indicates the rotation direction of the camera, the camera 115 may rotate from the position of fig. 4a to the position of fig. 4b and continue to rotate, or the camera 115 may rotate from the position of fig. 4b to the position of fig. 4a and continue to rotate. In fig. 4a and 4b, the mobile terminal is in a folded state. The embodiment of the present application mainly takes the rotation perpendicular to the folding direction as shown in fig. 4 as an example, the rotation can be realized by driving a rotating shaft connected with a camera by a motor, so that the camera can shoot towards the front of the mobile terminal, can be used as a front camera, can be rotated to the back to shoot as a rear camera, and can be rotated to any direction between the front and the back to shoot.
In this embodiment, the mobile terminal 100 further includes an angle detection module 130 (see fig. 1), and the angle detection module 130 is configured to detect an angle formed between the first casing 111 and the second casing 112. In some embodiments, the angle detection module 130 may be a hall angle sensor, a rotating shaft position sensor, or the like, which may be connected to any one of the first housing 111, the second housing 112, or the rotating shaft mechanism 113.
In some embodiments, the mobile terminal 100 may further include two motion sensors 140 (see fig. 1), where the two motion sensors 140 are respectively disposed on the first casing 111 and the second casing 112 for detecting motion states of the first casing 111 and the second casing 112 respectively. The motion sensor 140 may include, but is not limited to including: speed sensors, gravity sensors, inertial measurement units, and the like.
Based on the mobile terminal, the embodiment of the application provides a photographing method, image acquisition is performed through a camera, and preview display is performed through a folding screen. The shooting angle of the face in the image collected by the camera is compared with the shooting angle of the face in the standard image, if the difference exists, the relative rotation of the first shell and the second shell in the mobile terminal is adjusted to adjust the shooting angle of the camera, and a preview image of which the shooting angle of the face is a satisfactory shooting angle of a user is obtained. The display control method according to the embodiment of the present application will be described in detail below.
Fig. 5 shows a photographing method provided in an embodiment of the present application, and the photographing method is applied to the mobile terminal described above. Specifically, referring to fig. 5, the method includes:
step S110: and acquiring a preview image acquired by the camera and displaying the preview image on the folding screen.
When taking a picture, the camera acquires images. The processor can acquire the image acquired by the camera and display the image as a preview image on the folding screen, that is, the image acquired by the camera is displayed in real time in the display area of the folding screen, or the image in the current image acquisition range of the camera is displayed. Therefore, a user can check the position and the shooting angle of the shooting subject in the image from the preview image displayed in the display area of the folding screen, and when the image acquired by the camera includes a face image, the user can check the current shooting angle and the position of the face in the image under the condition of self-shooting.
The shooting angle represents an angular relationship between a shooting direction (such as an optical axis direction of a lens) of a lens of the camera and a human face, such as upward shooting, leftward oblique shooting, rightward oblique shooting, downward shooting shown in fig. 6 and the like, and each shooting direction corresponds to a shooting angle, such as upward shooting at 45 degrees, downward shooting at 45 degrees, leftward oblique shooting at 45 degrees, rightward oblique shooting at 45 degrees and the like. Certainly, the angle between the shooting direction of the lens of the camera and the face can be the shooting angle of the camera, and the position relationship between the lens and the face is not limited in the application.
Optionally, in this embodiment of the application, if the folding angle between the first housing and the second housing is smaller than the preset angle, the user may see the first display area and the second display area of the folding screen at the same time, and the preview image may be displayed in the entire display area including the first display area and the second display area, that is, the entire display area displays one acquired preview image; if the folding angle between the first shell and the second shell is larger than the preset angle, the user may only see one of the first display area and the second display area, and the preview image can be displayed only in the display area that the user can see, and if the user can see the first display area, the preview image is displayed in the first display area; and if the display area which can be seen by the user is the second display area, displaying in the second display area.
The folding angle between the first casing and the second casing may be an angle represented by R in fig. 6, and the preset angle may be 180 degrees, which is not limited in the embodiments of the present application.
In addition, a mode of determining which display area can be seen by the user may be such that the display area of the display portion provided in the first casing and the second casing held by the user is set as the display area visible by the user. For example, when the user holds the first display unit, the user is determined to be able to see the first display area, and the preview image is displayed in the first display area. Or when the user takes a self-timer, analyzing whether the display area oriented by the user is the first display area or the second display area according to the orientation of the pupil of the eye of the user, and taking the display area oriented by the pupil of the user as the display area which can be seen by the user.
Step S120: and comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image.
And comparing the shooting angle of the face in the preview image with the shooting angle of the face in the target standard image. And the shooting angle of the face in the compared preview image is used as the current shooting angle, and the shooting angle of the face in the target standard image is defined as the target shooting angle. The target standard image is an image which is pre-stored and is used for representing user satisfaction, namely the shooting angle of the face in the target standard image is the angle which is satisfied by the user and at which the user tends to shoot when shooting. For example, if a user thinks that his face looks better at the lines from the upper right to the lower right and the outline is more perfect, an image may be taken as a target standard image from the upper right at 45 degrees, that is, the angle at which the face of the user is taken is the upper right at 45 degrees that the user is satisfied with.
And comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image, namely comparing whether the shooting angle of the face in the preview image is different from the shooting angle of the face in the target standard image. If the difference exists, the shooting angle of the face in the preview image is not the satisfactory angle of the user, and the adjustment is needed; if no difference exists, the fact that the angle between the camera and the face when the current preview image is acquired is the satisfactory shooting angle of the user is shown, or the shooting angle of the face in the preview image is the satisfactory angle of the user is shown, and automatic adjustment of the shooting angle of the camera can be omitted.
In the embodiment of the present application, a comparison manner between the shooting angle in the preview image and the shooting angle in the target standard image is not limited in the embodiment of the present application.
For example, the human face in the preview image and the human face in the target standard image are compared, whether the contour line between the two is the contour line obtained by shooting from the same direction or not is judged, and if not, the difference is shown.
Or the face in the target standard image may be analyzed to obtain the shooting angle of the face. And analyzing the face in the preview image and determining the shooting angle of the face. And comparing and analyzing whether the shooting angles of the human faces in the obtained target standard image are consistent or not, and if not, indicating that a difference exists. The shooting angle of the face in the analysis image can be obtained according to big data and AI learning. For example, a large number of images with human face images are used as basic data for learning, and the shooting angle of the human face in each image is manually marked in advance. When learning, according to the contour lines and the angle labels of the human faces in a large number of images, the image characteristics of the human faces corresponding to different angles are learned. And when the shooting angle of the face in the preview image is analyzed, judging the shooting angle in the face image according to the characteristics of the face with different angles obtained by learning.
Step S130: if the current shooting angle is different from the target shooting angle, adjusting the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
If the shooting angle of the face in the preview image is different from the shooting angle of the face in the target standard image, the folding angle between the first shell and the second shell is adjusted, so that the position and the shooting direction of the camera are changed, the shooting angle of the face by the camera is changed, and the preview images with different shooting angles are obtained. And when the adjustment is carried out, the shooting angle of the camera is made to be close to the target shooting angle until the difference between the shooting angle of the face shot by the camera in the preview image and the target shooting angle reaches the minimum difference which can be adjusted by the mobile terminal.
The specific adjustment can be realized by sending a control signal to the motor through the processor and controlling the motor to drive the rotating shaft to rotate, so that the folding angle between the first shell and the second shell is adjusted.
In addition, in the embodiment of the application, the processor can acquire a preview image at each different shooting angle and compare the shooting angles; or acquiring the preview image in real time for comparison and adjusting the shooting angle of the camera; or acquiring the preview image and adjusting the shooting angle of the camera according to a preset frequency.
In this embodiment of the application, a specific manner of adjusting the folding angle between the first casing and the second casing may be to adjust the folding angle between the first casing and the second casing, so that the current shooting angle of the face in the preview image is close to the target shooting angle, and calculate a difference between the current shooting angle and the target shooting angle. When a minimum folding angle exists in the approaching adjustment process, the rotating shaft mechanism is controlled to adjust the folding angle between the first shell and the second shell to the folding angle between the first shell and the second shell when the calculated difference is minimum.
As a specific implementation manner, a specific manner of adjusting the folding angle in this step may be to analyze and obtain a current shooting angle of the human face in the preview image and a target shooting angle in the target standard image, calculate an angle of a difference between the current shooting angle and the target shooting angle, send a driving signal to the motor, drive the rotating shaft to adjust the folding angle between the first housing and the second housing once, where the size of the adjusted folding angle is a preset unit angle, such as 1 degree, and the adjustment direction is a direction of reducing the angle of the difference. And after the adjustment is carried out once, acquiring the preview image again, analyzing the angle of the difference between the current shooting angle of the face in the preview image and the target shooting angle, and adjusting the folding angle between the first shell and the second shell by one unit angle again according to the angle of the difference. And recording the folding angle between the first shell and the second shell after the adjustment and the difference between the current shooting angle of the face in the preview image and the target shooting angle in each adjustment.
And adjusting the folding angle between the first shell and the second shell back to the folding angle when the difference between the current shooting angle of the face in the preview image and the target shooting angle reaches the minimum.
For example, the target shooting angle of the human face in the target standard image is 45 degrees above, the current shooting angle in the preview image is 40 degrees above, and the shooting angles are different from each other by 5 degrees. And controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell so as to enable the shooting angle of the camera to be changed by 45 degrees upwards. When the shooting angle of the camera is adjusted to be 44 degrees above, the difference angle is 1; when the shooting angle of the camera is adjusted to be 45 degrees above, the difference angle is 0; and continuing adjustment, when the shooting angle of the camera is adjusted to be 46 degrees above, changing the difference angle to be 1 again, confirming that the folding angle between the first shell and the second shell is the folding angle when the difference between the current shooting angle and the target shooting angle is the minimum when the difference is 0, and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell to the folding angle when the difference is 0. Of course, in the embodiment of the present application, this example is only illustrative of the adjustment of the folding angle, and the combination of the shooting angles may be more complicated, such as the shooting angle of the upper left including the left and the upper.
As another embodiment, since the cameras capture images from different angles, the obtained contour lines of the human face are different, and if the contour line of the human face in the preview image and the contour line of the human face in the target standard image indicate that the contour lines obtained by capturing images from the same angle are not, the rotating shaft mechanism is controlled to adjust the folding angle between the first housing and the second housing, so that the collected contour line of the human face in the preview image approaches the capturing angle indicated by the contour line of the human face in the target standard image, and each adjustment may be an adjustment of a preset unit angle. In the adjusting process, if the shooting angle represented by the contour line of the face in the preview image and the shooting angle represented by the contour line of the face in the target standard image are close to each other and then start to increase, the folding angle between the first shell and the second shell is adjusted to the folding angle when the shooting angle represented by the contour line of the face in the preview image and the shooting angle represented by the contour line of the face in the target standard image are closest.
Optionally, in this embodiment of the present application, the camera may be a rotatable camera. In the process of adjusting the difference between the current shooting angle of the human face in the preview image and the target shooting angle to the minimum, the rotating shaft mechanism can be controlled to adjust the folding angle between the first shell and the second shell, and the camera can be controlled to rotate at the same time, so that the position of the camera can be adjusted in the folding direction of the first shell and the second shell to adjust the shooting angle, and the direction of the camera can be adjusted in the rotating direction of the camera (the rotating direction shown by arrows in fig. 4a and 4 b) to adjust the shooting angle, so that the shooting angle of the camera can be adjusted to various angles more easily. For example, as shown in fig. 6, the first housing and the second housing are folded with respect to the face of the user to adjust the shooting angle of the camera in the front, rear, up, and down directions, and the camera is rotated to adjust the shooting angle in the left and right directions.
According to the shooting method provided by the embodiment of the application, when the shooting angle of the face in the preview image is different from the shooting angle of the face in the target standard image, the rotating shaft mechanism is automatically controlled to adjust the folding angles of the first shell and the second shell of the mobile terminal, so that the position of the camera arranged on the foldable shell component is automatically adjusted, the shooting angle is automatically adjusted until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
Optionally, when the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimized, the preview image may be stored as a preview image obtained by shooting. The folding angle and the rotation angle of the camera can be kept unchanged, and a shooting instruction of a user can be waited. When a shooting instruction of a user is received, an image acquired by the camera when the user shoots the instruction is used as an image obtained by shooting.
In addition, if the mobile terminal has only one camera, the shooting direction is limited. For example, only the first housing is provided with a camera, and when the first housing is used for shooting on the upper side, the camera is difficult to adjust to upward shooting. Therefore, in the embodiment of the present application, an embodiment is also provided, in which the camera of the mobile terminal includes a first camera and a second camera, as shown in fig. 2. The first camera is arranged on the first shell, the second camera is arranged on the second shell, and when shooting is conducted, shooting can be conducted through the first camera or shooting can be conducted through the second camera. Specifically, referring to fig. 7, the method provided in the embodiment of the present application includes:
step S210: detecting whether only one of the first shell and the second shell is held.
When one shell is held by a user and the other shell is not held, if the folding angle between the first shell and the second shell is controlled to change, the position and the shooting angle of the camera are changed for the shell which is not held to the held shell, and the shell which is not held cannot rotate. For example, when the second housing is held in fig. 6, when the angle between the first housing and the second housing is adjusted by the rotating shaft mechanism, the second housing remains stationary and the first housing is folded toward the second housing.
The shell which is held can not rotate, so that the position of the camera can not be changed through the rotation of the shell, the shell which is not held rotates towards the shell which is held, and the position of the camera of the shell which is not held can be changed along with the rotation of the shell, so that the shooting angle in the folding direction of the shell is changed. In order to change the position of the camera in the folding direction through folding between the two shells and automatically adjust the shooting angle of the camera, whether only one shell in the first shell and the second shell is held or not can be detected, and the held shell is determined so as to determine the camera for image acquisition.
Specifically, the gripped housing may be detected by a sensor provided at a portion that is usually gripped by a user, or a plurality of sensors may be provided per housing so that the sensor can detect the gripping state of the user as much as possible.
For example, since the first housing and the second housing are provided with pressure sensors and pressure is generated by the user's holding, if the first housing detects the pressure of the user's holding, it is determined that the first housing is held by the user; and if the second shell detects the pressure held by the user, judging that the second shell is held by the user.
For another example, a displacement sensor is disposed on the top of the foldable housing assembly, and the displacement sensor detects the distance from the hand holding the mobile terminal to the displacement sensor, so as to determine the held housing according to the distance. For example, the displacement sensor is a photoelectric sensor, and is disposed on the top of the foldable housing assembly on the side of the first housing as shown in fig. 2, the photoelectric sensor utilizes a photoelectric effect to install the light emitting device and the photoelectric device in the same detection head in a certain direction, and the light emitting direction of the light emitting device faces the extending direction of the housing assembly, i.e., the top of the foldable housing assembly faces the folding position. When the mobile terminal is held by a hand, the photoelectric device receives the reflected light and outputs a signal, so that the position of the hand distant from the photoelectric sensor can be sensed, and the holding position of the hand distant from the photoelectric sensor can be determined to be in the first shell or the second shell.
Of course, the sensors for detecting the holding state of the housing in the embodiment of the present application may also have other sensors, such as an infrared sensor, a temperature sensor, and other proximity sensors. In addition, the holding of the hand is not limited to be detected only, and the holding of other objects (such as a selfie stick) to the mobile terminal can also be detected through the implementation manner provided in the embodiment of the present application.
Step S220: if yes, the preview image is collected through a camera arranged on a shell which is not held and displayed on the folding screen.
If it is detected that one shell is held and the other shell is not held, the camera of the other shell which is not held is used as the camera for acquiring the image.
For example, when it is detected that the first shell is held and the second shell is not held, a camera of the second shell is used for collecting an image as a preview image in a subsequent processing process; and if the second shell is not held and the first shell is not held, acquiring an image by using the camera of the first shell as a preview image in the subsequent processing process. The embodiment of the present application is described by taking an example in which the second housing is held and the first housing is not held.
Step S230: and comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image.
Step S240: if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
When the second shell is held, the camera arranged on the first shell is used for collecting an image as a collected preview image. The present shooting angle with when there is the difference in target shooting angle, control pivot mechanism adjustment first casing and folding angle between the second casing, then the relative second casing of first casing is folding or expand, and the camera position on folding direction changes, and the shooting angle of camera changes to can adjust the shooting angle of camera, make the shooting angle of the facial image in the preview image that obtains be close to the shooting angle of facial image in the target standard image.
Optionally, in this embodiment of the application, if it is detected that both the first housing and the second housing are held, in an implementation, an image may be acquired through a default camera.
In another embodiment, the two cameras are controlled to acquire images, the preview images acquired by the two cameras are respectively compared with the target standard image, and the shooting angle of the face in the preview image acquired by which camera is closest to the shooting angle of the face in the target standard image is determined, so that the difference is the smallest. And continuously opening the camera with the shooting angle of the face in the acquired preview image being closest to the shooting angle of the face in the target standard image, and closing the other camera. In this embodiment, the current shooting angle of the face in the preview image acquired by the opened camera may be continuously compared with the target shooting angle of the face in the target standard image, and if there is a difference between the current shooting angle and the target shooting angle, the rotating shaft mechanism is controlled to adjust the folding angle between the first housing and the second housing until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimized. Of course, since the first housing and the second housing are both held and the folding angle adjustment may not be possible, when the preset number of times (for example, twice) of controlling the rotating shaft mechanism to adjust the folding angle between the first housing and the second housing is unsuccessful, the folding angle is not adjusted any more, and the currently obtained preview image is used as the preview image finally displayed to the user.
Since the mobile terminal generally needs to be held while in use. When the first shell or the second shell of the mobile terminal is held, the held shell is difficult to select through adjustment of the folding angle, so in the embodiment of the application, the camera of the shell which is not held is used for collecting images, and when the shooting angle in the collected preview image is different from the shooting angle in the target standard image, the different positions of the camera in the folding direction can be adjusted through adjusting the folding angle, so that automatic adjustment of the shooting angle is realized.
The application also provides an embodiment, which is used for the mobile terminal with the camera arranged on the first shell and the second shell to take pictures. Specifically, the camera includes a first camera and a second camera, the first camera is disposed on the first housing, and the second camera is disposed on the second housing, please refer to fig. 8, in which the method provided in this embodiment includes:
step S310: and acquiring a first preview image acquired by the first camera and a second preview image acquired by the second camera.
When two shells of the mobile terminal are respectively provided with the cameras, a preview image collected by one camera is closer to a shooting angle satisfied by a user relative to the other camera. Therefore, two cameras can be started for image acquisition. And defining the image acquired by the first camera as a first preview image, and defining the image acquired by the second camera as a second preview image. Alternatively, the first preview image may be displayed in the first display area, and the second preview image may be displayed in the second display area.
Step S320: and comparing a first shooting angle of the face in the first preview image and a second shooting angle of the face in the second preview image with the target shooting angle respectively.
Step S330: and according to the comparison result, selecting one camera from the first camera and the second camera to keep opening and collecting a preview image. If the current shooting angle of the face in the preview image acquired by the opened camera is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
And defining the shooting angle of the face in the first preview image as a first shooting angle, and defining the shooting angle of the face in the second preview image as a second shooting angle. And comparing the first shooting angle with the target shooting angle, and comparing the second shooting angle with the target shooting angle. And selecting the camera of one shell to be kept open for image acquisition according to the comparison result, and closing the camera of the other shell.
As an embodiment, if the difference between the first shooting angle and the target shooting angle is greater than the difference between the second shooting angle and the target shooting angle, the second camera may be kept turned on for image capture, that is, only the second camera captures a second preview image, and the second preview image is displayed on the folding screen. And controlling a rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the second preview image and the target shooting angle is minimum. When only the second camera collects the image, the collected preview image can be displayed in the second display area. Or displaying a second preview image acquired by a second camera in the whole display area comprising the first display area and the second display area, and displaying the second preview image only in the second display area when the folding angle between the first shell and the second shell is larger than a preset angle.
If the difference between the first shooting angle and the target shooting angle is smaller than or equal to the difference between the second shooting angle and the target shooting angle, the first camera is kept opened, namely, a first preview image is collected only through the first camera and displayed on the folding screen, and the rotating shaft mechanism is controlled to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the first preview image and the target shooting angle is minimum. When only the first camera collects the image, the collected preview image can be displayed in the first display area. Or the first preview image collected by the first camera is displayed in the whole display area, and when the folding angle between the first shell and the second shell is larger than the preset angle, the first preview image is only displayed in the first display area.
As another embodiment, the shooting angle of the face in the first preview image may be compared with a preset angle threshold, and if the shooting angle is smaller than the preset angle threshold, the first camera is kept turned on and the first preview image is continuously acquired. And controlling a rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the first preview image and the target shooting angle is minimum.
And comparing the shooting angle of the face in the second preview image with a preset angle threshold, and if the shooting angle of the face in the second preview image is smaller than the preset angle threshold, keeping the second camera started and continuously acquiring the second preview image. And controlling a rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the second preview image and the target shooting angle is minimum.
And if the shooting angle of the face in the first preview image is smaller than the preset angle threshold value and the shooting angle of the face in the second preview image is smaller than the preset angle threshold value, taking the finally obtained preview image which is smaller in difference between the current shooting angle of the face and the target shooting angle in the first preview image and the second preview image as the finally obtained preview image.
If the shooting angle of the face in the first preview image is greater than or equal to the preset angle threshold value and the shooting angle of the face in the second preview image is greater than or equal to the preset angle threshold value, shooting can be performed in the manner of the above embodiment, that is, shooting is kept started by a camera corresponding to the preview image with a smaller difference between the shooting angle of the face and the shooting angle of the target, and automatic adjustment of the shooting angle is performed.
If the shooting angle of the face in one preview image is larger than or equal to the preset angle threshold value and the shooting angle of the face in the other preview image is smaller than the preset angle threshold value in the first preview image and the second preview image, the camera corresponding to the preview image smaller than the preset angle threshold value is kept started and the shooting angle is automatically adjusted.
In the embodiment of the application, a plurality of standard images can be prestored, and the standard images belong to different satisfaction levels respectively, so that more standards can be provided for adjusting the shooting angle of the camera, and the adjustment realizability is improved. The standard image with the highest satisfaction level represents that the user is most satisfied with the standard image, and the satisfaction level is from high to low, which represents that the satisfaction degree of the user on the standard image is from high to low. The plurality of standard images may be photographed and stored in advance by a user, and a satisfaction level of each standard image is set; the multiple standard images can also be analyzed through big data, and multiple images with high or low most user satisfaction degrees are selected.
When the shooting angle of the camera is adjusted, the shooting angle is adjusted to the shooting angle of the face in the standard image with high satisfaction degree as much as possible, namely the shooting angle of the face in the standard image with the higher level can be adjusted, and the shooting angle of the face in the standard image with the lower level is not adjusted.
Specifically, as shown in fig. 9, in this embodiment, starting from the standard image with the highest satisfaction level as the target standard image, the following steps are performed:
step S410: and acquiring a preview image acquired by the camera and displaying the preview image on the folding screen.
Step S420: and comparing the current shooting angle of the face in the preview image with the shooting angle of the face in the target standard image.
Step S430: if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
Step S440: and judging whether the difference between the current shooting angle and the target shooting angle of the face in the target standard image is larger than a preset threshold value or not. If yes, taking the standard image with the lower level as the target standard image, and executing step S420; if not, go to step S450.
When the camera is at a shooting angle to obtain a preview image, starting to use a standard image with the highest satisfaction level as a target standard image, comparing the current shooting angle of the face in the preview image with the shooting angle of the face in the target standard image, and adjusting the shooting angle of the camera under the condition that difference exists until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum. At this time, if the difference between the current shooting angle of the face in the preview image and the target shooting angle is greater than the preset threshold, it indicates that even if the difference is adjusted to the minimum difference that can be achieved between the current shooting angle of the face in the preview image and the target shooting angle, the shooting angle of the face in the preview image still has a larger difference from the shooting angle of the face in the standard image, and at this time, an attempt is made to adjust the shooting angle of the camera to the shooting angle of the face in the standard image of the lower level.
When the minimum difference between the current shooting angle in the preview image and the target shooting angle of the face in the target standard image is larger than a preset threshold value, taking the standard image with the lower level as the target standard image, and comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image; if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
Step S450: and taking the current preview image as the preview image which is obtained finally and has the minimum difference between the current shooting angle and the target shooting angle.
If the difference between the current shooting angle in the preview image and the target shooting angle of the face in the target standard image is adjusted to be smaller than or equal to a preset threshold value under the condition that the standard image with a certain satisfaction level is taken as the target standard image, the shooting angle which can be adjusted to be the highest in satisfaction degree is considered to be adjusted, and the preview image which is finally obtained and has the smallest difference between the current shooting angle and the target shooting angle is taken as the preview image.
In the embodiment of the application, the shooting angle of the camera can be adjusted according to the standard images of multiple satisfaction levels, so that the most satisfactory image of a user at the shooting angle can be automatically acquired.
On the basis of the foregoing embodiment, the pre-stored standard image may be updated by AI learning. Specifically, the application further provides an embodiment, in which a user can send an instruction command to adjust a shooting angle according to a requirement, and according to an adjustment instruction of the user, the AI is compared with a preset standard image, fine adjustment is performed from a detail angle, and the AI is used as a new detection standard. Specifically, the method can be applied to any of the above embodiments. Specifically, referring to fig. 10, the method includes:
step S510: and acquiring a preview image acquired by the camera and displaying the preview image on the folding screen.
Step S520: and comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image.
Step S530: if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
Step S540: receiving an adjustment instruction command, and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell, wherein the adjustment instruction command indicates that the current preview image is a preview image unsatisfactory to a user and the folding angle between the first shell and the second shell needs to be continuously adjusted.
After the final preview image with the smallest difference between the current shooting angle of the face and the target shooting angle is obtained through automatic adjustment, if an adjustment instruction command of a user is received and the shooting angle of the current preview image is not satisfactory by the user, continuing to control the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell.
The AI can be compared with a preset standard image, and fine adjustment can be performed from a detail angle. The basic principle of the specific adjustment may be to avoid imaging at the angle most unsatisfactory for the user, and to find the angle preset by the user to be very satisfactory by rotating the camera back and forth and left and right. The angle which is most unsatisfactory to the user is the angle corresponding to the standard image with the lowest satisfaction. That is, fine adjustment may be performed around the shooting angle in the standard image with the highest degree of satisfaction. For example, only one standard image is prestored, and fine adjustment is performed around the shooting angle of the face in the standard image; and if a plurality of standard images are prestored, finely adjusting the shooting angle in the standard image with the highest satisfaction level. The fine tuning range can be preset, for example, if the fine tuning range is used for probing whether the user is satisfied by fine tuning 3 unit angles, if the adjustment instruction command is continuously received, the fine tuning range is continuously adjusted.
Step S550: and when an adjustment stop command is received, replacing the target standard image with the currently acquired preview image.
When the shooting angle in the adjusted preview image is the shooting angle satisfied by the user, the user can send an adjustment stop command. And taking the preview image collected by the camera when the adjustment stop command is received as a final adjustment result.
Moreover, since the preview image adjusted according to the adjustment instruction command is a preview image that is not satisfied by the user, and correspondingly, the target standard image that is obtained from the preview image also represents that the user is not satisfied, the preview image obtained after adjustment according to the adjustment instruction command can be replaced with the target standard image.
For example, 6 photos with a high satisfaction level to a low satisfaction level are pre-stored. The alternative rule is to obtain a preview image with the smallest difference between the current photographing angle and the target photographing angle obtained last when the 2 nd (i.e., the satisfaction level is 2 nd) standard image is taken as the target standard image. And if an adjustment instruction command is received, adjusting the shooting angle of the camera. And when an adjustment stopping command is received, replacing the target standard image with the currently acquired preview image obtained by adjustment, namely replacing the preview image with the 2 nd standard image (namely the standard image with the satisfaction level of 2 nd).
In the embodiment of the present application, both the adjustment instruction command and the adjustment end command may be determined by the action of the user. Specifically, an action corresponding to the adjustment instruction command and an action corresponding to the adjustment end command may be set in advance. Whether the action of the face in the preview image corresponds to an adjustment instruction command or not is identified, and if yes, the adjustment instruction command is judged to be received; and identifying whether the action of the face in the preview image corresponds to an adjustment ending command, and if so, judging that the adjustment ending command is received. The corresponding actions of the adjustment instruction command and the adjustment end command in the embodiment of the present application are not limited, and may be, for example, a micro expression of the user, such as indicating the adjustment instruction command by blinking a single eye, indicating the adjustment end command by closing both eyes for more than a preset time, and the like.
According to the embodiment of the application, the standard image is updated according to the adjustment instruction command of the user, so that the standard image which is more satisfied by the user is obtained in the continuous updating process, and the automatic adjustment of the shooting angle which is more in line with the requirements of the user is realized. In addition, the cloud storage can be uploaded to a new standard image, and the problem of readjustment after mobile phone replacement is avoided.
It should be noted that in various embodiments of the present application, the camera may be a rotatable camera. When the folding angle between the first shell and the second shell is adjusted, the adjustment of the selection angle of the camera is adjusted in a matched mode, and the shooting angle of the camera is adjusted in all dimensions from top to bottom, left to right.
The embodiment of the present application further provides a shooting device 600, which can be applied to the above-mentioned mobile terminal. Referring to fig. 11, the photographing apparatus 600 includes:
the image acquisition module 610 is used for acquiring a preview image acquired by a camera and displaying the preview image on the folding screen; an image comparison module 620, configured to compare the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image; a rotation control module 630, configured to control the rotating shaft mechanism to adjust the folding angle between the first housing and the second housing if the current shooting angle is different from the target shooting angle, until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimized.
Optionally, the rotation control module 630 may be configured to adjust a folding angle between the first housing and the second housing, so that a current shooting angle of a face in the preview image is close to the target shooting angle, and calculate a difference between the current shooting angle and the target shooting angle; controlling a rotating shaft mechanism to adjust the folding angle between the first shell and the second shell to the folding angle between the first shell and the second shell when the calculated difference is minimum
Optionally, the camera includes a first camera and a second camera, the first camera is disposed on the first casing, and the second camera is disposed on the second casing. The apparatus may further include: and the holding detection module is used for detecting whether only one of the first shell and the second shell is held. If yes, the image capturing module 610 is configured to capture the preview image through a camera disposed in a housing that is not held and display the preview image on the folding screen.
Optionally, the camera includes a first camera and a second camera, the first camera is disposed on the first casing, and the second camera is disposed on the second casing. The image capturing module 610 may be configured to obtain a first preview image captured by a first camera and a second preview image captured by a second camera. The image comparison module 620 may be configured to compare the first shooting angle of the face in the first preview image and the second shooting angle of the face in the second preview image with the target shooting angle respectively. If the difference between the first shooting angle and the target shooting angle is greater than the difference between the second shooting angle and the target shooting angle, the image acquisition module 610 may be further configured to acquire a second preview image only through the second camera and display the second preview image on the folding screen, and the rotation control module 630 may be configured to control the rotation shaft mechanism to adjust the folding angle between the first housing and the second housing until the difference between the current shooting angle of the face in the second preview image and the target shooting angle reaches a minimum. If the difference between the first shooting angle and the target shooting angle is smaller than or equal to the difference between the second shooting angle and the target shooting angle, the image acquisition module 610 may further be configured to acquire a first preview image only through the first camera and display the first preview image on the folding screen, and the rotation control module 630 may be configured to control the rotating shaft mechanism to adjust the folding angle between the first housing and the second housing until the difference between the current shooting angle of the face in the first preview image and the target shooting angle is minimized.
Optionally, the apparatus 600 may include a first command module configured to receive an adjustment indication command. The rotation control module 630 is further configured to control the rotating shaft mechanism to adjust the folding angle between the first casing and the second casing when receiving an adjustment instruction command, where the adjustment instruction command indicates that the current preview image is a preview image unsatisfactory to the user and the folding angle between the first casing and the second casing needs to be continuously adjusted. And the second command module is used for replacing the target standard image with the currently acquired preview image when receiving the adjustment stop command.
The first command module can be used for identifying whether the action of the face in the preview image corresponds to the adjustment instruction command, if so, the second command module can be used for identifying whether the action of the face in the preview image corresponds to the adjustment ending command, and if so, the adjustment ending command is received.
Optionally, in this embodiment of the present application, a plurality of standard images are prestored, and the plurality of standard images respectively belong to different satisfaction levels. Starting from the standard image with the highest satisfaction level as the target standard image, the image comparison module 620 may be configured to compare the current shooting angle of the face in the preview image with the shooting angle of the face in the target standard image. The rotation control module 630 is configured to control the rotating shaft mechanism to adjust the folding angle between the first housing and the second housing if the current shooting angle is different from the target shooting angle, until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimized. If the difference between the current shooting angle and the target shooting angle of the face in the target standard image is greater than a preset threshold value, the standard image of a lower level is used as the target standard image, the image comparison module 620 compares the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image, and the rotation control module 630 is used for controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell if the current shooting angle is different from the target shooting angle until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
If the difference between the current shooting angle of the face in the preview image and the target shooting angle of the face in the target standard image is less than or equal to the preset threshold, the rotation control module 630 uses the current preview image as the last obtained preview image with the smallest difference between the current shooting angle and the target shooting angle.
In the embodiment of the application, if the shooting angle of the face in the preview image acquired by the camera at present is different from the target shooting angle of the face in the target standard image, the rotating shaft mechanism can be controlled to adjust the first shell and the folding angle between the second shells, and the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum, so that the shooting angle of the camera can be automatically adjusted, the imaging effect can be adjusted more conveniently by a user, the adjustment action of the user is liberated, and the real-time adjustment function of the user under the complex conditions of posture change and the like can be ensured. And through AI constantly study and update user individual best data, through uploading individual account, can avoid changing the readjustment's after the cell-phone problem.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 12, a block diagram of a mobile terminal 700 according to an embodiment of the present disclosure is shown. The mobile terminal 700 may be a mobile terminal such as a mobile phone, a tablet computer, an electronic book, etc. The mobile terminal 700 includes a memory 710, a processor 720, a foldable housing assembly 110, a foldable screen 120, a hinge mechanism 113 and a camera 115, wherein the foldable housing assembly 110 includes a first housing 111 and a second housing 112 that can be folded relatively, the hinge mechanism 113 is used for controlling the first housing 111 and the second housing 112 to be folded relatively, the foldable screen 120 is laid on the foldable housing assembly 110, the foldable screen 120 is folded along with the folding between the first housing 111 and the second housing 112, the camera 113 is arranged on the foldable housing assembly 110, the memory 710, the hinge mechanism 113 and the camera 115 are coupled to the processor 720, the memory 710 stores instructions, and when the instructions are executed by the processor 720, the processor executes the method described in one or more embodiments.
Processor 710 may include one or more processing cores. Processor 710 interfaces with various components throughout mobile terminal 700 using various interfaces and lines, performs various functions of mobile terminal 700 and processes data by executing or performing instructions, programs, code sets, or instruction sets stored in memory 720 and invoking data stored in memory 720. Alternatively, the processor 710 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 710 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 710, but may be implemented by a communication chip.
The Memory 720 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 720 may be used to store instructions, programs, code, sets of codes, or sets of instructions, such as instructions or sets of codes for implementing the photographing methods provided by embodiments of the application. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described above, and the like. The data storage area can also store data (such as a phone book, audio and video data, chatting record data) and the like created by the mobile terminal in use.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 800 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. The utility model provides a photographing method, its characterized in that is applied to mobile terminal, mobile terminal includes collapsible casing subassembly, folding screen, pivot mechanism and camera, collapsible casing subassembly includes first casing and the second casing of folding relatively, pivot mechanism is used for control first casing and the second casing is folding relatively, the folding screen is laid in collapsible casing subassembly, the folding screen is folded along with folding between first casing and the second casing, the camera set up in collapsible casing subassembly, the camera includes first camera and second camera, first camera set up in first casing, the second camera sets up in the second casing, the method includes:
acquiring a first preview image acquired by the first camera and a second preview image acquired by the second camera;
comparing the current shooting angles of the human faces in the first preview image and the second preview image with the target shooting angle of the human face in the target standard image;
and displaying the first preview image or the second preview image based on a comparison result of the difference between the current shooting angle in the first preview image and the target shooting angle and the difference between the current shooting angle in the second preview image and the target shooting angle, and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the displayed preview image and the target shooting angle is minimum.
2. The method of claim 1, wherein adjusting the folding angle between the first housing and the second housing until the difference between the current shooting angle of the face in the displayed preview image and the target shooting angle reaches a minimum comprises:
adjusting the folding angle between the first shell and the second shell to enable the current shooting angle of the face in the displayed preview image to be close to the target shooting angle, and calculating the difference between the current shooting angle and the target shooting angle;
and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell to the folding angle between the first shell and the second shell when the calculated difference is minimum.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
detecting whether only one of the first shell and the second shell is held;
if yes, acquire the preview image of camera collection and show folding screen includes: and acquiring a preview image through a camera arranged on one shell which is not held and displaying the preview image on the folding screen.
4. The method according to claim 1 or 2, wherein the displaying the first preview image or the second preview image based on the difference between the current photographing angle in the first preview image and the target photographing angle and the difference between the current photographing angle in the second preview image and the target photographing angle, and controlling the hinge mechanism to adjust the folding angle between the first housing and the second housing until the difference between the current photographing angle of the face in the displayed preview image and the target photographing angle reaches a minimum comprises:
if the difference between the first shooting angle and the target shooting angle is larger than the difference between the second shooting angle and the target shooting angle, only acquiring a second preview image by the second camera and displaying the second preview image on the folding screen, and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the second preview image and the target shooting angle is minimum, wherein the first shooting angle is the current shooting angle of the face in the first preview image, and the second shooting angle is the current shooting angle of the face in the second preview image,
if the difference between the first shooting angle and the target shooting angle is smaller than or equal to the difference between the second shooting angle and the target shooting angle, only a first preview image is collected by the first camera and displayed on the folding screen, and the rotating shaft mechanism is controlled to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the first preview image and the target shooting angle is minimum.
5. The method of claim 1, further comprising:
receiving an adjustment instruction command, and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell, wherein the adjustment instruction command indicates that the current preview image is a preview image unsatisfactory to a user and the folding angle between the first shell and the second shell needs to be continuously adjusted;
and when an adjustment stop command is received, replacing the target standard image with the currently acquired preview image.
6. The method of claim 5, further comprising:
identifying whether the action of the face in the preview image corresponds to an adjustment instruction command, and if so, judging that the adjustment instruction command is received;
and identifying whether the action of the face in the preview image corresponds to an adjustment ending command, and if so, judging that the adjustment ending command is received.
7. The method according to claim 1, wherein a plurality of standard images are prestored, the plurality of standard images respectively belonging to different satisfaction levels,
comparing the current shooting angle of the face in the preview image with the target shooting angle of the face in the target standard image; if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum, including:
starting from the standard image with the highest satisfaction level as the target standard image,
comparing the current shooting angle of the face in the preview image with the shooting angle of the face in the target standard image;
if the difference between the current shooting angle of the face in the preview image and the target shooting angle of the face in the target standard image is smaller than or equal to a preset threshold value, taking the current preview image as the preview image with the minimum difference between the current shooting angle and the target shooting angle which is finally obtained;
if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum,
if the difference between the current shooting angle and the target shooting angle of the face in the target standard image is larger than a preset threshold value, taking the standard image with a lower level as the target standard image, and executing the comparison between the current shooting angle of the face in the preview image and the target shooting angle of the face in the target standard image; if the current shooting angle is different from the target shooting angle, controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the preview image and the target shooting angle is minimum.
8. The utility model provides a photographing device, its characterized in that is applied to mobile terminal, mobile terminal includes collapsible casing subassembly, folding screen, pivot mechanism and camera, collapsible casing subassembly is including first casing and the second casing of folding relatively, pivot mechanism is used for control first casing and the second casing is folding relatively, the folding screen is laid in collapsible casing subassembly, the folding screen is followed folding and folding between first casing and the second casing, the camera set up in collapsible casing subassembly, the camera includes first camera and second camera, first camera set up in first casing, the second camera sets up in the second casing, the device includes:
the image acquisition module is used for acquiring a first preview image acquired by the first camera and a second preview image acquired by the second camera;
the image comparison module is used for comparing the current shooting angles of the human faces in the first preview image and the second preview image with the target shooting angle of the human face in the target standard image;
and the rotation control module is used for displaying the first preview image or the second preview image based on a comparison result of the difference between the current shooting angle in the first preview image and the target shooting angle and the difference between the current shooting angle in the second preview image and the target shooting angle, and controlling the rotating shaft mechanism to adjust the folding angle between the first shell and the second shell until the difference between the current shooting angle of the face in the displayed preview image and the target shooting angle is minimum.
9. A mobile terminal, comprising a memory, a processor, a foldable housing assembly, a foldable screen, a rotating shaft mechanism and a camera, wherein the foldable housing assembly comprises a first housing and a second housing which can be folded relatively, the rotating shaft mechanism is used for controlling the first housing and the second housing to be folded relatively, the foldable screen is laid on the foldable housing assembly, the foldable screen is folded along with the folding between the first housing and the second housing, the camera is arranged on the foldable housing assembly, the camera comprises a first camera and a second camera, the first camera is arranged on the first housing, the second camera is arranged on the second housing, the memory, the rotating shaft mechanism and the camera are coupled to the processor, the memory stores instructions, when the instructions are executed by the processor, the processor performs the method of any one of claims 1-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN201910452861.6A 2019-05-28 2019-05-28 Photographing method and device, mobile terminal and storage medium Active CN110225229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910452861.6A CN110225229B (en) 2019-05-28 2019-05-28 Photographing method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910452861.6A CN110225229B (en) 2019-05-28 2019-05-28 Photographing method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110225229A CN110225229A (en) 2019-09-10
CN110225229B true CN110225229B (en) 2021-07-13

Family

ID=67818355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910452861.6A Active CN110225229B (en) 2019-05-28 2019-05-28 Photographing method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110225229B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365910B (en) * 2019-08-06 2020-12-25 珠海格力电器股份有限公司 Self-photographing method and device and electronic equipment
CN112543279A (en) * 2019-09-23 2021-03-23 北京小米移动软件有限公司 Display control method, display control device, storage medium and electronic equipment
CN111294542B (en) * 2020-02-17 2022-04-08 维沃移动通信有限公司 Image storage method and electronic equipment
CN111757003A (en) * 2020-07-01 2020-10-09 Oppo广东移动通信有限公司 Shooting processing method and device, mobile terminal and storage medium
CN112135153A (en) * 2020-08-24 2020-12-25 珠海格力电器股份有限公司 Display device, control method and device thereof, and computer readable medium
CN112601014A (en) * 2020-12-10 2021-04-02 努比亚技术有限公司 Shooting angle regulation and control method and device and computer readable storage medium
CN112887616B (en) * 2021-01-27 2022-08-26 维沃移动通信有限公司 Photographing method and photographing apparatus
CN113033506A (en) * 2021-05-20 2021-06-25 杭州宇泛智能科技有限公司 Portrait identification interaction method and device and electronic equipment
CN114827471A (en) * 2022-04-28 2022-07-29 维沃移动通信有限公司 Shooting method, display method, shooting device and display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103543828A (en) * 2013-10-18 2014-01-29 深圳宝龙达信息技术股份有限公司 Display system and method for automatically adjusting position of display screen
CN107682634A (en) * 2017-10-18 2018-02-09 维沃移动通信有限公司 A kind of facial image acquisition methods and mobile terminal
CN107995417A (en) * 2017-11-16 2018-05-04 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM391815U (en) * 2010-04-02 2010-11-01 E Lead Electronic Co Ltd Sheath supporting frames for portable electronic device
CN107786817B (en) * 2017-10-20 2019-10-18 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107948360B (en) * 2017-11-29 2020-11-03 努比亚技术有限公司 Shooting method of flexible screen terminal, terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103543828A (en) * 2013-10-18 2014-01-29 深圳宝龙达信息技术股份有限公司 Display system and method for automatically adjusting position of display screen
CN107682634A (en) * 2017-10-18 2018-02-09 维沃移动通信有限公司 A kind of facial image acquisition methods and mobile terminal
CN107995417A (en) * 2017-11-16 2018-05-04 维沃移动通信有限公司 A kind of method taken pictures and mobile terminal

Also Published As

Publication number Publication date
CN110225229A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110225229B (en) Photographing method and device, mobile terminal and storage medium
US9712745B2 (en) Method and apparatus for operating camera function in portable terminal
US9185286B2 (en) Combining effective images in electronic device having a plurality of cameras
US20190206031A1 (en) Facial Contour Correcting Method and Device
US8638372B2 (en) Image capture unit with changeable image capture direction
EP1938577B1 (en) A method and a device for reducing motion distortion in digital imaging
WO2022028184A1 (en) Photography control method and apparatus, electronic device, and storage medium
JP2001357404A (en) Picture extracting device
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
JP5434339B2 (en) Imaging control apparatus, imaging system, imaging method, program
JP6024728B2 (en) Detection apparatus, detection method, and program
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
WO2022042776A1 (en) Photographing method and terminal
CN112153272B (en) Image shooting method and electronic equipment
CN110275612B (en) Brightness adjusting method and device, electronic equipment and storage medium
CN110740260B (en) Shooting method and device and computer readable storage medium
CN108347564B (en) Mobile terminal and control method and control device of rotary camera module of mobile terminal
CN115525140A (en) Gesture recognition method, gesture recognition apparatus, and storage medium
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
WO2019084756A1 (en) Image processing method and device, and aerial vehicle
JP5880135B2 (en) Detection apparatus, detection method, and program
US8194147B2 (en) Image presentation angle adjustment method and camera device using the same
WO2021185374A1 (en) Image capturing method and electronic device
CN113302908B (en) Control method, handheld cradle head, system and computer readable storage medium
CN105049738A (en) Selfie taking control method and device

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