CN115037879A - Shooting method and device thereof - Google Patents

Shooting method and device thereof Download PDF

Info

Publication number
CN115037879A
CN115037879A CN202210753449.XA CN202210753449A CN115037879A CN 115037879 A CN115037879 A CN 115037879A CN 202210753449 A CN202210753449 A CN 202210753449A CN 115037879 A CN115037879 A CN 115037879A
Authority
CN
China
Prior art keywords
camera
target
area
preview interface
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210753449.XA
Other languages
Chinese (zh)
Inventor
张波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210753449.XA priority Critical patent/CN115037879A/en
Publication of CN115037879A publication Critical patent/CN115037879A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a shooting method and a shooting device, and belongs to the technical field of image processing. The shooting method comprises the steps of receiving a first input of a user on a target object displayed in a first shooting preview interface of the electronic equipment; responding to the first input, and displaying the target object in a target area of a second shooting preview interface based on pictures acquired by a plurality of cameras of the electronic equipment; and correcting and shooting the image displayed on the second shooting preview interface to obtain a target image.

Description

Shooting method and device thereof
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a shooting method and a shooting device.
Background
With the popularization of electronic devices, people increasingly use electronic devices to capture images or videos.
In the process of shooting by the user holding the electronic device, the shooting field angle range is single, and the electronic device is often inclined when the user holds the electronic device, so that the shot object is inclined and other adverse effects are caused.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and a shooting device, which can solve the problem of poor correction effect during image shooting.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
receiving a first input of a user on a target object displayed in a first shooting preview interface of the electronic equipment;
responding to the first input, and displaying the target object in a target area of a second shooting preview interface based on pictures acquired by a plurality of cameras of the electronic equipment;
and correcting and shooting the image displayed on the second shooting preview interface to obtain a target image.
In a second aspect, an embodiment of the present application provides a shooting device, including:
the first input module is used for receiving first input of a user on a target object displayed in a first shooting preview interface of the electronic equipment;
the first display module is used for responding to the first input and displaying the target object in a target area of a second shooting preview interface based on pictures acquired by a plurality of cameras of the electronic equipment;
and the image correction module is used for correcting and shooting the image displayed on the second shooting preview interface to obtain a target image.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the steps of the method according to the first aspect.
In the embodiment of the application, the target object selected by the user is locked in the process of shooting by the user by using the electronic equipment, the content, namely the target object, which the user wants to shoot is displayed in the target area in the second shooting preview interface based on the pictures collected by the plurality of cameras in the electronic equipment, and then the correction processing and shooting are performed based on the second shooting preview interface to obtain the target image, so that, because the embodiment of the application shoots the target object based on the plurality of view angle ranges corresponding to the plurality of cameras, even if the user shifts the electronic equipment in a small range, the target object which the user wants to shoot can be presented in the fixed area of the shooting preview interface by using the multi-camera shooting technology, thereby facilitating the correction processing and shooting of the target object and improving the correction effect during image shooting, the shooting experience of the user is improved.
Drawings
Fig. 1 is a schematic flowchart of a shooting method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a focus tracking identification process provided herein;
FIG. 3 is a schematic diagram of a corrective photography preview interface provided by the present application;
fig. 4 is a schematic flowchart of a shooting method according to another embodiment of the present application;
fig. 5 is a schematic diagram of a first scenario of a camera switching process provided in the present application;
fig. 6 is a schematic diagram of a second scenario of a camera switching process provided in the present application;
fig. 7 is a schematic diagram of a second scenario of a camera switching process provided in the present application;
FIG. 8 is a schematic view of a target object centering display process provided herein;
fig. 9 is a block diagram of a camera according to an embodiment of the present disclosure;
FIG. 10 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The shooting method and the device thereof provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
At present, as the frequency of shooting by using the electronic device by a user is higher and higher, the requirement on the shooting effect of the electronic device is also higher and higher. For example, in the process of shooting an image or video by a user, a horizontal line correction process is required, which may be a process of correcting an inclined line in order that a line actually parallel to a horizontal plane remains parallel to the horizontal plane in the shot image or video and a line actually perpendicular to the horizontal plane remains perpendicular to the horizontal plane in the shot image or video, in order to solve a problem that the line is inclined due to an inclined camera view angle in a picture captured by a camera.
However, in the existing horizon correction shooting mode, the electronic device always performs recognition correction based on the content collected by a single camera, and the recognition correction effect is poor due to the single field angle range.
Based on this, the present application provides a shooting method, which may be applied to correct a shooting scene, and the following describes in detail the shooting method provided in the embodiments of the present application with reference to fig. 1 to 8. In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device. In the embodiment of the present application, a shooting method executed by a shooting device is taken as an example, and the shooting method provided in the embodiment of the present application is described.
Fig. 1 is a schematic flowchart of a shooting method according to an embodiment of the present application.
As shown in fig. 1, the photographing method may include the steps of: s110 to S130, which will be described in detail below.
S110, receiving a first input of a target object displayed in a first shooting preview interface of the electronic equipment by a user.
The electronic device in the embodiment of the application may include a plurality of cameras, and the first shooting preview interface may be a preview interface displayed when shooting is performed by using one of the cameras.
In addition, the first input may be an input selected by the user on a target object displayed in the first shooting preview interface, where the input mode of the first input includes, but is not limited to, single click, double click, long press, and the like, and the target object includes, but is not limited to, a person, an object, and the like.
For example, after the user selects the target object to be photographed through the first input, the object locking frame may be displayed in the first photographing preview interface and disappear after a preset time period, so that the user may determine whether the selected target object is an object that the user wants to photograph.
In some specific examples, in a scene where a user uses a mobile phone to shoot an object, the user may enter a horizon correction mode by opening camera software in the mobile phone, and display a preview interface acquired by a camera of the mobile phone currently on a screen, that is, a first shooting preview interface. When a user faces a camera of the mobile phone to an object to be shot, the object to be shot can be displayed in the first shooting preview interface. As shown in fig. 2, if the user double-clicks the target object 21 displayed in the current preview interface, focus tracking recognition may be started, and after the target object 21 is recognized, the corresponding lock frame 22 may be displayed, and the target object 21 is locked. The lock box 22 may disappear after 3 seconds, but no focus chase is cancelled.
And S120, responding to the first input, and displaying the target object in a target area of a second shooting preview interface based on pictures acquired by a plurality of cameras of the electronic equipment.
Here, after the user selects the target object, the locked target object may be displayed in the target area of the second photographing preview interface through a preset focus-following algorithm and a plurality of cameras provided on the electronic device. The plurality of cameras may include any of a main camera, a 5X camera, a 2X camera, and a wide-angle camera, for example.
The position of the target area may be determined according to actual needs, and may be, for example, a central position area of the second shooting preview interface, or may be an area that facilitates correction processing, which is not limited herein.
For example, the present embodiment may select a camera having an optimal angle of view for the target object from a plurality of cameras provided on the electronic device according to a preset focus tracking algorithm, so that the target object can be displayed in a central position area of the shooting preview interface.
And S130, correcting and shooting the image displayed on the second shooting preview interface to obtain a target image.
Here, the image frame displayed on the second shooting preview interface may be corrected to obtain a corrected shooting preview interface, and then shooting may be performed based on the corrected shooting preview interface to obtain the target image. The correction process may be, for example, a horizon correction process.
For example, the image information collected by the camera may be corrected in real time according to a preset horizon correction recognition algorithm, and then a correction shooting preview interface as shown in fig. 3 may be obtained, where the correction shooting preview interface may include a correctable area 31, and a preview picture after the horizon correction processing may be displayed in the correctable area 31.
In some embodiments, after obtaining the corrected shooting preview interface, the shooting method provided in the embodiments of the present application may further include:
receiving a second input of the user to the correction shooting preview interface;
and responding to the second input, and performing correction shooting based on the correction shooting preview interface to obtain a target image.
Here, the second input may be a shooting trigger input performed by the user based on a corrected shooting preview interface obtained after the horizon correction processing, and the input manner corresponding to the second input may include a manner of clicking a shooting button, or controlling shooting through a voice instruction, and the like.
In some examples, the user may click on a photo button in the rectification photographing preview interface shown in fig. 3, thereby obtaining an image displayed in the rectification area 31, i.e., a target image.
In this way, the target object which the user wants to shoot can be always kept in the target area by shooting the image based on the correction shooting preview interface after the final correction processing, and therefore the correction effect of the target object is improved.
Before S130, it may be determined whether object focus recognition needs to be performed again, and if so, the process returns to S120, and if not, the process returns to S130.
For example, if the user cancels the focus tracking, for example, clicks the focus tracking cancellation button in fig. 2, the camera may be restored to the default camera for shooting, and the zoom magnification, for example, 1-time zoom range, may be restored, and when the user reselects another object for focus tracking, the focus tracking state of the selected object may be triggered again.
Therefore, in the process of shooting by the user by using the electronic equipment, the target object selected by the user is locked, the content which the user wants to shoot, namely the target object, is displayed in the target area in the second shooting preview interface based on the pictures collected by the plurality of cameras in the electronic equipment, and further, correction processing and photographing are performed based on the second photographing preview interface to obtain a target image, and thus, since the embodiment of the present application photographs the target object based on the plurality of field angle ranges corresponding to the plurality of cameras, the target object is photographed, even if the electronic equipment is shifted by a small amplitude by the user, the target object which the user wants to shoot can be presented in the fixed area of the shooting preview interface by utilizing the multi-camera shooting technology, and then be convenient for correct the processing and shoot to the target object to correction effect when can improve the image and shoot promotes the user and shoots the experience.
Based on the foregoing S110 to S130, in some embodiments, as shown in fig. 4, the foregoing S120 may specifically include:
s1201, determining a display area corresponding to the target object in the first shooting preview interface;
s1202, under the condition that a display area is not matched with a target area, a first camera for collecting a target object in the electronic equipment is switched to a second camera;
and S1203, acquiring a target object through a second camera, and displaying the target object in a target area of a second shooting preview interface.
Here, the case of mismatch between the display area and the target area may include at least one of a location mismatch and a size mismatch.
For example, in a case that the display area does not match the target area, the camera in use, that is, the first camera, may be switched to adjust the field angle range, and then the target object may be photographed based on the corresponding field angle range of the switched camera, that is, the second camera, so that the target object is displayed in the target area of the second photographing preview interface, thereby achieving an effect that the display area corresponding to the target object matches the size of the target area.
In addition, after the target object is switched to the second camera, if the target object is not displayed in the target area of the second shooting preview interface, the magnification of the second camera can be adjusted until the target object is displayed in the target area, so that the size of the display area corresponding to the target object is matched with that of the target area.
Therefore, under the condition that the display area corresponding to the target object is not matched with the target area, the first camera in use is switched to the second camera, the shooting view angle matched with the target object can be further obtained, the target object is displayed in the target area of the second shooting preview interface, and therefore the correction recognition success rate of the target object can be improved, and the correction effect is improved.
In addition, in some embodiments, before the step of switching the first camera for capturing the target object in the electronic device to the second camera, the shooting method provided in the embodiment of the present application may further include:
acquiring difference information between a display area and a target area;
and according to the difference information, determining a target camera with the field angle matched with the target object from the plurality of cameras, wherein the target camera comprises a second camera.
Here, the difference information may include at least one of size difference information and location difference information. The number of the target cameras can be one or more, that is, one or more cameras with the view angles matched with the target object can exist, and then one camera is selected from the cameras randomly or according to a preset rule to serve as a second camera for final switching.
Therefore, the camera matched with the target object in the field angle is determined from the plurality of cameras according to the difference information between the display area and the target area, and then the second camera is determined to be switched, so that the camera suitable for the target object can be accurately found, the camera switching efficiency can be improved, and the camera suitable for the current shooting scene can be quickly positioned.
In some embodiments, the determining, according to the difference information, a target camera whose field angle matches the target object from among the multiple cameras, where the target camera includes a second camera, may specifically include:
determining a camera with a field angle smaller than that of the first camera from the plurality of cameras as a target camera under the condition that the display area is determined to be smaller than the target area according to the difference information;
and under the condition that the display area is larger than the target area or the position offset of the display area relative to the target area exceeds a preset threshold value according to the difference information, determining a camera with a view angle larger than that of the first camera from the plurality of cameras as a target camera.
In some specific examples, if the camera currently in use is the main camera, as shown in fig. 5, when the focused target object 51 is recognized to be close, the display area 52 corresponding to the target object 51 is larger than the target area 53, so that the wide-angle camera with a larger field angle than the main camera can be automatically switched to according to the size difference information between the two, so as to obtain a better field angle; as shown in fig. 6, when the target object 61 is far away, the display area 62 corresponding to the target object 61 is smaller than the target area 63, so that the display area can be automatically switched to a 2X camera with a smaller field angle than the main camera or a 5X camera as shown in fig. 6 according to the size difference information between the two; as shown in fig. 7, if the mobile phone is shifted from the target object 71, the target object 71 may not be displayed completely in the preview picture captured by the current camera, that is, the position difference between the display area 72 corresponding to the target object 71 and the target area 73 is large, for example, the position shift amount of the display area 72 relative to the target area 73 exceeds a preset threshold, and then the mobile phone may automatically switch to the wide-angle camera with a larger field angle than the main camera according to the position difference information between the two.
As shown in fig. 6, when the user slightly moves the mobile phone, the 5X camera may be switched to a 2X camera, a main camera lens or a wide-angle lens to obtain a large field angle, and then the magnification is adjusted to display the focused target object on the camera preview interface in a centered manner.
In this way, by determining a camera whose field angle matches the target object from among the plurality of cameras according to the size difference or the position difference between the display area and the target area, it is possible to accurately find a camera suitable for the target object.
Based on this, in some embodiments, in a case that a position between the display area and the target area is not matched, the shooting method provided in the embodiment of the present application may further include:
acquiring a region image corresponding to a display region in a first shooting preview interface;
and displaying the area image in a target area of the second shooting preview interface.
For example, after the camera is switched, if the target object is not displayed in the target area of the second capture preview interface, the area image corresponding to the display area in the first capture preview interface may be cropped, and the cropped area image may be moved to the target area of the second capture preview interface, so that the target object is displayed in the target area.
In some specific examples, as shown in fig. 8, if the camera currently used by the mobile phone is a main camera, and for a case that the focused target object 81 is close and offset with respect to the mobile phone camera, the mobile phone may automatically switch to the wide-angle lens, and perform image cropping on the area 82 where the target object 81 is located, and further centrally display the area image in the area 82 in the shooting preview interface.
In this way, by image cropping, when the target object cannot be displayed in the target area even by shot cut, the entire area image corresponding to the target object is moved to the target area and displayed, and the target object can be surely displayed in the target area of the shooting preview interface.
In some possible embodiments, when the number of the target cameras is multiple, the S130 may specifically include:
performing horizontal line correction processing on the image displayed on the second shooting preview interface based on each camera in the target cameras to obtain a correctable area in the correction shooting preview interface corresponding to each camera;
determining a third camera from the target cameras according to the area of the correctable region;
and shooting based on the correction shooting preview interface corresponding to the third camera to obtain a target image.
Here, in the case where there are a plurality of target cameras, the sizes of the correctable regions in the correction shooting preview interface obtained based on correspondence between different target cameras may be different, and therefore, a camera with the best angle of view may be selected for shooting by the effective area of the correctable region determined for each target camera.
For example, after the target object of the focus tracking is determined, it may be judged whether or not to take a picture. In the process of judging whether to take a picture, a camera with the best correction effect, namely a third camera, is selected from a plurality of selectable target cameras through a horizon correction recognition algorithm and is used as a camera used in the final picture taking. The basic principle of the horizon correction identification algorithm can be to identify the effective area of a correctable area displayed in a correction shooting preview interface.
Based on this, the step of determining the third camera from the target cameras according to the area of the correctable region may specifically include:
and determining the camera with the largest area of the correctable region in the target camera as a third camera.
Here, the larger the correctable area is, the higher the probability of successful correction recognition of the target object is, and the better the correction effect is, so that the camera corresponding to the maximum correctable area can be determined as the camera to be finally used.
In this way, in the final shooting process, the third camera used in the final shooting is determined based on the area of the correctable area in the correction shooting preview interface, so that the identified camera with the optimal field angle can be used for the horizontal line correction processing and the final shooting process, and the correction effect and the correction success rate can be further improved.
It should be noted that the application scenario described in the embodiment of the present disclosure is for more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not constitute a limitation to the technical solution provided in the embodiment of the present disclosure, and as a person of ordinary skill in the art may know, with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present disclosure is also applicable to similar technical problems.
Based on the same inventive concept, the application also provides a shooting device. The following describes in detail a photographing apparatus provided in an embodiment of the present application with reference to fig. 9.
Fig. 9 is a block diagram of a camera according to an embodiment of the present application.
As shown in fig. 9, the photographing apparatus 900 may include:
a first input module 901, configured to receive a first input of a target object displayed in a first shooting preview interface of an electronic device by a user;
a first display module 902, configured to display, in response to the first input, the target object in a target area of the second shooting preview interface based on pictures acquired by multiple cameras of the electronic device;
and the image correction module 903 is configured to correct and shoot the image displayed on the second shooting preview interface to obtain a target image.
The following describes the imaging device 900 in detail, specifically as follows:
in one embodiment, the first display module 902 may specifically include:
the area determining sub-module is used for determining a display area corresponding to the target object in the first shooting preview interface;
the camera switching submodule is used for switching a first camera for collecting the target object in the electronic equipment into a second camera under the condition that the display area is not matched with the target area;
and the display sub-module is used for acquiring the target object through the second camera and displaying the target object in the target area of the second shooting preview interface.
In one embodiment, the first display module 902 may further include:
the difference acquisition submodule is used for acquiring difference information between the display area and the target area before a first camera for acquiring the target object in the electronic equipment is switched to a second camera;
and the target determining submodule is used for determining a target camera with a field angle matched with the target object from the plurality of cameras according to the difference information, and the target camera comprises the second camera.
In one embodiment, the first display module 902 may further include:
the image acquisition sub-module is used for acquiring an area image corresponding to the display area in the first shooting preview interface under the condition that the positions of the display area and the target area are not matched;
and the image display sub-module is used for displaying the area image in the target area of the second shooting preview interface.
In one embodiment, the image rectification module 903 comprises:
the correction processing submodule is used for performing horizontal line correction processing on the image displayed on the second shooting preview interface based on each camera in the target cameras under the condition that the number of the target cameras is multiple, so as to obtain a correctable area in the correction shooting preview interface corresponding to each camera;
the camera determining submodule is used for determining a third camera from the target camera according to the area of the correctable region;
and the image shooting submodule is used for shooting based on a correction shooting preview interface corresponding to the third camera to obtain the target image.
In one embodiment, the camera determination sub-module includes:
and the maximum area determining unit is used for determining the camera with the maximum area of the correctable area in the target camera as the third camera.
Therefore, in the process of shooting by the user by using the electronic equipment, the target object selected by the user is locked, the content which the user wants to shoot, namely the target object, is displayed in the target area in the second shooting preview interface based on the pictures collected by the plurality of cameras in the electronic equipment, and further, correction processing and photographing are performed based on the second photographing preview interface to obtain a target image, and thus, since the embodiment of the present application photographs the target object based on the plurality of field angle ranges corresponding to the plurality of cameras, the target object is photographed, even if the electronic equipment is shifted by a small amplitude by the user, the target object which the user wants to shoot can be presented in the fixed area of the shooting preview interface by the multi-camera shooting technology, and then be convenient for correct the processing and shoot to the target object to correction effect when can improve the image and shoot promotes the user and shoots the experience.
The shooting device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. By way of example, the electronic Device may be a Mobile phone, a camera, a video camera, a tablet computer, a notebook computer, a palmtop computer, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the embodiments of the present application are not limited in particular.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 10, an electronic device 1000 is further provided in this embodiment of the present application, and includes a processor 1001 and a memory 1002, where a program or an instruction that can be executed on the processor 1001 is stored in the memory 1002, and when the program or the instruction is executed by the processor 1001, the steps of the foregoing shooting method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and the like.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 1107 is configured to receive a first input of a target object displayed in a first shooting preview interface of the electronic device from a user;
a display unit 1106, configured to display, in response to the first input, the target object in a target area of the second shooting preview interface based on pictures captured by multiple cameras of the electronic device;
and the processor 1110 is configured to correct the image displayed on the second shooting preview interface and shoot the image to obtain a target image.
Therefore, in the process of shooting by the user by using the electronic equipment, the target object selected by the user is locked, the content which the user wants to shoot, namely the target object, is displayed in the target area in the second shooting preview interface based on the pictures collected by the plurality of cameras in the electronic equipment, and further, correction processing and photographing are performed based on the second photographing preview interface to obtain a target image, and thus, since the embodiment of the application is used for shooting the target object based on a plurality of field angle ranges corresponding to a plurality of cameras, therefore, even if the electronic equipment is shifted by a small amplitude by the user, the target object which the user wants to shoot can be presented in the fixed area of the shooting preview interface by utilizing the multi-camera shooting technology, and then be convenient for correct the processing and shoot to the target object to correction effect when can improve the image and shoot promotes the user and shoots the experience.
Optionally, the processor 1110 is further configured to determine a display area corresponding to the target object in the first shooting preview interface; under the condition that the display area is not matched with the target area, a first camera for collecting the target object in the electronic equipment is switched to a second camera;
the display unit 1106 is further configured to acquire the target object through the second camera and display the target object in the target area of the second shooting preview interface.
Optionally, the processor 1110 is further configured to obtain difference information between the display area and the target area; and determining a target camera with a field angle matched with the target object from the plurality of cameras according to the difference information, wherein the target camera comprises the second camera.
Optionally, the processor 1110 is further configured to, when the position of the display area is not matched with that of the target area, obtain an area image corresponding to the display area in the first shooting preview interface;
a display unit 1106, configured to display the area image in the target area of the second shooting preview interface.
Optionally, the processor 1110 is further configured to perform, based on each of the target cameras, horizontal line correction processing on the image displayed on the second shooting preview interface to obtain a correctable area in the correction shooting preview interface corresponding to each camera; determining a third camera from the target cameras according to the area of the correctable region;
the processor 1110 is further configured to perform shooting based on the rectification shooting preview interface corresponding to the third camera, so as to obtain the target image.
Optionally, the processor 1110 is further configured to determine a camera with a largest area of a correctable region in the target camera as the third camera.
Therefore, the third camera used in the final shooting is determined based on the area of the correctable area in the correction shooting preview interface, so that the identified camera with the optimal field angle can be used for the horizontal line correction processing, and the correction effect and the correction success rate can be further improved.
It should be understood that in the embodiment of the present application, the input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. A touch panel 11071, also called a touch screen. The touch panel 11071 may include two portions of a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, an application program or instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1109 may include volatile memory or nonvolatile memory, or the memory 1109 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). The memory 1109 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor, which primarily handles operations related to the operating system, user interface, applications, etc., and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing shooting method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A photographing method, characterized by comprising:
receiving a first input of a user on a target object displayed in a first shooting preview interface of the electronic equipment;
responding to the first input, and displaying the target object in a target area of a second shooting preview interface based on pictures acquired by a plurality of cameras of the electronic equipment;
and correcting and shooting the image displayed on the second shooting preview interface to obtain a target image.
2. The method of claim 1, wherein the displaying the target object in a target area of a second shooting preview interface based on pictures captured by a plurality of cameras of the electronic device comprises:
determining a display area corresponding to the target object in the first shooting preview interface;
under the condition that the display area is not matched with the target area, a first camera for collecting the target object in the electronic equipment is switched to a second camera;
and acquiring the target object through the second camera, and displaying the target object in the target area of a second shooting preview interface.
3. The method of claim 2, wherein prior to switching a first camera in the electronic device that captures the target object to a second camera, the method further comprises:
acquiring difference information between the display area and the target area;
and determining a target camera with a field angle matched with the target object from the plurality of cameras according to the difference information, wherein the target camera comprises the second camera.
4. The method according to claim 3, wherein the determining, from the disparity information, a target camera whose field angle matches the target object from the plurality of cameras comprises:
under the condition that the display area is smaller than the target area according to the difference information, determining a camera with a smaller field angle than the first camera from the plurality of cameras as the target camera;
and under the condition that the display area is larger than the target area or the position offset of the display area relative to the target area exceeds a preset threshold value according to the difference information, determining a camera with a field angle larger than the first camera from the plurality of cameras as the target camera.
5. The method according to claim 3, wherein in a case that the number of the target cameras is multiple, the correcting and capturing the image displayed on the second capture preview interface to obtain the target image comprises:
performing horizon correction processing on the image displayed on the second shooting preview interface based on each camera in the target cameras to obtain a correctable area in the correction shooting preview interface corresponding to each camera;
determining a third camera from the target cameras according to the area of the correctable region;
shooting based on the correction shooting preview interface corresponding to the third camera to obtain the target image.
6. A camera, comprising:
the first input module is used for receiving first input of a user on a target object displayed in a first shooting preview interface of the electronic equipment;
the first display module is used for responding to the first input and displaying the target object in a target area of a second shooting preview interface based on pictures acquired by a plurality of cameras of the electronic equipment;
and the image correction module is used for correcting and shooting the image displayed on the second shooting preview interface to obtain a target image.
7. The apparatus of claim 6, wherein the first display module comprises:
the area determining submodule is used for determining a display area corresponding to the target object in the first shooting preview interface;
the camera switching submodule is used for switching a first camera for collecting the target object in the electronic equipment into a second camera under the condition that the display area is not matched with the target area;
and the display sub-module is used for acquiring the target object through the second camera and displaying the target object in the target area of a second shooting preview interface.
8. The apparatus of claim 7, wherein the first display module further comprises:
the difference acquisition submodule is used for acquiring difference information between the display area and the target area before a first camera for acquiring the target object in the electronic equipment is switched to a second camera;
and the target determining submodule is used for determining a target camera with a view angle matched with the target object from the plurality of cameras according to the difference information, and the target camera comprises the second camera.
9. The method of claim 8, wherein the targeting sub-module comprises:
a first determining unit configured to determine, as the target camera, a camera whose field angle is smaller than that of the first camera from among the plurality of cameras, in a case where it is determined that the display area is smaller than the target area according to the difference information;
and a second determining unit, configured to determine, from the multiple cameras, a camera whose field angle is larger than the first camera as the target camera when it is determined that the display area is larger than the target area according to the difference information or a position offset amount of the display area with respect to the target area exceeds a preset threshold.
10. The apparatus of claim 8, wherein the image rectification module comprises:
the correction processing submodule is used for performing horizontal line correction processing on the image displayed on the second shooting preview interface based on each camera in the target cameras under the condition that the number of the target cameras is multiple, so as to obtain a correctable area in the correction shooting preview interface corresponding to each camera;
the camera determining submodule is used for determining a third camera from the target camera according to the area of the correctable area;
and the image shooting submodule is used for shooting based on a correction shooting preview interface corresponding to the third camera to obtain the target image.
CN202210753449.XA 2022-06-29 2022-06-29 Shooting method and device thereof Pending CN115037879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210753449.XA CN115037879A (en) 2022-06-29 2022-06-29 Shooting method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210753449.XA CN115037879A (en) 2022-06-29 2022-06-29 Shooting method and device thereof

