CN110266936B - Photographing method and terminal equipment - Google Patents

Photographing method and terminal equipment Download PDF

Info

Publication number
CN110266936B
CN110266936B CN201910340588.8A CN201910340588A CN110266936B CN 110266936 B CN110266936 B CN 110266936B CN 201910340588 A CN201910340588 A CN 201910340588A CN 110266936 B CN110266936 B CN 110266936B
Authority
CN
China
Prior art keywords
folding
angle
cameras
angles
preset
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
CN201910340588.8A
Other languages
Chinese (zh)
Other versions
CN110266936A (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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN201910340588.8A priority Critical patent/CN110266936B/en
Publication of CN110266936A publication Critical patent/CN110266936A/en
Application granted granted Critical
Publication of CN110266936B publication Critical patent/CN110266936B/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/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Abstract

The invention relates to the technical field of computers, and provides a photographing method and terminal equipment to solve the problem of long photographing time in a panoramic photographing process. The method comprises the following steps: under the condition that the terminal equipment is in a panoramic shooting mode, receiving shooting operation input by a user, responding to the shooting operation, acquiring images shot by N cameras of the foldable display screen in a folded state, wherein N is an integer greater than or equal to 3, and synthesizing the images shot by the N cameras to obtain a panoramic image. Because terminal equipment's collapsible screen has N folding area, sets up the camera on every folding area, can ensure terminal equipment and shoot the scope, reduce pivoted angle, and the image that the camera of two arbitrary adjacent folding areas in the image that N camera was shot has overlapping area, need not to carry out great turned angle's rotation to terminal equipment, can obtain the panoramic picture, it is long to reduce to shoot, improves panoramic shooting's efficiency.

Description

Photographing method and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to a photographing method and terminal equipment.
Background
With the rapid development of computer technology, the terminal device has more and more powerful functions, and the terminal device can provide services in various aspects, thereby providing convenience for life, work and the like of people. For example, photographing is a common service provided by a terminal device, and a user can take a picture through the terminal device. With the increasing demands of people on photographing, various photographing modes such as panoramic photographing are developed.
At present, in the process of panoramic shooting through a camera of a terminal device, a user needs to rotate the terminal device by a larger angle to realize panoramic shooting, so that the shooting time is longer.
Disclosure of Invention
The embodiment of the invention provides a photographing method and terminal equipment, and aims to solve the problem that the photographing time is long in the panoramic photographing process in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a photographing method, which is applied to a terminal device with a foldable display screen, and the method includes:
receiving a photographing operation input by a user under the condition that the terminal equipment is in a panoramic photographing mode;
responding to the photographing operation, and acquiring images photographed by N cameras when the foldable display screen is in a folded state, wherein N is an integer greater than or equal to 3;
synthesizing the images shot by the N cameras to obtain a panoramic image;
the N cameras are distributed in N folding areas of the foldable display screen, and images shot by the cameras of any two adjacent folding areas in the images shot by the N cameras have overlapping areas.
In a second aspect, an embodiment of the present invention further provides a terminal device, which has a foldable display screen, and includes:
the terminal equipment comprises a photographing operation acquisition module, a storage module and a display module, wherein the photographing operation acquisition module is used for receiving photographing operation input by a user under the condition that the terminal equipment is in a panoramic photographing mode;
the shot image acquisition module is used for responding to the shooting operation and acquiring images shot by N cameras when the foldable display screen is in a folded state, wherein N is an integer greater than or equal to 3;
the synthesis module is used for synthesizing the images shot by the N cameras to obtain a panoramic image;
the N cameras are distributed in N folding areas of the foldable display screen, and images shot by the cameras of any two adjacent folding areas in the images shot by the N cameras have overlapping areas.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a memory storing a computer program and a processor implementing the steps in the photographing method as described above when the processor executes the computer program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the photographing method as described above.
In the photographing method of the embodiment of the application, under the condition that the terminal device is in the panoramic photographing mode, the photographing operation input by a user is received, the photographing operation is responded, the foldable display screen is acquired under the folded state, the images shot by the N cameras are obtained, N is an integer greater than or equal to 3, and the images shot by the N cameras are synthesized to obtain the panoramic image. Because terminal equipment's collapsible screen has N folding area, sets up the camera on every folding area, can ensure terminal equipment and shoot the scope, reduce pivoted angle, and the image that the camera of arbitrary two adjacent folding areas in the image that N camera was shot has overlapping area, and the in-process of synthesizing the image that N camera was shot can realize the seamless synthesis of the image that arbitrary two adjacent folding areas shot to obtain the panoramic picture. So, under the panorama shooting mode, need not to carry out great turned angle rotation to terminal equipment, can obtain panoramic picture, it is long to reduce to shoot, improves panorama shooting's efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart of a photographing method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a photographing method according to an embodiment of the present invention;
fig. 3 is a first image captured by the photographing method according to the embodiment of the present invention;
fig. 4 is a block diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a second block diagram of the terminal device according to the embodiment of the present invention;
fig. 6 is a panoramic image obtained by the photographing method provided by the embodiment of the invention;
fig. 7 is a third block diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a fourth block diagram of the terminal device according to the embodiment of the present invention;
fig. 9 is a fifth block diagram of the terminal device according to the embodiment of the present invention;
fig. 10 is a schematic diagram of a terminal device provided in an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, in one embodiment, a photographing method is applied to a terminal device having a foldable display screen, and the method includes:
step 101: and receiving a photographing operation input by a user under the condition that the terminal equipment is in the panoramic photographing mode.
In the process of taking pictures by using the terminal equipment, different shooting modes can be adopted, for example, a common shooting mode and a panoramic shooting mode, in the common shooting mode, a user carries out shooting operation, and the terminal equipment can obtain a corresponding image by taking pictures once. In the panoramic shooting mode, a user performs shooting operation, and images shot at different angles need to be spliced and synthesized to obtain a panoramic image. The photographing method of the embodiment photographs in the panoramic photographing mode, and therefore, firstly, when the end device is in the panoramic photographing mode, a photographing operation input by a user is received, and the photographing operation is used for triggering the terminal device to photograph.
Step 102: and responding to the photographing operation, and acquiring images shot by the N cameras when the foldable display screen is in a folded state.
Terminal equipment's display screen is collapsible display screen, so, can fold terminal equipment under the panorama shooting mode, collapsible display screen has N folding zone, and under fold condition, the folding angle between the folding zone is less than 180 degrees, and under the state of expandeing completely, N folding zone is in the coplanar, and the angle is 180 degrees between the folding zone. In one example, N may be an integer greater than or equal to 3, so that a shooting range of the camera may be secured, and the number of times the terminal device is operated in the panorama shooting mode may be reduced.
The terminal equipment can respond to the photographing operation after receiving the photographing operation, and controls the N cameras to respectively photograph when the foldable display screen is in a folded state, so that images photographed by the N cameras are obtained. I.e. one camera is arranged in each folding area. And responding to the photographing operation, and controlling each camera to photograph respectively. In one example, the N cameras are located on the same horizontal line, so that the shooting accuracy of each camera can be ensured, and the accuracy of the panoramic image is ensured.
Step 103: and synthesizing the images shot by the N cameras to obtain a panoramic image.
After the images shot by the N cameras are obtained through shooting by the N cameras, the images shot by the N cameras can be synthesized to obtain a panoramic image. The images shot by the cameras in any two adjacent folding areas in the images shot by the N cameras have an overlapping area. In order to realize seamless synthesis between images shot by adjacent cameras to obtain a seamless panoramic image, images shot by any two adjacent folding areas in the images shot by the N cameras need to have an overlapping area, so that the images shot by the cameras in the two adjacent folding areas can be seamlessly spliced.
In the photographing method of the embodiment, when the terminal device is in the panoramic photographing mode, a photographing operation input by a user is received, in response to the photographing operation, images photographed by the N cameras when the foldable display screen is in the folded state are obtained, and the images photographed by the N cameras are synthesized to obtain a panoramic image. Because terminal equipment's collapsible screen has N folding area, sets up the camera on every folding area, can ensure terminal equipment and shoot the scope, reduce pivoted angle, and the image that the camera of arbitrary two adjacent folding areas in the image that N camera was shot has overlapping area, and the in-process of synthesizing the image that N camera was shot can realize the seamless synthesis of the image that arbitrary two adjacent folding areas shot to obtain the panoramic picture. So, under the panorama shooting mode, need not to carry out great turned angle rotation to terminal equipment, can obtain panoramic picture, it is long to reduce to shoot, improves panorama shooting's efficiency. Meanwhile, the N folding areas correspond to the N cameras, so that the N cameras can shoot and synthesize images to obtain panoramic images, the rotating angle is reduced, the shake and the image phase difference can be reduced, the quality of shot images is ensured, the image synthesis difficulty is reduced, the synthesis efficiency is improved, and the quality of the synthesized panoramic images is improved.
Referring to fig. 2, in an embodiment, a photographing method includes the following steps 201 to 207.
Step 201: and receiving a photographing operation input by a user under the condition that the terminal equipment is in the panoramic photographing mode.
In the process of taking pictures by using the terminal equipment, different shooting modes can be adopted, for example, a common shooting mode and a panoramic shooting mode, in the common shooting mode, a user carries out shooting operation, and the terminal equipment can obtain a corresponding image by taking pictures once. In the panoramic shooting mode, a user performs shooting operation, and images shot at different angles need to be spliced and synthesized to obtain a panoramic image. The photographing method of the embodiment photographs in the panoramic photographing mode, and therefore, firstly, when the end device is in the panoramic photographing mode, a photographing operation input by a user is received, and the photographing operation is used for triggering the terminal device to photograph.
Step 202: the method comprises the steps of acquiring N first images shot by N cameras of a foldable display screen in a folded state.
Terminal equipment's display screen is collapsible display screen, so, can fold terminal equipment under the panorama shooting mode, collapsible display screen has N folding zone, and under fold condition, folding angle between the folding zone is less than 180 degrees, and under the expansion state, N folding zone is in the coplanar, and the angle is 180 degrees between the folding zone. In one example, N is an integer greater than or equal to 3, so that the shooting range of the camera can be ensured, and the number of times of the terminal device in the panoramic shooting mode can be reduced.
The terminal equipment can respond to the photographing operation after receiving the photographing operation, and controls the N cameras to respectively take pictures once when the foldable display screen is in a folded state, so that first images shot by the N cameras are obtained, namely the N cameras take pictures once, and each camera obtains a corresponding first image.
Step 203: and acquiring N folding angles and the field angles of the N cameras.
The N folding angles comprise a first included angle and a folding angle between N-1 pairs of adjacent two folding areas in the N folding areas, the first included angle is an included angle between planes of the two target folding areas, the two target folding areas are two folding areas in the N folding areas, and in the N folding areas, the number of the folding areas adjacent to any one target folding area in the two target folding areas is one.
Because there may be a gap (non-overlap) between the first images shot by the N cameras, which results in that the images cannot be synthesized, after the first image is obtained, it is further necessary to determine whether the terminal device needs to be rotated for secondary shooting, so as to ensure that the images shot by the N cameras can be synthesized. Whether images shot by the N cameras of the terminal equipment are overlapped can be determined through the folding angle between the folding areas and the field angle of the cameras, and therefore the N folding angles and the field angles of the N cameras need to be acquired. The two target folding regions may also be understood as two boundary folding regions of the N folding regions, the number of the folding regions adjacent to the boundary folding region is one, the remaining folding regions are located between the two boundary folding regions, and the two folding regions forming the first included angle are the two target folding regions.
Step 204: and if the N folding angles have the first folding angle meeting the preset condition, acquiring the rotation angle of the terminal equipment.
Whether a first folding angle meeting a preset condition exists in the N folding angles can be judged based on the field angles of the N folding angles and the N cameras, if the first folding angle meeting the preset condition exists, the requirement of rotation is met, and at the moment, the terminal equipment needs to be rotated to change the shooting angles of the N cameras and change the shooting range of the N cameras.
Step 205: and acquiring N second images shot by the N cameras under the condition that the rotating angle of the terminal equipment is a preset target angle.
In order to avoid that a gap does not exist between a second image shot by the camera after the terminal equipment rotates and a first image shot by an adjacent camera, the terminal equipment needs to rotate by a preset target angle, and the preset target angle is preset in the terminal equipment and can ensure that the second image shot by the camera after the terminal equipment rotates and the first image shot by the adjacent camera are overlapped. And under the condition that the rotating angle of the terminal equipment is the preset target angle, controlling the N cameras to shoot again, and acquiring N second images shot by the N cameras, namely shooting again by each camera.
For example, taking N as 3 as an example, the 3 cameras are a first camera, a second camera and a third camera, which are respectively and correspondingly arranged in the first folding area, the second folding area and the third folding area, a folding angle between the first folding area and the second folding area is 60 degrees, a folding angle between the second folding area and the third folding area is 60 degrees, a first included angle between the first folding area and the second folding area is 60 degrees, and the field angles of the 3 cameras are all 80 degrees, so that according to the sizes of the 3 folding angles and the 3 field angles, it can be determined that the 3 folding angles do not satisfy the preset condition, that is, there is no overlap between every two images in the three first images taken. First images taken by the 3 cameras are shown in fig. 3, wherein an image a is a first image taken by a first camera, an image B is a first image taken by a second camera, an image C is a first image taken by a third camera, and the 3 first images are not overlapped and have gaps (parts a and B in fig. 3 are pictures which are not taken). Therefore, the terminal device needs to be rotated, for example, the preset target angle is 60 degrees, and by rotating 60 degrees, the second image taken again by the camera can overlap with the first image taken by the adjacent camera, and the second image taken by the camera in one of the two target folding areas and the first image taken by the camera in the other target folding area have an overlapping area, wherein the direction from one target folding area to the other target folding area corresponds to the rotating direction. For example, the second image captured by the first camera overlaps the second image captured by the second camera, the second image captured by the second camera overlaps the second image captured by the third camera, and the second image captured by the third camera overlaps the second image captured by the first camera.
Step 206: and taking the N first images shot by the N cameras and the N second images shot by the N cameras as the images shot by the N cameras.
Step 207: and synthesizing the images shot by the N cameras to obtain a panoramic image.
In order to realize normal synthesis between images shot by two adjacent cameras, N first images shot by the N cameras and N second images shot by the N cameras are required to be used as images shot by the N cameras, and the images are synthesized based on the N first images shot by the N cameras and the N second images shot by the N cameras to obtain a panoramic image.
In the photographing control process, in order to achieve seamless synthesis between images shot by adjacent cameras to obtain a seamless panoramic image, images shot by cameras in any two adjacent folding areas in the images shot by the N cameras need to have an overlapping area. Therefore, images shot by the cameras in two adjacent folding areas can be spliced seamlessly to ensure the integrity of the panoramic image.
It can be understood that, in this embodiment, acquiring the images captured by the N cameras when the foldable display screen is in the folded state includes: acquiring N first images shot by N cameras when the foldable display screen is in a folded state; acquiring N folding angles and field angles of N cameras, wherein the N folding angles comprise folding angles between N-1 pairs of adjacent two folding areas in the N folding areas and a first included angle, the first included angle is an included angle between two target folding areas, the target folding area is a folding area in the N folding areas, and the number of the folding areas adjacent to the target folding area in the N folding areas is one; if a first folding angle meeting a preset condition exists in the N folding angles, acquiring a rotation angle of the terminal equipment; acquiring N second images shot by N cameras under the condition that the rotation angle of the terminal equipment is a preset target angle; and taking the N first images shot by the N cameras and the N second images shot by the N cameras as the images shot by the N cameras.
In one example, the preset target angle is smaller than the minimum field angle of the field angles of the N cameras, so that the first image and the second image shot by the same camera can be ensured to have an overlapping area, seamless synthesis can be performed in the synthesis process, and the integrity of the panoramic image is improved.
In one embodiment, the sum of the first folding angle and the first mean field angle is less than or equal to 180 degrees, and when the first folding angle is not the first included angle, or the first folding angle is the first included angle and the sum of N folding angles is equal to the sum of target angles, the sum of target angles is the difference between N and 2 multiplied by 180 degrees, and the first mean field angle is the mean field angle of the camera in the two folding areas forming the first folding angle.
And the folding angle and the average value of the field angles of the cameras on the two folding areas forming the folding angle meet a certain corresponding relation, so that the folding angle can be determined to meet the preset condition. In this embodiment, when the sum of the folding angle and the average value of the viewing angles corresponding to the folding angle is less than or equal to 108 degrees and the folding angle is not the first included angle, it is determined that the folding angle satisfies the predetermined condition, and the folding angle is the first folding angle. That is, the sum of the first folding angle and the first field angle average is less than or equal to 180 degrees, which means that the difference between the 180 degrees and the sum of the first folding angle and the first field angle average is greater than 0, that is, it means that there is no overlap between the shooting ranges of the cameras in the two folding regions constituting the first folding angle, that is, there is no overlap region between the first images shot by the cameras in the two folding regions constituting the first folding angle, and the first folding angle is not the first angle, that is, the first folding angle is not an angle between planes of the two boundary folding regions, and may be a folding angle between any two adjacent folding regions in the N folding regions. Namely, the existence of a first folding angle meeting a preset condition in the N folding angles indicates that an non-overlapping image pair exists in a first image shot by the terminal equipment, and the non-overlapping image pair is not an image shot by the cameras of the two boundary folding areas. The user rotates the terminal equipment, can acquire the terminal equipment pivoted angle, and under the condition that terminal equipment pivoted angle is for predetermineeing the target angle, N second images that N cameras shot are acquired.
In addition, the sum of the folding angle and the average value of the field angles of the cameras on the two folding areas forming the folding angle is less than or equal to 108 degrees, and the folding angle is the first included angle, but when the sum of the N folding angles is equal to the target angle, it can also be determined that the folding angle satisfies the preset condition, and the folding angle is the first folding angle. That is, the sum of the first folding angle and the first field angle average is less than or equal to 180 degrees, which means that the difference between the 180 degrees and the sum of the first folding angle and the first field angle average is greater than 0, that is, it means that there is no overlap between the shooting ranges of the cameras in the two folding regions constituting the first folding angle, that is, there is no overlap region between the first images shot by the cameras in the two folding regions constituting the first folding angle, and the first folding angle is a first included angle, that is, the first folding angle is an included angle between the planes of the two boundary folding regions, and the sum of the N folding angles is equal to the sum of the target angles (indicating that the foldable display screen of the terminal device is in a fully folded state). Namely, a first folding angle meeting a preset condition exists in the N folding angles, which indicates that an non-overlapping image pair exists in a first image shot by the terminal equipment, and the non-overlapping image pair is an image shot by the cameras of the two boundary folding areas, but the foldable display screen is in a fully folded state. The user rotates the terminal equipment, can acquire the terminal equipment pivoted angle, and under the condition that terminal equipment pivoted angle is for predetermineeing the target angle, N second images that N cameras shot are acquired.
In one embodiment, acquiring images shot by N cameras when the foldable display screen is in a folded state further comprises: and in the case that the first folding angle meeting the preset condition does not exist in the N folding angles, taking N first images shot by the N cameras as the images shot by the N cameras.
If the first folding angle meeting the preset condition does not exist in the N folding angles, the fact that the terminal equipment does not need to rotate to shoot after shooting the first image is shown. Wherein, the sum of the field of view mean values (the field of view mean values of the cameras in the two folding areas forming the folding angle) of each folding angle and the folding angle in the N folding angles is greater than 180 degrees, or the sum of the field of view mean values corresponding to the folding angle in the N folding angles is less than or equal to 180 degrees, but the folding angle is a first angle and the sum of the N folding angles is not equal to the sum of the target angles (the foldable display screen is in an incomplete folding state), indicating that there is no non-overlapping image pair in the first image taken by the terminal device, or there is a non-overlapping image pair but the non-overlapping image pair is an image taken by the cameras in two boundary folding areas of the terminal device in an incomplete folding state, that is, there is overlap between the first images taken by two adjacent cameras, and there is also overlap between the first images taken by the cameras in the two boundary folding areas, or the first images shot by two adjacent cameras are overlapped, the first images shot by the cameras in the two boundary folding areas are not overlapped, but the foldable display screen is in an incomplete folding state, so that the condition that the foldable display screen does not meet the preset condition can be determined, and the foldable display screen does not need to be rotated.
In one embodiment, if there is a first folding angle satisfying a predetermined condition among the N folding angles, the method further includes: and displaying folding reminding information in the foldable display screen, wherein the folding reminding information comprises a preset target angle.
If there is the first folding angle that satisfies the preset condition in N folding angles, show to need to rotate the back and shoot once more to terminal equipment, in this embodiment, can show folding warning information in collapsible display screen, folding warning information is including presetting the target angle to remind the user to rotate terminal equipment, and remind the user to want the pivoted target angle of presetting, the user of being convenient for rotates.
In one embodiment, in a case that a rotation angle of the terminal device is a preset target angle, before acquiring N second images captured by N cameras, the method further includes: determining a preset initial rotation angle corresponding to the first folding angle according to the first folding angle and the field angles of the cameras in the two folding areas forming the first folding angle; and determining a preset target angle based on the preset initial rotation angle and the preset overlapping angle.
The preset target angle influences the area of an overlapping region between a second image shot by the camera after the camera rotates and a first image shot by an adjacent camera, and the preset target angle needing to rotate needs to be determined before the camera rotates. The preset initial rotation angle is the minimum angle required to rotate, and in order to enable images shot by two adjacent cameras to be overlapped, the preset overlap angle needs to be reserved, namely, the preset overlap angle is increased on the basis of the preset initial rotation angle to obtain the preset target angle. Therefore, an overlapping area exists between the second image shot by the camera after the camera rotates and the first image shot by the adjacent camera, and the second image shot by the camera in one target folding area of the two target folding areas and the first image shot by the camera in the other target folding area of the two target folding areas, so that the integrity of the panoramic image is ensured.
In one example, the preset initial rotation angle corresponding to the first folding angle is a difference value obtained by subtracting the sum of the first folding angle and the average value of the field angles corresponding to the first folding angle from 180 degrees. For example, if the first folding angle is 60 degrees, and the average of the viewing angles corresponding to the first folding angle is 80 degrees, the preset initial rotation angle is 40 degrees, and if the preset folding angle is 20 degrees, the preset target angle is 60 degrees. By setting the preset overlapping angle, the requirement on the overlapping area in the process of obtaining the panoramic image by image synthesis can be ensured, and the integrity of the panoramic image is improved.
In one embodiment, determining the preset target angle based on the preset initial rotation angle and the preset overlap angle comprises: and under the condition that the number of the first folding angles is at least two, adding the maximum angle in the preset initial rotating angles and the preset folding angle to obtain a preset target angle.
For the N folding areas, N folding angles are correspondingly arranged, after whether the folding angles meet preset conditions is judged, if the number of the first folding angles meeting the preset conditions is at least two, the preset initial rotating angles correspond to the first folding angles in a one-to-one mode, the maximum angle in the preset initial rotating angles corresponding to the first folding angles can be added with the preset overlapping angle, and the preset target angle is obtained. Therefore, the overlapping requirement of images obtained by photographing all the cameras after the terminal equipment rotates can be met.
For example, if the preset overlap angle is 20 degrees, the first fold angle includes a folding angle a1 and a folding angle B1, the folding angle a is 60 degrees, the viewing angles of the cameras in the two folding regions of the folding angle a are 70 degrees and 80 degrees, respectively, and the mean value of the viewing angles is 75 degrees, the preset initial rotation angle corresponding to the folding angle a is 45 degrees (180 degrees minus 60 degrees minus 75 degrees). The folding angle B is 60 degrees, the viewing angles of the cameras in the two folding areas of the folding angle B are 60 degrees and 80 degrees respectively, the average value of the viewing angles is 70 degrees, and the preset initial rotation angle corresponding to the folding angle B is 50 degrees (180 degrees minus 60 degrees minus 70 degrees). And if the preset initial rotation angle corresponding to the folding angle B is larger than the preset initial rotation angle corresponding to the folding angle A, increasing the preset overlapping angle by taking the preset initial rotation angle corresponding to the folding angle B as a reference, and obtaining a preset target angle of 70 degrees.
The following describes the procedure of the above photographing method in an embodiment.
Taking N as 3, 3 cameras are in the same horizontal line, fig. 4 illustrates that the foldable display screen of the terminal device is in a fully unfolded state, the 3 folding areas are respectively a folding area X1, a folding area X2 and a folding area X3, the field angle of the first camera S1 in the folding area X1 is 80 degrees, the field angle of the second camera S2 in the folding area X2 is 80 degrees, and the field angle of the third camera S3 in the folding area X3 is 80 degrees. Fig. 5 shows the foldable display of the terminal device in a fully folded state (which can be understood as a barrel-type state), i.e. the sum of the three folding angles is 180 degrees.
Taking the fully folded state of fig. 5 as an example, the terminal device is currently in the fully unfolded state of fig. 4, the user starts the panorama shooting mode at the terminal device, the folding reminding information can be displayed, the user is reminded to fold, the user folds the terminal device, under the condition of the fully folded state of the terminal device fig. 5, the sum of 3 folding angles is 180 degrees, namely, the terminal device can detect that the user enters into the barrel-shaped state, the panorama mode preview is started, namely, the preview image corresponding to 3 cameras can be displayed on the foldable display screen.
The user performs a photographing operation to start photographing, and first, 3 cameras respectively perform photographing to obtain three first images, namely an image a1, an image B1 and an image C1. In the present embodiment, the folding angle JX12 between the folding region X1 and the folding region X2 is 60 degrees, the folding angle JX23 between the folding region X2 and the folding region X3 is 60 degrees, and the folding angle JX13 (i.e. the first included angle) between the folding region X1 and the folding region X3 is 60 degrees, and as can be seen from the folding angle between the folding regions and the field angles of 3 cameras, the folding angles JX12, JX23 and JX13 all satisfy the preset conditions, for example, the two folding regions constituting the folding angle JX12 are the folding region X1 and the folding region X2, the camera on the folding region X1 is the first camera S1, the camera on the folding region X2 is the second camera S2, the field angles of the first camera S1 and the second camera S2 are 80 degrees, the average of the field angles between the JX12 and the first camera and the second camera S80 and the field angles (the folding region X2 and the folding region X12), not for the folding angle between the boundary folding regions X1 and X3, JX12 satisfies a preset condition. Similarly, JX23 satisfies the preset condition. For JX13, the sum of the JX13 and the mean of the first camera's field angle and the third camera's field angle is 140 degrees, less than 180 degrees, and JX13 is the fold angle between fold region X1 and fold region X3, which is the fold angle between two boundary fold regions, but the sum of 3 fold angles is equal to 180 degrees, satisfying the preset condition. The terminal equipment needs to be rotated, the three folding angles all meet the preset condition, namely the number of the first folding angles is three, the preset initial angle corresponding to each folding angle is 40 degrees, the preset overlapping angle is 20 degrees, and the preset target angle is 60 degrees.
In this way, after the first image is captured, the terminal device may be rotated by 60 degrees, and in the case where the terminal device is rotated by 60 degrees, 3 cameras are controlled to capture again, and 3 second images, image a2, image B2, and image C2, are obtained. Thus, the images taken by the 3 cameras include 6 images, respectively image a1, image B1, image C1, image a2, image B2, and image C2. Then, the images are spliced according to the sequence from the image a1, the image a2, the image B1, the image B2, the image C1, the image C2 to the image a1, so that the images are synthesized, and a panoramic image is obtained, that is, the panoramic shooting of 360 degrees can be realized in the embodiment, as shown in fig. 6.
Fig. 7 shows the foldable display screen of the terminal device in an incompletely folded state, i.e. the sum of the three folding angles is not equal to 180 degrees.
The user performs a photographing operation to start photographing, and first, 3 cameras respectively perform photographing to obtain three first images, namely an image a1, an image B1 and an image C1. In the present embodiment, the fold angle JX12 between the fold region X1 and the fold region X2 is 120 degrees, the fold angle JX23 between the fold region X2 and the fold region X3 is 120 degrees, the fold angle JX13 (i.e., the first included angle) between the fold region X1 and the fold region X3 is 60 degrees, and the fold angles JX12, JX23, and JX13 do not satisfy the preset condition according to the fold angle between the fold regions and the field angles of 3 cameras, for example, the sum of the field angles of JX12 and first camera S1 and the average of the field angles of second camera S2 is 200 degrees, is greater than 180 degrees, and does not satisfy the preset condition. Similarly, JX23 does not satisfy the preset condition. For JX13, the sum of the viewing angles of JX13 and the first camera S1 and the average of the viewing angles of the third camera S3 is 140 degrees and less than 180 degrees, and JX13 is the fold angle between the fold region X1 and the fold region X3, which is the fold angle between two boundary fold regions, but the sum of 3 fold angles is 300 degrees and is not equal to 180 degrees, and does not satisfy the preset condition. The terminal equipment does not need to be rotated.
The 3 camera images include three images, image a1, image B1, and image C1, with image a1 captured by the first camera overlapping image B1 captured by the second camera and image B1 captured by the second camera overlapping image C1 captured by the third camera. The images are spliced according to the sequence of the image A1, the image B1 to the image C1, and the images are synthesized to obtain a panoramic image, namely the embodiment can realize non-360-degree panoramic shooting.
If the fold angle JX12 between the fold region X1 and the fold region X2 in fig. 7 is less than 100 degrees (the difference of 180 degrees minus the sum of the average of the field angles of the JX12 and the fold region X1 and the fold region X2 is 0), for example, 90 degrees, the sum of the average of the field angles of the JX12 and the first camera S1 and the second camera S2 is 170 degrees and less than 180 degrees, and the JX12 is not the fold angle between the two boundary fold regions, which satisfies the preset condition. Alternatively, the folding angle JX23 between the folding region X2 and the folding region X3 is less than 100 (the difference of 180 degrees minus the average of the field angles of JX23, folding region X2 and folding region X3 is 0), for example, 90 degrees, the sum of the field angles of JX23 and second camera S2 and the average of the field angles of third camera S3 is 170 degrees and less than 180 degrees, and JX23 is not the folding angle between two boundary folding regions, and the terminal device needs to be rotated if the preset condition is met.
The following description will be given by taking N as 4, 4 cameras are in the same horizontal line, fig. 8 shows that the foldable display screen of the terminal device is in a fully unfolded state, the 4 folding areas are respectively the folding area Y1, the folding area Y2, the folding area Y3 and the folding area Y4, the field angle of the fourth camera S4 in the folding area Y1 is 95 degrees, the field angle of the fifth camera S5 in the folding area Y2 is 95 degrees, the field angle of the sixth camera S6 in the folding area Y3 is 95 degrees, and the field angle of the seventh camera S7 in the folding area Y4 is 95 degrees. Fig. 9 shows the foldable display screen of the terminal device in a fully folded state (which can be understood as a barrel-type state), i.e. the sum of the 4 folding angles is 360 degrees.
Take the perfect folding state of fig. 9 as an example, the terminal equipment is currently in the perfect unfolding state of fig. 8, the user starts the panorama shooting mode at the terminal equipment, can show folding warning information, remind the user to fold, the user folds the terminal equipment, under the condition of the perfect folding state of terminal equipment fig. 9, the sum of 4 folding angles is 360 degrees, terminal equipment detectable promptly gets into the bucket type state to the user, open the preview of panorama mode, preview image that 4 cameras correspond can be shown promptly on collapsible display screen.
When the user performs a photographing operation to start photographing, firstly, 4 cameras respectively perform photographing to obtain 4 first images, namely an image D1, an image E1, an image F1 and an image G1. In the present embodiment, the folding angle JY12 between the folding region Y1 and the folding region Y2 is 90 degrees, the folding angle JY23 between the folding region Y2 and the folding region Y3 is 90 degrees, the folding angle JY34 between the folding region Y3 and the folding region Y4 is 90 degrees, and the folding angle JY11 between the folding region Y1 and the folding region Y4 is 90 degrees (i.e., a first included angle). According to the folding angles among the folding areas and the field angles of the 4 cameras, the folding angles JY12, JY23, JY34 and JY14 do not meet preset conditions, namely the first images shot by every two adjacent cameras are overlapped, the first images shot by the fourth camera S4 and the first images shot by the seventh camera S7 on the two boundary folding areas are overlapped, rotation is not needed, the obtained 4 first images are used as images shot by the 4 cameras, and the images are sequentially synthesized based on the image D1, the image E1, the image F1, the image G1 and the image D1.
As shown in fig. 10, the present invention also provides a terminal device 100 of an embodiment having a foldable display screen, including:
a photographing operation obtaining module 110, configured to receive a photographing operation input by a user when the terminal device is in a panoramic photographing mode;
a photographed image obtaining module 120, configured to respond to a photographing operation, and obtain images photographed by N cameras when the foldable display screen is in a folded state, where N is an integer greater than or equal to 3;
a synthesizing module 130, configured to synthesize images captured by the N cameras to obtain a panoramic image;
the N cameras are distributed in N folding areas of the foldable display screen, and images shot by the cameras of any two adjacent folding areas in the images shot by the N cameras have overlapping areas.
In one embodiment, the captured image acquisition module 120 includes:
the first image acquisition module is used for acquiring N first images shot by N cameras when the foldable display screen is in a folded state;
the first angle acquisition module is used for acquiring N folding angles and field angles of N cameras;
the terminal equipment comprises N folding angles, a first angle acquisition module and a second angle acquisition module, wherein the N folding angles comprise a first included angle and a folding angle between N-1 pairs of adjacent two folding areas in the N folding areas, the first included angle is an included angle between planes of two target folding areas, the two target folding areas are two folding areas in the N folding areas, and in the N folding areas, the number of the folding areas adjacent to any one target folding area in the two target folding areas is one second angle acquisition module which is used for acquiring the rotation angle of the terminal equipment if the first folding angle meeting the preset condition exists in the N folding angles;
the second angle acquisition module is used for acquiring the rotation angle of the terminal equipment if the first folding angle meeting the preset condition exists in the N folding angles;
the second image acquisition module is used for acquiring N second images shot by the N cameras under the condition that the rotation angle of the terminal equipment is a preset target angle;
and the shot image determining module is used for taking the N first images shot by the N cameras and the N second images shot by the N cameras as the images shot by the N cameras.
In one embodiment, the sum of the first folding angle and the first viewing angle mean is less than or equal to 180 degrees, and the first folding angle is not the first included angle, or the first folding angle is the first included angle and the sum of the N folding angles is equal to the target angle sum. The sum of the target angles is the difference value between N and 2 multiplied by 180 degrees, and the first field angle mean value is the field angle mean value of the cameras in the two folding areas forming the first folding angle.
In one embodiment, the captured image determining module 120 is further configured to take N first images captured by the N cameras as images captured by the N cameras in a case where there is no first folding angle satisfying a preset condition among the N folding angles.
In one embodiment, the terminal device further includes:
and the reminding module is used for displaying folding reminding information in the foldable display screen if a first folding angle meeting the preset condition exists in the N folding angles, and the folding reminding information comprises a preset target angle.
In one embodiment, the terminal device further includes:
the initial rotation angle determining module is used for determining a preset initial rotation angle corresponding to the first folding angle according to the first folding angle and the field angles of the cameras in the two folding areas forming the first folding angle;
and the preset target angle determining module is used for determining a preset target angle based on a preset initial rotation angle and a preset overlapping angle.
In an embodiment, the preset target angle determining module is configured to, when the number of the first folding angles is at least two, add a maximum angle of the preset initial rotation angles to a preset folding angle to obtain the preset target angle.
The technical features in the terminal device provided by the embodiment of the present invention correspond to the technical features in the above-mentioned photographing method, and each process of the above-mentioned photographing method is implemented by the terminal device, and the same effect can be obtained, and in order to avoid repetition, the details are not repeated herein.
Fig. 11 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, processor 1110, and power supply 1111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
The processor 1110 is configured to receive a photographing operation input by a user when the terminal device is in the panoramic photographing mode, obtain, in response to the photographing operation, images photographed by the N cameras when the foldable display screen is in the folded state, and perform synthesis processing on the images photographed by the N cameras to obtain a panoramic image.
Because terminal equipment's collapsible screen has N folding area, sets up the camera on every folding area, can ensure terminal equipment and shoot the scope, reduce pivoted angle, and the image that the camera of arbitrary two adjacent folding areas in the image that N camera was shot has overlapping area, and the in-process of synthesizing the image that N camera was shot can realize the seamless synthesis of the image that arbitrary two adjacent folding areas shot to obtain the panoramic picture. So, under the panorama shooting mode, need not to carry out great turned angle rotation to terminal equipment, can obtain panoramic picture, it is long to reduce to shoot, improves panorama shooting's efficiency. Meanwhile, the N folding areas correspond to the N cameras, so that the N cameras can shoot and synthesize images to obtain panoramic images, the rotating angle is reduced, the shake and the image phase difference can be reduced, the quality of shot images is ensured, the image synthesis difficulty is reduced, the synthesis efficiency is improved, and the quality of the synthesized panoramic images is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1101 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1110; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 1102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as sound. Also, the audio output unit 1103 may also provide audio output related to a specific function performed by the terminal apparatus 500 (e.g., a call signal reception sound, a message reception sound, and the like). The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1104 is used to receive audio or video signals. The input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing terminal device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1106. The image frames processed by the graphic processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio frequency unit 1101 or the network module 1102. The microphone 11042 may receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1101 in case of the phone call mode.
Terminal device 1100 also includes at least one sensor 1105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 11091 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 11091 and/or backlight when the terminal device 1100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., and will not be described in detail herein.
The display unit 1106 is used to display information input by a user or information provided to the user. The Display unit 1106 may include a Display panel 11061, and the Display panel 11061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1107 is operable to receive input numeric or character information and generate key signal inputs relating to user settings and function control of the terminal device. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 11071 (e.g., operations by a user on or near the touch panel 11071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 11071 may include two parts of a touch detection terminal device and a touch controller. The touch detection terminal equipment detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing terminal device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1110, and receives and executes commands sent from the processor 1110. In addition, the touch panel 11071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1107 may include other input devices 11072 in addition to the touch panel 11071. In particular, the other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 11071 can be overlaid on the display panel 11061, and when the touch panel 11071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1110 to determine the type of the touch event, and then the processor 1110 provides a corresponding visual output on the display panel 11061 according to the type of the touch event. Although in fig. 5, the touch panel 11071 and the display panel 11061 are implemented as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 11071 and the display panel 11061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 1108 is an interface for connecting an external terminal device to the terminal device 500. For example, the external terminal device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a terminal device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1108 may be used to receive input (e.g., data information, power, etc.) from an external terminal device and transmit the received input to one or more elements within terminal device 500 or may be used to transmit data between terminal device 500 and an external terminal device.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 1109 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 1109 and calling data stored in the memory 1109, thereby integrally monitoring the terminal device. Processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
Terminal device 500 may also include a power supply 1111 (e.g., a battery) for providing power to various components, and preferably, power supply 1111 may be logically coupled to processor 1110 via a power management system such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the terminal device 500 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides a terminal device, which includes a processor 1110 and a memory 1109, where the memory 1109 stores a computer program that can be executed on the processor 1110, and when the computer program is executed by the processor 1110, the computer program implements each process in the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the above-mentioned photographing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the descriptions thereof are omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A photographing method is applied to a terminal device with a foldable display screen, and is characterized by comprising the following steps:
receiving a photographing operation input by a user under the condition that the terminal equipment is in a panoramic photographing mode;
responding to the photographing operation, and acquiring images photographed by N cameras when the foldable display screen is in a folded state, wherein N is an integer greater than or equal to 3;
synthesizing the images shot by the N cameras to obtain a panoramic image;
the N cameras are distributed in N folding areas of the foldable display screen, and images shot by the cameras of any two adjacent folding areas in the images shot by the N cameras have overlapping areas;
acquire collapsible display screen is under fold condition, the image that N cameras were shot includes:
acquiring N first images shot by the N cameras when the foldable display screen is in a folded state;
acquiring N folding angles and field angles of the N cameras; the N folding angles comprise a first included angle and a folding angle between N-1 pairs of adjacent two folding areas in the N folding areas, the first included angle is an included angle between planes of two target folding areas, the two target folding areas are two folding areas in the N folding areas, and the number of the folding areas adjacent to any one target folding area in the two target folding areas is one in the N folding areas;
if a first folding angle meeting a preset condition exists in the N folding angles, acquiring a rotation angle of the terminal equipment;
acquiring N second images shot by the N cameras under the condition that the rotation angle of the terminal equipment is a preset target angle;
taking N first images shot by the N cameras and N second images shot by the N cameras as images shot by the N cameras;
wherein the sum of the first folding angle and the first field angle mean is less than or equal to 180 degrees;
the first folding angle is not the first included angle, or the first folding angle is the first included angle, and the sum of the N folding angles is equal to the sum of target angles;
the target angle sum is the difference value of N and 2 multiplied by 180 degrees, and the first field angle mean value is the field angle mean value of the cameras in the two folding areas forming the first folding angle.
2. The method of claim 1, wherein the obtaining images taken by N cameras of the foldable display screen in the folded state further comprises:
and taking N first images shot by the N cameras as the images shot by the N cameras when the N folding angles do not have a first folding angle meeting the preset condition.
3. The method of claim 1, wherein if there is a first folding angle satisfying a predetermined condition among the N folding angles, the method further comprises:
and displaying folding reminding information in the foldable display screen, wherein the folding reminding information comprises the preset target angle.
4. The method according to claim 1, wherein before acquiring the N second images captured by the N cameras when the angle of rotation of the terminal device is a preset target angle, the method further comprises:
determining a preset initial rotation angle corresponding to the first folding angle according to the first folding angle and the field angles of the cameras in two folding areas forming the first folding angle;
and determining the preset target angle based on the preset initial rotation angle and the preset overlapping angle.
5. The method of claim 4, wherein determining the preset target angle based on the preset initial rotation angle and a preset overlap angle comprises:
and under the condition that the number of the first folding angles is at least two, adding the maximum angle in the preset initial rotation angles and the preset folding angle to obtain the preset target angle.
6. A terminal device having a foldable display screen, the terminal device comprising:
the terminal equipment comprises a photographing operation acquisition module, a storage module and a display module, wherein the photographing operation acquisition module is used for receiving photographing operation input by a user under the condition that the terminal equipment is in a panoramic photographing mode;
the shot image acquisition module is used for responding to the shooting operation and acquiring images shot by N cameras when the foldable display screen is in a folded state, wherein N is an integer greater than or equal to 3;
the synthesis module is used for synthesizing the images shot by the N cameras to obtain a panoramic image;
the N cameras are distributed in N folding areas of the foldable display screen, and images shot by the cameras of any two adjacent folding areas in the images shot by the N cameras have overlapping areas;
the photographed image acquiring module includes:
the first image acquisition module is used for acquiring N first images shot by the N cameras when the foldable display screen is in a folded state;
the first angle acquisition module is used for acquiring N folding angles and the field angles of the N cameras;
the N folding angles comprise a first included angle and a folding angle between N-1 pairs of adjacent two folding areas in the N folding areas, the first included angle is an included angle between planes of two target folding areas, the two target folding areas are two folding areas in the N folding areas, and the number of the folding areas adjacent to any one target folding area in the two target folding areas is one in the N folding areas;
the second angle acquisition module is used for acquiring the rotation angle of the terminal equipment if a first folding angle meeting a preset condition exists in the N folding angles;
the second image acquisition module is used for acquiring N second images shot by the N cameras under the condition that the rotation angle of the terminal equipment is a preset target angle;
a shot image determining module, configured to use N first images shot by the N cameras and N second images shot by the N cameras as images shot by the N cameras;
wherein the sum of the first folding angle and the first field angle mean is less than or equal to 180 degrees;
the first folding angle is not the first included angle, or the first folding angle is the first included angle, and the sum of the N folding angles is equal to the sum of target angles;
the target angle sum is the difference value of N and 2 multiplied by 180 degrees, and the first field angle mean value is the field angle mean value of the cameras in the two folding areas forming the first folding angle.
7. The terminal device according to claim 6, wherein the captured image determining module is further configured to take N first images captured by the N cameras as the images captured by the N cameras if there is no first folding angle satisfying the preset condition from among the N folding angles.
8. The terminal device according to claim 6, wherein the terminal device further comprises:
and the reminding module is used for displaying folding reminding information in the foldable display screen if a first folding angle meeting a preset condition exists in the N folding angles, and the folding reminding information comprises a preset target angle.
9. The terminal device according to claim 6, wherein the terminal device further comprises:
the initial rotation angle determining module is used for determining a preset initial rotation angle corresponding to the first folding angle according to the first folding angle and the field angles of the cameras in the two folding areas forming the first folding angle;
and the preset target angle determining module is used for determining the preset target angle based on the preset initial rotation angle and the preset overlapping angle.
10. The terminal device according to claim 9, wherein the preset target angle determining module is configured to add a maximum angle of the preset initial rotation angles to the preset overlap angle to obtain the preset target angle when the number of the first fold angles is at least two.
11. A terminal device, comprising: a memory storing a computer program and a processor implementing the steps in the photographing method according to any one of claims 1 to 5 when the processor executes the computer program.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps in the photographing method according to any one of claims 1 to 5.
CN201910340588.8A 2019-04-25 2019-04-25 Photographing method and terminal equipment Active CN110266936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910340588.8A CN110266936B (en) 2019-04-25 2019-04-25 Photographing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910340588.8A CN110266936B (en) 2019-04-25 2019-04-25 Photographing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110266936A CN110266936A (en) 2019-09-20
CN110266936B true CN110266936B (en) 2021-01-22

Family

ID=67913890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910340588.8A Active CN110266936B (en) 2019-04-25 2019-04-25 Photographing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110266936B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145645B (en) * 2019-12-20 2022-01-28 维沃移动通信有限公司 Display module and electronic equipment
CN111212272B (en) * 2020-01-21 2022-04-19 浙江大华技术股份有限公司 Disaster monitoring method and device, storage medium and electronic device
CN113539073A (en) * 2020-04-17 2021-10-22 和鑫光电股份有限公司 Intelligent portable device
CN113099113B (en) 2021-03-31 2022-12-27 北京小米移动软件有限公司 Electronic terminal, photographing method and device and storage medium
CN113542463B (en) * 2021-06-30 2024-02-13 惠州Tcl移动通信有限公司 Video shooting device and method based on folding screen, storage medium and mobile terminal
CN114827471A (en) * 2022-04-28 2022-07-29 维沃移动通信有限公司 Shooting method, display method, shooting device and display device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924422A (en) * 2018-07-17 2018-11-30 维沃移动通信有限公司 A kind of panorama photographic method and mobile terminal
CN109495616A (en) * 2018-11-30 2019-03-19 维沃移动通信(杭州)有限公司 A kind of photographic method and terminal device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102163740B1 (en) * 2012-10-05 2020-10-12 삼성전자주식회사 Flexible display apparatus and flexible display apparatus controlling method
KR102070776B1 (en) * 2013-03-21 2020-01-29 엘지전자 주식회사 Display device and method for controlling the same
CN104486551B (en) * 2014-12-24 2018-01-09 上海摩软通讯技术有限公司 The panorama shooting method of mobile terminal and mobile terminal
KR102391497B1 (en) * 2015-09-30 2022-04-28 삼성전자주식회사 Apparatus and method for proecessing an image in electronic device
CN106534685A (en) * 2016-11-18 2017-03-22 维沃移动通信有限公司 Panoramic image generation method and mobile terminal
CN106713660A (en) * 2017-01-20 2017-05-24 维沃移动通信有限公司 Panoramic selfie taking method and mobile terminal
CN107608452B (en) * 2017-08-30 2020-10-02 珠海格力电器股份有限公司 Mobile terminal
CN108540641A (en) * 2018-02-28 2018-09-14 努比亚技术有限公司 Combination picture acquisition methods, flexible screen terminal and computer readable storage medium
CN108881733B (en) * 2018-08-30 2020-09-25 维沃移动通信有限公司 Panoramic shooting method and mobile terminal
CN109274824A (en) * 2018-09-27 2019-01-25 西安易朴通讯技术有限公司 Image pickup method and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924422A (en) * 2018-07-17 2018-11-30 维沃移动通信有限公司 A kind of panorama photographic method and mobile terminal
CN109495616A (en) * 2018-11-30 2019-03-19 维沃移动通信(杭州)有限公司 A kind of photographic method and terminal device

Also Published As

Publication number Publication date
CN110266936A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110266936B (en) Photographing method and terminal equipment
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN108881733B (en) Panoramic shooting method and mobile terminal
CN108495029B (en) Photographing method and mobile terminal
CN109246360B (en) Prompting method and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107948364B (en) Mobile terminal shooting method, mobile terminal and computer readable storage medium
CN109474786B (en) Preview image generation method and terminal
CN107948360B (en) Shooting method of flexible screen terminal, terminal and computer readable storage medium
CN110308885B (en) Screen projection method and mobile terminal
CN109639969B (en) Image processing method, terminal and server
CN109905603B (en) Shooting processing method and mobile terminal
CN109688253B (en) Shooting method and terminal
CN111107269B (en) Photographing method, electronic device and storage medium
CN110784575B (en) Electronic equipment and shooting method
CN110798621A (en) Image processing method and electronic equipment
CN108924422B (en) Panoramic photographing method and mobile terminal
CN110769156A (en) Picture display method and electronic equipment
CN111405117A (en) Control method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN110290263B (en) Image display method and mobile terminal
CN110086998B (en) Shooting method and terminal
CN108898548B (en) Display method of panorama and mobile terminal
CN109104564B (en) Shooting prompting method and terminal equipment
CN109005337B (en) Photographing method and terminal

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