CN114449172A - Shooting method and device and electronic equipment - Google Patents
Shooting method and device and electronic equipment Download PDFInfo
- Publication number
- CN114449172A CN114449172A CN202210134743.2A CN202210134743A CN114449172A CN 114449172 A CN114449172 A CN 114449172A CN 202210134743 A CN202210134743 A CN 202210134743A CN 114449172 A CN114449172 A CN 114449172A
- Authority
- CN
- China
- Prior art keywords
- image
- preview
- input
- preview image
- center
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004044 response Effects 0.000 claims description 28
- 230000000007 visual effect Effects 0.000 claims description 5
- 230000002194 synthesizing effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000003672 processing method Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2624—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects for obtaining an image which is composed of whole input images, e.g. splitscreen
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The application discloses a shooting method, a shooting device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: displaying a shooting preview interface, wherein the shooting preview interface comprises a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image; receiving a first input of a user to the first preview image, wherein the first input is used for determining the image center of the third preview image; and responding to the first input, and updating and displaying the third preview image according to the image center.
Description
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a shooting method, a shooting device and electronic equipment.
Background
With the improvement of the usage rate of the shooting function of the electronic equipment by the user, the requirement of the user on the shooting experience is higher and higher.
In the related art, if a user wants to obtain a wide-angle photo, the user needs to move the electronic device smoothly according to the indicated direction to obtain multiple photos, and then the multiple photos are automatically stitched into the wide-angle photo. However, the shooting mode needs the user to keep stable in the horizontal direction in the process of moving the electronic device, otherwise, the problem of improper connection occurs at the joint of the finally spliced wide-angle pictures, and therefore, the existing shooting mode is not only complicated in operation process, but also requires the user to have a certain shooting level.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device and electronic equipment, which can simplify the operation of shooting a wide-angle image by a user and reduce the complexity of the operation of shooting the wide-angle image and the requirement on the shooting level of the user.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes: displaying a shooting preview interface, wherein the shooting preview interface comprises a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image; receiving a first input of a user to the first preview image, wherein the first input is used for determining the image center of the third preview image; and responding to the first input, and updating and displaying the third preview image according to the image center.
In a second aspect, an embodiment of the present application provides a shooting apparatus, including: a display module and a receiving module; the display module is used for displaying a shooting preview interface, the shooting preview interface comprises a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image; the receiving module is used for receiving a first input of the first preview image from a user, wherein the first input is used for determining the image center of the third preview image; and the display module is further used for responding to the first input and updating and displaying the third preview image according to the image center.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a shooting preview interface can be displayed, wherein the shooting preview interface comprises a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image; receiving a first input of a user to the first preview image, wherein the first input is used for determining the image center of the third preview image; and responding to the first input, and updating and displaying the third preview image according to the image center. According to the scheme, the image center can be determined through the first input, and the third preview image obtained by splicing the first preview image and the second preview image is displayed according to the image center in an updating mode, so that when a user shoots a wide-angle image, the third preview image can be obtained only by performing determination input on the image center on the first preview image, the operation of shooting the wide-angle image by the user can be simplified, and the operation complexity of shooting the wide-angle image and the requirements on the shooting level of the user are reduced.
Drawings
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application;
fig. 2 is one of schematic diagrams of an image processing method of a shooting method according to an embodiment of the present application;
FIG. 3 is one of schematic interface operation diagrams of a shooting method provided by an embodiment of the present application;
fig. 4 is a second schematic diagram illustrating an image processing method of the photographing method according to the embodiment of the present application;
fig. 5 is a third schematic diagram of an image processing method of the shooting method according to the embodiment of the present application;
fig. 6 is a fourth schematic view illustrating an image processing method of the shooting method according to the embodiment of the present application;
fig. 7 is a second schematic interface operation diagram of the shooting method according to the embodiment of the present application;
fig. 8 is a schematic structural diagram of a shooting device provided in an embodiment of the present application;
FIG. 9 is a hardware diagram of an electronic device provided by an embodiment of the present application;
fig. 10 is a second hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the shooting method provided by the embodiment of the present application, an execution subject of the shooting method may be an electronic device or a functional module or a functional entity capable of implementing the shooting method in the electronic device, the electronic device mentioned in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the shooting method provided by the embodiment of the present application is described below with the electronic device as the execution subject.
The electronic equipment provided by the embodiment of the application can comprise a first camera and a second camera, wherein the first camera can be a front camera, and the second camera can be a rear camera; alternatively, the first camera may be a rear camera and the second camera may be a front camera. The first and second cameras may be ultra-wide angle cameras, for example, the first and second cameras may be 180 ° fisheye lenses.
The following describes in detail the shooting method provided in the embodiment of the present application, taking a fisheye lens with a first camera and a second camera at 180 degrees as an example.
As shown in fig. 1, an embodiment of the present application provides a shooting method, which may include steps 101 to 103:
and step 101, displaying a shooting preview interface.
The shooting preview interface can comprise a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image.
If the user wants to shoot a wide-angle image or a wide-angle video, the electronic device may be triggered to display a shooting preview interface, where the shooting preview interface may include the first preview image and the third preview image, and may also include the second preview image.
Optionally, the first preview image and the second preview image may be images captured through fisheye lenses with different capturing angles, that is, the first preview image and the second preview image may be preview images of different capturing angles captured at the same image capturing point through fisheye lenses with different capturing angles. For example, a first preview image may be acquired by a first camera and a second preview image may be acquired by a second camera. The second preview image may include a first sub-image and a second sub-image; the third preview image may be a wide-angle image obtained by sequentially stitching the first sub-image, the first preview image, and the second sub-image.
For example, as shown in fig. 2, the second preview image 220 may include a first sub-image 221 and a second sub-image 222, and the third preview image 230 may be a wide-angle image obtained by sequentially stitching the first sub-image 221, the first preview image 210, and the second sub-image 222.
And 102, receiving a first input of the first preview image from a user.
Wherein the first input may be used to determine an image center of the third preview image.
The image center refers to an image center point of the third preview image when all the image areas of the third preview image are displayed.
Optionally, the electronic device determines the image center of the third preview image through the first input, which specifically includes the following two ways: mode 1 is that the electronic device may determine the input position of the first input as the image center of the third preview image; manner 2 is that the electronic device may determine a position in the second preview image opposite to the input position of the first input as the image center of the third preview image.
Illustratively, as shown in fig. 3, the electronic device may display a first preview image in an area 31 of the capture preview interface, a second preview image in an area 32, and a third preview image in an area 33, the first preview image may be first input by the user, and the electronic device may determine an image center 34 of the third preview image from the first preview image in response to the first input.
And 103, responding to the first input, and updating and displaying the third preview image according to the image center.
Optionally, in a case that the center of the image is different from the center of the third preview image in the height direction, the electronic device may first cut the first preview image into a third sub-image, cut the second preview image into a fourth sub-image, and then stitch the third sub-image and the fourth sub-image to obtain the third preview image, and update and display the third preview image.
For example, as shown in fig. 4, the electronic device may determine an image center 41 according to a first input of the user to the first preview image 210, and since the image center 41 and a center 42 of the third preview image 231 before the updated display in the height direction are different in position, the electronic device may first cut the first preview image 210 into the third sub-image 43 along a cutting line f1, cut the second preview image 220 into the fourth sub-image 44 along a cutting line f2, then stitch the third sub-image 43 and the fourth sub-image 44 to obtain the third preview image 232, and finally, the electronic device may cancel the display of the third preview image 231 and update the display of the third preview image 232.
Based on the above-described configuration, when the center of the image is different from the center of the third preview image in the height direction, the first preview image can be cropped into the third sub-image and the second preview image can be cropped into the fourth sub-image in accordance with the center of the image, and therefore, the third preview image centered on the center of the image in the height direction can be obtained.
Optionally, in a case where the center of the image is different from the center of the third preview image in the horizontal direction, the electronic device may crop the second preview image into a fifth sub-image and a sixth sub-image; sequentially splicing the fifth sub-image, the first preview image and the sixth sub-image to obtain a third preview image; and updating and displaying the third preview image.
For example, as shown in fig. 5, the electronic device may determine an image center 51 according to a first input of the user to the first preview image 210, and since the position of the image center 51 is different from the position of the center 52 of the third preview image 231 before the update display in the horizontal direction, the electronic device may cut the second preview image 220 into the fifth sub-image 53 and the sixth sub-image 54 along the cutting line f3, and then, the electronic device may sequentially stitch the fifth sub-image 53, the first preview image 210, and the sixth sub-image 54 to obtain the third preview image 232, and finally, the electronic device may cancel the display of the third preview image 231 and update the display of the third preview image 232.
Based on the above-described aspect, since the second preview image can be cropped into the fifth sub-image and the sixth sub-image in accordance with the image center in the case where the image center is different from the center of the third preview image in the horizontal direction, the third preview image centered on the image center in the horizontal direction can be obtained.
Optionally, after the third preview image is updated and displayed, the electronic device may further receive a second input of the user; capturing a first image corresponding to the first preview image and a second image corresponding to the second preview image in response to the second input; and outputting a third image, wherein the third image is obtained according to the image center, the first image and the second image.
Specifically, under the condition that the user considers that the updated and displayed third preview image meets the own photographing intention, the user can perform second input on the photographing control of the electronic device, correspondingly, the electronic device can receive the second input of the user, and in response to the second input, photograph the first image corresponding to the first preview image and the second image corresponding to the second preview image, then, the first image and the second image are spliced according to the image center to obtain a third image, and finally, the obtained third image is output.
Based on the scheme, the user can trigger the electronic equipment to shoot the third image corresponding to the third preview image through the second input.
Optionally, before outputting the third image, the electronic device may further receive a third input of the user in a case where the electronic device is updated from the first photographing angle to the second photographing angle; capturing a fourth image and a fifth image in response to the third input; and respectively carrying out image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image.
Illustratively, as shown in fig. 6, after the electronic device acquires a first image 61 through the first camera and a second image 62 through the second camera, the electronic device may output indication information to guide a user to turn the electronic device by 90 ° in the horizontal direction, and then acquire a fourth image 63 through the first camera and a fifth image 64 through the second camera. Since the side edge region "1" of the first image 61 is located in the center region of the fifth image 64, the side edge region "4" of the first image 61 is located in the center region of the fourth image 63, the side edge region "5" of the second image 62 is located in the center region of the fourth image 63, and the side edge region "8" of the second image 62 is located in the center region of the fifth image 64, the electronic device can perform the edge quality enhancement processing on the first image and the second image according to the fourth image and the fifth image, respectively.
Based on the scheme, since the edge image quality enhancement processing can be respectively carried out on the first image and the second image according to the fourth image and the fifth image, the image quality of the first image and the second image can be improved, and the image quality of the finally obtained third image can be improved.
Optionally, after outputting the third image, the electronic device may further display a stereoscopic image corresponding to the third image; receiving a fourth input from the user; updating display of the stereoscopic image in response to the fourth input; the updating the display of the stereoscopic image comprises at least one of: magnifying and displaying the stereoscopic image; displaying the stereoscopic image in a reduced manner; and displaying the image area of the stereoscopic image target visual angle.
Specifically, because the first camera and the second camera are fisheye lenses of 180 degrees, the electronic device can obtain a wide-angle image of 360 degrees through stitching processing of the first image and the second image, and then the electronic device can establish a three-dimensional stereo image of the wide-angle image; in a case where the three-dimensional stereoscopic image is displayed, the electronic device may receive a fourth input of the three-dimensional stereoscopic image by the user; and updating the display stereoscopic image in response to a fourth input; the updating the displayed stereoscopic image may include at least one of: magnifying and displaying the stereoscopic image; displaying the stereoscopic image in a reduced manner; and displaying the image area of the stereoscopic image target visual angle.
Illustratively, the updating of the image region displaying the stereoscopic image including displaying the target angle of view of the stereoscopic image, and the fourth input as the stroke input are taken as examples. The electronic device may synthesize the first image and the second image into a spherical image by an algorithm, and in a case where the spherical image is displayed, a user may perform a slide input on the spherical image, and the electronic device may display image areas of different view angle ranges of the spherical image according to an input direction of the slide input in response to the slide input.
Optionally, the user may also trigger the electronic device to share the stereoscopic image with other users, or save the stereoscopic image locally.
Based on the scheme, the three-dimensional image of the third image can be established, and the three-dimensional image is updated and displayed according to the fourth input of the user, so that the interestingness and intuition of image display can be increased.
Optionally, after outputting a third image, the electronic device may further store the first image, the second image, and the third image; and receiving a fifth input of the user in a case where the third image is displayed; and in response to the fifth input, synthesizing a sixth image according to the first image and the second image, and updating and displaying the third image as the sixth image, wherein the image center of the sixth image is different from the image center of the third image.
Specifically, after the third image is output, the electronic device may store the first image, the second image, and the third image, and when the user is unsatisfied with the image area in the center of the third image, the first image and the second image may be cut and stitched again, so as to obtain a sixth image with an image center different from the third image.
For example, when the user wants to acquire a new stitched image, the user may trigger the electronic device to display the third image, and in the case of displaying the third image, the electronic device may receive a fifth input of the user for the third image; and determining a new image center from the third image in response to a fifth input, and then, the electronic device may crop the first image and the second image according to the newly determined image center, and finally, synthesize the cropped images into a sixth image, where the image center of the sixth image is the new image center determined by the fifth input.
Based on the scheme, the first image, the second image and the third image can be stored, and the sixth image with the image center different from that of the third image is determined according to the first image, the second image and the third image, so that a user can synthesize a new wide-angle image at any time, and the fault tolerance of the user for synthesizing the wide-angle image for the first time is improved.
Optionally, the receiving, by the electronic device, the first input of the user may specifically include: the electronic device receives a first input by a user to a moving object in a first preview image. After the third preview image is displayed in an updated manner, the electronic device may further receive a sixth input of the user; and in response to the sixth input, taking the moving object as an image center, and shooting a first video, wherein a video frame of the first video corresponds to the third preview image.
Specifically, if a user wants to perform video shooting on a certain moving object, the electronic device may be triggered to acquire a video picture within a shooting range of the first camera through the first camera, and acquire a video picture within a shooting range of the second camera through the second camera. Since the first camera and the second camera are fisheye lenses of 180 degrees, the electronic device can acquire a video picture of a moving object in any direction.
After the electronic equipment receives a first input of a user to a moving object in the first preview image, the moving object can be used as a video focus, and a video preview picture taking the moving object as the focus is displayed in a floating window area of the shooting preview interface. Thereafter, the electronic device may receive a sixth input by the user; and in response to a sixth input, capturing a first video centered on the moving object.
Optionally, before receiving the first input, the electronic device may further determine, as a moving object, a photographing object moving most frequently in the photographing preview interface by default.
For example, as shown in fig. 7, in the case of displaying the photographing preview interface, when the user makes a first input to the moving object 71, the electronic device may display a video preview screen 73 focused on the moving object 71 in the floating window area 72. Thereafter, the user may make a sixth input to the video capture control, and the electronic device may capture the first video corresponding to the display in the video preview screen 73 in response to the sixth input.
It should be noted that, when the moving object is within the shooting range of the first camera, the electronic device may display a preview picture acquired by the first camera in the floating window area; and under the condition that the moving object is within the shooting range of the second camera, the electronic equipment can display the preview picture acquired by the second camera in the floating window area.
Based on the scheme, the first video taking the moving object as the image center can be shot, so that the electronic equipment does not need to be moved for multiple times when the user wants to shoot the focus-following video.
According to the shooting method provided by the embodiment of the application, the execution main body can be a shooting device. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described.
As shown in fig. 8, an embodiment of the present application further provides a shooting apparatus 800, including: a display module 801 and a receiving module 802; the display module 801 is configured to display a shooting preview interface, where the shooting preview interface includes a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image; the receiving module 802 is configured to receive a first input of the first preview image from a user, where the first input is used to determine an image center of the third preview image; the display module 801 is further configured to update and display the third preview image according to the image center in response to the first input.
Optionally, the first preview image and the second preview image are images captured through fisheye lenses with different capturing angles, and the second preview image includes a first sub-image and a second sub-image; the third preview image is a wide-angle image obtained by sequentially splicing the first sub-image, the first preview image and the second sub-image.
Optionally, with continued reference to fig. 8, the camera 800 may further include a processing module 803. The processing module 803 is configured to, under the condition that the center of the image is different from the center of the third preview image in the height direction, crop the first preview image into a third sub-image, crop the second preview image into a fourth sub-image, and splice the third sub-image and the fourth sub-image to obtain the third preview image; the display module 801 is specifically configured to update and display the third preview image.
Optionally, the processing module 803 is configured to, in a case that the image center is different from the center of the third preview image in the horizontal direction, crop the second preview image into a fifth sub-image and a sixth sub-image; sequentially splicing the fifth sub-image, the first preview image and the sixth sub-image to obtain a third preview image; the display module 801 is specifically configured to update and display the third preview image.
Optionally, the receiving module 802 is further configured to receive a second input of the user; the processing module 803 is further configured to capture a first image corresponding to the first preview image and a second image corresponding to the second preview image in response to the second input; and outputting a third image, wherein the third image is obtained according to the image center, the first image and the second image.
Optionally, the receiving module 802 is further configured to receive a third input from the user when the electronic device is updated from the first shooting angle to the second shooting angle; the processing module 803 is further configured to capture a fourth image and a fifth image in response to the third input; and respectively carrying out image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image.
Optionally, the display module 801 is further configured to display a stereoscopic image corresponding to the third image; the receiving module 802 is further configured to receive a fourth input of the user; the display module 801 is further configured to update and display the stereoscopic image in response to the fourth input; the updating the display of the stereoscopic image comprises at least one of: magnifying and displaying the stereoscopic image; displaying the stereoscopic image in a reduced manner; and displaying the image area of the stereoscopic image target visual angle.
Optionally, the processing module 803 is further configured to store the first image, the second image, and the third image; the receiving module 802 is further configured to receive a fifth input from the user when the third image is displayed; the processing module 803, further configured to synthesize a sixth image from the first image and the second image in response to the fifth input; the display module 801 is further configured to update and display the third image to be the sixth image, where an image center of the sixth image is different from an image center of the third image.
Optionally, the receiving module 802 is specifically configured to receive a first input of a moving object in the first preview image from a user; the receiving module 802 is further configured to receive a sixth input from the user; the processing module 803 is further configured to, in response to the sixth input, take a first video with the moving object as an image center, where a video frame of the first video corresponds to the third preview image.
In the embodiment of the application, the image center can be determined through the first input, and the third preview image obtained by splicing the first preview image and the second preview image is displayed according to the image center in an updating manner, so that when a user shoots a wide-angle image, the third preview image can be obtained only by performing the determination input of the image center on the first preview image, and thus, the operation of shooting the wide-angle image by the user can be simplified, and the operation complexity of shooting the wide-angle image and the requirement on the shooting level of the user can be reduced.
The shooting device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 7, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in an embodiment of the present application, and includes a processor 901 and a memory 902, where the memory 902 stores a program or an instruction that can be executed on the processor 901, and when the program or the instruction is executed by the processor 901, the steps of the foregoing shooting method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The display unit 1006 is configured to display a shooting preview interface, where the shooting preview interface includes a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image; a user input unit 1007 configured to receive a first input to the first preview image by a user, the first input being used to determine an image center of the third preview image; the display unit 1006 is further configured to update and display the third preview image according to the image center in response to the first input.
In the embodiment of the application, the image center can be determined through the first input, and the third preview image obtained by splicing the first preview image and the second preview image is displayed according to the image center in an updating manner, so that when a user shoots a wide-angle image, the third preview image can be obtained only by performing the determination input of the image center on the first preview image, and thus, the operation of shooting the wide-angle image by the user can be simplified, and the operation complexity of shooting the wide-angle image and the requirement on the shooting level of the user can be reduced.
Optionally, the processor 1010 is configured to, under the condition that the center of the image is different from the center of the third preview image in the height direction, crop the first preview image into a third sub-image, crop the second preview image into a fourth sub-image, and stitch the third sub-image and the fourth sub-image to obtain the third preview image; the display unit 1006 is specifically configured to update and display the third preview image.
In the embodiment of the present application, when the center of the image is different from the center of the third preview image in the height direction, the first preview image may be cropped to the third sub-image and the second preview image may be cropped to the fourth sub-image in accordance with the center of the image, and therefore, the third preview image centered on the center of the image in the height direction may be obtained.
Optionally, the processor 1010 is configured to crop the second preview image into a fifth sub-image and a sixth sub-image if the image center is different from the center of the third preview image in the horizontal direction; sequentially splicing the fifth sub-image, the first preview image and the sixth sub-image to obtain a third preview image; the display unit 1006 is specifically configured to update and display the third preview image.
In the embodiment of the present application, since the second preview image can be cropped into the fifth sub-image and the sixth sub-image in accordance with the image center in the case where the image center is different from the center of the third preview image in the horizontal direction, the third preview image centered on the image center in the horizontal direction can be obtained.
Optionally, the user input unit 1007 is further configured to receive a second input from the user; a processor 1010 further configured to capture a first image corresponding to the first preview image and a second image corresponding to the second preview image in response to the second input; and outputting a third image, wherein the third image is obtained according to the image center, the first image and the second image.
In the embodiment of the application, the user can trigger the electronic device to shoot the third image corresponding to the third preview image through the second input.
Optionally, the user input unit 1007 is further configured to receive a third input from the user when the electronic device is updated from the first shooting angle to the second shooting angle; a processor 1010 further configured to capture a fourth image and a fifth image in response to the third input; and respectively carrying out image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image.
In the embodiment of the present application, since the edge image quality enhancement processing can be performed on the first image and the second image according to the fourth image and the fifth image, respectively, the image quality of the first image and the second image can be improved, and the image quality of the finally obtained third image can be improved.
Optionally, the display unit 1006 is further configured to display a stereoscopic image corresponding to the third image; a user input unit 1007, further configured to receive a fourth input by the user; a display unit 1006, further configured to update and display the stereoscopic image in response to the fourth input; the updating the display of the stereoscopic image comprises at least one of: magnifying and displaying the stereoscopic image; displaying the stereoscopic image in a reduced manner; and displaying the image area of the stereoscopic image target visual angle.
In the embodiment of the application, because the stereoscopic image of the third image can be established, and the stereoscopic image is updated and displayed according to the fourth input of the user, the interestingness and intuition of image display can be increased.
Optionally, a processor 1010, further configured to store the first image, the second image, and the third image; a user input unit 1007, further configured to receive a fifth input from the user when the third image is displayed; a processor 1010 further configured to synthesize a sixth image from the first image and the second image in response to the fifth input; the display unit 1006 is further configured to update and display the third image as the sixth image, where an image center of the sixth image is different from an image center of the third image.
In the embodiment of the application, the first image, the second image and the third image can be stored, and the sixth image with the image center different from that of the third image is determined according to the first image, the second image and the third image, so that a user can synthesize a new wide-angle image at any time, and the fault tolerance of the user for synthesizing the wide-angle image for the first time is improved.
Optionally, the user input unit 1007 is specifically configured to receive a first input of a moving object in the first preview image by a user; a user input unit 1007, further configured to receive a sixth input from the user; the processor 1010 is further configured to capture a first video with the moving object as an image center in response to the sixth input, where a video frame of the first video corresponds to the third preview image.
In the embodiment of the application, since the first video taking the moving object as the image center can be shot, the user does not need to move the electronic equipment for many times when the user wants to shoot the focus-following video.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing shooting method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application or portions thereof that contribute to the related art may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (11)
1. A photographing method, characterized by comprising:
displaying a shooting preview interface, wherein the shooting preview interface comprises a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image;
receiving a first input of a user to the first preview image, wherein the first input is used for determining the image center of the third preview image;
and responding to the first input, and updating and displaying the third preview image according to the image center.
2. The photographing method according to claim 1, wherein the first preview image and the second preview image are images photographed by fisheye lenses different in photographing angle, and the second preview image includes a first sub-image and a second sub-image;
the third preview image is a wide-angle image obtained by sequentially splicing the first sub-image, the first preview image and the second sub-image.
3. The shooting method according to claim 1, wherein said updating and displaying the third preview image in accordance with the image center includes:
under the condition that the center of the image is different from the center of the third preview image in the height direction, the first preview image is cut into a third sub-image, the second preview image is cut into a fourth sub-image, and the third sub-image and the fourth sub-image are spliced to obtain a third preview image;
and updating and displaying the third preview image.
4. The photographing method according to claim 1, wherein the updating of the display of the third preview image in accordance with the image center includes:
cropping the second preview image into a fifth sub-image and a sixth sub-image in the case where the center of the image is different from the center of the third preview image in the horizontal direction;
sequentially splicing the fifth sub-image, the first preview image and the sixth sub-image to obtain a third preview image;
and updating and displaying the third preview image.
5. The method of any of claims 1-4, wherein after the updating displays the third preview image, the method further comprises:
receiving a second input of the user;
capturing a first image corresponding to the first preview image and a second image corresponding to the second preview image in response to the second input;
and outputting a third image, wherein the third image is obtained according to the image center, the first image and the second image.
6. The photographing method according to claim 5, wherein before the outputting the third image, the method further comprises:
receiving a third input of the user when the electronic equipment is updated to a second shooting angle from the first shooting angle;
capturing a fourth image and a fifth image in response to the third input;
and respectively carrying out image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image.
7. The photographing method according to claim 5, wherein after the outputting of the third image, the method further comprises:
displaying a stereoscopic image corresponding to the third image;
receiving a fourth input from the user;
updating display of the stereoscopic image in response to the fourth input;
the updating the display of the stereoscopic image comprises at least one of:
magnifying and displaying the stereoscopic image;
displaying the stereoscopic image in a reduced manner;
and displaying the image area of the stereoscopic image target visual angle.
8. The photographing method according to claim 5, wherein after the outputting of the third image, the method further comprises:
storing the first image, the second image, and the third image;
receiving a fifth input of the user in a case where the third image is displayed;
and in response to the fifth input, synthesizing a sixth image according to the first image and the second image, and updating and displaying the third image as the sixth image, wherein the image center of the sixth image is different from the image center of the third image.
9. The method of claim 1, wherein receiving the first input from the user comprises: receiving a first input of a user to a moving object in the first preview image;
after the updating displays the third preview image, the method further comprises:
receiving a sixth input of the user;
and responding to the sixth input, taking the moving object as an image center, and shooting a first video, wherein a video frame of the first video corresponds to the third preview image.
10. A camera, comprising: a display module and a receiving module;
the display module is used for displaying a shooting preview interface, the shooting preview interface comprises a first preview image and a third preview image, and the third preview image is obtained by splicing the first preview image and the second preview image;
the receiving module is used for receiving a first input of the first preview image from a user, wherein the first input is used for determining the image center of the third preview image;
and the display module is further used for responding to the first input and updating and displaying the third preview image according to the image center.
11. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the photographing method of any of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210134743.2A CN114449172A (en) | 2022-02-14 | 2022-02-14 | Shooting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210134743.2A CN114449172A (en) | 2022-02-14 | 2022-02-14 | Shooting method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114449172A true CN114449172A (en) | 2022-05-06 |
Family
ID=81374177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210134743.2A Pending CN114449172A (en) | 2022-02-14 | 2022-02-14 | Shooting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114449172A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635566A (en) * | 2015-12-22 | 2016-06-01 | 东莞酷派软件技术有限公司 | Terminal shooting method and terminal shooting device |
CN106210539A (en) * | 2013-12-13 | 2016-12-07 | 华为终端有限公司 | A kind of method obtaining panoramic picture and terminal |
CN106303283A (en) * | 2016-08-15 | 2017-01-04 | Tcl集团股份有限公司 | A kind of panoramic image synthesis method based on fish-eye camera and system |
WO2020238380A1 (en) * | 2019-05-31 | 2020-12-03 | 维沃移动通信有限公司 | Panoramic photography method and terminal device |
CN112437232A (en) * | 2020-11-24 | 2021-03-02 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN112714255A (en) * | 2020-12-30 | 2021-04-27 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN112954218A (en) * | 2019-03-18 | 2021-06-11 | 荣耀终端有限公司 | Multi-channel video recording method and equipment |
CN112954196A (en) * | 2021-01-27 | 2021-06-11 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN113141450A (en) * | 2021-03-22 | 2021-07-20 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and medium |
-
2022
- 2022-02-14 CN CN202210134743.2A patent/CN114449172A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106210539A (en) * | 2013-12-13 | 2016-12-07 | 华为终端有限公司 | A kind of method obtaining panoramic picture and terminal |
CN105635566A (en) * | 2015-12-22 | 2016-06-01 | 东莞酷派软件技术有限公司 | Terminal shooting method and terminal shooting device |
CN106303283A (en) * | 2016-08-15 | 2017-01-04 | Tcl集团股份有限公司 | A kind of panoramic image synthesis method based on fish-eye camera and system |
CN112954218A (en) * | 2019-03-18 | 2021-06-11 | 荣耀终端有限公司 | Multi-channel video recording method and equipment |
WO2020238380A1 (en) * | 2019-05-31 | 2020-12-03 | 维沃移动通信有限公司 | Panoramic photography method and terminal device |
CN112437232A (en) * | 2020-11-24 | 2021-03-02 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN112714255A (en) * | 2020-12-30 | 2021-04-27 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN112954196A (en) * | 2021-01-27 | 2021-06-11 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and readable storage medium |
CN113141450A (en) * | 2021-03-22 | 2021-07-20 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112887617B (en) | Shooting method and device and electronic equipment | |
CN112637500B (en) | Image processing method and device | |
CN112839166B (en) | Shooting method and device and electronic equipment | |
CN113329172B (en) | Shooting method and device and electronic equipment | |
CN113473004A (en) | Shooting method and device | |
CN112437232A (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
CN114125179B (en) | Shooting method and device | |
CN111327823A (en) | Video generation method and device and corresponding storage medium | |
WO2022156672A1 (en) | Photographing method and apparatus, electronic device and readable storage medium | |
CN114390206A (en) | Shooting method and device and electronic equipment | |
CN112738399B (en) | Image processing method and device and electronic equipment | |
CN112672058B (en) | Shooting method and device | |
CN112954197A (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
CN114500852B (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
CN113873160B (en) | Image processing method, device, electronic equipment and computer storage medium | |
CN112653841B (en) | Shooting method and device and electronic equipment | |
CN114285922A (en) | Screenshot method, screenshot device, electronic equipment and media | |
CN114339029A (en) | Shooting method and device and electronic equipment | |
CN114449172A (en) | Shooting method and device and electronic equipment | |
CN114125297A (en) | Video shooting method and device, electronic equipment and storage medium | |
CN112399092A (en) | Shooting method and device and electronic equipment | |
CN114710624B (en) | Shooting method and shooting device | |
CN112911148B (en) | Image processing method and device and electronic equipment | |
CN112672059B (en) | Shooting method and shooting device | |
CN112511744A (en) | Image display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |