Shooting method, device and electronic equipment
By determining the center of the image on the shooting preview interface and updating the stitched wide-angle image, the problem of cumbersome operation of shooting wide-angle photos in the prior art is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202210134743.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-14
AI Technical Summary
The existing method of taking wide-angle photos requires the user to keep steady when moving the electronic device, which is cumbersome and demanding, resulting in poor user experience.
By displaying the shooting preview interface, the user can determine the image center on the first preview image, and the system updates and displays the third preview image obtained by splicing the first preview image and the second preview image according to the input, thereby simplifying the operation of shooting wide-angle images.
It reduces the tedious operation of shooting wide-angle images and the requirements for users’ photography skills, simplifies the user operation process, and improves the shooting experience.
Smart Images

Figure CN114449172B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and specifically relates to a shooting method, device and electronic equipment. Background Art
[0002] As users use more and more of the shooting functions of electronic devices, their requirements for shooting experience are also getting higher and higher.
[0003] In the related art, if a user wants to take a wide-angle photo, he needs to move the electronic device steadily in the indicated direction to take multiple photos, and then automatically stitch them together into a wide-angle photo. However, this shooting method requires the user to keep the electronic device stable in the horizontal direction while moving the electronic device, otherwise the stitching of the wide-angle photo will not be properly connected. Therefore, the existing shooting method is not only cumbersome in operation, but also requires the user to have a certain level of photography skills. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a shooting method, device and electronic device, which can simplify the operation of shooting wide-angle images for users, reduce the complexity of the operation of shooting wide-angle images and the requirements on the user's photography level.
[0005] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising: displaying a shooting preview interface, the shooting preview interface comprising a first preview image and a third preview image, the third preview image being obtained by splicing the first preview image and the second preview image; receiving a first input from a user for the first preview image, the first input being used to determine an image center of the third preview image; and in response to the first input, updating and displaying the third preview image according to the image center.
[0006] In a second aspect, an embodiment of the present application provides a shooting device, comprising: a display module and a receiving module; the display module is used to display a shooting preview interface, the shooting preview interface comprising a first preview image and a third preview image, the third preview image being obtained by splicing the first preview image and the second preview image; the receiving module is used to receive a first input from a user for the first preview image, the first input being used to determine an image center of the third preview image; the display module is also used to update and display the third preview image according to the image center in response to the first input.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, a shooting preview interface can be displayed, the shooting preview interface includes a first preview image and a third preview image, the third preview image is obtained by splicing the first preview image and the second preview image; a first input of the user to the first preview image is received, the first input is used to determine the image center of the third preview image; in response to the first input, the third preview image is updated and displayed according to the image center. Through this scheme, since the image center can be determined by the first input, and the third preview image spliced by the first preview image and the second preview image is updated and displayed according to the image center, when the user shoots a wide-angle image, he only needs to perform an input to determine the image center on the first preview image to obtain the third preview image. In this way, the user's operation of shooting a wide-angle image can be simplified, and the cumbersomeness of the operation of shooting a wide-angle image and the requirements for the user's photography level can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a flowchart of a shooting method provided in an embodiment of the present application;
[0013] Figure 2 This is one of the schematic diagrams of the image processing method of the shooting method provided in the embodiment of the present application;
[0014] Figure 3 This is one of the interface operation diagrams of the shooting method provided in the embodiment of the present application;
[0015] Figure 4 This is the second schematic diagram of the image processing method of the shooting method provided in the embodiment of the present application;
[0016] Figure 5 This is the third schematic diagram of the image processing method of the shooting method provided in the embodiment of the present application;
[0017] Figure 6This is the fourth schematic diagram of the image processing method of the shooting method provided in the embodiment of the present application;
[0018] Figure 7 This is the second interface operation diagram of the shooting method provided in the embodiment of the present application;
[0019] Figure 8 is a schematic diagram of the structure of a photographing device provided in an embodiment of the present application;
[0020] Fig. 9 It is one of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;
[0021] Fig.10 This is the second hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0024] The following is a detailed description of the shooting method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0025] The shooting method provided in the embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the shooting method. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, wearable devices, etc. The shooting method provided in the embodiment of the present application is described below using the electronic device as an example of the execution subject.
[0026] The electronic device provided in the embodiment of the present application may include a first camera and a second camera, wherein the first camera may be a front camera and the second camera may be a rear camera; or the first camera may be a rear camera and the second camera may be a front camera. The first camera and the second camera may be ultra-wide-angle cameras, for example, the first camera and the second camera may be 180° fisheye lenses.
[0027] The shooting method provided in the embodiment of the present application is described in detail below by taking the first camera and the second camera as 180° fisheye lenses as an example.
[0028] like Figure 1 As shown, the embodiment of the present application provides a shooting method, which may include steps 101 to 103:
[0029] Step 101: Display the shooting preview interface.
[0030] The shooting preview interface may include 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.
[0031] If the user wants to shoot a wide-angle image or a wide-angle video, the user may first trigger the electronic device to display a shooting preview interface, which may include a first preview image and a third preview image, and may also include a second preview image.
[0032] Optionally, the first preview image and the second preview image may be images captured by fisheye lenses with different shooting angles, that is, the first preview image and the second preview image may be preview images of different capture angles captured at the same image capture point by fisheye lenses with different shooting angles. For example, the first preview image may be captured by a first camera, and the second preview image may be captured 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 splicing the first sub-image, the first preview image, and the second sub-image.
[0033] For example, Figure 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 splicing the first sub-image 221 , the first preview image 210 , and the second sub-image 222 .
[0034] Step 102: Receive a first input from a user regarding the first preview image.
[0035] The first input may be used to determine the image center of the third preview image.
[0036] It should be noted that the above-mentioned image center refers to the image center point of the third preview image when all image areas of the third preview image are displayed.
[0037] Optionally, the electronic device determines the image center of the third preview image through the first input, which may specifically include the following two methods: Method 1 is that the electronic device may determine the input position of the first input as the image center of the third preview image; Method 2 is that the electronic device may determine the position in the second preview image relative to the input position of the first input as the image center of the third preview image.
[0038] For example, Figure 3 As shown, the electronic device can display a first preview image in area 31 of the shooting preview interface, a second preview image in area 32, and a third preview image in area 33. The user can make a first input to the first preview image, and the electronic device can determine the image center 34 of the third preview image from the first preview image in response to the first input.
[0039] Step 103: In response to the first input, update and display the third preview image according to the center of the image.
[0040] Optionally, when the center of the image is different from the center of the third preview image in the height direction, the electronic device may first crop the first preview image into a third sub-image, crop the second preview image into a fourth sub-image, then splice the third sub-image and the fourth sub-image to obtain the third preview image, and update and display the third preview image.
[0041] For example, Figure 4 As shown, the electronic device can determine the image center 41 according to the first input of the user on the first preview image 210. Since the position of the image center 41 is different from the center 42 of the third preview image 231 before updating and displaying in the height direction, the electronic device can firstly crop the first preview image 210 along the cutting line f1 into the third sub-image 43, and crop the second preview image 220 along the cutting line f2 into the fourth sub-image 44, and then splice the third sub-image 43 and the fourth sub-image 44 to obtain the third preview image 232. Finally, the electronic device can cancel the display of the third preview image 231, and update the display of the third preview image 232.
[0042] Based on the above scheme, since 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 according to the image center when the image center is different from the center of the third preview image in the height direction, a third preview image centered on the image center in the height direction can be obtained.
[0043] Optionally, when 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; stitch the fifth sub-image, the first preview image and the sixth sub-image in sequence to obtain the third preview image; and update and display the third preview image.
[0044] For example, Figure 5 As shown, the electronic device can determine the image center 51 according to the first input of the user on the first preview image 210. Since the image center 51 is located at a different position from the center 52 of the third preview image 231 before updating the display in the horizontal direction, the electronic device can crop the second preview image 220 along the cutting line f3 into a fifth sub-image 53 and a sixth sub-image 54. Afterwards, the electronic device can sequentially splice the fifth sub-image 53, the first preview image 210 and the sixth sub-image 54 to obtain the third preview image 232. Finally, the electronic device can cancel the display of the third preview image 231 and update the display of the third preview image 232.
[0045] Based on the above scheme, since the second preview image can be cropped into the fifth sub-image and the sixth sub-image according to the image center when the image center is different from the center of the third preview image in the horizontal direction, a third preview image centered on the image center in the horizontal direction can be obtained.
[0046] Optionally, after updating and displaying the third preview image, the electronic device may also receive a second input from the user; in response to the second input, capture a first image corresponding to the first preview image and a second image corresponding to the second preview image; and output a third image, wherein the third image is obtained based on the image center, the first image and the second image.
[0047] Specifically, when the user believes that the updated displayed third preview image meets his or her photography intention, the user can make a second input to the shooting control of the electronic device. Accordingly, the electronic device can receive the user's second input and, in response to the second input, shoot a first image corresponding to the first preview image and a second image corresponding to the second preview image, and then obtain a third image by cropping and splicing the first image and the second image according to the center of the image, and finally, output the obtained third image.
[0048] Based on the above solution, the user can trigger the electronic device to capture a third image corresponding to the third preview image through the second input.
[0049] Optionally, before outputting the third image, the electronic device may also receive a third input from the user when the electronic device updates the first shooting angle to the second shooting angle; capture a fourth image and a fifth image in response to the third input; and perform image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image, respectively.
[0050] For example, Figure 6 As shown, after the electronic device acquires the first image 61 through the first camera and the second image 62 through the second camera, the electronic device can output instruction information to guide the user to flip the electronic device 90° in the horizontal direction, and then acquire the fourth image 63 through the first camera and the fifth image 64 through the second camera. Since the side edge area "1" of the first image 61 is located in the central area of the fifth image 64, the side edge area "4" of the first image 61 is located in the central area of the fourth image 63, the side edge area "5" of the second image 62 is located in the central area of the fourth image 63, and the side edge area "8" of the second image 62 is located in the central area of the fifth image 64, the electronic device can perform edge image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image, respectively.
[0051] Based on the above scheme, since the first image and the second image can be subjected to edge quality enhancement processing according to the fourth image and the fifth image respectively, the image quality of the first image and the second image can be improved, thereby improving the image quality of the final third image.
[0052] Optionally, after outputting the third image, the electronic device may further display a stereoscopic image corresponding to the third image; receive a fourth input from the user; and update and display the stereoscopic image in response to the fourth input; the updating and displaying of the stereoscopic image may include at least one of the following: displaying the stereoscopic image in an enlarged manner; displaying the stereoscopic image in a reduced manner; and displaying an image area of a target viewing angle of the stereoscopic image.
[0053] Specifically, since the first camera and the second camera are 180° fisheye lenses, the electronic device can obtain a 360° wide-angle image by stitching the first image and the second image, and then the electronic device can establish a three-dimensional stereo image of the wide-angle image; when displaying the three-dimensional stereo image, the electronic device can receive a fourth input from the user for the three-dimensional stereo image; and in response to the fourth input, update the displayed stereo image; the updated display of the stereo image may include at least one of the following: zooming in and displaying the stereo image; zooming out and displaying the stereo image; displaying the image area of the target viewing angle of the stereo image.
[0054] For example, updating and displaying a stereoscopic image includes displaying an image area of a target viewing angle of the stereoscopic image, and the fourth input is a swiping input. The electronic device may combine the first image and the second image into a spherical image through an algorithm, and when displaying the spherical image, the user may perform a sliding input on the spherical image, and the electronic device may respond to the sliding input and display image areas of different viewing angles of the spherical image according to the input direction of the sliding input.
[0055] Optionally, the user may also trigger the electronic device to share the stereoscopic image with other users, or save the stereoscopic image locally.
[0056] Based on the above solution, since a 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 interest and intuitiveness of the image display can be increased.
[0057] Optionally, after outputting the third image, the electronic device may also store the first image, the second image and the third image; and while displaying the third image, receive a fifth input from the user; in response to the fifth input, synthesize a sixth image based on the first image and the second image, and update and display the third image as the sixth image, the image center of the sixth image being different from the image center of the third image.
[0058] Specifically, after outputting the third image, the electronic device can store the first image, the second image and the third image. When the user is not satisfied with the image area at the center of the third image, the first image and the second image can be cropped and spliced again to obtain a sixth image whose image center is different from that of the third image.
[0059] Exemplarily, when the user wants to obtain a new stitched image, the user can trigger the electronic device to display the third image. When the third image is displayed, the electronic device can receive the user's fifth input for the third image; and in response to the fifth input, determine a new image center from the third image. Thereafter, the electronic device can 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.
[0060] Based on the above scheme, since the first image, the second image and the third image can be stored, and the sixth image whose image center is different from the third image can be determined based on the first image, the second image and the third image, the user can synthesize a new wide-angle image at any time, thereby improving the fault tolerance of the user's initial synthesis of a wide-angle image.
[0061] Optionally, the electronic device receiving the first input from the user may specifically include: the electronic device receiving the first input from the user on the moving object in the first preview image. After updating and displaying the third preview image, the electronic device may also receive a sixth input from the user; and in response to the sixth input, taking the moving object as the image center, shooting a first video, the video frame of the first video corresponding to the third preview image.
[0062] Specifically, if the user wants to take a video of a moving object, the electronic device can be triggered to obtain the video image within the shooting range of the first camera through the first camera, and to obtain the video image within the shooting range of the second camera through the second camera. Since the first camera and the second camera are 180° fisheye lenses, the electronic device can obtain the video image of the moving object in any orientation.
[0063] After the electronic device receives the first input from the user regarding the moving object in the first preview image, the moving object can be used as the video focus, and a video preview screen with the moving object as the focus can be displayed in the floating window area of the shooting preview interface. Afterwards, the electronic device can receive the sixth input from the user; and in response to the sixth input, the first video can be shot with the moving object as the image center.
[0064] Optionally, before receiving the first input, the electronic device may also determine, by default, the shooting object with the highest movement frequency in the shooting preview interface as the moving object.
[0065] For example, Figure 7 As shown, when the shooting preview interface is displayed, after the user makes a first input to the moving object 71, the electronic device can display a video preview screen 73 with the moving object 71 as the focus in the floating window area 72. Afterwards, the user can make a sixth input to the video shooting control, and the electronic device can shoot a first video corresponding to the screen displayed in the video preview screen 73 in response to the sixth input.
[0066] It should be noted that, when the moving object is within the shooting range of the first camera, the electronic device can display the preview picture captured by the first camera in the above-mentioned floating window area; when the moving object is within the shooting range of the second camera, the electronic device can display the preview picture captured by the second camera in the above-mentioned floating window area.
[0067] Based on the above solution, since the first video with the moving object as the image center can be shot, when the user wants to shoot a tracking video, there is no need to move the electronic device multiple times.
[0068] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.
[0069] like Figure 8 As shown, the embodiment of the present application also provides a shooting device 800, including: a display module 801 and a receiving module 802; the display module 801 is used to display a shooting preview interface, the shooting preview interface includes a first preview image and a third preview image, the third preview image is obtained by splicing the first preview image and the second preview image; the receiving module 802 is used to receive a first input from a user for the first preview image, the first input is used to determine the image center of the third preview image; the display module 801 is also used to update and display the third preview image according to the image center in response to the first input.
[0070] Optionally, the first preview image and the second preview image are images captured by fisheye lenses with different shooting angles, the second preview image includes a first sub-image and a second sub-image; and the third preview image is a wide-angle image obtained by sequentially stitching the first sub-image, the first preview image, and the second sub-image.
[0071] Optionally, continue to refer to Figure 8 The photographing device 800 may further include a processing module 803. The processing module 803 is used to, when 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 used to update and display the third preview image.
[0072] Optionally, the processing module 803 is used to, when the center of the image 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; splice the fifth sub-image, the first preview image and the sixth sub-image in sequence to obtain the third preview image; and the display module 801 is specifically used to update and display the third preview image.
[0073] Optionally, the receiving module 802 is further used to receive a second input from a user; the processing module 803 is further used 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 output a third image, wherein the third image is obtained based on the image center, the first image and the second image.
[0074] Optionally, the receiving module 802 is also used 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 also used to capture a fourth image and a fifth image in response to the third input; and perform image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image, respectively.
[0075] Optionally, the display module 801 is further used to display a stereoscopic image corresponding to the third image; the receiving module 802 is further used to receive a fourth input from a user; the display module 801 is further used to update and display the stereoscopic image in response to the fourth input; the updating and displaying of the stereoscopic image includes at least one of the following: zooming in and displaying the stereoscopic image; zooming out and displaying the stereoscopic image; displaying an image area of a target viewing angle of the stereoscopic image.
[0076] Optionally, the processing module 803 is also used to store the first image, the second image and the third image; the receiving module 802 is also used to receive a fifth input from the user while displaying the third image; the processing module 803 is also used to synthesize a sixth image based on the first image and the second image in response to the fifth input; the display module 801 is also used to update and display the third image as the sixth image, and the image center of the sixth image is different from the image center of the third image.
[0077] Optionally, the receiving module 802 is specifically used to receive a first input from a user regarding a moving object in the first preview image; the receiving module 802 is also used to receive a sixth input from the user; the processing module 803 is also used to respond to the sixth input, shoot a first video with the moving object as the image center, and the video frame of the first video corresponds to the third preview image.
[0078] In the embodiment of the present application, since the image center can be determined by the first input, and the third preview image obtained by stitching the first preview image and the second preview image is updated and displayed according to the image center, when shooting a wide-angle image, the user only needs to perform an input to determine the image center on the first preview image to obtain the third preview image. In this way, the user's operation of shooting a wide-angle image can be simplified, and the complexity of the operation of shooting a wide-angle image and the requirements on the user's photography level can be reduced.
[0079] The shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.
[0080] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0081] The shooting device provided in the embodiment of the present application can achieve Figures 1 to 7 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0082] Alternatively, if Fig. 9 As shown, an embodiment of the present application further provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores a program or instruction that can be executed on the processor 901, and when the program or instruction is executed by the processor 901, each step of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0083] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0084] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0085] 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 and other components.
[0086] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0087] Among them, the display unit 1006 is used to display a shooting preview interface, which 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 user input unit 1007 is used to receive a first input from a user on the first preview image, and the first input is used to determine the image center of the third preview image; the display unit 1006 is also used to update and display the third preview image according to the image center in response to the first input.
[0088] In the embodiment of the present application, since the image center can be determined by the first input, and the third preview image obtained by stitching the first preview image and the second preview image is updated and displayed according to the image center, when shooting a wide-angle image, the user only needs to perform an input to determine the image center on the first preview image to obtain the third preview image. In this way, the user's operation of shooting a wide-angle image can be simplified, and the complexity of the operation of shooting a wide-angle image and the requirements on the user's photography level can be reduced.
[0089] Optionally, the processor 1010 is used to, when 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 unit 1006 is specifically used to update and display the third preview image.
[0090] In the embodiment of the present application, since 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 according to the image center when the image center is different from the center of the third preview image in the height direction, a third preview image centered on the image center in the height direction can be obtained.
[0091] Optionally, the processor 1010 is used to, when the center of the image 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 splice the fifth sub-image, the first preview image and the sixth sub-image to obtain the third preview image; and the display unit 1006 is specifically used to update and display the third preview image.
[0092] 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 according to the image center when the image center is different from the center of the third preview image in the horizontal direction, a third preview image centered on the image center in the horizontal direction can be obtained.
[0093] Optionally, the user input unit 1007 is also used to receive a second input from the user; the processor 1010 is also used 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 output a third image, wherein the third image is obtained based on the image center, the first image and the second image.
[0094] In the embodiment of the present application, the user can trigger the electronic device to capture a third image corresponding to the third preview image through the second input.
[0095] Optionally, the user input unit 1007 is also used 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 processor 1010 is also used to capture a fourth image and a fifth image in response to the third input; and perform image quality enhancement processing on the first image and the second image according to the fourth image and the fifth image, respectively.
[0096] In the embodiment of the present application, since the first image and the second image can be subjected to edge quality enhancement processing according to the fourth image and the fifth image respectively, the image quality of the first image and the second image can be improved, thereby improving the image quality of the final third image.
[0097] Optionally, the display unit 1006 is further used to display a stereoscopic image corresponding to the third image; the user input unit 1007 is further used to receive a fourth input from the user; the display unit 1006 is further used to update and display the stereoscopic image in response to the fourth input; the updating and displaying of the stereoscopic image includes at least one of the following: zooming in and displaying the stereoscopic image; zooming out and displaying the stereoscopic image; displaying an image area of a target viewing angle of the stereoscopic image.
[0098] In the embodiment of the present application, since a 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 interest and intuitiveness of the image display can be increased.
[0099] Optionally, the processor 1010 is further used to store the first image, the second image and the third image; the user input unit 1007 is further used to receive a fifth input from the user while displaying the third image; the processor 1010 is further used to synthesize a sixth image based on the first image and the second image in response to the fifth input; the display unit 1006 is further used to update the display of the third image to the sixth image, and the image center of the sixth image is different from the image center of the third image.
[0100] In the embodiment of the present application, since the first image, the second image and the third image can be stored, and a sixth image whose image center is different from that of the third image can be determined based on the first image, the second image and the third image, the user can synthesize a new wide-angle image at any time, thereby improving the fault tolerance of the user's initial synthesis of a wide-angle image.
[0101] Optionally, the user input unit 1007 is specifically used to receive a first input from a user regarding a moving object in the first preview image; the user input unit 1007 is also used to receive a sixth input from the user; the processor 1010 is also used to respond to the sixth input, shoot a first video with the moving object as the image center, and the video frame of the first video corresponds to the third preview image.
[0102] In the embodiment of the present application, since the first video with the moving object as the image center can be shot, when the user wants to shoot a tracking focus video, there is no need to move the electronic device multiple times.
[0103] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture 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, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called 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 (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0104] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0105] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0106] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0107] 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 disk or an optical disk.
[0108] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0109] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0110] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0111] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0113] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting method, characterized in that: include: Displaying a shooting preview interface, the shooting preview interface including a first preview image and a third preview image, the third preview image being obtained by splicing the first preview image and the second preview image, the first preview image and the second preview image being images shot by fisheye lenses with different acquisition viewing angles; receiving a first input from a user regarding the first preview image, wherein the first input is used to determine an image center of the third preview image; In response to the first input, when the center of the image is different from the center of the third preview image in the height direction, cropping the first preview image into a third sub-image, cropping the second preview image into a fourth sub-image, and splicing the third sub-image and the fourth sub-image to obtain the third preview image; The third preview image is updated and displayed.
2. The shooting method according to claim 1, characterized in that: 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, characterized in that: The method further comprises: In response to the first input, if the center of the image is different from the center of the third preview image in the horizontal direction, cropping 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 the third preview image; The third preview image is updated and displayed.
4. The method according to any one of claims 1 to 3, characterized in that: After updating and displaying the third preview image, the method further includes: receiving a second input from the user; In response to the second input, capturing a first image corresponding to the first preview image and a second image corresponding to the second preview image; A third image is output, where the third image is obtained according to the image center, the first image, and the second image.
5. The shooting method according to claim 4, characterized in that: Before outputting the third image, the method further includes: When the electronic device updates the first shooting angle to the second shooting angle, receiving a third input from the user; In response to the third input, capturing a fourth image and a fifth image; The first image and the second image are respectively enhanced in quality according to the fourth image and the fifth image.
6. The shooting method according to claim 4, characterized in that: After outputting the third image, the method further includes: displaying a stereoscopic image corresponding to the third image; receiving a fourth input from the user; In response to the fourth input, updating and displaying the stereoscopic image; The updating and displaying of the stereoscopic image comprises at least one of the following: Enlarging and displaying the stereoscopic image; Zooming out and displaying the stereoscopic image; An image area showing the stereoscopic image target viewing angle.
7. The shooting method according to claim 4, characterized in that: After outputting the third image, the method further includes: storing the first image, the second image, and the third image; In a case where the third image is displayed, receiving a fifth input from the user; In response to the fifth input, a sixth image is synthesized according to the first image and the second image, and the third image is updated and displayed as the sixth image, wherein an image center of the sixth image is different from an image center of the third image.
8. The method according to claim 1, characterized in that The receiving a first input from a user comprises: receiving a first input from a user regarding a moving object in the first preview image; After updating and displaying the third preview image, the method further includes: receiving a sixth input from the user; In response to the sixth input, a first video is captured with the moving object as the image center, and a video frame of the first video corresponds to the third preview image.
9. A photographing device, characterized in that: include: Display module and receiving module; The display module is used to display a shooting preview interface, wherein the shooting preview interface includes a first preview image and a third preview image, wherein the third preview image is obtained by splicing the first preview image and the second preview image, and the first preview image and the second preview image are images shot by fisheye lenses with different shooting angles; The receiving module is configured to receive a first input from a user regarding the first preview image, where the first input is used to determine an image center of the third preview image; The display module is further used to, in response to the first input, 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 with the fourth sub-image to obtain the third preview image when the center of the image is different from the center of the third preview image in the height direction; and update and display the third preview image.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the shooting method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Terminal shooting method and terminal shooting device
CN105635566A
Method for obtaining panoramic image and terminal
CN106210539A
