CN108156386B - Panoramic photographing method and mobile terminal - Google Patents

Panoramic photographing method and mobile terminal Download PDF

Info

Publication number
CN108156386B
CN108156386B CN201810026803.2A CN201810026803A CN108156386B CN 108156386 B CN108156386 B CN 108156386B CN 201810026803 A CN201810026803 A CN 201810026803A CN 108156386 B CN108156386 B CN 108156386B
Authority
CN
China
Prior art keywords
shooting
panoramic
images
shot
image
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
CN201810026803.2A
Other languages
Chinese (zh)
Other versions
CN108156386A (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 CN201810026803.2A priority Critical patent/CN108156386B/en
Publication of CN108156386A publication Critical patent/CN108156386A/en
Application granted granted Critical
Publication of CN108156386B publication Critical patent/CN108156386B/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/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/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/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a panoramic photographing method and a mobile terminal, wherein the method comprises the following steps: when the mobile terminal is in a panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained; shooting parameters of at least two shot images in the at least two shot images are different; processing at least two shot images to obtain corresponding panoramic images in a panoramic shooting state, wherein the shooting parameters comprise: at least one of resolution, contrast, and brightness. When the panoramic image is shot, the user can change the direction at will, the hand posture requirement of the user is reduced, the panoramic shooting is realized quickly and conveniently, and the shooting experience of the user is improved while the shooting effect is ensured.

Description

Panoramic photographing method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a panoramic photographing method and a mobile terminal.
Background
With the popularization of mobile terminals, people can not leave the mobile terminals in daily life. The photographing is widely popular among people as the application with higher use frequency in the mobile terminal function. Mobile terminal users often use the panoramic mode to capture scenery while traveling outside. When using panorama mode to shoot at present, the user need follow rectilinear movement mobile terminal, if when deviating from the straight line, then can lead to the shooting effect very poor, and can not splice into a long image with the object that the camera scanned.
Therefore, in the prior art, when a user uses the panoramic mode to take a picture, the user has higher requirements on the technology of a photographer, the use is inconvenient, and the shooting experience is poor.
Disclosure of Invention
The embodiment of the invention provides a panoramic shooting method and a mobile terminal, and aims to solve the problems that in the prior art, a user needs to fix a posture and move along a fixed direction when panoramic shooting is carried out, so that the user is inconvenient to use and the shooting experience is poor.
In order to solve the above problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a panoramic photographing method applied to a mobile terminal, including:
when the mobile terminal is in a panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained; shooting parameters of at least two shot images in the at least two shot images are different;
processing at least two shot images to obtain corresponding panoramic images in a panoramic shooting state; wherein the shooting parameters include: at least one of resolution, contrast, and brightness.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the mobile terminal comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring at least two shooting images shot by the mobile terminal when the mobile terminal is in a panoramic shooting state; shooting parameters of at least two shot images in the at least two shot images are different;
the processing module is used for processing at least two shot images to obtain corresponding panoramic images in a panoramic shooting state; wherein the photographing parameters include at least one of resolution, contrast, and brightness.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the panoramic photographing method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the panoramic photographing method described above.
According to the technical scheme, at least two shot images shot by the mobile terminal are obtained in the panoramic shooting state, the shot parameters of at least two shot images in the at least two shot images are different, the obtained at least two shot images are processed to obtain the corresponding panoramic image in the panoramic shooting state, the direction can be changed randomly when a user shoots the panoramic image, the hand posture requirement of the user is reduced, the panoramic shooting is quickly and conveniently carried out, the shooting experience of the user is improved while the shooting effect is guaranteed, and the problems that the user needs to move along a fixed direction in a fixed posture when the panoramic image is shot in the prior art, the use of the user is inconvenient, and the shooting experience is poor are solved.
Drawings
FIG. 1 is a schematic diagram of a panoramic photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a panoramic photographing method according to an embodiment of the present invention;
FIG. 3 is a diagram of a mobile terminal according to an embodiment of the invention;
fig. 4 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.
The embodiment of the invention provides a panoramic photographing method, which is applied to a mobile terminal and comprises the following steps as shown in figure 1:
step 101, when a mobile terminal is in a panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained; the at least two captured images have different imaging parameters.
The mobile terminal firstly obtains a panoramic shooting instruction input by a user, enters a panoramic shooting mode, and at the moment, the corresponding shooting state is a panoramic shooting state, and shooting is carried out through a camera in the panoramic shooting state. The shooting process is consistent with the common shooting mode, the resolution can be adjusted at will, the scenery in the coverage area does not need to be shot in sequence, the user can freely switch the coverage area to shoot, and the mobile terminal stores at least two shot images shot by the user.
The at least two shot images acquired by the mobile terminal have different shooting parameters corresponding to the at least two shot images. The shooting parameter here includes at least one of resolution, contrast, and brightness. In the shooting process, the user can randomly adjust the shooting parameters, so that the shooting parameters corresponding to at least two shot images are different. In the panoramic photographing state, after at least two photographed images photographed by the mobile terminal are acquired, step 102 needs to be performed to synthesize a panoramic image from the acquired at least two photographed images.
And 102, processing at least two shot images to obtain corresponding panoramic images in a panoramic shooting state.
After the at least two shot images are acquired, the acquired at least two shot images are processed, and a corresponding panoramic image in a panoramic shooting state is generated after the processing. Wherein, the step of processing at least two shot images to obtain corresponding panoramic images in the panoramic shooting state comprises the following steps: recognizing the shooting contents of at least two shot images, and determining an image synthesis sequence according to the shooting contents; and splicing the at least two shot images according to the determined image synthesis sequence to generate a panoramic image.
When image processing is performed, it is necessary to recognize the captured contents of at least two captured images, and after the captured contents of each captured image are recognized, the combining order corresponding to the captured images is determined based on the overlapped captured contents. For example, there are 3 shot images acquired by the mobile terminal, that is, a shot image a, a shot image B, and a shot image C, and after the 3 shot images are acquired, the shot contents of the 3 shot images are recognized. If there is an overlap between the captured image a and the captured image B, there is an overlap between the captured image B and the captured image C, and the overlap between the captured image a and the captured image B belongs to the second half of the captured image a and belongs to the first half of the captured image B, and the overlap between the captured image B and the captured image C belongs to the second half of the captured image B and belongs to the first half of the captured image C, it can be determined that the synthetic order corresponding to the captured images is the captured image a, the captured image B, and the captured image C in this order.
The content of at least two acquired shot images is identified, the synthesis sequence of the shot images is determined according to the identification result, and the shot images are spliced according to the determined synthesis sequence, so that the corresponding panoramic image can be acquired. The processing mode can ensure that the direction of the user can be changed at will when the user shoots the panoramic image, reduces the requirement on the hand posture of the user and realizes rapid and convenient panoramic shooting.
In the embodiment of the present invention, the step of identifying the shot contents of at least two shot images and determining the image combination order according to the shot contents further includes, before or after the step of determining the image combination order, the step of: identifying the resolution corresponding to each shot image; calculating to obtain the optimal resolution ratio capable of clearly displaying the content of each shot image; the resolution of each captured image is adjusted to the optimum resolution.
The resolution of each of the captured images may be adjusted after the at least two captured images are acquired and before the image combination order is determined, or the resolution of each of the captured images may be adjusted after the at least two captured images are acquired and the image combination order is determined according to the contents of the captured images. When the resolution of each image is adjusted, the resolution corresponding to each shot image needs to be identified, then the optimal resolution capable of enabling each shot image to be displayed clearly at the same time is calculated for each obtained shot image, after the optimal resolution is determined, the resolution of each shot image is adjusted according to the optimal resolution, the resolution corresponding to each shot image is adjusted to the optimal resolution, and the adjustment of the resolution can be completed.
In the embodiment of the invention, the display effect of the generated panoramic image can be ensured and the visual perception of a user is improved by adjusting the resolution of the shot image.
Therefore, the corresponding implementation sequence in the implementation process of the embodiment of the invention can be as follows: the method comprises the steps of obtaining at least two shot images, determining an image synthesis sequence according to the shot contents of the at least two shot images, adjusting the resolution of each shot image, and splicing the shot images after resolution adjustment according to the image synthesis sequence to generate a panoramic image. Or after at least two shot images are obtained, the resolution of each shot image is adjusted, then the image synthesis sequence is determined according to the shot contents of the at least two shot images, and the shot images after resolution adjustment are spliced according to the image synthesis sequence to generate the panoramic image.
When the panoramic image is generated, sequentially selecting every two shooting images which are sequentially adjacent according to the determined image synthesis sequence, and respectively carrying out size adjustment on every two shooting images which are sequentially adjacent; and splicing the shot images which are adjusted in size and are adjacent in sequence to generate a panoramic image.
After the image synthesis sequence is determined, sequentially determining every two shot images adjacent in sequence to be a group according to the image synthesis sequence, and after the group number division is completed, sequentially carrying out size adjustment on each group of shot images. The purpose of size adjustment is to enable the overlapped parts of two adjacent shot images to be completely the same, so that seamless splicing can be realized during splicing, splicing effect is guaranteed, and display effect of the generated panoramic image is guaranteed. And after the size adjustment is finished, sequentially splicing the sequentially adjacent shot images at the overlapped part according to the sequence to obtain the panoramic image. The captured image in which the resizing is performed is a captured image that has been resolution-adjusted.
It should be noted that every two adjacent shot images in the determined order are grouped together, the first shot image and the last shot image are removed, the rest of the shot images are respectively positioned in the two groups of shot images, and after the shot images in the former group are subjected to size adjustment, the shot images can be used as the basis for size adjustment in the shot images in the latter group. For example, four photographed images are acquired by the mobile terminal, and are arranged according to the image synthesis sequence: the shot images D, E, F and G form a first group of shot images, a second group of shot images and a third group of shot images. Wherein the first group of captured images, the second group of captured images, and the third group of captured images are sequentially resized. The shot image E may be used as a basis for adjusting the size of the second group of shot images after being resized in the first group of shot images, and the shot image F may be used as a basis for adjusting the size of the third group of shot images after being resized in the second group of shot images.
The technical scheme of the invention aims to realize that the panoramic image is obtained in a convenient mode when the panoramic shooting is in a panoramic shooting state, and when a user starts the panoramic mode to shoot the picture, the picture is shot in a common shooting mode only by shooting the range to be covered without limiting the sequence. After the panoramic mode is closed, the mobile terminal automatically identifies shot images acquired in the panoramic mode, determines the sequence of each shot image, determines the overlapped part of each shot image and the adjacent shot image, splices the overlapped parts to synthesize the panoramic image.
In the embodiment of the present invention, after obtaining the corresponding panoramic image in the panoramic shooting state, the method further includes: displaying the panoramic image on a display interface, and simultaneously displaying at least two acquired shot images; and displaying prompt information for prompting whether to delete at least two shot images according to the touch operation of the user on the display interface.
After generating the panoramic image, the mobile terminal displays the generated panoramic image on the display interface, and simultaneously displays at least two shot images of the generated panoramic image on the display interface while displaying the panoramic image. The panoramic image is located in the middle of the display interface, and at least two shooting images for generating the panoramic image are located below the panoramic image. After receiving the touch operation of the user on the display interface, the mobile terminal responds to the touch operation and displays prompt information for prompting whether to delete at least two shot images on the display interface. The prompt information can be displayed in a suspension frame, the virtual confirmation key and the virtual cancel key can be simultaneously displayed in the suspension frame, and at least two shot images are deleted after the operation of the virtual confirmation key by a user is received. An option box can be set for each shot image, and under the condition that the option box is selected, and after the operation of the virtual confirmation key by the user is received, the selected shot image is deleted. The storage space of the mobile terminal can be saved by deleting the shot images according to the selection of the user, and the requirements of the user can be met by reserving the shot images according to the selection of the user.
The embodiment of the invention can provide a convenient panoramic photographing method for the user, the photographing method is simple to operate, the direction can be changed at will, the user does not need to move the mobile terminal along a straight line, the gesture requirement on the user is reduced, and the user operation is more flexible. Meanwhile, the mobile terminal realizes the splicing function of the photos, different landscapes can be captured while the panoramic photos are shot, the photos are adjusted based on artificial intelligence, and the shooting skill requirements on users are reduced.
The panoramic shooting method provided by the invention obtains at least two shot images shot by the mobile terminal in a panoramic shooting state, and the shooting parameters of at least two of the at least two shot images are different, processing the at least two acquired shot images to obtain corresponding panoramic images in a panoramic shooting state, can realize the random direction change when the user shoots the panoramic picture, reduces the requirements on the hand posture of the user, realizes the rapid and convenient panoramic shooting, meanwhile, the resolution ratio of the photos is automatically identified and determined based on artificial intelligence, the imaging effect is improved, the content of the photos is identified and spliced to generate a panoramic image, promote user's shooting experience when guaranteeing the shooting effect, need the user to remove along fixed direction with fixed posture when shooing the panorama photo among the solution prior art, cause the user to shoot and experience not good problem.
An implementation flow of the embodiment of the present invention may also be shown in fig. 2, including:
step 201, a user performs image shooting on a preset range in a panoramic mode to obtain at least two shot images, wherein shooting parameters of at least two shot images in the at least two shot images are different.
The user does not need to fix the shooting sequence and the resolution in the shooting process, and the shooting can be carried out according to a common shooting mode. The shooting parameters corresponding to at least two shot images in the at least two shot images obtained by the user are different. Wherein the photographing parameters include at least one of resolution, contrast, and brightness.
Step 202, image processing is performed on the acquired shot images to synthesize a panoramic image.
When image processing is performed on captured images, the order of combining the captured images needs to be determined according to the contents of the captured images, the resolution of the captured images needs to be adjusted, and the size of the captured images needs to be adjusted. Wherein through adjusting the resolution ratio of shooing the image, can improve the formation of image effect, through carrying out size adjustment to shooing the image, can guarantee seamless concatenation, guarantee the display effect of concatenation effect and the panoramic image who generates.
The mobile terminal may adjust the resolution of the shot images before or after determining the synthesis order, sequentially select every two shot images that are sequentially adjacent according to the synthesis order after the adjustment of the resolution and the determination of the synthesis order are completed, respectively perform size adjustment on every two shot images that are sequentially adjacent, and then perform stitching processing according to the image synthesis order to synthesize the panoramic image.
Step 203, delete the shot image acquired in the panoramic mode.
After the panoramic image is synthesized, the shot image acquired in the panoramic mode is deleted, so that the memory space of the mobile terminal can be saved.
According to the implementation process, the shot images are obtained, resolution adjustment, synthesis sequence determination and size adjustment are carried out on the shot images, and the panoramic images are generated according to the processed shot images, so that panoramic shooting can be carried out quickly and conveniently, the imaging effect is improved, and the display effect of the panoramic images is ensured. Further, the shot image acquired in the panoramic mode is deleted after the panoramic image is synthesized, so that the memory space of the mobile terminal can be saved.
An embodiment of the present invention further provides a mobile terminal, as shown in fig. 3, including:
the system comprises an acquisition module 10, a storage module and a display module, wherein the acquisition module is used for acquiring at least two shooting images shot by a mobile terminal when the mobile terminal is in a panoramic shooting state; shooting parameters of at least two shot images in the at least two shot images are different;
the processing module 20 is configured to process at least two shot images to obtain corresponding panoramic images in a panoramic shooting state; wherein the photographing parameter includes at least one of resolution, contrast, and brightness.
Wherein, the processing module 20 comprises:
a determining submodule 21 configured to identify the shot contents of at least two shot images, and determine an image synthesis order according to the shot contents;
and the generation submodule 22 is configured to perform stitching processing on at least two shot images according to the determined image synthesis order, so as to generate a panoramic image.
Wherein, the processing module 20 further includes:
an identifying submodule 23 configured to identify the resolution corresponding to each of the captured images before or after the step of identifying the captured contents of the at least two captured images by the determining submodule 21 and determining the image combining order based on the captured contents;
the calculation submodule 24 is used for calculating and obtaining the optimal resolution ratio capable of clearly displaying the content of each shot image at the same time;
and an adjusting sub-module 25 for adjusting the resolution of each captured image to the optimum resolution.
Wherein, the generating submodule 22 includes:
an adjusting unit 221, configured to select, in sequence, every two sequentially adjacent captured images according to the determined image synthesis sequence, and perform size adjustment on every two sequentially adjacent captured images respectively;
a generating unit 222, configured to splice the sequentially adjacent captured images after the size adjustment, so as to generate a panoramic image.
Wherein, mobile terminal still includes:
the first display module 30 is configured to display the panoramic image on a display interface after the processing module 20 obtains the corresponding panoramic image in the panoramic shooting state, and simultaneously display at least two obtained shot images;
and the second display module 40 is configured to display prompt information for prompting whether to delete at least two captured images according to a touch operation of a user on the display interface.
The mobile terminal according to the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 and fig. 2, and is not described herein again to avoid repetition.
In this way, in the panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained, shooting parameters of at least two shooting images in the at least two shooting images are different, the obtained at least two shooting images are processed to obtain the corresponding panoramic image in the panoramic shooting state, when a user shoots the panoramic image, the direction can be changed at will, the hand posture requirement on the user is reduced, the panoramic shooting is fast and convenient to achieve, meanwhile, the resolution of the photo is automatically identified and determined based on artificial intelligence, the imaging effect is improved, photo content is identified and spliced, the panoramic image is generated, the shooting experience of the user is improved while the shooting effect is guaranteed, and the problem that when the panoramic photo is shot in the prior art, the user needs to move along a fixed direction in a fixed posture, and the shooting experience of the user is poor is caused is solved.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 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.
Wherein the processor 410 is configured to: when the mobile terminal is in a panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained; shooting parameters of at least two shot images in the at least two shot images are different; processing at least two shot images to obtain corresponding panoramic images in a panoramic shooting state; wherein the photographing parameters include at least one of resolution, contrast, and brightness.
Optionally, when processing at least two shot images to obtain a corresponding panoramic image in the panoramic shooting state, the processor 410 is further configured to execute the following steps: recognizing the shooting contents of at least two shot images, and determining an image synthesis sequence according to the shooting contents; and splicing the at least two shot images according to the determined image synthesis sequence to generate a panoramic image.
Optionally, the captured contents of the at least two captured images are identified, and before or after the step of determining the image combination order according to the captured contents, the processor 410 is further configured to perform the following steps: identifying the resolution corresponding to each shot image; calculating to obtain the optimal resolution ratio capable of clearly displaying the content of each shot image; the resolution of each captured image is adjusted to the optimum resolution.
Optionally, when the at least two captured images are stitched according to the determined image synthesis sequence to generate the panoramic image, the processor 410 is further configured to execute the following steps: sequentially selecting every two shot images which are adjacent in sequence according to the determined image synthesis sequence, and respectively carrying out size adjustment on every two shot images which are adjacent in sequence; and splicing the shot images which are adjusted in size and are adjacent in sequence to generate a panoramic image.
Optionally, after obtaining the corresponding panoramic image in the panoramic shooting state, the processor 410 is further configured to perform the following steps: displaying the panoramic image on a display interface, and simultaneously displaying at least two acquired shot images; and displaying prompt information for prompting whether to delete at least two shot images according to the touch operation of the user on the display interface.
In this way, in the panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained, shooting parameters of at least two shooting images in the at least two shooting images are different, the obtained at least two shooting images are processed to obtain the corresponding panoramic image in the panoramic shooting state, when a user shoots the panoramic image, the direction can be changed at will, the hand posture requirement on the user is reduced, the panoramic shooting is fast and convenient to achieve, meanwhile, the resolution of the photo is automatically identified and determined based on artificial intelligence, the imaging effect is improved, photo content is identified and spliced, the panoramic image is generated, the shooting experience of the user is improved while the shooting effect is guaranteed, and the problem that when the panoramic photo is shot in the prior art, the user needs to move along a fixed direction in a fixed posture, and the shooting experience of the user is poor is caused is solved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 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 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (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 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing 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 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 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 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 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 407 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 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 408 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 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program 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 409 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 410 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 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 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 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 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 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, 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 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 (3)

1. A panoramic photographing method is applied to a mobile terminal and is characterized by comprising the following steps:
when the mobile terminal is in a panoramic shooting state, at least two shooting images shot by the mobile terminal are obtained; shooting parameters of at least two shot images in the at least two shot images are different;
processing the at least two shot images to obtain corresponding panoramic images in a panoramic shooting state; wherein the shooting parameters include: at least one of resolution, contrast, and brightness;
after obtaining the corresponding panoramic picture under the panoramic shooting state, the method further comprises the following steps:
displaying the panoramic image on a display interface, and simultaneously displaying the at least two acquired shot images;
displaying prompt information for prompting whether to delete the at least two shot images according to the touch operation of the user on the display interface;
processing the at least two shot images to obtain corresponding panoramic images in a panoramic shooting state, wherein the step comprises the following steps of:
identifying the shooting contents of the at least two shooting images, and determining an image synthesis sequence according to the shooting contents;
according to the determined image synthesis sequence, splicing the at least two shot images to generate the panoramic image;
the step of generating the panoramic image by stitching the at least two shot images according to the determined image synthesis sequence comprises the following steps:
sequentially selecting every two shot images which are adjacent in sequence according to the determined image synthesis sequence, and respectively carrying out size adjustment on every two shot images which are adjacent in sequence;
splicing the sequentially adjacent shot images after size adjustment to generate the panoramic image;
recognizing the shooting contents of the at least two shot images, and before or after the step of determining the image synthesis sequence according to the shooting contents, further comprising:
identifying the resolution corresponding to each shot image;
calculating to obtain the optimal resolution ratio capable of clearly displaying the content of each shot image;
and adjusting the resolution of each shot image to the optimal resolution.
2. A mobile terminal, comprising:
the acquisition module is used for acquiring at least two shot images shot by the mobile terminal when the mobile terminal is in a panoramic shooting state; shooting parameters of at least two shot images in the at least two shot images are different;
the processing module is used for processing the at least two shot images to obtain corresponding panoramic images in a panoramic shooting state; wherein the photographing parameters include at least one of resolution, contrast, and brightness;
the mobile terminal further includes:
the first display module is used for displaying the panoramic image on a display interface after the processing module obtains the corresponding panoramic image in the panoramic shooting state, and simultaneously displaying the at least two obtained shot images;
the second display module is used for displaying prompt information for prompting whether to delete the at least two shot images according to the touch operation of the user on the display interface;
the processing module comprises:
the determining submodule is used for identifying the shooting contents of the at least two shooting images and determining an image synthesis sequence according to the shooting contents;
the generation submodule is used for splicing the at least two shot images according to the determined image synthesis sequence to generate the panoramic image;
the generation submodule includes:
the adjusting unit is used for sequentially selecting every two shooting images which are adjacent in sequence according to the determined image synthesis sequence and respectively adjusting the sizes of every two shooting images which are adjacent in sequence;
the generating unit is used for splicing the sequentially adjacent shot images after the size adjustment to generate the panoramic image;
the processing module further comprises:
the identification submodule is used for identifying the shooting contents of the at least two shooting images in the determination submodule, and identifying the resolution corresponding to each shooting image before or after the step of determining the image synthesis sequence according to the shooting contents;
the calculation submodule is used for calculating to obtain the optimal resolution capable of clearly displaying the content of each shot image simultaneously;
and the adjusting sub-module is used for adjusting the resolution of each shot image to the optimal resolution.
3. A mobile terminal comprising 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 panorama photographing method of claim 1.
CN201810026803.2A 2018-01-11 2018-01-11 Panoramic photographing method and mobile terminal Active CN108156386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810026803.2A CN108156386B (en) 2018-01-11 2018-01-11 Panoramic photographing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810026803.2A CN108156386B (en) 2018-01-11 2018-01-11 Panoramic photographing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108156386A CN108156386A (en) 2018-06-12
CN108156386B true CN108156386B (en) 2020-09-29

Family

ID=62461325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810026803.2A Active CN108156386B (en) 2018-01-11 2018-01-11 Panoramic photographing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108156386B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493511B (en) * 2019-07-30 2023-05-09 维沃移动通信有限公司 Panoramic image generation method and mobile terminal
CN110536066B (en) * 2019-08-09 2021-06-29 润博全景文旅科技有限公司 Panoramic camera shooting method and device, electronic equipment and storage medium
CN111083390B (en) * 2019-12-27 2021-07-06 维沃移动通信有限公司 Image processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986872A (en) * 2014-05-28 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Terminal and terminal shooting method
CN104660915A (en) * 2015-02-09 2015-05-27 广东欧珀移动通信有限公司 Control method and device for panoramic photography exposure
CN106899803A (en) * 2017-01-20 2017-06-27 维沃移动通信有限公司 A kind of pan-shot light supplement control method and mobile terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589050A (en) * 2004-09-23 2005-03-02 美博通信设备(北京)有限公司 Method for shooting and browsing panoramic film using mobile terminal
CN101771829A (en) * 2008-12-31 2010-07-07 华晶科技股份有限公司 Method for generating panoramic image
JP2011119974A (en) * 2009-12-03 2011-06-16 Sony Corp Panoramic image synthesizer, panoramic image synthesis method, and program
JP2011130327A (en) * 2009-12-21 2011-06-30 Sony Corp Image processing apparatus, method and program
KR101049928B1 (en) * 2011-02-21 2011-07-15 (주)올라웍스 Method, terminal and computer-readable recording medium for generating panoramic images
CN103685945A (en) * 2013-11-28 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Panoramic photography method and mobile terminal for implementing same
CN106464811B (en) * 2015-03-10 2021-03-26 深圳市大疆创新科技有限公司 System and method for adaptive panoramic image generation
CN106157241A (en) * 2015-04-22 2016-11-23 无锡天脉聚源传媒科技有限公司 A kind of method and device of Panorama Mosaic
CN106485655A (en) * 2015-09-01 2017-03-08 张长隆 A kind of taken photo by plane map generation system and method based on quadrotor
CN105869113B (en) * 2016-03-25 2019-04-26 华为技术有限公司 The generation method and device of panoramic picture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986872A (en) * 2014-05-28 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Terminal and terminal shooting method
CN104660915A (en) * 2015-02-09 2015-05-27 广东欧珀移动通信有限公司 Control method and device for panoramic photography exposure
CN106899803A (en) * 2017-01-20 2017-06-27 维沃移动通信有限公司 A kind of pan-shot light supplement control method and mobile terminal

Also Published As

Publication number Publication date
CN108156386A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108668083B (en) Photographing method and terminal
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN109361869B (en) Shooting method and terminal
CN108495029B (en) Photographing method and mobile terminal
CN108471498B (en) Shooting preview method and terminal
CN108881733B (en) Panoramic shooting method and mobile terminal
CN109246360B (en) Prompting method and mobile terminal
CN108989672B (en) Shooting method and mobile terminal
CN108038825B (en) Image processing method and mobile terminal
CN109660723B (en) Panoramic shooting method and device
CN110602401A (en) Photographing method and terminal
CN109474786B (en) Preview image generation method and terminal
CN111050070B (en) Video shooting method and device, electronic equipment and medium
CN108449546B (en) Photographing method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN109102555B (en) Image editing method and terminal
CN110266957B (en) Image shooting method and mobile terminal
KR20220005087A (en) Filming method and terminal
CN111432195A (en) Image shooting method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN108924422B (en) Panoramic photographing method and mobile terminal
CN108881721B (en) Display method and terminal
CN108307105B (en) Shooting method, terminal and computer readable storage medium
CN108156386B (en) Panoramic photographing method and mobile terminal
CN111182211B (en) Shooting method, image processing 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