CN108924422B - Panoramic photographing method and mobile terminal - Google Patents

Panoramic photographing method and mobile terminal Download PDF

Info

Publication number
CN108924422B
CN108924422B CN201810784404.2A CN201810784404A CN108924422B CN 108924422 B CN108924422 B CN 108924422B CN 201810784404 A CN201810784404 A CN 201810784404A CN 108924422 B CN108924422 B CN 108924422B
Authority
CN
China
Prior art keywords
display
mobile terminal
panoramic
cameras
target
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
CN201810784404.2A
Other languages
Chinese (zh)
Other versions
CN108924422A (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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810784404.2A priority Critical patent/CN108924422B/en
Publication of CN108924422A publication Critical patent/CN108924422A/en
Application granted granted Critical
Publication of CN108924422B publication Critical patent/CN108924422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a panoramic photographing method and a mobile terminal. The method comprises the following steps: under the condition that the mobile terminal is in a panoramic photographing mode, displaying a panoramic image preview display area on a target display screen, wherein the target display screen is one of at least two display screens; when the mobile terminal moves along a preset direction, images collected by at least two cameras are obtained, and the images collected by the at least two cameras are displayed in the panoramic image preview display area; splicing the images collected by the at least two cameras to obtain a panoramic photographing image; the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between every two adjacent display screens in the at least two display screens. According to the embodiment of the invention, when the mobile terminal carries out panoramic shooting, the panoramic shooting image can be obtained through rotation at a smaller angle, and the shooting experience of a user is improved.

Description

Panoramic photographing method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a panoramic photographing method and a mobile terminal.
Background
With the continuous development of mobile terminal technology, mobile terminals (such as mobile phones and tablet computers) have more and more functions, so that the mobile terminals integrate functions of communication, camera shooting, video and audio and the like. Among them, the panoramic mode photographing also becomes a popular photographing method.
In the prior art, a mobile phone provides a panoramic photographing function, but most current mobile phones are single-sided display screens and are provided with a rear camera and a front camera. When a user uses a mobile phone to perform panoramic shooting, the mobile terminal needs to move along a preset direction, so that the purpose of shooting panoramic images is achieved. When the panorama is shot, the mobile phone is moved left and right to complete the panorama shot. Therefore, when a user wants to shoot a panoramic image, the user generally needs to hold the mobile phone to rotate for half a turn to shoot a perfect panoramic image, the rotation angle is large, and the experience of shooting the panoramic image by the user is poor.
Disclosure of Invention
The embodiment of the invention provides a panoramic photographing method and a mobile terminal, and aims to solve the problems that when an existing mobile terminal shoots a panoramic image, the rotation angle is large, and the experience of a user for shooting the panoramic image is poor.
In order to solve the technical problem, the invention is realized as follows: a panoramic photographing method is applied to a mobile terminal and comprises the following steps:
under the condition that the mobile terminal is in a panoramic photographing mode, displaying a panoramic image preview display area on a target display screen, wherein the target display screen is one of at least two display screens;
when the mobile terminal moves along a preset direction, images collected by at least two cameras are obtained, and the images collected by the at least two cameras are displayed in the panoramic image preview display area;
splicing the images collected by the at least two cameras to obtain a panoramic photographing image;
the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between every two adjacent display screens in the at least two display screens.
An embodiment of the present invention provides a mobile terminal, including:
the mobile terminal comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a panoramic image preview display area on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode, and the target display screen is one of at least two display screens;
the second display module is used for acquiring images acquired by at least two cameras when the mobile terminal moves along a preset direction and displaying the images acquired by the at least two cameras in the panoramic image preview display area;
the splicing module is used for splicing the images acquired by the at least two cameras to obtain a panoramic photographing image;
the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between every two adjacent display screens in the at least two display screens.
An embodiment of the present invention provides a mobile terminal, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the panoramic photographing method as described above.
An embodiment of the present invention 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 steps of the panoramic photographing method are implemented as described above.
In the embodiment of the invention, through a preset included angle between two adjacent display screens of at least two display screens of a mobile terminal, a panoramic image preview display area is displayed on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode, the target display screen is one of the at least two display screens, and when the mobile terminal moves along a preset direction, images acquired by at least two cameras respectively arranged on the at least two display screens are acquired, and the images acquired by the at least two cameras are displayed in the panoramic image preview display area on the target display screen; and finally, splicing the images collected by the cameras respectively arranged on the at least two display screens to obtain a panoramic photographing image. Therefore, the mobile terminal can obtain the panoramic photographing image through rotation at a smaller angle when the panoramic photographing is performed, and the photographing experience of a user is improved.
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 labor.
Fig. 1 is a schematic flow chart of a panoramic photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a panoramic image preview display area on a target display screen in accordance with an embodiment of the present invention;
fig. 3 is a schematic diagram of an image display process of images acquired by two cameras in respective preview display sub-areas according to an embodiment of the present invention;
fig. 4 is a schematic view of a display state in which a panoramic image preview display area is displayed in a target display ratio of 1:1 in a partitioned manner as two preview display sub-areas according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a mobile terminal 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.
As shown in fig. 1, which is a schematic flow chart of a panoramic photographing method provided in an embodiment of the present invention, the method is applied to a mobile terminal. The mobile terminal comprises at least two display screens with cameras.
The embodiment of the invention provides a panoramic photographing method, which comprises the following steps:
step 101, under the condition that the mobile terminal is in a panoramic photographing mode, displaying a panoramic image preview display area on a target display screen, wherein the target display screen is one of at least two display screens.
In this step, since the mobile terminal includes at least two display screens, and a preset included angle is formed between two adjacent display screens of the at least two display screens, the target display screen needs to be used as an observation screen when the user uses the mobile terminal to perform panoramic photographing. Therefore, the purpose of step 101 is to use the target display screen as the viewing screen when the user uses the mobile terminal to perform panoramic photography, so that the user can conveniently adjust the moving direction of the mobile terminal in time according to the preview display on the viewing screen.
Also, the panorama photographing mode is a photographing mode of the terminal for photographing a plurality of continuous images for a single scene and combining the plurality of images into one wide-angle image.
Here, in a case where the mobile terminal is in the panorama photographing mode, the panorama image preview display area 1 is displayed at a preset position of the target display screen, as shown in fig. 2.
It should be noted that the panoramic image preview display area is used for displaying an image captured by a camera disposed on the display screen.
Further, in order to prompt the user to move the mobile terminal to the predetermined direction to implement panoramic photography, it is preferable that the panoramic image preview display area includes an indication mark for indicating that the mobile terminal moves to the predetermined direction. Such as the arrows shown in fig. 2.
And step 102, when the mobile terminal moves along a preset direction, acquiring images acquired by at least two cameras, and displaying the images acquired by the at least two cameras in the panoramic image preview display area.
In this step, at least two cameras are respectively arranged on at least two display screens of the mobile terminal. That is, at least one camera is provided on each display screen.
In a preferred embodiment of the present invention, the at least two cameras are respectively disposed on the back of the mobile terminal body where the at least two display screens are located.
It should be noted that, images acquired by at least two cameras are displayed in the panoramic image preview display area, so as to facilitate a user to observe the panoramic photographing condition of the mobile terminal in real time.
Here, the target display screen displays the images captured by the cameras corresponding to the target display screen in an area other than the panoramic image preview display area in addition to the images captured by the at least two cameras displayed in the panoramic image preview display area.
103, splicing the images collected by the at least two cameras to obtain a panoramic photographing image; the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between every two adjacent display screens in the at least two display screens.
In the step, the images collected by the at least two cameras can be spliced through a preset image splicing algorithm to obtain the panoramic photographing image.
Here, the preset image stitching algorithm may be one of an image stitching algorithm based on phase correlation, an image stitching algorithm based on feature matching, and the like.
In the embodiment of the invention, a panoramic image preview display area is displayed on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode through a preset included angle between two adjacent display screens of at least two display screens of the mobile terminal, the target display screen is one of the at least two display screens, images collected by at least two cameras respectively arranged on the at least two display screens are obtained when the mobile terminal moves along a preset direction, and the images collected by the at least two cameras are displayed in the panoramic image preview display area on the target display screen; and finally, splicing the images collected by the cameras respectively arranged on the at least two display screens to obtain a panoramic photographing image. Therefore, the mobile terminal can obtain the panoramic photographing image through rotation at a smaller angle when the panoramic photographing is performed, and the photographing experience of a user is improved.
In order to ensure that the mobile terminal rotates at a smaller angle during the panoramic photographing and maintain a good user experience during the panoramic photographing, in a preferred embodiment of the present invention, before displaying the panoramic image preview display area on the target display screen in step 101, the method further includes: and when the included angle between two adjacent display screens in the at least two display screens is monitored to be the preset included angle, starting a panoramic photographing mode of the mobile terminal.
In this step, the monitoring of the included angle between two adjacent display screens can be realized through the angle sensor.
In a preferred embodiment of the present invention, step 101 may include the steps of:
receiving a first input for selecting one of at least two display screens as a target display screen;
in this step, the first input may include: the method comprises the steps that input operation (generally, clicking operation on selectable items) of a preset display screen selectable item by a user, preset gesture operation of the user on a certain display screen and the like.
Further, under the condition that the mobile terminal is in the panoramic photographing mode, preset display screen selectable items can be displayed in a pop-up window mode and used for a user to select a certain display screen as a target display screen.
Here, the pop-up window may be displayed on a default display screen of the system, and preset display screen selectable items within the pop-up window may be displayed in a list form.
Displaying a panoramic image preview display area on the target display screen in response to the first input.
In this step, the mobile terminal responds to a first input, and displays a panoramic image preview display area on a target display screen corresponding to the first input.
In another preferred embodiment of the present invention, step 101 may include the steps of:
and when the face feature information of the target face image meets a preset front face feature condition and the size of the target face image is larger than or equal to a preset threshold value, displaying a panoramic image preview display area on a target display screen corresponding to a target camera acquiring the target face image.
In this step, the face images can be collected through the front cameras arranged on the at least two display screens. That is to say, under the condition that the mobile terminal is in the panoramic photographing mode, the front camera is turned on to capture pictures so as to collect human face images.
Here, the face feature information includes, but is not limited to: the facial features of the human face, the facial features and the geometric relationship features of the five sense organs distributed on the human face.
It should be noted that the face feature information of the target face image meets the preset front face feature condition, which indicates that the target face image is a front face image.
In this step, in order to eliminate the interference of faces of other users located near the user when the user uses the mobile terminal to perform panoramic photography, when a front-facing camera on a certain display screen acquires a target face image whose face feature information meets a preset front face feature condition and the size of the target face image is greater than or equal to a preset threshold value, the user corresponding to the target face image is determined to be the user operating the mobile terminal, and then a panoramic image preview display area is displayed on the target display screen corresponding to the target camera acquiring the target face image.
It should be noted that when the display screen corresponding to the target face image with the size of the acquired image being greater than or equal to the preset threshold value changes, the target display screen is switched, and the panoramic photographing preview display area is also switched to the subsequent target display screen.
Preferably, the panoramic image preview display area includes at least two preview display areas; in a preferred embodiment of the present invention, in step 102, when the mobile terminal moves along a predetermined direction, the displaying the images captured by the at least two cameras in the panoramic image preview display area may include the following steps:
when the mobile terminal moves along a preset direction, the images of the at least two cameras are respectively displayed in the corresponding preview display sub-areas, and the initial display positions of the images acquired by the at least two cameras in the corresponding preview display sub-areas are the edges of the preview display sub-areas opposite to the preset direction.
In this step, in order to facilitate a user to observe images acquired by the cameras on different display screens in real time, the panoramic photographing preview display area is divided into at least two preview display sub-areas, and when the mobile terminal moves along a predetermined direction, the images of the at least two cameras are respectively displayed in the corresponding preview display sub-areas.
Here, the initial display position of the image of at least two cameras in the corresponding preview display sub-area is the edge of the preview display sub-area opposite to the predetermined direction, so that the cameras can conveniently acquire the image along the direction consistent with the predetermined direction along with the rotation of the mobile terminal.
For example, as shown in fig. 3, when the mobile terminal is in the panoramic photographing mode, the cameras on the two display screens are used to capture images, and the two display screens are adjacent to each other, and an included angle between the two display screens is a first preset included angle, then the panoramic photographing preview display area displayed by the target display screen includes two preview display sub-areas (shown by thick lines in the figure), when the mobile terminal rotates to the right, the image captured by the camera on the first display screen is displayed in the preview display sub-area on the left side in the figure, and the image captured by the camera on the second display screen is displayed in the preview sub-area on the right side in the figure. The image collected by the camera of the first display screen is displayed from the left edge of the preview display sub-area, the image collected by the camera of the second display screen is displayed from the left edge of the preview display sub-area, and along with the rightward rotation of the mobile terminal, the display data of the two preview display sub-areas move towards the right side together.
Based on the embodiment shown in fig. 1, in another preferred embodiment of the present invention, step 102, when the mobile terminal moves along a predetermined direction, displays the images captured by the at least two cameras in the panoramic image preview display area, and may include the following steps:
when the mobile terminal moves along a preset direction, determining a target display proportion according to the preset direction, a preset panoramic shooting angle and an included angle between two adjacent display screens in the at least two display screens;
in this step, the preset panoramic shooting angle may be a panoramic shooting angle default set by the system, such as 180 °, 270 °, 360 °, and the like; it may be a panorama shooting angle acquired by a user through a selection operation of a preset panorama shooting angle selectable item.
In this step, the target display scale is used as a basis for dividing the preview display sub-area in the panoramic image preview display area.
Displaying the panoramic image preview display area in a partitioning manner into at least two preview display sub-areas according to the target display proportion;
for example, the mobile terminal includes two display screens, which are a first display screen and a second display screen respectively, where an included angle between the first display screen and the second display screen is 90 °, if a preset panoramic shooting angle is 180 °, when the mobile terminal rotates to the right, the panoramic image preview display area 1 is divided into two preview display sub-areas, and a target display ratio of the left preview display sub-area and the right preview display sub-area in the panoramic image preview display area 1 in the figure is 1:1, as shown in fig. 4, the panoramic image preview display area is divided into two preview display sub-areas at a display ratio of 1: 1;
if the preset panoramic shooting angle is 270 degrees, when the mobile terminal rotates rightwards, the panoramic image preview display area is divided into two preview display sub-areas, and the target display proportion of the two preview display sub-areas in the panoramic image preview display area is 2:1 or 1: 2.
Here, the calculation formula of the target display scale is: the ratio of the difference between the panoramic shooting angle and the included angle between the first display screen and the second display screen to the included angle between the first display screen and the second display screen.
And displaying the images acquired by the at least two cameras in the corresponding preview display sub-areas.
In this embodiment, the panoramic image preview display area is displayed in a partition manner in a target display ratio as at least two preview display sub-areas, and then the images collected by at least two cameras are displayed in the respective corresponding preview display sub-areas, so that when the images collected by at least two cameras fill the respective corresponding preview display sub-areas, the images collected by at least two cameras can be just spliced at the boundary of the respective corresponding preview display sub-areas, a processing step of deleting one part of data overlapped with the images during image splicing processing is omitted, and the processing efficiency of image splicing is improved.
Based on the embodiment of the present invention, further, step 103, stitching the images collected by the at least two cameras to obtain a panoramic photographed image, may include the following steps:
and when the images collected by the at least two cameras are all displayed in the corresponding preview display sub-areas, splicing the images collected by the at least two cameras to obtain the panoramic photographing image.
Here, when the images acquired by the at least two cameras are all displayed in the respective corresponding preview display sub-areas, it is described that the shooting angle of the image shot by the mobile terminal has reached the preset panoramic shooting angle, so that the step of splicing the images acquired by the at least two cameras to obtain a panoramic shot image is triggered and executed at this time.
In a preferred embodiment of the present invention, the at least two display screens include: the display screen comprises a first display screen and a second display screen adjacent to the first display screen, wherein an included angle between the first display screen and the second display screen is a right angle.
It should be noted that, in this embodiment, the mobile terminal has two display screens, namely a first display screen and a second display screen, where the first display screen is provided with a first camera, and the second display screen is provided with a second camera. The first camera is arranged on the back of the mobile terminal body where the first display screen is located, namely the first camera is a rear camera; the second camera sets up in the back of second display screen place mobile terminal body, and the second camera is rearmounted camera promptly.
Here, the first display screen and the second display screen may be further provided with front cameras.
It should be noted that, because the included angle between the first display screen and the second display screen is a right angle, when shooting a 180-degree panoramic image, the user only needs to rotate the mobile terminal by 90 degrees in the preset direction, so that the 180-degree panoramic image can be obtained, and the mobile terminal does not need to rotate by 180 degrees in the preset direction, so that the rotation angle is reduced, and the shooting experience of the user is improved.
And if the rotation of the mobile terminal in the preset direction does not reach 90 degrees, the mobile terminal can be controlled to stop photographing, or after photographing is finished, a user can be prompted whether to discard one of the images acquired by the two cameras, or to discard all the images, or to splice the images acquired by the two cameras into one image directly.
According to the panoramic photographing method provided by the embodiment of the invention, a panoramic image preview display area is displayed on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode through a preset included angle formed between two adjacent display screens of at least two display screens of the mobile terminal, and the target display screen is one of the at least two display screens; and finally, splicing the images collected by the cameras respectively arranged on the at least two display screens to obtain a panoramic photographing image. Therefore, the mobile terminal can obtain the panoramic photographing image through rotation at a smaller angle when the panoramic photographing is performed, and the photographing experience of a user is improved.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. An embodiment of the present invention provides a mobile terminal 200, where the mobile terminal 200 may include: a first display module 201, a second display module 202, and a stitching module 203.
The first display module 201 is configured to display a panoramic image preview display area on a target display screen under a situation that the mobile terminal is in a panoramic photographing mode, where the target display screen is one of at least two display screens;
the second display module 202 is configured to obtain images acquired by at least two cameras when the mobile terminal moves in a predetermined direction, and display the images acquired by the at least two cameras in the panoramic image preview display area;
the splicing module 203 is configured to splice the images acquired by the at least two cameras to obtain a panoramic photographed image;
the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between every two adjacent display screens in the at least two display screens.
Further, in this embodiment of the present invention, the mobile terminal 200 may further include: and a monitoring module.
And the monitoring module is used for starting a panoramic photographing mode of the mobile terminal when monitoring that the included angle between two adjacent display screens in the at least two display screens is the preset included angle.
In a preferred embodiment of the present invention, the first display module 201 may include: the display device comprises a receiving submodule and a first display submodule.
The receiving submodule is used for receiving a first input, and the first input is used for selecting one of at least two display screens as a target display screen;
and the first display sub-module is used for responding to the first input and displaying the panoramic image preview display area on the target display screen.
In another preferred embodiment of the present invention, the first display module 201 may include: and a second display sub-module.
And the second display sub-module is used for displaying a panoramic image preview display area on a target display screen corresponding to the target camera which acquires the target face image when the face feature information of the target face image meets a preset front face feature condition and the size of the target face image is greater than or equal to a preset threshold value.
Further, the panoramic image preview display area comprises at least two preview display sub-areas; in an embodiment of the present invention, the second display module 202 may include: and a third display sub-module.
The first display sub-module is configured to display the images of the at least two cameras in the corresponding preview display sub-regions when the mobile terminal moves in the predetermined direction, where the initial display positions of the images of the at least two cameras in the corresponding preview display sub-regions are edges of the preview display sub-regions opposite to the predetermined direction.
In another preferred embodiment of the present invention, the second display module 202 includes: the display scale determination submodule, the fourth display submodule and the fifth display submodule.
The display scale determining submodule is used for determining a target display scale according to the preset direction, a preset panoramic shooting angle and an included angle between two adjacent display screens in the at least two display screens when the mobile terminal moves along the preset direction;
the fourth display sub-module is used for displaying the panoramic image preview display area into at least two preview display sub-areas in a partition mode according to the target display proportion;
and the fifth display submodule is used for displaying the images acquired by the at least two cameras in the corresponding preview display sub-areas.
Further, in another preferred embodiment of the present invention, the splicing module 203 may include: and splicing the submodules.
And the splicing submodule is used for splicing the images acquired by the at least two cameras when the images acquired by the at least two cameras are all displayed in the corresponding preview display sub-areas to obtain the panoramic photographing image.
Further, in another preferred embodiment of the present invention, the at least two display screens include: the display screen comprises a first display screen and a second display screen adjacent to the first display screen, wherein an included angle between the first display screen and the second display screen is a right angle.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, through a preset included angle between two adjacent display screens in at least two display screens of the mobile terminal, a first display module displays a panoramic image preview display area on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode, the target display screen is one of the at least two display screens, and a second display module acquires images acquired by at least two cameras respectively arranged on the at least two display screens when the mobile terminal moves along a preset direction and displays the images acquired by the at least two cameras in the panoramic image preview display area on the target display screen; and finally, splicing the images collected by the cameras respectively arranged on the at least two display screens by a splicing module to obtain the panoramic photographing image. Therefore, the mobile terminal can obtain the panoramic photographing image through rotation at a smaller angle when the panoramic photographing is performed, and the photographing experience of a user is improved.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The display unit 306 is configured to display a panoramic image preview display area on a target display screen under the condition that the mobile terminal is in the panoramic photographing mode, where the display screen is one of at least two display screens; when the mobile terminal moves along a preset direction, images collected by at least two cameras are obtained, and the images collected by the at least two cameras are displayed in the panoramic image preview display area; the processor 310 is configured to splice images acquired by the at least two cameras to obtain a panoramic photographed image; the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between every two adjacent display screens in the at least two display screens.
In the embodiment of the invention, a panoramic image preview display area is displayed on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode through a preset included angle formed between two adjacent display screens of at least two display screens of the mobile terminal, the target display screen is one of the at least two display screens, images collected by at least two cameras respectively arranged on the at least two display screens are obtained when the mobile terminal moves along a preset direction, and the images collected by the at least two cameras are displayed in the panoramic image preview display area on the target display screen; and finally, splicing the images collected by the cameras respectively arranged on the at least two display screens to obtain a panoramic photographing image. Therefore, the mobile terminal can obtain the panoramic photographing image through rotation at a smaller angle when the panoramic photographing is performed, and the photographing experience of a user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 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 301 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 302, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the mobile terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds 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 301 in case of the phone call mode.
The mobile terminal 300 also includes at least one sensor 305, 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 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the mobile terminal 300 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 posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 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 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device 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 device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 6 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the mobile terminal 300. For example, the external 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 device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 300 or may be used to transmit data between the mobile terminal 300 and external devices.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), 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. Further, the memory 309 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 310 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the mobile terminal. Processor 310 may include one or more processing units; preferably, the processor 310 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 the processor 310.
The mobile terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 300 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program is executed by the processor 310 to implement each process of the panoramic photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An 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 each process of the panoramic photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated 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 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 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 apparatus 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 (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.
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 (14)

1. A panoramic photographing method is applied to a mobile terminal and is characterized by comprising the following steps:
under the condition that the mobile terminal is in a panoramic photographing mode, displaying a panoramic image preview display area on a target display screen, wherein the target display screen is one of at least two display screens;
when the mobile terminal moves along a preset direction, images collected by at least two cameras are obtained, and the images collected by the at least two cameras are displayed in the panoramic image preview display area;
splicing the images collected by the at least two cameras to obtain a panoramic photographing image;
the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between two adjacent display screens of the at least two display screens;
when the mobile terminal moves along a preset direction, the step of displaying the images collected by the at least two cameras in the panoramic image preview display area comprises the following steps:
when the mobile terminal moves along a preset direction, determining a target display proportion according to the preset direction, a preset panoramic shooting angle and an included angle between two adjacent display screens in the at least two display screens;
displaying the panoramic image preview display area in a partitioning manner into at least two preview display sub-areas according to the target display proportion;
and displaying the images acquired by the at least two cameras in the corresponding preview display sub-areas.
2. The panorama photographing method of claim 1, wherein before the step of displaying the panorama image preview display area on the target display screen, the method further comprises:
and when the included angle between two adjacent display screens in the at least two display screens is monitored to be the preset included angle, starting a panoramic photographing mode of the mobile terminal.
3. The panoramic photographing method of claim 1, wherein the step of displaying the preview display area of the panoramic image on the target display screen under the condition that the mobile terminal is in the panoramic photographing mode comprises:
receiving a first input for selecting one of at least two display screens as a target display screen;
displaying a panoramic image preview display area on the target display screen in response to the first input.
4. The panoramic photographing method of claim 1, wherein the step of displaying the preview display area of the panoramic image on the target display screen under the condition that the mobile terminal is in the panoramic photographing mode comprises:
and when the face feature information of the target face image meets a preset front face feature condition and the size of the target face image is larger than or equal to a preset threshold value, displaying a panoramic image preview display area on a target display screen corresponding to a target camera acquiring the target face image.
5. The panoramic photographing method of claim 1, wherein the panoramic image preview display area comprises at least two preview display sub-areas;
when the mobile terminal moves along a preset direction, the step of displaying the images collected by the at least two cameras in the panoramic image preview display area comprises the following steps:
when the mobile terminal moves along a preset direction, the images of the at least two cameras are respectively displayed in the corresponding preview display sub-areas, and the initial display positions of the images acquired by the at least two cameras in the corresponding preview display sub-areas are the edges of the preview display sub-areas opposite to the preset direction.
6. The panoramic photographing method of claim 1, wherein the step of stitching the images collected by the at least two cameras to obtain a panoramic photographed image comprises:
and when the images collected by the at least two cameras are all displayed in the corresponding preview display sub-areas, splicing the images collected by the at least two cameras to obtain the panoramic photographing image.
7. A mobile terminal, comprising:
the mobile terminal comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a panoramic image preview display area on a target display screen under the condition that the mobile terminal is in a panoramic photographing mode, and the target display screen is one of at least two display screens;
the second display module is used for acquiring images acquired by at least two cameras when the mobile terminal moves along a preset direction and displaying the images acquired by the at least two cameras in the panoramic image preview display area;
the splicing module is used for splicing the images acquired by the at least two cameras to obtain a panoramic photographing image;
the at least two cameras are respectively arranged on the at least two display screens, and a preset included angle is formed between two adjacent display screens of the at least two display screens;
the second display module includes:
the display scale determining submodule is used for determining a target display scale according to the preset direction, a preset panoramic shooting angle and an included angle between two adjacent display screens in the at least two display screens when the mobile terminal moves along the preset direction;
the fourth display sub-module is used for displaying the panoramic image preview display area into at least two preview display sub-areas in a partition mode according to the target display proportion;
and the fifth display submodule is used for displaying the images acquired by the at least two cameras in the corresponding preview display sub-areas.
8. The mobile terminal of claim 7, wherein the mobile terminal further comprises:
and the monitoring module is used for starting a panoramic photographing mode of the mobile terminal when monitoring that the included angle between two adjacent display screens in the at least two display screens is the preset included angle.
9. The mobile terminal of claim 7, wherein the first display module comprises:
the receiving submodule is used for receiving a first input, and the first input is used for selecting one of at least two display screens as a target display screen;
and the first display sub-module is used for responding to the first input and displaying the panoramic image preview display area on the target display screen.
10. The mobile terminal of claim 7, wherein the first display module comprises:
and the second display sub-module is used for displaying a panoramic image preview display area on a target display screen corresponding to the target camera which acquires the target face image when the face feature information of the target face image meets a preset front face feature condition and the size of the target face image is greater than or equal to a preset threshold value.
11. The mobile terminal of claim 7, wherein the panoramic image preview display area comprises at least two preview display sub-areas;
the second display module includes:
and the third display sub-module is used for respectively displaying the images of the at least two cameras in the corresponding preview display sub-areas when the mobile terminal moves along the preset direction, and the initial display positions of the images acquired by the at least two cameras in the corresponding preview display sub-areas are the edges of the preview display sub-areas opposite to the preset direction.
12. The mobile terminal of claim 7, wherein the splicing module comprises:
and the splicing submodule is used for splicing the images acquired by the at least two cameras when the images acquired by the at least two cameras are all displayed in the corresponding preview display sub-areas to obtain the panoramic photographing image.
13. A mobile terminal, comprising: processor, memory and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the panoramic photographing method according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the panorama photographing method according to any one of claims 1 to 6.
CN201810784404.2A 2018-07-17 2018-07-17 Panoramic photographing method and mobile terminal Active CN108924422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810784404.2A CN108924422B (en) 2018-07-17 2018-07-17 Panoramic photographing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810784404.2A CN108924422B (en) 2018-07-17 2018-07-17 Panoramic photographing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108924422A CN108924422A (en) 2018-11-30
CN108924422B true CN108924422B (en) 2020-06-19

Family

ID=64414425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810784404.2A Active CN108924422B (en) 2018-07-17 2018-07-17 Panoramic photographing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108924422B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266936B (en) * 2019-04-25 2021-01-22 维沃移动通信(杭州)有限公司 Photographing method and terminal equipment
CN110392212A (en) * 2019-07-25 2019-10-29 珠海格力电器股份有限公司 A kind of panorama photographic method, device and electronic equipment
CN111327820B (en) * 2020-02-24 2021-11-26 维沃移动通信有限公司 Shooting method and electronic equipment
CN111885285B (en) * 2020-06-29 2021-11-23 维沃移动通信(杭州)有限公司 Image shooting method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685956A (en) * 2013-12-11 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photo shooting method and device
CN104243805A (en) * 2013-06-20 2014-12-24 Lg电子株式会社 Mobile terminal and method of controlling the mobile terminal
CN104937653A (en) * 2013-03-21 2015-09-23 Lg电子株式会社 Display device and method for controlling the same
CN106534685A (en) * 2016-11-18 2017-03-22 维沃移动通信有限公司 Panoramic image generation method and mobile terminal
CN107682622A (en) * 2017-09-08 2018-02-09 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108200229A (en) * 2017-11-30 2018-06-22 努比亚技术有限公司 Image pickup method, terminal and the computer readable storage medium of flexible screen terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8754961B2 (en) * 2011-08-17 2014-06-17 Nokia Corporation Apparatus and method for generating image data from overlapping regions of images

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104937653A (en) * 2013-03-21 2015-09-23 Lg电子株式会社 Display device and method for controlling the same
CN104243805A (en) * 2013-06-20 2014-12-24 Lg电子株式会社 Mobile terminal and method of controlling the mobile terminal
CN103685956A (en) * 2013-12-11 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photo shooting method and device
CN106534685A (en) * 2016-11-18 2017-03-22 维沃移动通信有限公司 Panoramic image generation method and mobile terminal
CN107682622A (en) * 2017-09-08 2018-02-09 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108200229A (en) * 2017-11-30 2018-06-22 努比亚技术有限公司 Image pickup method, terminal and the computer readable storage medium of flexible screen terminal

Also Published As

Publication number Publication date
CN108924422A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108668083B (en) Photographing method and terminal
CN109639970B (en) Shooting method and terminal equipment
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN111541845B (en) Image processing method and device and electronic equipment
CN108495029B (en) Photographing method and mobile terminal
US20220279116A1 (en) Object tracking method and electronic device
CN108471498B (en) Shooting preview method and terminal
CN108881733B (en) Panoramic shooting method and mobile terminal
CN109639969B (en) Image processing method, terminal and server
CN110213440B (en) Image sharing method and terminal
CN108924422B (en) Panoramic photographing method and mobile terminal
CN109905603B (en) Shooting processing method and mobile terminal
CN111010512A (en) Display control method and electronic equipment
CN111107269B (en) Photographing method, electronic device and storage medium
CN109688253B (en) Shooting method and terminal
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN111010511B (en) Panoramic body-separating image shooting method and electronic equipment
KR20220005087A (en) Filming method and terminal
CN110798621A (en) Image processing method and electronic equipment
CN108881721B (en) Display method and terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN110769156A (en) Picture display method and electronic equipment
CN110769174A (en) Video viewing method and electronic equipment
CN110769154B (en) Shooting method and electronic equipment
CN111010508B (en) Shooting method and electronic equipment

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