The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides a panoramic image shooting method and electronic equipment, wherein in the process of shooting a panoramic image, an ith frame of image can be obtained, and the ith frame of image is displayed on a panoramic shooting interface; receiving a first input of a user, and deleting at least one frame of image in the i frames of images acquired by the electronic equipment from the panoramic shooting interface in response to the first input; and receiving a second input of the user, and responding to the second input, and re-acquiring the at least one frame of image, wherein i is a positive integer. According to the scheme, in the process of shooting the panoramic image by the electronic equipment, the user can trigger the electronic equipment to delete at least one frame of image in the i frame of image acquired by the electronic equipment and then trigger the electronic equipment to reacquire the at least one frame of image deleted by the electronic equipment, so that in the process of shooting the panoramic image, even if a certain frame of image has a problem, the user only needs to trigger the electronic equipment to delete and reacquire the frame of image with the problem, and the electronic equipment does not need to be triggered to reacquire the whole panoramic image. Therefore, the panoramic image shooting method provided by the embodiment of the invention can improve the efficiency of shooting the panoramic image by the electronic equipment.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the panoramic image shooting method provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the panoramic image shooting method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the panoramic image shooting method may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the panoramic image shooting method provided by the embodiment of the invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution subject of the panoramic image shooting method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the panoramic image shooting method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily explain a panoramic image shooting method provided by an embodiment of the present invention.
In the embodiment of the invention, the electronic equipment can sequentially acquire the multi-frame images in the process of shooting the panoramic image by the electronic equipment. Specifically, each time the electronic device acquires one frame of image, the electronic device may display the one frame of image in the panorama shooting interface. After the electronic device acquires at least one frame of image, if the user considers that the at least one frame of image acquired by the electronic device includes frame images that do not meet the use requirement (e.g., the definition is low, the acquired content is not intended by the user, etc.) of the electronic device, the user may trigger the electronic device to delete the frames of image, and then trigger the electronic device to reacquire the frames of image. Therefore, in the process of shooting the panoramic image electronically, even if a certain frame of image acquired by the electronic equipment has a problem, the user can directly trigger the electronic equipment to delete and reacquire the frame of image without triggering the electronic equipment to shoot the whole panoramic image again, and therefore the efficiency of shooting the panoramic image by the electronic equipment can be improved.
A panoramic image photographing method according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides a panoramic image photographing method, which may include S201-S205 described below.
S201, in the process of shooting the panoramic image, the electronic equipment acquires the ith frame of image and displays the ith frame of image on a panoramic shooting interface.
Wherein i is a positive integer.
In the embodiment of the invention, in the process of shooting the panoramic image by the electronic equipment, the electronic equipment can sequentially acquire the multi-frame images for synthesizing the panoramic image. When the electronic device acquires one frame of image, the frame of image can be displayed on the panoramic shooting interface. Specifically, when the electronic device acquires the ith frame of image, the electronic device may display the ith frame of image in the panoramic shooting interface.
It should be noted that, in the embodiment of the present invention, the manner in which the electronic device acquires the ith frame image may be that the electronic device acquires the ith frame image in real time through a camera of the electronic device.
Optionally, in this embodiment of the present invention, when i is greater than 1, after the electronic device displays the ith frame image on the panoramic shooting interface, the electronic device may display the target segmentation identifier on the panoramic shooting interface.
The target segmentation identifier may be used to distinguish the ith frame image from the (i-1) th frame image.
It is understood that after the electronic device acquires one frame of image, the electronic device may display a division identifier on the panorama shooting interface every time the electronic device acquires one frame of image, and the division identifier may also be used to distinguish the frame of image acquired by the electronic device from a previous frame of image of the frame of image. In this way, the user can be enabled to clearly distinguish each frame of image acquired by the electronic device.
Optionally, in this embodiment of the present invention, the target segmentation identifier may be a triangle identifier or a dot identifier displayed at the top of the start end of the ith frame image, or may be a dashed line identifier displayed at the start end of the ith frame image. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the screen of the electronic device may be a scroll screen (a flexible screen) or a non-scroll screen. The screen of the electronic device is different, and the manner in which the electronic device executes S201 may be different.
For convenience of description, in the following embodiments, a case where the screen of the electronic device is a scroll screen is referred to as a case one, and a case where the screen of the electronic device is a non-scroll screen is referred to as a case two.
The manner in which the electronic device executes the above-mentioned S201 is exemplarily described below for the above-mentioned two cases (case one and case two), respectively.
Optionally, in the embodiment of the present invention, in the case one (the screen of the electronic device is a scroll screen), in the process of shooting the panoramic image by the electronic device, the user may trigger the screen (that is, the scroll screen) of the electronic device to gradually unfold to a position, so as to trigger the electronic device to acquire the ith frame image. And, the electronic device may display the i-th frame image in a region where the scroll screen is unwound.
Optionally, for the first case, the above S201 may be specifically implemented by the following S201a and S201 b.
S201a, in the process of shooting the panoramic image, the electronic equipment receives a third input that a user triggers the scroll screen to be unfolded to the first position.
S201b, the electronic device, in response to the third input, acquires an ith frame image.
The panoramic shooting interface can be an area where the scroll screen is unfolded.
For the first case, in the process of shooting the panoramic image by the electronic device, the user may trigger the scroll screen to gradually unfold, and when the scroll screen is unfolded to the first position, the electronic device may acquire the ith frame image and may display the ith frame image in an area where the scroll screen is unfolded.
In the embodiment of the invention, along with the pulling of the scroll screen, the camera arranged at the top of the shaft of the scroll screen can rotate clockwise. When the camera is rotated by a certain angle (set by a manufacturer of the electronic device in the electronic device, for example, 15 degrees), the camera may capture one frame of image, that is, the electronic device obtains one frame of image.
It can be understood that the first position may be a position where the scroll screen is unfolded when the camera of the electronic device is rotated to an angle of acquiring the ith frame. Specifically, the position where the scroll screen is pulled out from the shaft of the scroll screen may be used.
Optionally, for the first case, after the step S201b, the electronic device may display the target segmentation identifier on a panorama shooting interface. In this way, the user can be enabled to clearly distinguish each frame image of the i-frame images that the electronic device has acquired.
For example, assuming that i is 4, that is, the electronic device has acquired 4 frame images, as shown in fig. 3, the electronic device may display 3segmentation markers 31 on the synthesized image (which may also be referred to as a fusion map) of the 4 frame images, where each segmentation marker is used to distinguish (or mark) adjacent frame images in the 4 frame images.
It should be noted that, in the embodiment of the present invention, a user may trigger the electronic device to adjust the position of the target division identifier through a drag input to the target division identifier.
Optionally, in the embodiment of the present invention, as for the second case (where the screen of the electronic device is a non-scroll screen), the panoramic shooting interface of the electronic device may include a shooting preview area and a frame image preview area. In a case where the electronic device acquires the ith frame image, the electronic device may display the ith frame image in both the shooting preview area and the frame image preview area.
Optionally, for the second case, the step S201 may be specifically implemented by the step S201c described below.
S201c, in the process of shooting the panoramic image, the electronic equipment acquires the ith frame image, and displays the ith frame image in the shooting preview area and the frame image preview area in the panoramic shooting interface.
The electronic device may display the synthesized image of the acquired i-frame image in the shooting preview area, and display each frame image of the acquired i-frame image in the frame image preview area.
It is understood that each frame image displayed in the frame image preview area is an independent frame image, and may also be referred to as an independent frame.
In the second case, for the i-frame image that has been acquired by the electronic device, the electronic device may display one frame image in both the shooting preview area and the frame image preview area of the panoramic shooting interface every time the electronic device acquires the one frame image. The image displayed in the shooting preview area may be a synthesized image of i-frame images acquired by the electronic device (which may also be referred to as a fusion image of the i-frame images), and the image displayed in the frame image preview area may be each frame image in the i-frame images acquired by the electronic device.
It should be noted that, for the second case, the user may manually rotate the electronic device, that is, manually control the camera of the electronic device to rotate, so as to trigger the electronic device to acquire different frame images.
For example, assuming that i is 4, that is, when the electronic device is rotated to a certain degree by the user holding the electronic device, the electronic device has acquired 4 frames of images, then as shown in fig. 4, the electronic device may display a fusion image (which may also be referred to as a preview image) of the 4 frames of images in ashooting preview area 32 in the panoramic shooting interface, and display each frame of images in the 4 frames of images in a frameimage preview area 33, respectively. In this way, each frame of image acquired by the electronic equipment and the panoramic image synthesized by the frame of images can be clearly shown to the user, so that the effect of the shot panoramic image can be clearly shown to the user.
Optionally, in the embodiment of the present invention, the electronic device may also display a thumbnail of each frame image in the i-frame image acquired by the electronic device in the frame image preview area. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
S202, the electronic equipment receives a first input of a user.
S203, the electronic equipment responds to the first input of the user, and at least one frame of image in the i frames of images acquired by the electronic equipment is deleted from the panoramic shooting interface.
In the embodiment of the present invention, after the electronic device displays the i-frame images acquired by the electronic device on the panorama shooting interface, if the user considers that the shooting effect of some images (i.e., the at least one frame image) in the i-frame images is not good, the user may trigger the electronic device to delete the images through the first input.
Optionally, in the first case (the screen of the electronic device is a scroll screen), when the user wants to trigger the electronic device to delete an image in the i-frame image that has been acquired by the electronic device, the user may trigger the screen of the electronic device to be retracted to another position (for example, the second position in the embodiment of the present invention), so as to trigger the electronic device to delete at least one image in the i-frame image.
Optionally, for the first case, the first input may be an input that a user triggers the scroll screen to retract (also referred to as retracting) to the second position.
It should be noted that, in the first case, when the user triggers the scroll screen to retract to the second position, the camera of the electronic device may rotate counterclockwise along with the retraction of the scroll screen. The angle of the camera rotation can be determined according to the size (for example, the length) of the reel screen to be retracted.
Optionally, in the first case, the electronic device may determine the image to be deleted according to the first position and the second position, that is, determine the at least one frame of image from the i-frame of image acquired by the electronic device, and then delete the at least one frame of image.
Optionally, in the first case, the step S203 may be specifically implemented by the following steps S203a and S203 b.
S203a, the electronic device determines at least one frame image from the i frame images according to the first position and the second position.
S203b, the electronic device deletes the at least one frame of image.
Optionally, in this embodiment of the present invention, the at least one frame of image may be a complete image displayed in a display area (hereinafter, referred to as a to-be-deleted area) formed by the first position and the second position, or may be an image that satisfies a target condition and is displayed in the to-be-deleted area.
Optionally, in this embodiment of the present invention, the target condition may be an image whose content of the image displayed in the area to be deleted is greater than or equal to a preset threshold. The preset threshold may be any possible value such as 50%, 60%, or 40%, and may be determined specifically according to an actual use requirement, which is not limited in the embodiment of the present invention.
Of course, in actual implementation, the electronic device may determine the at least one frame of image according to any other possible rule, which may specifically be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
For example, assuming that the user triggers the scroll screen to retract from theposition 41 shown in (a) of fig. 5 to theposition 42 shown in (b) of fig. 5, the electronic device may delete the image displayed in the display region formed from theposition 41 to theposition 42 shown in (a) of fig. 5, i.e., the 4th frame image 43 shown in (a) of fig. 5.
It should be noted that, when the second position is a starting position of the scroll screen (that is, the scroll screen is completely retracted), the at least one frame of image may be an i-frame image acquired by the electronic device, that is, the electronic device may delete all contents acquired by the electronic device. This corresponds to restarting a new shot.
Optionally, in the second case (the screen of the electronic device is a non-scroll screen), when the user wants to trigger the electronic device to delete an image in an i-frame image acquired by the electronic device, the user may trigger the electronic device to delete the selected image (i.e., delete the at least one frame image) by inputting the image displayed in the frame image preview area.
It is to be understood that, for the second case, the first input may be an input for the user to select at least one frame image from the frame image preview area.
Optionally, in the second case, for each frame of image in the at least one frame of image, the user may click the image first, then hold the image and slide down, so as to trigger the electronic device to delete the image.
For example, as shown in FIG. 6, when the user clicks on the 3rd frame image 44 and holds the 3rd frame image 44 to slide down, the electronic device may determine that the user wants to delete the 3 rd frame image, and then the electronic device may delete the 3 rd frame image after the user's finger is released.
It should be noted that, for the second case, the electronic device may delete the at least one frame image displayed in the shooting preview area and the frame image preview area at the same time.
In addition, when the at least one frame of image selected by the user is an i-frame image acquired by the electronic device, the electronic device may delete all images acquired by the electronic device. In this way, after the electronic device deletes all the images that it has currently acquired, the electronic device may resume a new shot.
Optionally, in the embodiment of the present invention, the electronic device may delete the at least one frame of image displayed in the panoramic shooting interface by deleting the at least one frame of image in the storage space corresponding to the panoramic shooting interface.
Optionally, in the embodiment of the present invention, the storage space corresponding to the panoramic shooting interface may be a dedicated storage space of a panoramic shooting manner in the electronic device, or may be a common storage space of a shooting function of the electronic device. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
And S204, the electronic equipment receives a second input of the user.
S205, the electronic device responds to the second input and acquires the at least one frame of image again.
In the embodiment of the present invention, after the electronic device deletes the at least one frame of image, the user may trigger the electronic device to reacquire the at least one frame of image through the second input. As such, the electronic device may continue to capture the panoramic image it is capturing.
Optionally, in the first case (where the screen of the electronic device is a scroll screen), the user may trigger the electronic device to unfold to the first position again, so as to trigger the electronic device to retrieve the at least one image.
It should be noted that, for the related description of the first position, reference may be specifically made to the detailed description of the first position in the foregoing embodiment, and in order to avoid repetition, details are not described here again.
Illustratively, when the user triggers the electronic device to unfold from theposition 42 shown in (a) of fig. 7 (i.e., the second position) to theposition 41 shown in (b) of fig. 7 (i.e., the first position), the electronic device may retrieve the image deleted by the electronic device (i.e., the new 4th frame image 45 shown in (b) of fig. 7).
Optionally, in the second case (the screen of the electronic device is a non-scroll screen), the user may control the electronic device to align with the shooting scene again, and rotate the electronic device, so that the electronic device reacquires the at least one frame of image.
The embodiment of the invention provides a panoramic image shooting method, and a user can trigger electronic equipment to delete at least one frame of image in an i-frame image acquired by the electronic equipment and then trigger the electronic equipment to reacquire the at least one frame of image deleted by the electronic equipment in the process of shooting a panoramic image by the electronic equipment. Therefore, the panoramic image shooting method provided by the embodiment of the invention can improve the efficiency of shooting the panoramic image by the electronic equipment.
Optionally, in the embodiment of the present invention, for the second case (the screen of the electronic device is a non-scroll screen), after the electronic device deletes the at least one frame of image, the electronic device may display an identifier (for example, an object identifier in the embodiment of the present invention) in the shooting preview area, so as to prompt the user to trigger the electronic device to reacquire the deleted image. In the process of acquiring an image again by the electronic device, the electronic device may acquire one frame of image and match the image with one frame of image adjacent to the image to be acquired again, and in the case that the image matches the adjacent frame of image, the electronic device may determine the image acquired again as the image to be acquired again. Therefore, the accuracy of the image acquired by the electronic equipment can be ensured.
Illustratively, after S203 described above, the panoramic image photographing method provided by the embodiment of the present invention may further include S206 described below. Specifically, S204 may be implemented as S204a described below, and S205 may be implemented as S205a described below.
S206, the electronic equipment displays the target mark at the position of at least one frame of image in the shooting preview area.
The target identifier may be used to instruct to retrieve the at least one frame of image.
S204a, the electronic device receives a second input of the user to capture the first image in the preview area.
S205a, the electronic device, in response to the second input, acquires a second image and determines the second image as the target frame image if the second image matches the first image.
The target frame image may be an image of a frame adjacent to the first image.
In the embodiment of the present invention, after the electronic device deletes the at least one frame of image, the electronic device may display the target identifier in a position where the at least one frame of image is located in the shooting preview area, and then the user may rotate the electronic device according to the target identifier until a camera of the electronic device acquires a scene to be re-shot. The user may then trigger the electronic device to acquire a frame image (i.e., the second image) by inputting the first image, and if the first image matches the second image, the electronic device may determine the second image as the target frame image.
Optionally, in the embodiment of the present invention, the target identifier may be any possible identifier, such as a dashed box, which may be determined specifically according to an actual use requirement, and the embodiment of the present invention is not limited.
In an embodiment of the present invention, the matching between the second image and the first image may be used to indicate: the images synthesized by the first image and the second image are continuous images in the images of the scene where the electronic equipment is located.
Optionally, in the embodiment of the present invention, the manner of determining whether the second image matches the first image may include two manners, which are a first manner and a second manner. These two modes are specifically exemplified below.
The first method is as follows: the user subjectively judges whether the second image is matched with the first image.
The second method comprises the following steps: and the electronic equipment judges whether the second image is matched with the first image or not through a content matching algorithm in the electronic equipment.
It will be appreciated that the first image described above is used to correct the image (i.e., the second image) that was re-acquired for the electronic device. If the second image does not match the first image, the user may continue to adjust the position of the camera of the electronic device, and may trigger the electronic device to re-acquire the second image until the second image acquired by the electronic device matches the first image.
The following describes an exemplary process of the electronic device to re-acquire an image of the at least one frame of image.
For example, in the case of one of the at least one frame of image, assuming that the one frame of image is a K-th frame of image (K is a positive integer) in the i (i is greater than 1) frames of images obtained, after the electronic device deletes the K-th frame of image, the user may align the camera of the electronic device with the shooting scene again, and click on an image (i.e., the first image, which may also be referred to as a correction frame) adjacent to the K-th frame of image to perform framing (if the K-th frame of image is the first frame of image, the first frame of image in the images that are not deleted may be selected, otherwise, the K-1-th frame of image may be selected for correction, and the user may observe whether the content (i.e., the second image) obtained by the camera matches the correction frame. If so, the electronic device may determine the second image as the target frame image, so that the user may click to capture the fusion image in the preview area and continue to rotate the electronic device (if the kth frame image is the first frame image, the electronic device may be rotated counterclockwise at this time; otherwise, the mobile phone may be rotated clockwise), thereby triggering the electronic device to capture the deleted image again.
In an embodiment of the present invention, after the at least one frame of image is obtained again, the image obtained again by the electronic device may be displayed in the original position of the deleted frame of image.
For example, assuming that the at least one frame of image is the 3 rd frame of image that has been acquired by the electronic device, in the case that the 3 rd frame of image that has been acquired by the electronic device matches the 2 nd frame of image, the electronic device may determine the 3 rd frame of image that has been acquired again as the 3 rd frame of image that is to be acquired again. And the electronic device may display its reacquired frame 3 image in the preview image in the photographing preview area as shown at 51 in fig. 8, and display its reacquired frame 3image 52 in the frame image preview area.
In the embodiment of the invention, after the electronic device reacquires the at least one frame of image, the user can observe the image reacquired by the electronic device, and if the user feels satisfied, the user can click the last frame of image in the shooting preview area acquired by the electronic device, and continue to perform framing correction by using the frame of image. After the image viewed by the electronic device is matched with the image, the user can click the fusion graph, so that the electronic device can be triggered to continue shooting along the current content. And so on until a panoramic image satisfactory to the user is captured.
Optionally, in the embodiment of the present invention, when a user wants to trigger the electronic device to edit a certain panoramic image (for example, a target panoramic image in the embodiment of the present invention), the user may trigger the electronic device to display the panoramic image first, and then edit the panoramic image. Specifically, the electronic device may display the panoramic image and each frame of image for synthesizing the panoramic image on the image editing interface, and then the user may trigger the electronic device to update the display parameters of the images displayed in the image editing interface through input of the panoramic image or input of the frame of images.
Optionally, the panoramic image shooting method provided by the embodiment of the present invention may further include S207 to S209 described below.
And S207, the electronic equipment displays the target panoramic image and the M frames of images for synthesizing the target panoramic image on an image editing interface.
And S208, the electronic equipment receives a fourth input of the user.
S209, the electronic device, in response to a fourth input of the user, updates the display parameters of the N frames of images in the target panoramic image, and updates the display parameters of the N frames of images in the M frames of images.
The fourth input may be input to N frames of images in the target panoramic image, or may be input to N frames of images in M frames of images, where M and N are positive integers.
In the embodiment of the present invention, when the electronic device displays the target panoramic image and the M frames of images for synthesizing the target panoramic image on the image editing interface, the user may trigger the electronic device to update the display parameters of the N frames of images in the target panoramic image and update the display parameters of the N frames of images in the M frames of images by fourth input of the N frames of images in the target panoramic image or by input of the N frames of images in the M frames of images. In this way, the user can trigger the electronic device to update the display parameters of the target panoramic image and the M-frame image through the input of a part of the image.
Optionally, in the embodiment of the present invention, the target panoramic image may be a panoramic image shot by an electronic device, may also be a panoramic image sent to the electronic device after being shot by another electronic device, and may also be a panoramic image saved by the electronic device triggered by a user. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the invention, the electronic equipment can analyze the target panoramic image according to the content recognition algorithm and determine the M frames of images for synthesizing the target panoramic image.
Optionally, if the user wants to edit the target panoramic image in the electronic device, the user may select the target panoramic image, and click an editing operation to trigger the electronic device to control the target panoramic image to enter an editing state. The electronic device may display the target panoramic image in a first area of the image editing interface (e.g., the upper half of the display area S1 shown in fig. 9), and display an M-frame image (which may be a thumbnail of the M-frame image) in which the target panoramic image is synthesized in a second area of the image editing interface (e.g., the lower half of the display area S2 shown in fig. 9).
Optionally, in the embodiment of the present invention, when the user clicks the target panoramic image, that is, the fourth input indicates that the user triggers the electronic device to perform an editing operation on the entire image of the target panoramic image, for example, operations such as changing a filter, increasing a light effect, and clipping. After the electronic device operates on the target panoramic image, the electronic device may update the display parameters of the target panoramic image, and may update the display parameters of the images in the M frame images described above.
For example, if the fourth input is a user triggering the electronic device to crop the target panoramic image, the electronic device may re-segment the edited panoramic image, so that each frame of image of the synthesized cropped panoramic image may be refreshed.
Optionally, in this embodiment of the present invention, if the user clicks one frame image (for example, the third frame image) of the M frame images, the electronic device may display a large graph interface (for example, the large graph interface shown in fig. 10) of the frame image, and thus, the user may edit the frame image in the large graph interface.
Alternatively, in this embodiment of the present invention, if the user double-clicks a certain frame image of the M frame images, in response to the input, the electronic device may delete the frame image from the M frame image and delete the frame image from the target panoramic image.
Optionally, in this embodiment of the present invention, if the user drags the nth frame image of the M frame images to the display position of the (n + 1) th frame image, in response to the input, the electronic device may swap the display positions of the nth frame image and the (n + 1) th frame image of the two M frame images, and swap the display positions of the nth frame image and the (n + 1) th frame image of the target panoramic image.
Of course, in actual implementation, the fourth input may also include any other possible input, which may be determined according to actual usage requirements, and is not limited in the embodiment of the present invention.
In the embodiment of the invention, as the user inputs the N frames of images in the M frames of images, the electronic equipment can be triggered to update the N frames of images in the target panoramic image, so that the local editing or control of the target panoramic image can be realized, and the later editing experience of the panoramic image can be improved.
As shown in fig. 11, an embodiment of the present invention provides anelectronic device 600, and theelectronic device 600 may include an obtainingmodule 601, a displayingmodule 602, a receivingmodule 603, and an executing module 604. An obtainingmodule 601, configured to obtain an ith frame image in a process of shooting a panoramic image; adisplay module 602, configured to display the ith frame of image acquired by theacquisition module 601 on a panoramic shooting interface; areceiving module 603, which may be configured to receive a first input of a user after thedisplay module 602 displays the ith frame image on the panorama shooting interface; an executing module 604, which may be configured to delete at least one frame of image of the i frames of images acquired by the electronic device from the panorama shooting interface in response to the first input of the receivingmodule 603; the receivingmodule 603 may be further configured to receive a second input of the user after the executing module 604 deletes at least one frame of image from the panorama shooting interface; the obtainingmodule 601 may be further configured to re-obtain the at least one frame of image in response to a second input received by the receivingmodule 603, where i is a positive integer.
Optionally, i is greater than 1, thedisplay module 602 may be further configured to display a target division identifier on the panoramic shooting interface after the ith frame image is displayed on the panoramic shooting interface, where the target division identifier is used to distinguish the ith frame image from the (i-1) th frame image.
Optionally, the screen of the electronic device is a scroll screen; the obtainingmodule 601 is specifically configured to receive a third input that a user triggers the scroll screen to unfold to the first position, and obtain an ith frame of image in response to the third input; the panoramic shooting interface is an area where the scroll screen is unfolded, and the first input is input when a user triggers the scroll screen to be folded to a second position.
Optionally, the executing module 604 may be specifically configured to determine at least one frame of image from the i-frame of image according to the first position and the second position, and delete the at least one frame of image.
Optionally, thedisplay module 602 may be specifically configured to display the ith frame image in both a shooting preview area and a frame image preview area in the panoramic shooting interface; the method comprises the steps of displaying an image obtained by synthesizing acquired i-frame images in a shooting preview area, displaying each frame image in the acquired i-frame images in a frame image preview area, and selecting at least one frame image from the frame image preview area by a user through a first input.
Optionally, thedisplay module 602 may be further configured to display, after the execution module 604 deletes the at least one frame of image, a target identifier at a position where the at least one frame of image is located in the shooting preview area, where the target identifier is used to indicate to reacquire the at least one frame of image; the receivingmodule 603 may be specifically configured to receive a second input of the first image in the shooting preview area from the user, and the obtainingmodule 601 may be specifically configured to obtain the second image in response to the second input, and determine the second image as a target frame image in a case that the second image matches the first image, where the target frame image is an image of a frame adjacent to the first image.
The electronic device provided by the embodiment of the invention can realize each process executed by the electronic device in the panoramic image shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here in order to avoid repetition.
The embodiment of the invention provides electronic equipment, and because a user can trigger the electronic equipment to delete at least one frame of image in an i-frame image acquired by the electronic equipment in the process of shooting a panoramic image by the electronic equipment and then trigger the electronic equipment to reacquire the at least one frame of image deleted by the electronic equipment, in the process of shooting the panoramic image, even if a certain frame of image has a problem, the user only needs to trigger the electronic equipment to delete and reacquire the frame of image with the problem, and does not need to trigger the electronic equipment to retake the whole panoramic image. Therefore, the panoramic image shooting method provided by the embodiment of the invention can improve the efficiency of shooting the panoramic image by the electronic equipment.
Fig. 12 is a hardware schematic diagram of an electronic device implementing various embodiments of the invention. As shown in fig. 12,electronic device 100 includes, but is not limited to: radio frequency unit 101,network module 102,audio output unit 103,input unit 104,sensor 105,display unit 106,user input unit 107,interface unit 108,memory 109,processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 12 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theprocessor 110 may control theinput unit 104 to acquire an ith frame image during the process of shooting the panoramic image, and control thedisplay unit 106 to display the ith frame image acquired by theinput unit 104 on the panoramic shooting interface; and controls theuser input unit 107 to receive a first input from the user and to delete at least one of the i-frame images acquired by the electronic device from the panorama shooting interface in response to the first input; and theuser input unit 107 is controlled to receive a second input of the user, and the input unit is controlled to re-acquire the at least one frame of image in response to the second input, i being a positive integer.
It can be understood that, in the embodiment of the present invention, the obtainingmodule 601 in the structural schematic diagram of the electronic device (for example, fig. 11) may be implemented by theinput unit 104; thedisplay module 602 in the structural schematic diagram of the electronic device may be implemented by thedisplay unit 106; the receivingmodule 603 in the structural schematic diagram of the electronic device may be implemented by theuser input unit 107; the execution module 604 in the structural schematic diagram of the electronic device may be implemented by theprocessor 110.
The embodiment of the invention provides electronic equipment, and because a user can trigger the electronic equipment to delete at least one frame of image in an i-frame image acquired by the electronic equipment in the process of shooting a panoramic image by the electronic equipment and then trigger the electronic equipment to reacquire the at least one frame of image deleted by the electronic equipment, in the process of shooting the panoramic image, even if a certain frame of image has a problem, the user only needs to trigger the electronic equipment to delete and reacquire the frame of image with the problem, and does not need to trigger the electronic equipment to retake the whole panoramic image. Therefore, the panoramic image shooting method provided by the embodiment of the invention can improve the efficiency of shooting the panoramic image by the electronic equipment.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by theprocessor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via thenetwork module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 103 may convert audio data received by the radio frequency unit 101 or thenetwork module 102 or stored in thememory 109 into an audio signal and output as sound. Also, theaudio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 104 is used to receive an audio or video signal. Theinput unit 104 may include an image capturing device (e.g., a camera) 1040, a Graphics Processing Unit (GPU) 1041, and amicrophone 1042. An image capture device 1040 (e.g., a camera) captures image data for a still picture or video. Thegraphic processor 1041 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 106. The image frames processed by thegraphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or thenetwork module 102. Themicrophone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
Theelectronic device 100 also includes at least onesensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 1061 and/or the backlight when theelectronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 106 is used to display information input by a user or information provided to the user. Thedisplay unit 106 may include adisplay panel 1061, and thedisplay panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
Theuser input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, theuser input unit 107 includes atouch panel 1071 andother input devices 1072.Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or neartouch panel 1071 using a finger, stylus, or any suitable object or attachment). Thetouch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 110, and receives and executes commands sent by theprocessor 110. In addition, thetouch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 1071, theuser input unit 107 may includeother input devices 1072. Specifically,other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, thetouch panel 1071 may be overlaid on thedisplay panel 1061, and when thetouch panel 1071 detects a touch operation thereon or nearby, thetouch panel 1071 transmits the touch operation to theprocessor 110 to determine the type of the touch event, and then theprocessor 110 provides a corresponding visual output on thedisplay panel 1061 according to the type of the touch event. Although in fig. 12, thetouch panel 1071 and thedisplay panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 1071 and thedisplay panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
Theinterface unit 108 is an interface for connecting an external device to theelectronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within theelectronic apparatus 100 or may be used to transmit data between theelectronic apparatus 100 and the external device.
Thememory 109 may be used to store software programs as well as various data. Thememory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in thememory 109 and calling data stored in thememory 109, thereby performing overall monitoring of the electronic device.Processor 110 may include one or more processing units; alternatively, theprocessor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 110.
Theelectronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to theprocessor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, theelectronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes theprocessor 110 shown in fig. 12, thememory 109, and a computer program that is stored in thememory 109 and is executable on theprocessor 110, and when the computer program is executed by theprocessor 110, the computer program implements each process of the panoramic image shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor shown in fig. 12, the computer program implements each process of the panoramic image shooting method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.