Publications (1)

Publication Number Publication Date
CN115037879A true CN115037879A (en) 2022-09-09

Family

ID=83126717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210753449.XA Pending CN115037879A (en) 2022-06-29 2022-06-29 Shooting method and device thereof

Country Status (1)

Country Link
CN (1) CN115037879A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160057939A (en) * 2014-11-14 2016-05-24 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN111541845A (en) * 2020-04-30 2020-08-14 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN111787230A (en) * 2020-07-31 2020-10-16 维沃移动通信(杭州)有限公司 Image display method and device and electronic equipment
CN113905179A (en) * 2018-07-27 2022-01-07 华为技术有限公司 Method for switching camera by terminal and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160057939A (en) * 2014-11-14 2016-05-24 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN113905179A (en) * 2018-07-27 2022-01-07 华为技术有限公司 Method for switching camera by terminal and terminal
CN111541845A (en) * 2020-04-30 2020-08-14 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN111787230A (en) * 2020-07-31 2020-10-16 维沃移动通信(杭州)有限公司 Image display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112637500B (en) Image processing method and device
CN112887609B (en) Shooting method and device, electronic equipment and storage medium
CN109040594B (en) Photographing method and device
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112839166B (en) Shooting method and device and electronic equipment
CN114500837A (en) Shooting method and device and electronic equipment
CN112565604A (en) Video recording method and device and electronic equipment
JP6645711B2 (en) Image processing apparatus, image processing method, and program
CN112653841B (en) Shooting method and device and electronic equipment
CN114390206A (en) Shooting method and device and electronic equipment
CN112672058B (en) Shooting method and device
CN115037879A (en) Shooting method and device thereof
CN111970435B (en) Method and device for macro photography
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN114245018A (en) Image shooting method and device
CN114093005A (en) Image processing method and device, electronic equipment and readable storage medium
CN114390197A (en) Shooting method and device, electronic equipment and readable storage medium
CN114430456A (en) Image capturing method, image capturing apparatus, and storage medium
CN112399092A (en) Shooting method and device and electronic equipment
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN112911148B (en) Image processing method and device and electronic equipment
WO2023093274A1 (en) Photographing preview method, image fusion method, electronic device, and storage medium
CN114666513B (en) Image processing method and device
CN116916147A (en) Image processing method, image sending device and electronic equipment
CN117793534A (en) Zoom method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination