CN112887613B - Shooting method and device, electronic equipment and storage medium - Google Patents

Shooting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112887613B
CN112887613B CN202110113814.6A CN202110113814A CN112887613B CN 112887613 B CN112887613 B CN 112887613B CN 202110113814 A CN202110113814 A CN 202110113814A CN 112887613 B CN112887613 B CN 112887613B
Authority
CN
China
Prior art keywords
shooting
image
condition
triggering
target
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
CN202110113814.6A
Other languages
Chinese (zh)
Other versions
CN112887613A (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 CN202110113814.6A priority Critical patent/CN112887613B/en
Publication of CN112887613A publication Critical patent/CN112887613A/en
Application granted granted Critical
Publication of CN112887613B publication Critical patent/CN112887613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a storage medium, which belong to the technical field of computers, wherein the method comprises the following steps: under the condition that a plurality of target objects are included in a shooting preview picture, acquiring the face characteristics of all the target objects; and under the condition that the face features of at least one target object meet the shooting triggering conditions, triggering shooting operation and outputting a target image. According to the method and the device, the face characteristics of all the target objects in the shot preview picture are obtained, the shooting operation is triggered under the condition that the face characteristics of at least one target object meet the shooting triggering condition, at least one image is obtained, the target image is obtained according to the at least one image, each target object can be guaranteed to have at least one optimal piece, and the piece forming efficiency and quality under the multi-person group photo scene can be greatly improved.

Description

Shooting method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a shooting method, a shooting device, electronic equipment and a storage medium.
Background
Currently, taking pictures in a multi-person scene often requires taking account of each person's facial expressions, such as whether each person is smiling, whether each person has their eyes open, whether each person is looking at the lens, whether each person's face is in the lens, and so on. In general, the above elements are satisfied, and it is difficult to form the tablet at one time. Therefore, when a plurality of people take a picture, on one hand, a photographer needs to spend a lot of energy to organize each shot object to focus on the lens and display the expression, and the shooting can be carried out by pressing keys until all people are confirmed to be in the lens and good facial expressions are kept; on the other hand, the photographer still needs to take multiple samples and perform screening to ensure that there is a picture that is compatible with all people. Even so, in many cases, especially in the scene of more people, some people still have the face of some people not being in the mirror, some people not smiling, or some people closing the eyes after several times of shooting.
At the present stage, the film forming efficiency is low and the film forming effect is poor through the multi-person group photo scene observed by the naked eyes of a photographer and manually pressing a shooting key.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a storage medium, and solves the problems that shooting efficiency is low and shooting effect is poor due to the fact that a shooting person observes a scene by naked eyes and manually presses a shooting key for multiple people.
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, where the method includes:
under the condition that a plurality of target objects are included in a shooting preview picture, acquiring the face characteristics of all the target objects;
under the condition that the face features of at least one target object meet shooting triggering conditions, triggering shooting operation to obtain at least one image;
and obtaining a target image according to the at least one image, wherein the target image comprises the target objects, and the human face characteristics of the target objects in the target image all meet the shooting triggering condition.
In a second aspect, an embodiment of the present application provides a shooting device, including:
a feature acquisition unit configured to acquire face features of all target objects in a case where the plurality of target objects are included in the shooting preview screen;
the processing unit is used for triggering shooting operation to obtain at least one image under the condition that the face features of at least one target object meet shooting triggering conditions;
and the output unit is used for obtaining a target image according to the at least one image, wherein the target image comprises the plurality of target objects, and the human face characteristics of the plurality of target objects in the target image all meet the shooting triggering condition.
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 shooting method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the shooting 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 shooting method according to the first aspect.
In the embodiment of the application, the human face characteristics of all target objects in the shooting preview picture are obtained, the shooting operation is triggered to obtain at least one image under the condition that the human face characteristics of at least one target object meet the shooting triggering condition, the target image is obtained according to the at least one image, each target object can be guaranteed to have at least one optimal piece, and the piece forming efficiency and quality under the multi-person group photo scene can be greatly improved.
Drawings
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a terminal device entering an automatic capture mode according to an embodiment of the present application;
fig. 3 is a schematic diagram of triggering a shooting operation according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an initial captured image according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a supplementary captured image provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a target image according to an embodiment of the present application;
fig. 7 is a second schematic diagram of an initial captured image according to the embodiment of the present application;
fig. 8 is a second schematic diagram of a complementary captured image according to the embodiment of the present application;
FIG. 9 is a second schematic diagram of a target image according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an embodiment of the present application before automatically adjusting the focal length;
FIG. 11 is a schematic diagram illustrating an embodiment of the present application after automatically adjusting a focal length;
fig. 12 is a schematic structural diagram of a shooting device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 14 is a schematic hardware structure diagram 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 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 should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be implemented in sequences other than those illustrated or described herein. 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.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In the embodiments of the present application, the term "plurality" means two or more, and other terms are similar thereto.
The shooting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof. According to the shooting method provided by the embodiment of the application, an execution subject is electronic equipment, and the electronic equipment provided by the embodiment of the application can be terminal equipment with a shooting function, such as a smart phone, a tablet computer, a camera and the like, and can also be other equipment with the shooting function. The following description will be made taking a terminal device as an example.
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application, and as shown in fig. 1, the shooting method includes:
step 100, acquiring the face features of all target objects under the condition that a shooting preview picture comprises a plurality of target objects;
when a user opens a photographing function of a camera or other third-party applications on the terminal device, the terminal device enters a photographing mode, and a photographing preview picture can be displayed on a display screen of the terminal device. It can be understood that the shooting preview picture is a preview picture formed by displaying an image collected by the camera on a display screen of the terminal device before the shooting operation is triggered.
The target object is a subject of the photographing operation, and the subject of the photographing operation in the present application is a person, that is, a subject.
And under the condition that a plurality of target objects are included in the shooting preview picture, namely when the current shooting scene is a multi-person group photo scene, the terminal equipment enters an automatic capturing mode.
In an embodiment, the terminal device may perform face detection on the shooting preview picture to obtain the number of faces included in the shooting preview picture, where the number of faces is greater than 1 to indicate that the shooting preview picture includes multiple target objects.
Fig. 2 is a schematic diagram illustrating a terminal device entering an automatic capture mode according to an embodiment of the present disclosure. As shown in fig. 2, a prompt icon for prompting the user that the automatic capture mode is turned on may appear in the photographing preview screen.
And after the terminal equipment enters an automatic capturing mode, acquiring the face characteristics of all target objects. Because the expression of the face is usually dynamically changed, acquiring the face features of all the target objects is also a dynamic operation, and the face features of all the target objects can be obtained by performing face feature recognition on all the target objects uninterruptedly, or by performing face feature recognition on all the target objects at preset intervals, so as to obtain the face features of all the target objects.
The face detection and the face feature recognition belong to image-based face recognition technologies, and the face detection method and the face feature recognition method are not specifically limited in the application.
The facial features include key information of the face, which may also be referred to as facial features or facial features, including position information of the face on the image, key point information of five sense organs, and facial expression information (e.g., whether the eyes are open, smile, whether the eyes are looking at the camera).
It should be noted that the result output by the face feature recognition also includes that the face feature cannot be recognized and/or that the face is incomplete. For example, when the image sharpness is insufficient, the face features cannot be recognized, or the face of the target object does not completely enter the shooting preview screen, the face may be recognized as incomplete.
Step 101, triggering a shooting operation to obtain at least one image under the condition that the face features of at least one target object meet shooting triggering conditions.
And the terminal equipment judges whether the face features of each target object meet the shooting triggering conditions or not.
Wherein the shooting trigger conditions include at least two of:
the face is completely recognized;
the face has smile;
the eyes are opened
Binocular emmetropia/focus cameras.
For example, when a certain target subject has a smile on its face and both eyes are open, the terminal apparatus determines that the target subject satisfies the shooting trigger condition.
In the method, if the face features of at least one target object meet shooting triggering conditions, shooting operation is triggered to obtain at least one image.
The method for enabling the face features of at least one target object to meet the shooting triggering conditions comprises the following steps:
the face features of all target objects meet the shooting triggering condition; alternatively, the first and second liquid crystal display panels may be,
the face features of part of the target objects meet the shooting trigger condition.
It is understood that the photographing operation is triggered once whenever the face feature of at least one target object satisfies the photographing trigger condition.
Here, the photographing operation may be an operation in which the terminal device automatically photographs all target objects, may be an operation in which the terminal device automatically photographs the at least one target object, or may be an operation in which the terminal device automatically photographs a plurality of adjacent target objects including the at least one target object. Fig. 3 is a schematic diagram of triggering a shooting operation according to an embodiment of the present application.
102, obtaining a target image according to the at least one image;
the target image comprises a plurality of target objects, and the human face features of the target objects in the target image all meet the shooting trigger condition.
The target image may be an image obtained by one shooting operation, or may be an image obtained by processing images obtained by multiple shooting operations.
It can be understood that, in the case that the face features of all the target objects satisfy the shooting trigger condition, the target image can be obtained by performing one shooting operation. In some embodiments, multiple frames of images may be obtained through multiple shooting operations, and one image with the best imaging effect may be selected from the multiple frames of images as the target image.
For example, when the terminal device starts the automatic capture mode, the camera starts capturing the facial features of all target objects, the key points include that the faces of all target objects can be completely recognized, the eyes of all target objects are opened, the faces of all target objects have smiles, and the eyes of all target objects are looking at the camera, and when the above conditions are met, the shooting operation is automatically triggered. By analogy, as long as the above conditions are met, the terminal equipment performs automatic capturing and snapshot to obtain a multi-frame image, and selects an optimal image as a target image to output. Optionally, the criteria for the best image include the best image parameters, such as proper brightness, best focal length, etc., in addition to the requirement of satisfying the shooting trigger condition.
Optionally, under the condition that the facial features of part of the target objects meet the shooting trigger condition, the target image needs to be obtained through multiple automatic shooting operations, for example, one frame of image is obtained every time of automatic shooting, multiple frames of images are obtained through multiple automatic shooting, the target object images meeting the shooting trigger condition in each frame of image are extracted and synthesized, and the target image is obtained.
In the embodiment of the application, by acquiring the face characteristics of all target objects in the shooting preview picture, the terminal device automatically shoots to obtain at least one image under the condition that the face characteristics of at least one target object meet the shooting trigger condition, and the target image is obtained according to the at least one image, so that each target object can have at least one optimal piece, the picture which is difficult to shoot manually can be captured for a user, the user is not required to obtain the target image by manually shooting modes such as clicking a shooting key on a display screen of the terminal device or other preset shooting keys, and the piece forming efficiency and quality in a multi-person group-photo scene are improved.
Optionally, on the basis of the foregoing embodiment, in a case that the facial feature of the at least one target object meets the shooting trigger condition, triggering a shooting operation to obtain at least one image includes:
under the condition that the face features of part of the target objects meet the shooting triggering conditions, triggering the shooting operation of all the target objects to obtain initial shot images;
carrying out face feature capture on a target object of which the face features do not meet the shooting trigger condition, and triggering shooting operation to obtain a supplementary shot image under the condition that the captured face features meet the shooting trigger condition;
it can be understood that when the face features of some target objects satisfy the shooting trigger condition, that is, when there is at least one face feature of a target object that does not satisfy the shooting trigger condition, the target image needs to be obtained through multiple automatic shooting operations.
Optionally, when the terminal device determines that the face features of part of the target objects meet the shooting trigger condition based on the face features of all the target objects, the terminal device triggers shooting operations on all the target objects to obtain an initial shot image, that is, first, a frame of image including the target objects meeting the shooting trigger condition is obtained; and then, starting to capture the face characteristics of the target object of which the face characteristics do not meet the shooting trigger condition in the current shooting preview picture, and triggering the shooting operation to obtain a frame of supplementary shooting image when the face characteristics capturing at least one target object meet the shooting trigger condition. And in the same way, ending the shooting until all the target objects meet the shooting triggering condition at least once, and finally obtaining at least one frame of supplementary shot image.
Optionally, the obtaining a target image according to the at least one image includes:
and synthesizing the initial shot image and the supplementary shot image to obtain the target image.
In an alternative embodiment, the target object satisfying the shooting trigger condition in the initial shot image and the supplementary shot image is synthesized to generate the target image.
In the embodiment of the application, by acquiring the face features of all target objects in a shooting preview picture, under the condition that the face features of part of the target objects meet shooting trigger conditions, terminal equipment firstly obtains an initial shooting image through one-time automatic shooting, then carries out face feature capture on the target objects which do not meet the shooting trigger conditions, carries out automatic shooting when the captured face features meet the shooting trigger conditions, obtains a supplementary shooting image, then synthesizes the initial shooting image and the supplementary shooting image, outputs the target image, ensures that each target object can have at least one optimal piece by adding a supplementary shooting mechanism, and can greatly improve the piece forming efficiency and quality in a multi-person group photo scene.
Optionally, on the basis of the foregoing embodiment, the meeting of the facial features of the partial target objects with the shooting trigger condition includes:
the proportion of the number of the target objects with the face characteristics meeting the shooting trigger condition to the total number of the target objects exceeds a preset threshold value;
alternatively, the first and second electrodes may be,
at least one sub-picture of the shooting preview picture meets the shooting trigger condition, wherein the shooting preview picture is divided into a plurality of sub-pictures, and each sub-picture comprises at least one target object.
In one embodiment, the terminal device counts the face features of all the target objects, and if it is determined that the ratio of the number of the target objects with the face features meeting the shooting trigger condition to the total number of the target objects exceeds a preset threshold, for example, more than half of the face features of the target objects meet the shooting trigger condition, the shooting operation is triggered.
Further, the capturing the human face features of the target object whose human face features do not satisfy the shooting trigger condition, and triggering the shooting operation to obtain the supplementary shot image when the captured human face features satisfy the shooting trigger condition, includes:
carrying out face feature capture on target objects which do not meet shooting trigger conditions, and triggering shooting operation under the condition that the face features of at least one target object captured meet the shooting trigger conditions;
and under the condition that the face characteristics of all the target objects meet the shooting triggering condition at least once, finishing the shooting operation to obtain a supplementary shot image.
Fig. 4 is one of schematic diagrams of an initial captured image provided in the embodiment of the present application, and fig. 5 is one of schematic diagrams of a supplementary captured image provided in the embodiment of the present application. As shown in fig. 4, all target objects are automatically photographed first, and a frame of images including the target objects satisfying the photographing trigger condition is obtained; then, as shown in fig. 5, face feature capturing is performed on the remaining target objects that do not satisfy the shooting trigger condition, and in a case where the face feature capturing at least one target object satisfies the shooting trigger condition, a shooting operation is triggered. And by analogy, finishing face feature capture to obtain a supplementary shot image under the condition that the face features of all the target objects meet the shooting triggering condition at least once.
By extracting the optimal face image of each target object captured in the complementary captured image and combining the extracted image with the initial captured image, an optimal image is generated and output as a target image, and fig. 6 is one of schematic diagrams of the target image provided in the embodiment of the present application.
In the embodiment of the application, by acquiring the face features of all target objects in a shooting preview picture, under the condition that the face features of part of the target objects meet shooting trigger conditions, a terminal device firstly obtains an initial shooting image through one-time automatic shooting, then carries out face feature capture on the target objects which do not meet the shooting trigger conditions, carries out automatic shooting when the face features of at least one target object captured meet the shooting trigger conditions, obtains a supplementary shooting image, and can greatly improve the slicing efficiency and quality in a multi-person group photo scene by synthesizing the initial shooting image and the supplementary shooting image.
Optionally, the triggering the shooting operation to obtain an initial shot image when the face features of the partial target objects meet the shooting triggering condition includes:
and under the condition that the face characteristics of the adjacent target objects meet the shooting triggering condition, adjusting the focal length, triggering the shooting operation on the adjacent target objects, and obtaining the image only containing the adjacent target objects.
It should be noted that after the image including only the adjacent target objects is obtained, the shooting parameters, such as the focal length, the depth of field, and the like, in the subsequent supplementary shooting need to be consistent with those in the shooting of the adjacent target objects, so as to ensure the composite effect of multiple photos, for example, the same focal length may make the proportions of the elements (people and background) the same.
Optionally, when the number of the target objects is large, the shooting preview picture is automatically cut into a plurality of sub-pictures, the cutting rule may be that adjacent people automatically form one sub-picture, each sub-picture includes at least one target object, and when at least one sub-picture meets the shooting triggering condition, the shooting operation is triggered.
Further, the capturing the face features of the target object whose face features do not satisfy the shooting trigger condition, and triggering the shooting operation to obtain the supplementary shot image when the captured face features satisfy the shooting trigger condition includes:
capturing the face characteristics of the target object in the sprites which do not meet the shooting triggering conditions, and triggering shooting operation under the condition that at least one captured sprite meets the shooting triggering conditions;
under the condition that all the sub-pictures meet the shooting triggering condition at least once, finishing the shooting operation to obtain a supplementary shot image;
wherein the sub-picture satisfies the shooting trigger condition, including:
and the face features of all target objects in the sub-picture meet the shooting triggering condition.
Fig. 7 is a second schematic diagram of an initial captured image provided in the embodiment of the present application, and fig. 8 is a second schematic diagram of a supplementary captured image provided in the embodiment of the present application. As shown in fig. 7, the shooting preview picture is divided into a plurality of sub-pictures, which may also be called sub-modules, and when at least one sub-picture satisfies the shooting trigger condition, all target objects are automatically shot to obtain one frame of image including the sub-picture satisfying the shooting trigger condition; then, as shown in fig. 8, face feature capturing is performed on the remaining sub-pictures that do not satisfy the shooting trigger condition, and in the case that the face feature capturing at least one sub-picture satisfies the shooting trigger condition, shooting operation is triggered, and so on, until all sub-pictures satisfy the shooting trigger condition at least once, that is, the best image of each sub-picture is obtained, the face feature capturing is ended, and a supplementary shot image is obtained. In particular, the sub-pictures may be subjected to complementary shooting one by one.
By extracting the optimal face image of each sub-picture in the supplementary shot image and combining the extracted image with the initial shot image, an optimal image is generated and output as a target image, and fig. 9 is a second schematic diagram of the target image provided by the embodiment of the present application.
In the embodiment of the application, by acquiring the face characteristics of all target objects in the shooting preview picture, under the condition that at least one sub-picture of the shooting preview picture meets the shooting trigger condition, the terminal equipment firstly obtains an initial shooting image through one-time automatic shooting, then carries out face characteristic capture on the sub-picture which does not meet the shooting trigger condition, carries out automatic shooting when the face characteristics capturing at least one sub-picture meet the shooting trigger condition, obtains a supplementary shooting image, and synthesizes the initial shooting image and the supplementary shooting image, so that the film forming efficiency and quality under a multi-person group photo scene can be greatly improved, and the method is particularly suitable for scenes with a large number of people to be shot.
Optionally, on the basis of the foregoing embodiments, before the obtaining of the face features of all target objects, at least one of the following is further included:
if the faces of the target objects do not completely enter the shooting preview picture, adjusting the focal length, and performing face feature recognition after determining that the faces of all the target objects completely enter the shooting preview picture;
and if the faces of the target objects are not clear, focusing is carried out, and after the faces of all the target objects are determined to be clear, face feature recognition is carried out.
Fig. 10 is a schematic view before the automatic focal length adjustment provided in the embodiment of the present application, and fig. 11 is a schematic view after the automatic focal length adjustment provided in the embodiment of the present application. Specifically, the embodiment of the application adds an automatic trigger mechanism for zooming and focusing, and performs face feature recognition on all target objects, and if the face of the target object is recognized not to completely enter the shooting preview picture and/or the face is not clear, adjusts the focal length and/or performs focusing, determines that the face of all target objects completely enters the shooting preview picture and the face is clear, and then performs face feature recognition to obtain the face features of all target objects, so that the implementation of a subsequent automatic shooting mechanism is easier, and the imaging quality of the obtained target image is higher.
It should be noted that, in the shooting method provided in the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device that is used for executing the loading shooting method. In the embodiment of the present application, a shooting method executed by a shooting device is taken as an example, and the shooting device provided in the embodiment of the present application is described.
Fig. 12 is a schematic structural diagram of a shooting device according to an embodiment of the present application, and as shown in fig. 12, the shooting device includes: a feature acquisition unit 1210, a processing unit 1220, and an output unit 1230, wherein,
a feature acquisition unit 1210 configured to acquire face features of all target objects in a case where a plurality of target objects are included in a shooting preview screen;
the processing unit 1220 is configured to trigger a shooting operation to obtain at least one image when the face feature of the at least one target object meets a shooting trigger condition;
an output unit 1230, configured to obtain a target image according to the at least one image, where the target image includes the multiple target objects, and the face features of the multiple target objects in the target image all satisfy the shooting trigger condition.
Optionally, the processing unit 1220 includes:
the initial shooting sub-unit is used for triggering the shooting operation of all target objects under the condition that the face features of part of the target objects meet the shooting triggering conditions to obtain initial shot images;
the supplementary shooting subunit is used for capturing the face characteristics of the target object with the face characteristics not meeting the shooting triggering conditions, and triggering the shooting operation to obtain a supplementary shot image under the condition that the captured face characteristics meet the shooting triggering conditions;
the output unit 1230 is configured to synthesize the initial captured image and the supplementary captured image to obtain the target image.
Optionally, the step of enabling the facial features of the partial target objects to meet the shooting trigger condition includes:
the proportion of the number of the target objects with the face characteristics meeting the shooting trigger condition to the total number of the target objects exceeds a preset threshold value;
alternatively, the first and second electrodes may be,
at least one sub-picture of the shooting preview picture meets the shooting trigger condition, wherein the shooting preview picture is divided into a plurality of sub-pictures, and each sub-picture comprises at least one target object.
Optionally, the supplementary shooting subunit is configured to:
carrying out face feature capture on target objects which do not meet shooting trigger conditions, and triggering shooting operation under the condition that the face features of at least one target object captured meet the shooting trigger conditions;
and under the condition that the face features of all the target objects meet the shooting triggering condition at least once, finishing the shooting operation and obtaining a supplementary shot image.
Optionally, the supplementary shooting subunit is configured to:
capturing the face characteristics of the target object in the sprites which do not meet the shooting triggering conditions, and triggering shooting operation under the condition that at least one captured sprite meets the shooting triggering conditions;
under the condition that all the sub-pictures meet the shooting triggering condition at least once, finishing the shooting operation to obtain a supplementary shot image;
wherein the sub-picture satisfies the shooting trigger condition, including:
and the human face characteristics of all target objects in the sub-picture meet the shooting trigger condition.
Optionally, the initial shooting subunit is configured to:
and under the condition that the face characteristics of the adjacent target objects meet the shooting triggering condition, adjusting the focal length, triggering the shooting operation on the adjacent target objects, and obtaining an image only containing the adjacent target objects.
Optionally, before the obtaining of the face features of all the target objects, at least one of the following is further included:
if the faces of the target objects do not completely enter the shooting preview picture, adjusting the focal length, and performing face feature recognition after determining that the faces of all the target objects completely enter the shooting preview picture;
and if the faces of the target objects are not clear, focusing is carried out, and after the faces of all the target objects are determined to be clear, face feature recognition is carried out.
The shooting device in the embodiment of the present application may be a device, and may 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 server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, 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 in the shooting method embodiments of fig. 1 to 11, and is not described here again to avoid repetition.
The shooting device provided by the embodiment of the application triggers the shooting operation by acquiring the face characteristics of all target objects in the shooting preview picture under the condition that the face characteristics of at least one target object meet the shooting triggering condition, ensures that each target object can be optimally sliced at least once, and can greatly improve the slicing efficiency and quality in a multi-user group photo scene.
Optionally, an electronic device 1300 is further provided in an embodiment of the present application, as shown in fig. 13, and includes a processor 1301, a memory 1302, and a program or an instruction stored in the memory 1302 and capable of running on the processor 1301, where the program or the instruction is executed by the processor 1301 to implement each process of the 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 devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 14 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1400 includes, but is not limited to: radio unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1410 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. 14 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.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 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.
In the embodiment of the present application, the radio frequency unit 1401 obtains information and then processes the information for the processor 1410. In general, radio unit 1401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 1409 may be used to store software programs or instructions and various data. The memory 1409 may mainly include a stored program or instruction area and a stored data area, wherein the stored program or instruction 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. In addition, the Memory 1409 may include a high-speed random access Memory and may further include a nonvolatile Memory, wherein the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable PROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), or a flash Memory. Such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
Processor 1410 may include one or more processing units; alternatively, processor 1410 may integrate an application processor, which primarily handles operating system, user interface, and applications or instructions, etc., and a modem processor, which primarily handles wireless communications, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The processor 1410 is configured to, in a case that the shooting preview picture includes a plurality of target objects, acquire face features of all the target objects;
under the condition that the face features of at least one target object meet shooting triggering conditions, triggering shooting operation to obtain at least one image;
and obtaining a target image according to the at least one image, wherein the target image comprises the target objects, and the human face characteristics of the target objects in the target image all meet the shooting triggering condition.
The electronic equipment provided by the embodiment of the application triggers the shooting operation to obtain at least one image by acquiring the face characteristics of all target objects in the shot preview picture under the condition that the face characteristics of at least one target object meet the shooting triggering condition, and obtains the target image according to the at least one image, so that each target object can have at least one optimal piece, and the piece forming efficiency and quality under a multi-person group photo scene can be greatly improved.
Optionally, the processor 1410 is further configured to:
under the condition that the face features of part of target objects meet the shooting triggering conditions, triggering the shooting operation of all the target objects to obtain initial shot images;
carrying out face feature capture on a target object with a face feature which does not meet the shooting trigger condition, and triggering shooting operation to obtain a supplementary shot image under the condition that the captured face feature meets the shooting trigger condition;
synthesizing the initial shot image and the supplementary shot image, and outputting a synthesized image;
obtaining a target image according to the at least one image, including:
and synthesizing the initial shooting image and the supplementary shooting image to obtain the target image.
Optionally, the step of enabling the facial features of the part of target objects to meet the shooting trigger condition includes:
the proportion of the number of the target objects with the face characteristics meeting the shooting triggering conditions to the total number of the target objects exceeds a preset threshold value;
alternatively, the first and second electrodes may be,
at least one sub-picture of the shooting preview picture meets the shooting trigger condition, wherein the shooting preview picture is divided into a plurality of sub-pictures, and each sub-picture comprises at least one target object.
Optionally, the processor 1410 is further configured to:
carrying out face feature capture on target objects which do not meet shooting trigger conditions, and triggering shooting operation under the condition that the face features of at least one target object captured meet the shooting trigger conditions;
and under the condition that the face features of all the target objects meet the shooting triggering condition at least once, finishing the shooting operation and obtaining a supplementary shot image.
Optionally, the processor 1410 is further configured to:
carrying out face feature capture on a target object in the sprites which do not meet the shooting trigger condition, and triggering shooting operation under the condition that at least one sprite is captured and meets the shooting trigger condition;
under the condition that all the sub-pictures meet the shooting triggering condition at least once, finishing the shooting operation to obtain a supplementary shot image;
wherein the sub-picture satisfies the shooting trigger condition, including:
and the face features of all target objects in the sub-picture meet the shooting triggering condition.
Optionally, the processor 1410 is further configured to:
and under the condition that the face characteristics of the adjacent target objects meet the shooting triggering condition, adjusting the focal length, triggering the shooting operation on the adjacent target objects, and obtaining the image only containing the adjacent target objects.
Optionally, before acquiring the facial features of all target objects, the processor 1410 is further configured to perform at least one of the following:
if the faces of the target objects do not completely enter the shooting preview picture, adjusting the focal length, and performing face feature recognition after determining that the faces of all the target objects completely enter the shooting preview picture;
and if the faces of the target objects are not clear, focusing is carried out, and after the faces of all the target objects are determined to be clear, face feature recognition is carried out.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing shooting method embodiment, and can achieve the same technical effects, 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 a system-on-chip, or a system-on-chip.
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 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 present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (9)

1. A photographing method, characterized by comprising:
under the condition that a plurality of target objects are included in a shooting preview picture, acquiring the face characteristics of all the target objects;
under the condition that the face features of at least one target object meet shooting triggering conditions, triggering shooting operation to obtain at least one image;
obtaining a target image according to the at least one image, wherein the target image comprises the target objects, and the face features of the target objects in the target image all meet the shooting trigger condition;
wherein, under the condition that the human face feature of at least one target object meets the shooting triggering condition, triggering the shooting operation to obtain at least one image comprises:
under the condition that the face features of part of target objects meet the shooting triggering conditions, triggering shooting operation to obtain an initial shot image;
carrying out face feature capture on a target object with a face feature which does not meet the shooting trigger condition, and triggering shooting operation to obtain a supplementary shot image under the condition that the captured face feature meets the shooting trigger condition;
obtaining a target image according to the at least one image, including:
and synthesizing the initial shot image and the supplementary shot image to obtain the target image.
2. The shooting method according to claim 1, wherein the face features of the partial target objects satisfy a shooting trigger condition, including:
the proportion of the number of the target objects with the face characteristics meeting the shooting triggering conditions to the total number of the target objects exceeds a preset threshold value;
alternatively, the first and second electrodes may be,
at least one sub-picture of the shooting preview picture meets the shooting trigger condition, wherein the shooting preview picture is divided into a plurality of sub-pictures, and each sub-picture comprises at least one target object.
3. The shooting method according to claim 2, wherein the capturing of the face features of the target object whose face features do not satisfy the shooting trigger condition and the triggering of the shooting operation to obtain the supplementary shot image when the captured face features satisfy the shooting trigger condition comprises:
carrying out face feature capture on target objects which do not meet shooting trigger conditions, and triggering shooting operation under the condition that the face features of at least one target object captured meet the shooting trigger conditions;
and under the condition that the face features of all the target objects meet the shooting triggering condition at least once, finishing the shooting operation and obtaining a supplementary shot image.
4. The shooting method according to claim 2, wherein the capturing of the face features of the target object whose face features do not satisfy the shooting trigger condition and the triggering of the shooting operation to obtain the supplementary shot image when the captured face features satisfy the shooting trigger condition comprises:
capturing the face characteristics of the target object in the sprites which do not meet the shooting triggering conditions, and triggering shooting operation under the condition that at least one captured sprite meets the shooting triggering conditions;
under the condition that all the sub-pictures meet the shooting triggering condition at least once, finishing the shooting operation to obtain a supplementary shot image;
wherein the sub-picture satisfies the shooting trigger condition, including:
and the face features of all target objects in the sub-picture meet the shooting triggering condition.
5. The shooting method according to claim 1, wherein in the case that the face features of the partial target objects satisfy the shooting trigger condition, triggering a shooting operation to obtain an initial shot image comprises:
and under the condition that the face characteristics of the adjacent target objects meet the shooting triggering condition, adjusting the focal length, triggering the shooting operation on the adjacent target objects, and obtaining the image only containing the adjacent target objects.
6. The shooting method according to claim 1, wherein before the obtaining of the face features of all target objects, at least one of the following is further included:
if the faces of the target objects do not completely enter the shooting preview picture, adjusting the focal length, and performing face feature recognition after determining that the faces of all the target objects completely enter the shooting preview picture;
and if the faces of the target objects are not clear, focusing is carried out, and after the faces of all the target objects are determined to be clear, face feature recognition is carried out.
7. A camera, comprising:
a feature acquisition unit configured to acquire face features of all target objects in a case where the plurality of target objects are included in the shooting preview screen;
the processing unit is used for triggering shooting operation under the condition that the face characteristics of at least one target object meet shooting triggering conditions to obtain at least one image;
the output unit is used for obtaining a target image according to the at least one image, the target image comprises the multiple target objects, and the human face characteristics of the multiple target objects in the target image all meet the shooting triggering condition;
wherein, under the condition that the human face feature of at least one target object meets the shooting triggering condition, triggering the shooting operation to obtain at least one image comprises:
under the condition that the face features of part of target objects meet shooting triggering conditions, triggering shooting operation to obtain an initial shooting image;
carrying out face feature capture on a target object with a face feature which does not meet the shooting trigger condition, and triggering shooting operation to obtain a supplementary shot image under the condition that the captured face feature meets the shooting trigger condition;
obtaining a target image according to the at least one image, including:
and synthesizing the initial shooting image and the supplementary shooting image to obtain the target image.
8. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, carry out the steps of the photographing method according to any one of claims 1-6.
9. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the shooting method according to any one of claims 1 to 6.
CN202110113814.6A 2021-01-27 2021-01-27 Shooting method and device, electronic equipment and storage medium Active CN112887613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110113814.6A CN112887613B (en) 2021-01-27 2021-01-27 Shooting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110113814.6A CN112887613B (en) 2021-01-27 2021-01-27 Shooting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112887613A CN112887613A (en) 2021-06-01
CN112887613B true CN112887613B (en) 2022-08-19

Family

ID=76052907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110113814.6A Active CN112887613B (en) 2021-01-27 2021-01-27 Shooting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112887613B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151325A (en) * 2018-10-26 2019-01-04 昆山亿趣信息技术研究院有限公司 A kind of processing method and processing unit synthesizing smiling face

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6945663B2 (en) * 2002-06-14 2005-09-20 Tseng-Lu Chien Tubular electro-luminescent light incorporated with device(s)
JP2009141516A (en) * 2007-12-04 2009-06-25 Olympus Imaging Corp Image display device, camera, image display method, program, image display system
CN108419012A (en) * 2018-03-18 2018-08-17 广东欧珀移动通信有限公司 Photographic method, device, storage medium and electronic equipment
CN108513069B (en) * 2018-03-30 2021-01-08 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN108495038B (en) * 2018-03-30 2021-09-07 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
JP2020150360A (en) * 2019-03-12 2020-09-17 パナソニックi−PROセンシングソリューションズ株式会社 Wearable camera and image data generation method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151325A (en) * 2018-10-26 2019-01-04 昆山亿趣信息技术研究院有限公司 A kind of processing method and processing unit synthesizing smiling face

Also Published As

Publication number Publication date
CN112887613A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US9888176B2 (en) Video apparatus and photography method thereof
CN112312016B (en) Shooting processing method and device, electronic equipment and readable storage medium
CN112637500B (en) Image processing method and device
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
CN112887617B (en) Shooting method and device and electronic equipment
CN113141450A (en) Shooting method, shooting device, electronic equipment and medium
CN112333382B (en) Shooting method and device and electronic equipment
CN112087579B (en) Video shooting method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN112839166B (en) Shooting method and device and electronic equipment
CN112399078B (en) Shooting method and device and electronic equipment
CN113194256A (en) Shooting method, shooting device, electronic equipment and storage medium
CN112887613B (en) Shooting method and device, electronic equipment and storage medium
CN112887624B (en) Shooting method and device and electronic equipment
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
JP7058309B2 (en) Imaging method, imaging device and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN113596329A (en) Photographing method and photographing apparatus
CN112312024A (en) Photographing processing method and device and storage medium
CN112637491A (en) Photographing method and photographing apparatus
CN112911148B (en) Image processing method and device and electronic equipment
CN114827477B (en) Method, device, electronic equipment and medium for time-lapse photography
CN114157810B (en) Shooting method, shooting device, electronic equipment and 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