CN112672058B - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN112672058B
CN112672058B CN202011569086.1A CN202011569086A CN112672058B CN 112672058 B CN112672058 B CN 112672058B CN 202011569086 A CN202011569086 A CN 202011569086A CN 112672058 B CN112672058 B CN 112672058B
Authority
CN
China
Prior art keywords
shake
target
gazing
camera
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011569086.1A
Other languages
Chinese (zh)
Other versions
CN112672058A (en
Inventor
顾瀚之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011569086.1A priority Critical patent/CN112672058B/en
Publication of CN112672058A publication Critical patent/CN112672058A/en
Application granted granted Critical
Publication of CN112672058B publication Critical patent/CN112672058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a shooting method and a shooting device, and belongs to the field of computers. The method comprises the following steps: displaying a preview image acquired by a camera; determining a gazing object of a user in a preview image; regard as anti-shake object the object of gazing, the target image of gathering the camera carries out target anti-shake and handles, this application can be based on the sight tracking to shooter, confirm the current target of gazing of focusing the person, and based on the demand that shooter has higher formation of image effect to gazing the object in the image, have corresponding target anti-shake to handle when setting up the camera and shoot gazing the object, for gazing the object and provide better anti-shake treatment effect, make anti-shake to handle no longer the restriction in the object of single depth of field within range, but can change its processing object along with the change of the object that shooter's sight gazed, the anti-shake effect of camera has been improved.

Description

Shooting method and device
Technical Field
The application belongs to the field of computers, and particularly relates to a shooting method and device.
Background
With the wide application of mobile devices, the technologies of mobile devices in the aspects of photographing, image display and the like are better and better, so that users are more dependent on the image acquisition functions of the mobile devices, such as photographing, shooting and the like.
In the prior art, in the process of shooting a video or a picture by an electronic device, jitters of different degrees are inevitably generated, and are not desired by a user, and can cause the video picture to be blurred and unstable, so that visual fatigue is brought to a viewer.
However, the current anti-shake processing scheme is limited to objects within a fixed and single depth of field range, and cannot be dynamically adjusted, so that the anti-shake processing object is single, and the actual anti-shake effect is poor.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and a shooting device, and the problems that an existing anti-shake processing scheme is limited to objects in a fixed and single depth of field range, cannot be dynamically adjusted, and accordingly an object to be subjected to anti-shake processing is single and an actual anti-shake effect is poor are solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a shooting method, including:
displaying a preview image acquired by a camera;
determining a gaze object of a user in the preview image;
and taking the watching object as an anti-shake object, and carrying out target anti-shake processing on a target image acquired by the camera.
In a second aspect, an embodiment of the present application provides a shooting apparatus, including:
the display module is used for displaying the preview image acquired by the camera;
a detection module for determining a gaze object of a user in the preview image;
and the anti-shake module is used for taking the watching object as an anti-shake object and carrying out target anti-shake processing on the target image acquired by the camera.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the preview image collected by the camera is displayed; determining a gazing object of a user in a preview image; regard as anti-shake object the object of gazing, the target image of gathering the camera carries out target anti-shake and handles, this application can be based on the sight tracking to shooter, confirm the current target of gazing of focusing the person, and based on the demand that shooter has higher formation of image effect to gazing the object in the image, have corresponding target anti-shake to handle when setting up the camera and shoot gazing the object, for gazing the object and provide better anti-shake treatment effect, make anti-shake to handle no longer the restriction in the object of single depth of field within range, but can change its processing object along with the change of the object that shooter's sight gazed, the anti-shake effect of camera has been improved.
Drawings
Fig. 1 is a schematic step diagram of a shooting method provided in an embodiment of the present application;
fig. 2 is a schematic view of an application scenario of a shooting method provided in an embodiment of the present application;
fig. 3 is a captured image according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating specific steps of a shooting method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating specific steps of another shooting method provided in an embodiment of the present application;
FIG. 6 is another photographed image provided by an embodiment of the present application;
FIG. 7 is another photographed image provided by an embodiment of the present application;
fig. 8 is a block diagram of a shooting device provided in an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting method, the shooting device and the electronic device provided by the embodiment of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a schematic diagram illustrating steps of a shooting method provided in an embodiment of the present application is shown, where the method includes:
and step 101, displaying the preview image collected by the camera.
In the embodiment of the present application, further referring to fig. 2, an application scene schematic diagram of a shooting method provided in the embodiment of the present application is shown, the shooting method may be applied to an electronic device 10 including a front camera 11 and a rear camera 12, a photographer 20 may hold the electronic device 10 by hand, and shoot an object in a shooting scene 30 through the front camera 11 or the rear camera 12, during shooting, a situation that the electronic device 10 shakes due to shake of hands of the photographer or an influence of an environment where the photographer is located may be inevitable, which may cause a displayed object of a shot picture to be blurred, and an imaging effect to be poor.
In practical applications, the object of interest of the photographer 20 during shooting is generally a more important target object, and the photographer 20 generally has a higher requirement on the imaging effect of the target object in the picture.
Therefore, optionally, the embodiment of the present application may determine the line-of-sight direction of the line of sight 21 of the photographer 20 based on the front camera 11 of the electronic device 10, shoot the shooting scene 30 through the front camera 11 or the rear camera 12, and display the captured picture as a preview image on the display screen of the electronic device, so as to determine the target object currently focused by the user according to the object in the display screen pointed by the line-of-sight direction.
Specifically, the determining the sight line direction of the sight line of the photographer may include: the method comprises the steps of firstly, acquiring pupil characteristics of eyes of a photographer through a front-facing camera, detecting the orientation relation between the pupil characteristics and a lens of the front-facing camera in real time, and obtaining the sight line of the eyes according to the orientation relation, wherein the sight line is an imaginary straight line between the pupils and an object when the eyes see things.
And 102, determining a gazing object of the user in the preview image.
In this embodiment of the application, the front camera of the electronic device may determine a sight line direction of a sight line of a photographer, and the display screen of the electronic device may display a picture acquired by the front camera or the rear camera, and determine whether the photographer is looking at an object, which may be to determine whether a focus formed by the sight line on the display screen is in an area of the object for a long time. The focus of the line of sight on the display screen may be an intersection between a line extending in the direction of the line of sight and the surface of the display screen. Therefore, when the photographer's line of sight is in the target object region for a long time corresponding to the focus on the display screen, the target object can be determined as the gazing object of attention. Of course, other methods may be used to determine the gazing object, and this is not particularly limited in the embodiments of the present application.
For example, referring to fig. 3, which shows a captured image provided by the embodiment of the present application, in the image captured in the post image as shown in fig. 3, assuming that the photographer is currently looking at the subject 31 in the captured image, the line of sight of the photographer is in the area of the subject 22 at the corresponding gaze focal point 22 in the captured image.
And 103, taking the watching object as an anti-shake object, and performing target anti-shake processing on a target image acquired by the camera.
In the embodiment of the application, after the gazing object concerned by the user is determined, based on the requirement that a photographer has a higher imaging effect on the gazing object in an image, a front camera or a rear camera can be set to adopt targeted target anti-shake processing when the gazing object is shot, and the target anti-shake processing has a corresponding anti-shake intensity value. When the front camera or the rear camera of the electronic equipment collects a target image, the compensation value of the pixel position in the original image is determined according to the anti-shake intensity value corresponding to the target anti-shake processing, so that the pixel position compensation is carried out on the original image, and the anti-shake processing of the image is realized.
Furthermore, when the front camera or the rear camera of the electronic device is used for recording, the anti-shake intensity of the gazing object can be determined by using the steps, so that a video containing the gazing object is obtained, the gazing object in the video is imaged clearly and stably, and other information in a shot picture is kept as far as possible.
When the target of the photographer is changed, the anti-shake intensity value of the original target may be restored to the initial value, and the corresponding anti-shake intensity value may be increased for the new target.
In summary, the embodiment of the present application provides a shooting method, in which a preview image collected by a camera is displayed; determining a gazing object of a user in a preview image; regard as anti-shake object the object of gazing, the target image of gathering the camera carries out target anti-shake and handles, this application can be based on the sight tracking to shooter, confirm the current target of gazing of focusing the person, and based on the demand that shooter has higher formation of image effect to gazing the object in the image, have corresponding target anti-shake to handle when setting up the camera and shoot gazing the object, for gazing the object and provide better anti-shake treatment effect, make anti-shake to handle no longer the restriction in the object of single depth of field within range, but can change its processing object along with the change of the object that shooter's sight gazed, the anti-shake effect of camera has been improved.
Referring to fig. 4, a schematic diagram illustrating specific steps of a shooting method provided in an embodiment of the present application includes:
step 201, displaying the preview image collected by the camera.
For this step, reference may be made to step 101, which is not described herein again.
Step 202, determining a gazing object of the user in the preview image.
This step may specifically refer to step 102, which is not described herein again.
Optionally, step 202 may specifically include:
sub-step 2021, determining the focus of gaze of the user in the preview image.
In the embodiment of the present application, referring to fig. 3, the front camera may acquire pupil characteristics of a photographer, thereby determining a starting position and a gaze direction of a gaze of the photographer, and determining a gaze focus 22 of the gaze in the display screen according to the starting position and the gaze direction of the gaze.
Substep 2022, determining the target object as the gazing object when the staying time of the gazing focus in the target area in the target object is greater than or equal to a preset time, wherein the size of the target area is less than or equal to a preset size range.
Specifically, the determination of which object is an object currently focused by the photographer may be performed by determining that the target object is a focused object when the stay time of the gaze focus of the photographer on the display screen in the target object region is greater than or equal to a preset time. It should be noted that the preset time period may be set according to an actual requirement, for example, two seconds.
In addition, when the overall area of the target object is large, whether the photographer pays attention to the target object may be determined by determining whether the dwell time of the focus in the target area of the target object is greater than or equal to a preset time period, where the target area may be a central area of the target object or other important areas, the target area may have a small size, and when the photographer watches the target area for a long time, the target object including the target area may be considered as the target of attention.
For example, when the target object is a person, the target region may be a face region of the person, and when the target object is a car, the target region may be a region in the center of the car.
And 203, processing the anti-shake object in the target image by adopting a first anti-shake intensity value.
And step 204, processing other objects in the target image by adopting a second anti-shake intensity value.
Wherein the first anti-shake intensity value is greater than the second anti-shake intensity value.
In this application embodiment, after having confirmed gazing the object and will gazing the object as anti-shake object, the camera of shooing anti-shake object can be handled the anti-shake object in the target image with higher first anti-shake intensity value to reach the anti-shake effect to anti-shake object in the picture, promote anti-shake object's imaging effect, in addition, the camera can also be handled other objects except anti-shake object in the target image with lower second anti-shake intensity value, can make the imaging effect of more outstanding anti-shake object in final imaging like this.
For example, when a person image is shot, a photographer looks at the shot person image, the person image area is clear and stable in the final imaging, and the background except the person image can be relatively blurred, so that the aim of highlighting the expression with the person image as the key point in the picture is achieved.
Optionally, the processing the anti-shake object by using the first anti-shake intensity value may specifically include:
and A1, acquiring the actual displacement of the electronic equipment through a gyroscope.
In the embodiment of the present application, the purpose of the shake processing method is to compensate for the pixel point shift of the object in the picture caused by the actual physical shift received by the electronic device, so that the actual shift amount of the electronic device can be obtained through a gyroscope of the electronic device first.
And A2, determining the relative displacement of the anti-shake object in the picture according to the actual displacement and the first anti-shake intensity value.
In the embodiment of the application, after the anti-shake object focused by the photographer is determined, the relative displacement amount of the anti-shake object in the picture can be determined based on the improved first anti-shake intensity value and the actual displacement amount. Specifically, the first anti-shake intensity value may be a weight coefficient for converting a physical offset of the electronic device into a relative offset of an object in the screen, and the first anti-shake intensity value of the anti-shake object is greater than the second anti-shake intensity values of other objects.
And A3, establishing a coordinate system based on the anti-shake object.
In order to realize offset compensation of pixel points of the anti-shake object in the two-dimensional picture, a coordinate system based on the gazing object can be established so as to facilitate subsequent processing of the electronic equipment.
And A4, compensating the positions of the pixel points of the anti-shake objects in the coordinate system according to the relative displacement, and realizing anti-shake shooting of the anti-shake objects.
In this application embodiment, according to the relative displacement volume, compensate the pixel position of anti-shake object in the coordinate system, can offset the relative skew of the pixel of anti-shake object because of electronic equipment's physics skew brings relatively, reach clear, stable effect of anti-shake object formation of image to the realization is shot the anti-shake of anti-shake object.
Optionally, after step 202, the method may further include:
step 205, determining the focus of the user's gaze in the preview image.
And step 206, determining the times of the displacement of the gazing focus in the preview image and the displacement amount of each displacement.
In the embodiment of the application, the line of sight of the photographer may be in a state of erratic movement for some reason, and at this time, the photographer may not pay attention to the gazing object and may only be watching at random.
And step 207, when the number of the displacements with the displacement amount larger than or equal to the preset displacement amount is larger than the preset number and the time interval between adjacent displacements is smaller than or equal to the preset time interval, performing preset anti-shake processing on the target image acquired by the camera, wherein the preset anti-shake processing is different from the target anti-shake processing.
In the embodiment of the application, when the amount of displacement of the gaze point of the photographer is greater than or equal to the amount of displacement of the preset displacement amount, the gaze point of the photographer can be considered to frequently change in a large range, so that it is determined that the photographer does not focus on information in the screen, preset anti-shake processing can be performed at this time, the preset anti-shake processing can be default anti-shake processing of the device, namely, anti-shake is not specially realized for a certain target object, and frequent movement of the picture is avoided.
Specifically, the default anti-shake processing may be anti-shake processing performed on a background area in a picture collected by the rear camera according to a preset anti-shake intensity value. In addition, when a plurality of objects with different depth distances appear in a shooting scene, all the objects with the longer depth distances can be uniformly divided into background areas, so that the objects with the longer depth distances are unified as a whole, and the problem that the gazing objects are difficult to determine due to too many objects is avoided.
In summary, the embodiment of the present application provides a shooting method, in which a preview image acquired by a camera is displayed; determining a gazing object of a user in a preview image; regard as anti-shake object the object of gazing, the target image of gathering the camera carries out target anti-shake and handles, this application can be based on the sight tracking to shooter, confirm the current target of gazing of focusing the person, and based on the demand that shooter has higher formation of image effect to gazing the object in the image, have corresponding target anti-shake to handle when setting up the camera and shoot gazing the object, for gazing the object and provide better anti-shake treatment effect, make anti-shake to handle no longer the restriction in the object of single depth of field within range, but can change its processing object along with the change of the object that shooter's sight gazed, the anti-shake effect of camera has been improved.
In addition, after the anti-shake object is determined, the rear camera not only improves the anti-shake intensity value when the anti-shake object is shot, but also can reduce the anti-shake intensity value when other objects except the anti-shake object are shot, so that the imaging effect of the anti-shake object can be more prominent in the final imaging.
Referring to fig. 5, a schematic diagram illustrating specific steps of another shooting method provided in an embodiment of the present application is shown, including:
and 301, displaying the preview image collected by the camera.
This step may specifically refer to step 101, which is not described herein again.
Step 302, determining a gazing object of the user in the preview image.
This step may specifically refer to step 102, which is not described herein again.
Optionally, after step 302, the method may further include:
and 303, performing translation and cutting operation on the target image acquired by the camera to enable the gazing object to be in the center position of the target image.
In the embodiment of the application, the gazing object may be an object focused by a photographer, and in order to highlight the gazing object as an important point in an imaging picture, the gazing object may be located at the center of a picture of a target image by performing translation and cutting operations on the target image acquired by a camera when the camera takes a picture, so that the gazing object may be located at the center of the picture in the imaging picture, and the purpose of highlighting the gazing object as a key point of the picture is achieved.
Optionally, step 303 may specifically include:
and a substep 3031, under the condition that the gazing object is a face region in the picture, performing translation and cutting operation on a target image acquired by the camera to enable the face region to be in the center position of the target image.
In the embodiment of the present application, referring to fig. 6, which shows another captured image provided in the embodiment of the present application, in an initial image 40 acquired by a camera, if a gazing object corresponding to a gazing focus 22 of a photographer is a face area in a picture, in order to further enhance the importance of the gazing object, a target image 50 may be obtained by moving the picture of the initial image 40, and the target image 50 is displayed on a display screen, so that the face area is moved to a center position of the picture, thereby highlighting the importance of the face area. The step of changing the initial image 40 to the target image 50 may be to enlarge the initial image 40, move the face region to the center of the screen, and cut out the remaining regions of the enlarged initial image 40, which are larger than the standard image size, so as to obtain the target image 50 with the size consistent with that of the initial image 40 before enlargement.
And a substep 3032, under the condition that the gazing object is a background area in the picture, performing translation and cutting operations on the target image acquired by the camera, so that the sight focus of the user is in the center position of the target image.
In the embodiment of the present application, referring to fig. 7, which illustrates another captured image provided in the embodiment of the present application, in an initial image 60 acquired by a camera, if a gazing object corresponding to a gazing focus 22 of a photographer is a background area in a picture, in order to further enhance the importance of the gazing object, a target image 70 may be obtained by moving the picture of the initial image 60, and the target image 70 is displayed on a display screen, so that the gazing focus 22 is moved to a center position of the picture, thereby highlighting the importance of the background area focused by the gazing focus 22. The initial image 60 may be changed to the target image 70 by first enlarging the initial image 60, moving the focus 22 to the center of the screen, and cutting out the remaining area of the enlarged initial image 60, which is larger than the standard image size, to obtain the target image 70 having the same size as the initial image 60 before enlargement.
And step 304, taking the gazing object as an anti-shake object, and performing target anti-shake processing on a target image acquired by the camera.
This step may specifically refer to step 103, which is not described herein again.
In summary, the embodiment of the present application provides a shooting method, in which a preview image acquired by a camera is displayed; determining a gazing object of a user in a preview image; regard as anti-shake object the object of gazing, the target image of gathering the camera carries out target anti-shake and handles, this application can be based on the sight tracking to shooter, confirm the current target of gazing of focusing the person, and based on the demand that shooter has higher formation of image effect to gazing the object in the image, have corresponding target anti-shake to handle when setting up the camera and shoot gazing the object, for gazing the object and provide better anti-shake treatment effect, make anti-shake to handle no longer the restriction in the object of single depth of field within range, but can change its processing object along with the change of the object that shooter's sight gazed, the anti-shake effect of camera has been improved.
In addition, in order to highlight the gazing object as the key point in the imaging picture, the gazing object can be positioned at the central position of the target image by performing translation and cutting operation on the target image acquired by the camera when the camera shoots, and the purpose of highlighting the gazing object as the picture key point is achieved.
Referring to fig. 8, a block diagram of a shooting apparatus provided in an embodiment of the present application is shown, including:
a display module 401, configured to display a preview image acquired by a camera;
a detection module 402 for determining a gaze object of a user in the preview image;
optionally, the detecting module 402 includes:
a first determination sub-module for determining a focus of gaze of the user in the preview image;
and the second determining submodule is used for determining the target object as the gazing object under the condition that the stay time of the gazing focus in the target area of the target object is greater than or equal to the preset time, and the size of the target area is smaller than or equal to the preset size range.
And an anti-shake module 403, configured to use the gazing object as an anti-shake object, and perform target anti-shake processing on the target image acquired by the camera.
Optionally, other objects besides the gazing object are also included in the preview image;
the anti-shake module 403 includes:
the first processing submodule is used for processing the anti-shake object in the target image by adopting a first anti-shake intensity value;
the second processing submodule is used for processing other objects in the target image by adopting a second anti-shake intensity value;
wherein the first anti-shake intensity value is greater than the second anti-shake intensity value.
Optionally, the apparatus further comprises:
and the central display module is used for performing translation and cutting operations on the target image acquired by the camera so as to enable the gazing object to be positioned at the central position of the target image.
Optionally, the apparatus further comprises:
a focus determination module to determine a focus of gaze of the user in the preview image;
a frequency determining module, configured to determine the number of times that the gazing focus is displaced in the preview image and a displacement amount of each displacement;
and the default processing module is used for carrying out preset anti-shake processing on the target image acquired by the camera under the condition that the displacement is greater than or equal to the preset displacement, the number of the displacements is greater than or equal to the preset number, and the time interval between adjacent displacements is less than or equal to the preset time interval, wherein the preset anti-shake processing is different from the target anti-shake processing.
In summary, the embodiment of the present application provides a shooting device, which displays a preview image collected by a camera; determining a gazing object of a user in a preview image; the method comprises the steps of taking a watching object as an anti-shake object, carrying out target anti-shake processing on a target image collected by a camera, determining the watching object concerned by the camera at present based on sight tracking of the camera, setting targeted target anti-shake processing when the camera shoots the watching object based on the requirement that the camera has higher imaging effect on the watching object in the image, providing better anti-shake processing effect for the watching object, enabling the anti-shake processing not to be limited to objects in a single depth of field range any more, changing a processing object of the anti-shake processing object along with the change of the object watched by the sight of the camera, and improving the anti-shake effect of the camera.
The shooting device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of 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 Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not 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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 4, and is not described here again to avoid repetition.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
The processor 610 is configured to detect a sight direction of a sight line of a photographer through the front camera, and display a preview image acquired by the rear camera; according to the sight line direction, determining a watching object of the sight line in the preview image; the anti-shake intensity value when the rear camera shoots the gazing object is improved.
Those skilled in the art will appreciate that the electronic device 600 may further comprise 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 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 9 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 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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
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.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present 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 (8)

1. A photographing method, characterized in that the method comprises:
displaying a preview image acquired by a camera;
determining a gaze object of a user in the preview image;
taking the watching object as an anti-shake object, and carrying out target anti-shake processing on a target image acquired by the camera;
the method further comprises the following steps:
determining a gaze focus of the user in the preview image;
determining the number of times the gaze focus is displaced in the preview image and the amount of displacement per displacement;
and under the condition that the displacement amount is larger than or equal to the preset displacement amount, the number of the displacements is larger than the preset number, and the time interval between adjacent displacements is smaller than or equal to the preset time interval, carrying out preset anti-shake treatment on the target image acquired by the camera, wherein the preset anti-shake treatment is different from the target anti-shake treatment.
2. The method of claim 1, wherein the preview image further includes an object other than the object of interest;
the gazing object is used as an anti-shake object, and the target image collected by the camera is subjected to target anti-shake processing, which specifically includes:
processing the anti-shake object in the target image by adopting a first anti-shake intensity value;
processing other objects in the target image by adopting a second anti-shake intensity value;
wherein the first anti-shake intensity value is greater than the second anti-shake intensity value.
3. The method of claim 1, wherein the determining the gaze object of the user in the preview image comprises:
determining a gaze focus of the user in the preview image;
and under the condition that the stay time of the gazing focus in a target area in the target object is longer than or equal to a preset time, determining the target object as the gazing object, wherein the size of the target area is smaller than or equal to a preset size range.
4. The method of claim 1, after the determining the user's gaze object in the preview image, comprising:
and performing translation and cutting operation on the target image acquired by the camera to enable the gazing object to be positioned at the center position of the target image.
5. A camera, characterized in that the camera comprises:
the display module is used for displaying the preview image acquired by the camera;
a detection module for determining a gaze object of a user in the preview image;
the anti-shake module is used for taking the watching object as an anti-shake object and carrying out target anti-shake processing on a target image acquired by the camera;
the device further comprises:
a focus determination module to determine a focus of gaze of the user in the preview image;
a frequency determining module, configured to determine the number of times that the gazing focus is displaced in the preview image and a displacement amount of each displacement;
and the default processing module is used for carrying out preset anti-shake processing on the target image acquired by the camera under the condition that the displacement is greater than or equal to the preset displacement, the number of the displacements is greater than or equal to the preset number, and the time interval between adjacent displacements is less than or equal to the preset time interval, wherein the preset anti-shake processing is different from the target anti-shake processing.
6. The apparatus of claim 5, wherein the preview image further includes an object other than the gazing object;
the anti-shake module includes:
the first processing submodule is used for processing the anti-shake object in the target image by adopting a first anti-shake intensity value;
the second processing submodule is used for processing other objects in the target image by adopting a second anti-shake intensity value;
wherein the first anti-shake intensity value is greater than the second anti-shake intensity value.
7. The apparatus of claim 5, wherein the detection module comprises:
a first determination sub-module for determining a focus of gaze of the user in the preview image;
and the second determining submodule is used for determining the target object as the gazing object under the condition that the stay time of the gazing focus in the target area of the target object is greater than or equal to the preset time, and the size of the target area is smaller than or equal to the preset size range.
8. The apparatus of claim 5, further comprising:
and the central display module is used for performing translation and cutting operations on the target image acquired by the camera so as to enable the gazing object to be positioned at the central position of the target image.
CN202011569086.1A 2020-12-26 2020-12-26 Shooting method and device Active CN112672058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011569086.1A CN112672058B (en) 2020-12-26 2020-12-26 Shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011569086.1A CN112672058B (en) 2020-12-26 2020-12-26 Shooting method and device

Publications (2)

Publication Number Publication Date
CN112672058A CN112672058A (en) 2021-04-16
CN112672058B true CN112672058B (en) 2022-05-03

Family

ID=75409783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011569086.1A Active CN112672058B (en) 2020-12-26 2020-12-26 Shooting method and device

Country Status (1)

Country Link
CN (1) CN112672058B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766133B (en) * 2021-09-17 2023-05-26 维沃移动通信有限公司 Video recording method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124899A1 (en) * 2016-01-20 2017-07-27 努比亚技术有限公司 Information processing method, apparatus and electronic device
JP2019176261A (en) * 2018-03-27 2019-10-10 キヤノン株式会社 Image processor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7405131B2 (en) * 2019-02-21 2023-12-26 ソニーグループ株式会社 Image processing device, image processing method, program
CN111510630B (en) * 2020-04-24 2021-09-28 Oppo广东移动通信有限公司 Image processing method, device and storage medium
CN111552389B (en) * 2020-05-11 2023-04-28 Oppo广东移动通信有限公司 Gaze point shake eliminating method, gaze point shake eliminating device and storage medium
CN111669499B (en) * 2020-06-12 2021-11-19 杭州海康机器人技术有限公司 Video anti-shake method and device and video acquisition equipment
CN111988525A (en) * 2020-08-25 2020-11-24 Oppo广东移动通信有限公司 Image processing method and related device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124899A1 (en) * 2016-01-20 2017-07-27 努比亚技术有限公司 Information processing method, apparatus and electronic device
JP2019176261A (en) * 2018-03-27 2019-10-10 キヤノン株式会社 Image processor

Also Published As

Publication number Publication date
CN112672058A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US9948863B2 (en) Self-timer preview image presentation method and apparatus, and terminal
CN108377342B (en) Double-camera shooting method and device, storage medium and terminal
CN112637500B (en) Image processing method and device
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN112532881B (en) Image processing method and device and electronic equipment
CN114445315A (en) Image quality enhancement method and electronic device
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113866782A (en) Image processing method and device and electronic equipment
CN112672058B (en) Shooting method and device
CN112911059B (en) Photographing method and device, electronic equipment and readable storage medium
CN111586305B (en) Anti-shake method, anti-shake device and electronic equipment
CN113891002B (en) Shooting method and device
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112738399B (en) Image processing method and device and electronic equipment
CN112261262B (en) Image calibration method and device, electronic equipment and readable storage medium
CN112702533B (en) Sight line correction method and sight line correction device
CN112738398B (en) Image anti-shake method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113473012A (en) Virtualization processing method and device and electronic equipment
CN113286085A (en) Display control method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment
CN113873160B (en) Image processing method, device, electronic equipment and computer 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
GR01 Patent grant
GR01 Patent grant