CN113747011A - Auxiliary shooting method and device, electronic equipment and medium - Google Patents

Auxiliary shooting method and device, electronic equipment and medium Download PDF

Info

Publication number
CN113747011A
CN113747011A CN202111013041.0A CN202111013041A CN113747011A CN 113747011 A CN113747011 A CN 113747011A CN 202111013041 A CN202111013041 A CN 202111013041A CN 113747011 A CN113747011 A CN 113747011A
Authority
CN
China
Prior art keywords
shooting
target
photographing
terminal equipment
relative position
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.)
Granted
Application number
CN202111013041.0A
Other languages
Chinese (zh)
Other versions
CN113747011B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111013041.0A priority Critical patent/CN113747011B/en
Publication of CN113747011A publication Critical patent/CN113747011A/en
Application granted granted Critical
Publication of CN113747011B publication Critical patent/CN113747011B/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/50Constructional details
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The present disclosure relates to the field of image capturing technologies, and in particular, to an auxiliary capturing method, an auxiliary capturing device, an electronic apparatus, and a medium. The method comprises the following steps: identifying a target shooting object in a shooting interface of the terminal equipment; determining the relative position between a target shooting object and the terminal equipment; determining a target shooting mode of a target shooting object at the determined relative position; and shooting the target shooting object based on the determined target shooting mode. Through the method and the device, the portrait in the shot image can be better in shooting effect, a good original image base can be provided for image retouching, and even the image retouching step can be omitted, so that the shooting requirement of a user is met.

Description

Auxiliary shooting method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of image capturing technologies, and in particular, to an auxiliary capturing method, an auxiliary capturing device, an electronic apparatus, and a medium.
Background
With the development of technology, the phenomenon of taking pictures by using intelligent equipment is very common. The common shooting mode mainly comprises two conditions of single self-shooting and multi-person shooting. In the process of one-man self-shooting, a photographer needs to adjust the position relationship between the mobile phone and the face for many times, and a good shooting effect can be obtained. In the process of shooting by multiple persons, due to different position relations between multiple shooting targets and the camera, the near persons are easy to shoot large round faces and large chin, and the far persons are easy to shoot small faces.
Although the photographed image can be subjected to image correction, if the photographing effect of the original image is not good, a perfect photographed image cannot be obtained after image correction, so that the general pursuit of photographing is to make photographing simpler and make the photographing effect better.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide at least an auxiliary shooting method, an auxiliary shooting apparatus, an electronic device and a computer-readable storage medium to overcome at least one of the above technical disadvantages.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides an auxiliary shooting method for a terminal device, where the auxiliary shooting method includes: identifying a target shooting object in a shooting interface of the terminal equipment; determining the relative position between a target shooting object and the terminal equipment; determining a target shooting mode of a target shooting object at the determined relative position; and shooting the target shooting object based on the determined target shooting mode.
In one possible embodiment, the terminal device may comprise a depth camera, the relative position being determined by means of the depth camera.
In one possible embodiment, the target shooting mode may include a shooting orientation adjustment shooting mode, wherein the step of shooting the target shooting object based on the determined target shooting mode may include: determining the current shooting direction of the terminal equipment at the determined relative position; determining the deviation between the current shooting position of the terminal equipment and the target shooting position at the relative position; and according to the deviation, adjusting the current shooting orientation of the terminal equipment to shoot.
In one possible embodiment, the current photographing orientation may include a first angle value for characterizing a pinch angle value formed by the terminal device and the line and the vertical direction of the target photographing object and a second angle value for characterizing a pinch angle value formed by the terminal device and the line and the horizontal direction of the target photographing object, the target photographing orientation includes a first target angle value for characterizing a pinch angle value formed by the best photographing orientation and the line and the vertical direction of the target photographing object and a second target angle value for characterizing a pinch angle value formed by the best photographing orientation and the line and the horizontal direction of the target photographing object, and the step of determining the deviation between the current photographing orientation and the target photographing orientation in the relative position may include: determining a first angle difference value between a first angle value corresponding to the terminal equipment and a first target angle value; and determining a second angle difference value between a second angle value corresponding to the terminal equipment and a second target angle value.
In one possible embodiment, the shooting orientation of the target in the relative position is determined by: and determining a target shooting azimuth corresponding to the relative position based on a pre-constructed shooting data set, wherein the shooting data set comprises a plurality of parameter combinations, and each parameter combination comprises a target relative position between the terminal equipment and the shooting object, a first angle value formed by a connecting line between the terminal equipment and the shooting object and a vertical direction at the target relative position, and a second angle value formed by a connecting line between the terminal equipment and the shooting object and a horizontal direction.
In a possible embodiment, the step of adjusting the current shooting orientation of the terminal device for shooting according to the deviation may include: determining a first deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the vertical direction according to the first angle difference; determining a second deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the horizontal direction according to the second angle difference; and adjusting the current shooting orientation of the terminal equipment according to the determined first deviation direction and the second deviation direction to shoot.
In one possible embodiment, the terminal device may include a camera for capturing a target photographic subject, and the step of adjusting the current photographing orientation of the terminal device to photograph may include one of the following steps: the current shooting direction of the terminal equipment is changed by controlling the rotation of a holder connected with the camera; or displaying prompt information on the shooting interface to prompt the user to manually change the current shooting orientation of the terminal equipment.
In one possible implementation, the prompt message may include a first prompt message and a second prompt message, and the step of displaying the prompt message on the shooting interface may include: displaying first prompt information for prompting a user to change the shooting angle of the terminal equipment in the vertical direction on a shooting interface according to the determined first deviation direction; and displaying second prompt information for prompting the user to change the shooting angle of the terminal equipment in the horizontal direction on the shooting interface according to the determined second deviation direction.
In a possible implementation manner, the prompt message further includes a third prompt message, wherein the step of displaying the prompt message on the shooting interface further includes: and in the process that the user changes the shooting angle of the terminal equipment, if the change of the relative position between the target shooting object and the terminal equipment is detected, displaying third prompt information on a shooting interface for prompting the user to adjust the terminal equipment to eliminate the change.
In a possible implementation manner, the auxiliary shooting method may further include: if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction, cancelling prompt information displayed on a shooting interface; and/or, further comprising one of the following steps: if the shooting position adjusted by the terminal equipment is consistent with the target shooting position, automatically shooting the target shooting object in the target shooting position; or if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction, prompting the user that the current shooting direction is adjusted to the target shooting direction in a preset prompting mode.
In one possible implementation, the target shooting mode may include a portrait adjustment shooting mode, wherein the step of shooting the target shooting object based on the determined target shooting mode may include: determining the current shooting direction of the terminal equipment at the determined relative position; determining the deviation between the current shooting position of the terminal equipment and the target shooting position at the relative position; and according to the deviation, adjusting the display size of the target shooting object in the shooting interface to shoot.
In one possible embodiment, the current shooting orientation may include a relative angle between the terminal device and the target shooting object, the target shooting orientation may include a target shooting angle at the relative position, and the deviation may include an angle difference between the determined relative angle at the relative position and the target shooting angle.
In one possible embodiment, the step of adjusting the display size of the target photographic subject within the photographic interface for photographing according to the deviation may include: and according to the deviation, adjusting the occupied area of the face area of the target shooting object in the shooting interface to shoot.
In one possible embodiment, the step of determining the target shooting mode of the target shooting object in the determined relative position may include one of the following steps: responding to the triggering operation of a portrait adjusting control on a shooting interface, and determining a portrait adjusting shooting mode aiming at a target shooting object as a target shooting mode; or, in response to the triggering operation of the equipment adjusting control on the shooting interface, determining the shooting direction adjusting shooting mode aiming at the terminal equipment as a target shooting mode; or, the target shooting mode is determined according to the number of target shooting objects in the shooting interface.
In one possible embodiment, a plurality of objects can be included in the camera interface, wherein the target object is determined by: in response to selection of any one of a plurality of photographic subjects within the photographic interface, the selected photographic subject is determined as a target photographic subject.
In one possible embodiment, the target photographic object may include a plurality of target photographic objects, the relative position may include a relative position between each target photographic object and the terminal device, and the target photographic mode may include a portrait adjustment photographic mode, wherein the step of photographing the target photographic object based on the determined target photographic mode may include: for each target shooting object, determining the current shooting orientation of the terminal equipment at the relative position corresponding to the target shooting object; for each target shooting object, determining the deviation between the current shooting orientation of the terminal equipment and the target shooting orientation at the relative position; and for each target shooting object, adjusting the display size of the target shooting object in the shooting interface according to the deviation corresponding to the target shooting object.
In a second aspect, an embodiment of the present application further provides an auxiliary shooting device for a terminal device, including: the identification module is used for identifying a target shooting object in a shooting interface of the terminal equipment; the computing module is used for determining the relative position between the target shooting object and the terminal equipment; the judging module is used for determining a target shooting mode of the target shooting object at the determined relative position; and the control module is used for shooting the target shooting object based on the determined target shooting mode.
In a third aspect, an embodiment of the present application further provides an electronic device, including: the terminal device comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the memory communicate through the bus, and when the processor runs, the machine-readable instructions execute the steps of the auxiliary shooting method for the terminal device in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the auxiliary shooting method for a terminal device described in the first aspect or any one of the possible implementation manners of the first aspect are performed.
According to the auxiliary shooting method, the auxiliary shooting device, the electronic equipment and the storage medium, the relative position of the target shooting object and the terminal equipment is determined by automatically identifying the target shooting image in the shooting interface of the terminal equipment, and in one case, corresponding adjustment information is generated according to the relative position and the shooting direction of the terminal equipment and the target shooting object, so that the optimal shooting position is formed between the target shooting object and the terminal equipment for image shooting; in another situation, the display size of the target shooting object in the shooting interface is calculated and corrected according to the relative position and the shooting direction of the terminal equipment and the target shooting object, so that each portrait in the shot image presents a better angle and effect no matter when a single person or a plurality of persons shoot, a good original image base can be provided for repairing the image, the image repairing step can be even omitted, and the requirement that people seek beautification by using intelligent equipment to shoot the portrait is met.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of an auxiliary shooting method provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating a step of adjusting a shooting mode to shoot a target shooting object based on a shooting orientation according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a first angle value for characterizing a included angle value formed by a connecting line and a vertical direction of a terminal device and a target photographic object according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a second angle value for characterizing a included angle value formed by a connecting line and a horizontal direction of the terminal device and the target photographic object according to the embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a first angle difference provided by an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a second angular difference provided by an embodiment of the present application;
fig. 7 is a flowchart illustrating a step of adjusting a current shooting orientation of a terminal device according to an embodiment of the present application;
fig. 8 is a schematic diagram illustrating that a first prompt message and/or a second prompt message are displayed on a shooting interface according to an embodiment of the present application;
FIG. 9 is a flowchart illustrating steps of adjusting a shooting mode to shoot a target shooting object based on a portrait;
fig. 10 and fig. 11 are schematic diagrams illustrating comparison between before and after adjustment of a display size of a target photographic object in a photographic interface based on a portrait adjustment shooting mode according to an embodiment of the present application;
fig. 12 is a schematic structural diagram illustrating an auxiliary camera provided in an embodiment of the present application;
fig. 13 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, 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 should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to utilize the present disclosure, the following embodiments are presented in conjunction with a specific application scenario "assisted shooting by terminal device", and it will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and application scenarios without departing from the spirit and scope of the present disclosure.
The following method, apparatus, electronic device or computer-readable storage medium in the embodiments of the present application may be applied to any scenario that requires auxiliary shooting, and the embodiments of the present application do not limit specific application scenarios, and any scheme that uses the auxiliary shooting method and apparatus provided in the embodiments of the present application is within the scope of the present application.
It is noted that, before the present application is proposed, as technology develops, the phenomenon of taking a picture using a smart device has become very common. The common shooting mode mainly comprises two conditions of single self-shooting and multi-person shooting. In the process of one-man self-timer shooting, a photographer needs to adjust the position relation between the intelligent device and the face for multiple times, and a good shooting effect can be obtained. In the process of shooting by multiple persons, due to different position relations between multiple shooting targets and the camera, the near persons are easy to shoot large round faces and large chin, and the far persons are easy to shoot small faces.
Although the photographed image can be subjected to image correction, if the original image is not good in photographing effect, a perfect photographed image cannot be obtained after image correction, so that the simple photographing and the good photographing effect are common pursuits.
In view of the foregoing problems, embodiments of the present application provide an auxiliary shooting method, an auxiliary shooting apparatus, an electronic device, and a computer-readable storage medium, so as to implement at least one of the following: the method comprises the steps of prompting adjustment of a shooting position for a user shooting through the terminal equipment or correcting a shooting target with an imperfect shooting position to obtain a perfect shooting image.
For the convenience of understanding of the present application, detailed descriptions of an auxiliary shooting method, an auxiliary shooting device, an electronic device, and a storage medium provided in the embodiments of the present application are provided below.
Referring to fig. 1, in an auxiliary shooting method provided in the embodiment of the present application, the auxiliary shooting method shown in fig. 1 may be executed in a terminal device, and as shown in fig. 1, the auxiliary shooting method specifically includes:
s101: identifying a target shooting object in a shooting interface of the terminal equipment;
s102: determining the relative position between a target shooting object and the terminal equipment;
s103: determining a target shooting mode of a target shooting object at the determined relative position;
s104: and shooting the target shooting object based on the determined target shooting mode.
The above exemplary steps provided by the embodiments of the present application are described below by taking the application of the above method to a terminal device as an example.
In step S101, the terminal device refers to an electronic device that is held by the photographer and used for shooting, and may be an electronic device having a shooting function, such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a video camera, or a game machine.
In this embodiment, the shooting interface refers to a shooting preview interface displayed on a screen of the terminal device after the terminal device starts a shooting function, for example, after a camera is started, and a captured preview screen is displayed in the shooting interface.
The target photographic subject may include, but is not limited to, a person, an animal, and an object appearing in the photographic interface, and for example, in the case where the target photographic subject is a person or an animal, at least a face image of the target photographic subject may be included in the photographic interface.
Illustratively, the terminal device may have a front camera and a rear camera, and the preview screen displayed in the shooting interface may be a screen captured by the front camera or a screen captured by the rear camera.
Specifically, the photographer starts a shooting function of the terminal device, aims the lens at a target shooting object to be shot, and the terminal device recognizes the target shooting object from the shooting interface.
In step S102, for example, the relative position between the target photographic subject and the terminal device may be a straight-line distance from a target area (such as a center point of a face) of the target photographic subject to a center point of a camera of the terminal device.
In the embodiment of the present application, the target area of the target photographic object may be identified from the preview image of the photographic interface, and here, the target area of the target photographic object may be identified from the preview image through various image identification methods, which is not limited in the present application. For example, a contour of the target photographic subject may be recognized from the preview image, and a center point of the recognized contour may be determined as the target area. For example, the target area may be a center point of a contour of the object in the case where the target object is an object, the recognized contour may be a face contour in the case where the target object is a person or an animal, and the target area may be a center point of a face.
For example, the terminal device of the present application may include a depth camera, and the depth camera captures depth data of a target photographic subject, so as to determine a relative position between the target photographic subject and the terminal device.
As an example, in the embodiment of the present application, the camera used for capturing the preview screen displayed in the shooting interface may be the depth camera described above, or may be another camera configured in the terminal device besides the depth camera.
For the case that the terminal device is configured with a depth camera and a normal camera, the normal camera may be started, and a preview picture captured by the normal camera is displayed in a shooting interface, and at the same time, a shooting direction of the normal camera is determined (here, it may also be determined whether the normal camera belongs to a front camera or a rear camera), whether the shooting direction of the depth camera is consistent with the shooting direction of the normal camera is determined, if the shooting directions of the depth camera and the normal camera are consistent (for example, both belong to a front arrangement mode or both belong to a rear arrangement mode), the depth camera is started to determine a relative position between a target shooting object and the terminal device, and if the shooting directions of the depth camera and the normal camera are not consistent (for example, both the front arrangement mode and the rear arrangement mode are respectively adopted), the auxiliary shooting method is not executed.
In a preferred embodiment, two depth cameras may be provided, one of which is arranged in a front position to capture images in front of the terminal device and the other of which is arranged in a rear position to capture images behind the terminal device. Therefore, the auxiliary shooting method can be executed when any one of the front-end camera and the rear-end camera is started.
In step S103, the target shooting mode at least includes a shooting orientation adjustment shooting mode and a portrait adjustment shooting mode, for example, the shooting orientation adjustment shooting mode is used to adjust the shooting orientation of the terminal device, and the portrait adjustment shooting mode is used to adjust the portrait of the target shooting object in the shooting interface. The shooting direction adjusting shooting mode can comprise an automatic adjusting mode and a manual adjusting mode, and under the manual adjusting mode, a photographer can be informed of prompt information so as to adjust the shooting direction of the terminal equipment; the portrait adjustment shooting mode is to correct the preview image of the target shooting object presented in the shooting interface. However, any of the above-described imaging methods is realized when the relative position between the target imaging object and the terminal device is determined.
Further, the target shooting style for the target shooting object may be determined in the following manner.
In the first case, the portrait adjusting shooting mode is selected by triggering the portrait adjusting control.
For example, a portrait adjusting control may be displayed on the shooting interface, in which case, in response to a triggering operation of the portrait adjusting control on the shooting interface, the portrait adjusting shooting mode for the target shooting object is determined as the target shooting mode.
For example, the portrait adjusting control may be a portrait beautifying button displayed in the shooting interface, and when the portrait beautifying button is selected, the portrait adjusting shooting mode is selected as the target shooting mode.
In the second case, the shooting azimuth adjustment shooting mode is selected by the trigger operation of the device adjustment control.
For example, a device adjustment control may be further displayed on the shooting interface, and in this case, in response to a trigger operation on the device adjustment control on the shooting interface, the shooting orientation adjustment shooting mode for the terminal device is determined as the target shooting mode.
For example, the device adjustment control may be a focus button displayed in the shooting interface, and when the focus button is selected, the shooting orientation adjustment shooting mode is selected as the target shooting mode.
It should be understood that the present application is not limited thereto, and may also respond to a focusing operation performed on the shooting interface, which may include a click focusing operation performed on the shooting interface for a certain target shooting subject, at which time the shooting orientation adjustment shooting mode is selected as the target shooting mode.
In the third case, the target shooting mode is determined according to the number of target shooting objects in the shooting interface.
For example, if the number of target subjects in the imaging interface is one, the imaging bearing adjustment imaging method is selected as the target imaging method, and if the number of target subjects in the imaging interface is plural, the portrait adjustment imaging method is selected as the target imaging method.
In step S104, the target photographic subject is photographed based on the target photographic manner determined in step S103 to generate a photographic image containing the target photographic subject.
For example, a current shooting orientation of the terminal device at the determined relative position may be determined, and a deviation between the current shooting orientation of the terminal device and a target shooting orientation at the determined relative position may be determined; and shooting the target shooting object according to the deviation. Here, the current shooting orientation of the terminal device may be adjusted or the display size of the target photographic subject within the shooting interface may be adjusted according to the above-described deviation to perform shooting.
And acquiring the current shooting direction of the terminal equipment at the determined relative position and acquiring the target shooting direction of the terminal equipment at the relative position based on the relative position of the current terminal equipment and the target shooting object under the condition that the target shooting mode is the shooting direction adjustment shooting mode. And adjusting the current shooting position of the terminal equipment according to the deviation between the current shooting position and the target shooting position. For example, the prompt information may be generated according to the deviation to prompt the photographer to adjust the shooting orientation between the terminal device and the target shooting object, and when the difference between the shooting orientation and the target shooting orientation is close to zero, it indicates that the position relationship and the shooting angle between the current terminal device and the target shooting object are appropriate, and the prompt information is not sent.
Determining the current shooting direction of the terminal equipment at the determined relative position based on the relative position between each target shooting object and the terminal equipment after receiving a shooting instruction for shooting an image according to the condition that the target shooting mode is the image adjustment shooting mode; determining the deviation between the current shooting orientation of the terminal equipment and the target shooting orientation at the relative position to obtain a corresponding preset image position, calculating a difference value based on the preset image position and the image position of the current target shooting object in the shooting interface, correcting the image position of the target shooting object in the shooting interface according to the difference value, and adjusting the display size of the target shooting object in the shooting interface according to the deviation to generate a shooting image.
In the embodiment, the relative position of the target shooting object and the terminal equipment is determined by automatically identifying the target shooting image in the shooting interface of the terminal equipment, and in one case, corresponding prompt information is generated according to the relative position and the shooting direction of the terminal equipment and the target shooting object, so that the optimal shooting position is formed between the target shooting object and the terminal equipment for image shooting; in another situation, the display size of the target shooting object in the shooting interface is calculated and corrected according to the relative position and the shooting direction of the terminal equipment and the target shooting object, so that each portrait in the shot image presents a better angle and effect no matter when a single person or a plurality of persons shoot, a good original image base can be provided for repairing the image, the image repairing step can be even omitted, and the requirement that people seek beautification by using intelligent equipment to shoot the portrait is met.
Further, the terminal device comprises a depth camera, and the relative position is determined by the depth camera. The depth camera here can output a normal planar shot image and also output depth information (i.e., a relative position in the present application) of a shot object, and the image information output by the depth camera includes three-dimensional position and size information, so that the terminal device can obtain three-dimensional stereo data of a corresponding shooting background and the shot object in the shot image.
Illustratively, the depth camera herein may be a structured light depth camera, a binocular stereo depth camera, and a time of flight depth camera. Structured light depth cameras are preferred here, which are suitable for being arranged on small terminal devices and with which the terminal device is configured to be relatively cost-effective.
Next, a process of photographing a target photographic subject in a case where the target photographic mode is a photographing orientation adjustment photographic mode will be described with reference to fig. 2.
Fig. 2 is a flowchart of a step of adjusting a shooting mode to shoot a target shooting object based on a shooting orientation according to an embodiment of the present application. As shown in fig. 2, specifically includes:
s201: determining the current shooting direction of the terminal equipment at the determined relative position;
s202: determining the deviation between the current shooting position of the terminal equipment and the target shooting position at the relative position;
s203: and according to the deviation, adjusting the current shooting orientation of the terminal equipment to shoot.
In step S201, the shooting orientation here includes, but is not limited to, a first angle value for characterizing a value of a pinch angle formed by the terminal device and the line and the vertical direction of the target photographic subject, and a second angle value for characterizing a value of a pinch angle formed by the terminal device and the line and the horizontal direction of the target photographic subject.
Fig. 3 is a schematic diagram of a first angle value used for characterizing a included angle value formed by a connecting line and a vertical direction between a terminal device and a target photographic object according to an embodiment of the present application. Fig. 4 is a schematic diagram of a second angle value used for characterizing an included angle value formed by a connecting line between the terminal device and the target photographic object and a horizontal direction according to an embodiment of the present application.
As shown in fig. 3 and 4, C denotes a target photographic subject, D denotes a terminal device, and fig. 3 is a schematic view of a positional relationship between the terminal device D and the target photographic subject C as viewed from a side view direction, and fig. 4 is a schematic view of a positional relationship between the terminal device D and the target photographic subject C as viewed from a top view direction, the terminal device D having a depth camera by which three-dimensional coordinate data of the target photographic subject can be determined. For example, assuming that a coordinate system is constructed with the position of the terminal device D as the origin of coordinates (e.g., the lens center of the depth camera), the coordinate position of the target object C in the constructed coordinate system can be determined by the depth camera, and the linear distance s between the terminal device and the target object can be calculated according to the coordinate position of the target object C0Here, s0The method is used for representing the relative position between the terminal equipment and the target shooting object, and can also calculate a first angle value of an included angle value formed by a connecting line and the vertical direction of the terminal equipment and the target shooting object
Figure BDA0003239525370000121
And a second angle value for representing an included angle value formed by a connecting line of the terminal equipment and the target shooting object and the horizontal direction
Figure BDA0003239525370000122
In step S202, the target shooting orientation at the above-described relative position is first determined, and then the deviation between the current shooting orientation of the terminal device and the target shooting orientation is determined.
For example, a shooting data set may be constructed in advance, and a target shooting orientation corresponding to the current relative position may be determined based on the constructed shooting data set.
The target photographing orientation herein may include a first target angle value for representing a pinch angle value formed by the optimal photographing orientation with a line and a vertical direction of the target photographing object and a second target angle value for representing a pinch angle value formed by the optimal photographing orientation with the line and a horizontal direction of the target photographing object. That is, a first target angle value formed by a connecting line and a vertical direction of the terminal device and the target photographic object at the determined relative position
Figure BDA0003239525370000131
And a second target angle value formed by a connecting line of the terminal equipment and the target shooting object at the relative position and the horizontal direction
Figure BDA0003239525370000132
For example, a plurality of parameter combinations may be included in the photographing data set, one parameter combination being used to indicate a relative position between the terminal device and the target photographic subject and an optimal photographing orientation at the relative position. Illustratively, historical captured images of different subjects can be acquired, and when the best effect is obtained by capturing the images of the subjects, the corresponding relative position s between the terminal device and the subjects and the first angle value V can be acquiredsA second angle value VpConstructing a continuous data set of shooting-position-related data
Figure BDA0003239525370000133
Where k is the number of the shooting position-related data in the shooting data set, that is, the number of the parameter combinations.
For example, each parameter combination may include at least three parameters, namely, a relative position s between the terminal device and the object to be photographed, and a first angle value VsA second angle value VpWhere the relative position s denotes the terminal device and the subjectA first angle value V of the straight line distancesA first angle value and a second angle value V formed by a connecting line of the terminal equipment and the target shooting object at the relative position s and the vertical directionpAnd a second angle value formed by a connecting line of the terminal equipment and the target shooting object at the relative position s and the horizontal direction is shown.
The relative position s between the terminal equipment and the target shooting object is determined in the above way0Then, the relative position s is found from a plurality of parameter combinations of the shooting data set0Matched relative position, assumed relative position smAnd relative position s0Match, then relative position smIn a combination of parameters
Figure BDA0003239525370000134
Determined as a first target angle value and a second target angle value at the relative position s 0.
In this case, the step of determining the deviation between the current photographing orientation of the terminal device and the target photographing orientation in the relative position may include: and determining a first angle difference value between a first angle value corresponding to the terminal equipment and a first target angle value, and determining a second angle difference value between a second angle value corresponding to the terminal equipment and a second target angle value.
Fig. 5 is a schematic diagram of a first angle difference provided in an embodiment of the present application. Fig. 6 is a schematic diagram of a second angular difference provided in the embodiment of the present application.
As shown in fig. 5 and 6, a represents the current position of the terminal device, and when the terminal device is at the position a, the relative position between the terminal device and the target photographic object is snThe first angle value of the included angle value formed by the connecting line of the terminal equipment and the target shooting object and the vertical direction is
Figure BDA0003239525370000135
The second angle value of the included angle value formed by the connecting line of the terminal equipment and the target shooting object and the horizontal direction is
Figure BDA0003239525370000136
Suppose that the first target angle value at the relative position sn is determined to be
Figure BDA0003239525370000137
The second target angle value is
Figure BDA0003239525370000141
At the moment, a first angle value corresponding to the terminal equipment is determined
Figure BDA0003239525370000142
Angle with first target value
Figure BDA0003239525370000143
Is different from the first angle
Figure BDA0003239525370000144
Determining a second angle value corresponding to the terminal device
Figure BDA0003239525370000145
Angle with second target value
Figure BDA0003239525370000146
Second angle difference of
Figure BDA0003239525370000147
It will be understood that s in FIG. 5nCorresponding to the relative position in the embodiment of the present application, the terminal device position corresponding to position a is an initial position, and the terminal device position corresponding to position B is a target position corresponding to the first target angle value in the side view direction. In fig. 6, C is a target position corresponding to the second target angle in the top view direction. The terminal device at the position B and the terminal device at the position C are actually the best shooting positions corresponding to the current relative position of the same terminal device in space, and the user shoots at the target position to obtain a better shooting image.
Fig. 7 is a flowchart of a step of adjusting a current shooting orientation of a terminal device according to an embodiment of the present application. As shown in fig. 7, in step S203, the step of adjusting the current shooting orientation of the terminal device to perform shooting according to the deviation specifically includes the following steps:
s301: determining a first deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the vertical direction according to the first angle difference;
s302: determining a second deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the horizontal direction according to the second angle difference;
s303: and adjusting the current shooting orientation of the terminal equipment according to the determined first deviation direction and the second deviation direction to shoot.
In step S301, a first deviation direction of the current shooting orientation of the terminal device at the determined relative position with respect to the target shooting orientation in the vertical direction is determined according to the first angle difference, and first prompt information for prompting the user to change the shooting angle of the terminal device in the vertical direction is generated according to the first deviation direction. And if the first angle difference is zero, not generating the first prompt message.
In step S302, a second deviation direction of the current shooting orientation of the terminal device in the determined relative position with respect to the target shooting orientation in the horizontal direction is determined according to the second angle difference, and second prompt information for prompting the user to change the shooting angle of the terminal device in the horizontal direction is generated according to the second deviation direction. And if the second angle difference is zero, not generating second prompt information.
In step S303, the first prompt message and/or the second prompt message generated in steps S301 and S302 are displayed in the shooting interface of the terminal device to prompt the photographer to adjust the shooting orientation of the terminal device and the target shooting object according to the prompt message.
Fig. 8 shows a schematic diagram that shows the first prompt message and/or the second prompt message displayed on the shooting interface according to the embodiment of the present application.
In this example, the first prompt information may include adjustment instruction information in a vertical direction, which is a direction for prompting the user to adjust the terminal device, and the adjustment in accordance with the prompted direction may move the terminal device to the target shooting orientation. The second prompt information may include adjustment instruction information in a horizontal direction, where the direction indicated by the adjustment instruction information is a direction for prompting a user to adjust the terminal device, and the adjustment according to the prompted direction may move the terminal device to the target shooting orientation.
It should be understood that the present application is not limited thereto, and the above prompt information may also be information for prompting the user to adjust the orientation of the user, for example, prompting the user to turn the head or adjust the height of the body. In the above example, graphics (e.g., "← ↓ → ↓") are used as the presentation information, but the present application is not limited thereto, and the presentation information may be presented in text on the imaging interface, or the presentation information may be played back in a language.
In a preferred example, the prompt information displayed on the shooting interface may further include third prompt information, in which case, if it is detected that the relative position between the target photographic subject and the terminal device is changed during the process of changing the shooting angle of the terminal device by the user, the third prompt information is displayed on the shooting interface for prompting the user to adjust the terminal device to eliminate the change. The reason why the third prompt message is displayed is that, considering that the adjustment of the shooting orientation depends on the relative position between the terminal device and the target shooting object, if the relative position between the terminal device and the target shooting object changes during the adjustment of the shooting orientation, the first target angle value and the second target angle value at the relative positions also change accordingly, which results in that the terminal device cannot achieve the best shooting effect even if the terminal device is adjusted to the target shooting orientation. Based on this, the third prompt information can be displayed in the shooting interface, so that the user can keep the relative position between the terminal device and the target shooting object unchanged as much as possible in the process of adjusting the shooting direction of the terminal device, and the best shooting effect is achieved.
Taking the above-mentioned fig. 8 as an example, a three-dimensional prompt graphic may be displayed in the shooting interface, a first direction of the three-dimensional prompt graphic indicates a horizontal direction, a user is prompted to adjust a shooting angle of the terminal device in the horizontal direction based on prompt information in the first direction, a second direction of the three-dimensional prompt graphic indicates a vertical direction, a user is prompted to adjust a shooting angle of the terminal device in the vertical direction based on prompt information in the second direction, a third direction of the three-dimensional prompt graphic indicates a front-back direction (i.e., a direction in which the terminal device approaches the target shooting object and a direction in which the terminal device moves away from the target shooting object), and a distance between the terminal device and the target shooting object is prompted to be adjusted based on prompt information in the third direction.
In the embodiment of the application, besides the above manner of prompting the user to manually adjust the shooting orientation of the terminal device, the current shooting orientation of the terminal device can be changed by controlling the rotation of the holder connected with the camera. Here, the camera connected to the pan/tilt head is a camera for capturing a shooting interface in the terminal apparatus.
In an optional embodiment, the auxiliary shooting method may further include: and if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction, canceling the prompt message displayed on the shooting interface. Here, the first prompt information may be cancelled if the first angle value in the vertical direction coincides with the first target angle value, and the second prompt information may be cancelled if the second angle value in the horizontal direction coincides with the second target angle value.
In addition, the auxiliary shooting method may further include: if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction, the target shooting object is automatically shot in the target shooting direction, and here, shooting can be directly and automatically carried out, or shooting can be carried out in response to a shooting instruction after the shooting direction is consistent with the target shooting direction.
In a preferred example, if the shooting orientation adjusted by the terminal device is consistent with the target shooting orientation, the user is prompted in a preset prompting manner that the current shooting orientation is adjusted to the target shooting orientation, and after the preset prompting manner is set, the target shooting object is shot in the above manual or automatic manner.
As an example, the preset prompting manner may include, but is not limited to, any one of the following: the method includes the steps of emitting prompt tones (e.g., a droplet, a beep), displaying a mark (e.g., a graphic mark, a text mark) indicating adjustment to a target shooting orientation in a shooting interface, performing voice broadcast, and canceling prompt messages displayed on the shooting interface of the terminal device.
The standard for judging the consistency of the shooting orientation adjusted by the terminal device and the target shooting orientation is that the absolute value of the first angle difference and/or the second angle difference is smaller than a preset range. For example, a person skilled in the art may set the value of the preset range according to actual needs.
Fig. 9 is a flowchart of a step of adjusting a shooting mode to shoot a target shooting object based on a portrait according to an embodiment of the present application. As shown in fig. 9, the specific steps include:
s401: determining the current shooting direction of the terminal equipment at the determined relative position;
s402: determining the deviation between the current shooting position of the terminal equipment and the target shooting position at the relative position;
s403: and according to the deviation, adjusting the display size of the target shooting object in the shooting interface to shoot.
In step S401, the current shooting orientation includes a relative angle between the terminal device and the target shooting object, where the relative angle may include a first angle value used to represent a included angle value formed by a connecting line between the terminal device and the target shooting object and a vertical direction and a second angle value used to represent a included angle value formed by a connecting line between the terminal device and the target shooting object and a horizontal direction.
In step S402, the target photographing orientation includes a target photographing angle at the determined relative position, the target photographing angle including a first target angle value for representing a pinch angle value formed by the optimal photographing orientation with a line and a vertical direction of the target photographing object and a second target angle value for representing a pinch angle value formed by the optimal photographing orientation with the line and a horizontal direction of the target photographing object. Here, the manner of determining the target shooting orientation may refer to the manner of determining the target shooting orientation in step S202 of fig. 2, and details of this portion are not repeated in this application.
The deviation includes an angle difference between the relative angle at the current relative position and the target photographing angle. Here, the calculation method of the angle difference between the relative angle and the target photographing angle may refer to the calculation method of the deviation between the current photographing orientation and the target photographing orientation determined in step S202 of fig. 2 described above.
In step S403, the occupation area of the face region of the target photographic subject within the photographic interface may be adjusted according to the deviation to perform photographing.
For example, the shooting position related data may further include a correction value and/or a corresponding correction method in a preset shooting data set. The correction value may be an angle difference between the relative angle and the target photographing angle, or may be a degree value set based on different relative positions and their corresponding angle differences to characterize the adjustment of the image display size. A corresponding correction method may also be set in advance based on each correction value.
For example, the occupied area of the face region in the shooting interface may be reduced according to an absolute value or a degree value of the angle difference, and the reduction is more obvious when the absolute value or the degree value is larger.
For example, when the correction value is an angle difference between the relative angle and the target photographing angle, the face image of the target photographing object is moved by a predetermined number of pixel points in the preset direction according to the area, so as to reduce the occupied area of the face area of the target photographing object. Here, the face region may be moved inward by a certain number of pixel points in the vertical direction according to the absolute value of the angle difference in the vertical direction, and/or the face region may be moved inward by a certain number of pixel points in the horizontal direction according to the absolute value of the angle difference in the horizontal direction. The number of the moving pixels changes along with the change of the absolute value of the angle difference, the larger the absolute value is, the more the number of the moving pixels is, and the smaller the absolute value is, the less the number of the moving pixels is.
In a preferred embodiment, the auxiliary shooting method of the present application can be further applied to shooting of a plurality of shot objects.
For example, when a plurality of photographic subjects are included in the photographic interface, the target photographic subject can be determined in the following manner: in response to selection of any one of a plurality of photographic subjects within the photographic interface, the selected photographic subject is determined as a target photographic subject.
Specifically, when a plurality of shooting objects are included in the shooting interface, the mode of multi-person shooting is described, and when a photographer clicks and focuses on one shooting object in the shooting interface through the terminal device or the camera automatically focuses on one shooting object, the shooting object is used as a target shooting object. In this case, the adjustment can be performed based on the one target photographic subject in the above manner.
In another embodiment, in the case where the target photographic subject includes a plurality of persons, multi-person photographing may be performed in the following manner.
For example, the target photographing mode may include a portrait adjustment photographing mode, and the relative position may include a relative position between each target photographing object and the terminal device.
In this case, the step of photographing the target photographic subject based on the determined target photographic manner includes: for each target shooting object, determining the current shooting orientation of the terminal equipment at the relative position corresponding to the target shooting object; for each target shooting object, determining the deviation between the current shooting orientation of the terminal equipment and the target shooting orientation at the relative position; and for each target shooting object, adjusting the display size of the target shooting object in the shooting interface according to the deviation corresponding to the target shooting object.
It is to be understood that, when a plurality of target photographic subjects are provided and a plurality of target photographic subjects are photographed by the portrait adjustment photographing manner, the processes of steps S401 to S403 may be performed for each target photographic subject, that is, the correction may be performed for each target photographic subject to form a final photographed image.
Fig. 10 and 11 are schematic diagrams illustrating comparison between before and after adjustment of a display size of a target photographic object within a photographic interface based on a portrait adjustment shooting mode according to an embodiment of the present application.
As shown in fig. 10 and 11, in the present example, the number of target photographic objects is two, and the occupied area of the face region of each target photographic object within the photographic interface may be adjusted based on the relative position between each target photographic object and the terminal device to obtain a final image.
Through the method and the device, whether the image is shot by a single person or multiple persons, each portrait in the shot image can show a better shooting angle and shooting effect, a good original image base can be provided for image retouching, and image retouching steps can be even omitted, so that the shooting requirements of users are met.
Based on the same application concept, an auxiliary shooting device for a terminal device corresponding to the method provided by the above embodiment is also provided in the embodiment of the present application, and as the principle of solving the problem of the device in the embodiment of the present application is similar to the auxiliary shooting method for a terminal device in the above embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are omitted.
Fig. 12 is a schematic structural diagram of an auxiliary camera according to an embodiment of the present application. As shown in fig. 12, the auxiliary photographing apparatus 500 provided in the embodiment of the present application includes:
an identifying module 510, configured to identify a target photographic object within a photographic interface of a terminal device;
a calculating module 520, configured to determine a relative position between the target photographic object and the terminal device;
a determining module 530, configured to determine a target shooting mode of the target shooting object at the determined relative position;
and the control module 540 is configured to shoot the target shooting object based on the determined target shooting mode.
Further, the terminal device comprises a depth camera, and the relative position is determined by the depth camera.
Further, in one case, the target photographing mode includes a photographing orientation adjustment photographing mode.
Wherein, the judging module specifically includes:
the first judgment submodule is used for determining the current shooting direction of the terminal equipment at the determined relative position;
the second judgment submodule is used for determining the deviation between the current shooting azimuth of the terminal equipment and the target shooting azimuth at the relative position;
and the first adjusting module is used for adjusting the current shooting direction of the terminal equipment according to the deviation so as to shoot.
Further, the shooting orientation includes a first angle value for representing a line connecting the terminal device and the target shooting object and forming a included angle value in a vertical direction and a second angle value for representing a included angle value forming the line connecting the terminal device and the target shooting object and in a horizontal direction, and the target shooting orientation includes a first target angle value for representing an included angle value forming the optimal shooting orientation and the line connecting the optimal shooting orientation and the target shooting object and in the vertical direction and a second target angle value for representing an included angle value forming the optimal shooting orientation and the line connecting the optimal shooting orientation and the target shooting object and in the horizontal direction.
Further, the second control module is specifically configured to: and determining a target shooting azimuth corresponding to the relative position based on a pre-constructed shooting data set, wherein the shooting data set comprises a plurality of parameter combinations, and each parameter combination comprises a target relative position between the terminal equipment and the shooting object, a first angle value formed by a connecting line between the terminal equipment and the shooting object and a vertical direction at the target relative position, and a second angle value formed by a connecting line between the terminal equipment and the shooting object and a horizontal direction.
Wherein, the second judgment submodule specifically includes:
the first difference module is used for determining a first angle difference between a first angle value corresponding to the terminal equipment and a first target angle value;
and the second difference module is used for determining a second angle difference between a second angle value corresponding to the terminal equipment and the second target angle value.
Further, the first adjusting module specifically includes:
the first deviation direction module is used for determining a first deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the vertical direction according to the first angle difference;
the second deviation direction module is used for determining a second deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the horizontal direction according to the second angle difference;
and the first adjusting submodule is used for adjusting the current shooting orientation of the terminal equipment according to the determined first deviation direction and the second deviation direction so as to shoot.
Further, the terminal device includes a camera for shooting the subject. The first adjustment module further comprises:
the first control module is used for changing the current shooting direction of the terminal equipment by controlling the rotation of a holder connected with the camera;
and the second control module is used for displaying prompt information on the shooting interface so as to prompt a user to manually change the current shooting direction of the terminal equipment.
Further, the prompt message includes a first prompt message and a second prompt message. Wherein, the second control module specifically includes:
the first display module is used for displaying first prompt information for prompting a user to change the shooting angle of the terminal equipment in the vertical direction on the shooting interface according to the determined first deviation direction;
and the second display module is used for displaying second prompt information for prompting the user to change the shooting angle of the terminal equipment in the horizontal direction on the shooting interface according to the determined second deviation direction.
Further, the prompt message further includes a third prompt message. Wherein the second control module is further configured to: and in the process that the user changes the shooting angle of the terminal equipment, if the change of the relative position between the target shooting object and the terminal equipment is detected, displaying third prompt information on a shooting interface for prompting the user to adjust the terminal equipment to eliminate the change.
In one possible embodiment, the auxiliary camera further includes:
the prompt information control module is used for canceling the prompt information displayed on the shooting interface if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction; and/or the presence of a gas in the gas,
further comprising:
the automatic shooting module is used for automatically shooting the target shooting object in the target shooting direction if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction;
and the position prompting module is used for prompting the user that the current shooting position is adjusted to the target shooting position in a preset prompting mode if the shooting position adjusted by the terminal equipment is consistent with the target shooting position.
Further, the target shooting mode comprises a portrait adjusting shooting mode.
Wherein, the judging module specifically includes:
the third judgment submodule is used for determining the current shooting direction of the terminal equipment at the determined relative position;
the fourth judgment submodule is used for determining the deviation between the current shooting azimuth of the terminal equipment and the target shooting azimuth at the relative position;
and the second adjusting module is used for adjusting the display size of the target shooting object in the shooting interface according to the deviation so as to shoot.
Further, the shooting orientation includes a relative angle between the terminal device and the target shooting object, the target shooting orientation includes a target shooting angle corresponding to the relative position, and the deviation includes an angle difference between the relative angle at the determined relative position and the target shooting angle.
Further, the second adjusting module is specifically configured to:
and according to the deviation, adjusting the occupied area of the face area of the target shooting object in the shooting interface to shoot.
Further, the judging module specifically includes:
the first response module is used for responding to the triggering operation of the portrait adjusting control on the shooting interface and determining the portrait adjusting shooting mode aiming at the target shooting object as the target shooting mode;
and the second response module is used for responding to the triggering operation of the equipment adjusting control on the shooting interface and determining the shooting direction adjusting shooting mode aiming at the terminal equipment as the target shooting mode.
Further, a plurality of shooting objects are included in the shooting interface.
The device also comprises a target shooting object determining module which is used for responding to the selection of any shooting object in a plurality of shooting objects in the shooting interface and determining the selected shooting object as the target shooting object.
In one possible implementation, the target photographic object comprises a plurality of objects, the relative position comprises the relative position between each target photographic object and the terminal equipment, and the target photographic mode comprises a portrait adjusting photographic mode. Wherein, the control module specifically includes:
the single first judgment module is used for determining the current shooting direction of the terminal equipment at the relative position corresponding to each target shooting object;
the single second judgment module is used for determining the deviation between the current shooting direction of the terminal equipment and the target shooting direction at the relative position aiming at each target shooting object;
and the single person adjusting module is used for adjusting the display size of each target shooting object in the shooting interface according to the corresponding deviation of the target shooting object.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 13, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 runs, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the auxiliary shooting method in any of the above embodiments may be executed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the auxiliary shooting method in any of the above embodiments may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. 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 and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (19)

1. An auxiliary shooting method, characterized in that the auxiliary shooting method comprises:
identifying a target shooting object in a shooting interface of the terminal equipment;
determining the relative position between a target shooting object and the terminal equipment;
determining a target shooting mode of a target shooting object at the determined relative position;
and shooting the target shooting object based on the determined target shooting mode.
2. The auxiliary photographing method according to claim 1, wherein the terminal device includes a depth camera, and the relative position is determined by the depth camera.
3. The auxiliary photographing method according to claim 1, wherein the target photographing mode includes a photographing orientation adjustment photographing mode,
wherein the step of photographing the target photographic object based on the determined target photographic manner comprises:
determining the current shooting direction of the terminal equipment at the determined relative position;
determining the deviation between the current shooting orientation of the terminal equipment and the target shooting orientation at the relative position;
and adjusting the current shooting direction of the terminal equipment according to the deviation so as to shoot.
4. The auxiliary photographing method of claim 3, wherein the current photographing orientation includes a first angle value for characterizing a pinch angle value formed by a connection line of the terminal device with the target photographing object and a vertical direction and a second angle value for characterizing a pinch angle value formed by a connection line of the terminal device with the target photographing object and a horizontal direction, the target photographing orientation includes a first target angle value for characterizing a pinch angle value formed by a best photographing orientation with the connection line of the target photographing object and the vertical direction and a second target angle value for characterizing a pinch angle value formed by a best photographing orientation with the connection line of the target photographing object and the horizontal direction,
wherein the step of determining the deviation between the current shooting orientation of the terminal device and the target shooting orientation at the relative position comprises:
determining a first angle difference value between a first angle value corresponding to the terminal equipment and a first target angle value;
and determining a second angle difference value between a second angle value corresponding to the terminal equipment and a second target angle value.
5. The auxiliary photographing method according to claim 4, wherein the photographing orientation with respect to the target at the relative position is determined by:
and determining a target shooting orientation corresponding to the relative position based on a pre-constructed shooting data set, wherein the shooting data set comprises a plurality of parameter combinations, and each parameter combination comprises a target relative position between the terminal equipment and the shooting object, a first angle value formed by a connecting line between the terminal equipment and the shooting object and a vertical direction at the target relative position, and a second angle value formed by a connecting line between the terminal equipment and the shooting object and a horizontal direction.
6. The auxiliary photographing method according to claim 4, wherein the step of adjusting the current photographing orientation of the terminal device to photograph according to the deviation comprises:
determining a first deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the vertical direction according to the first angle difference;
determining a second deviation direction of the current shooting azimuth of the terminal equipment relative to the target shooting object in the horizontal direction according to the second angle difference;
and adjusting the current shooting orientation of the terminal equipment according to the determined first deviation direction and the second deviation direction to shoot.
7. The auxiliary photographing method according to claim 6, wherein the terminal device includes a camera for capturing a target photographic subject, and the step of adjusting a current photographing orientation of the terminal device to photograph includes one of the steps of:
the current shooting direction of the terminal equipment is changed by controlling the rotation of a holder connected with the camera;
alternatively, the first and second electrodes may be,
and displaying prompt information on the shooting interface to prompt a user to manually change the current shooting direction of the terminal equipment.
8. The auxiliary photographing method according to claim 7, wherein the cue information includes first cue information and second cue information,
the step of displaying the prompt message on the shooting interface comprises the following steps:
displaying first prompt information for prompting a user to change the shooting angle of the terminal equipment in the vertical direction on the shooting interface according to the determined first deviation direction;
and displaying second prompt information for prompting the user to change the shooting angle of the terminal equipment in the horizontal direction on the shooting interface according to the determined second deviation direction.
9. The auxiliary photographing method of claim 8, wherein the prompt information further includes third prompt information,
wherein, the step of displaying the prompt message on the shooting interface further comprises:
and in the process that the user changes the shooting angle of the terminal equipment, if the change of the relative position between the target shooting object and the terminal equipment is detected, displaying third prompt information on the shooting interface for prompting the user to adjust the terminal equipment to eliminate the change.
10. The auxiliary photographing method according to claim 7, further comprising: if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction, cancelling prompt information displayed on a shooting interface;
and/or, further comprising one of the following steps:
if the shooting position adjusted by the terminal equipment is consistent with the target shooting position, automatically shooting the target shooting object in the target shooting position;
or if the shooting direction adjusted by the terminal equipment is consistent with the target shooting direction, prompting the user that the current shooting direction is adjusted to the target shooting direction in a preset prompting mode.
11. The auxiliary photographing method according to claim 1, wherein the target photographing mode includes a portrait adjustment photographing mode,
wherein the step of photographing the target photographic object based on the determined target photographic manner comprises:
determining the current shooting direction of the terminal equipment at the determined relative position;
determining the deviation between the current shooting orientation of the terminal equipment and the target shooting orientation at the relative position;
and adjusting the display size of the target shooting object in the shooting interface according to the deviation so as to shoot.
12. The auxiliary photographing method according to claim 11, wherein the current photographing orientation includes a relative angle between the terminal device and a target photographing object, the target photographing orientation includes a target photographing angle at the relative position, and the deviation includes an angle difference between the determined relative angle at the relative position and the target photographing angle.
13. The auxiliary photographing method according to claim 11, wherein the adjusting of the display size of the target photographic subject within the photographing interface for photographing according to the deviation comprises:
and adjusting the occupied area of the face area of the target shooting object in the shooting interface according to the deviation so as to shoot.
14. The auxiliary photographing method according to claim 3 or 11, wherein the step of determining a target photographing mode of the target photographing object at the determined relative position comprises one of the steps of:
responding to the triggering operation of the portrait adjusting control on the shooting interface, and determining the portrait adjusting shooting mode aiming at the target shooting object as a target shooting mode;
alternatively, the first and second electrodes may be,
responding to the triggering operation of the equipment adjusting control on the shooting interface, and determining the shooting direction adjusting shooting mode aiming at the terminal equipment as a target shooting mode;
alternatively, the first and second electrodes may be,
and determining a target shooting mode according to the number of target shooting objects in the shooting interface.
15. The auxiliary photographing method according to claim 1, wherein a plurality of photographing objects are included in the photographing interface,
wherein the target photographic object is determined by the following method:
in response to selection of any one of a plurality of photographic subjects within the photographic interface, the selected photographic subject is determined as a target photographic subject.
16. The auxiliary photographing method according to claim 1, wherein the target photographic subject includes a plurality of, the relative position includes a relative position between each target photographic subject and a terminal device, the target photographic mode includes a portrait adjustment photographic mode,
wherein the step of photographing the target photographic object based on the determined target photographic manner comprises:
for each target shooting object, determining the current shooting orientation of the terminal equipment at the relative position corresponding to the target shooting object;
for each target shooting object, determining the deviation between the current shooting orientation of the terminal equipment and the target shooting orientation at the relative position;
and for each target shooting object, adjusting the display size of the target shooting object in the shooting interface according to the deviation corresponding to the target shooting object.
17. An auxiliary photographing apparatus, comprising:
the identification module is used for identifying a target shooting object in a shooting interface of the terminal equipment;
the computing module is used for determining the relative position between the target shooting object and the terminal equipment;
the judging module is used for determining a target shooting mode of the target shooting object at the determined relative position;
and the control module is used for shooting the target shooting object based on the determined target shooting mode.
18. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the auxiliary photographing method according to any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, performs the steps of the auxiliary photographing method according to any one of claims 1 to 16.
CN202111013041.0A 2021-08-31 2021-08-31 Auxiliary shooting method and device, electronic equipment and medium Active CN113747011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111013041.0A CN113747011B (en) 2021-08-31 2021-08-31 Auxiliary shooting method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111013041.0A CN113747011B (en) 2021-08-31 2021-08-31 Auxiliary shooting method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113747011A true CN113747011A (en) 2021-12-03
CN113747011B CN113747011B (en) 2023-10-24

Family

ID=78734273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111013041.0A Active CN113747011B (en) 2021-08-31 2021-08-31 Auxiliary shooting method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113747011B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245022A (en) * 2022-02-23 2022-03-25 浙江宇视系统技术有限公司 Scene self-adaptive shooting method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018045654A1 (en) * 2016-09-09 2018-03-15 深圳市大疆创新科技有限公司 Method and system for displaying state of mobile device and control device
CN108476288A (en) * 2017-05-24 2018-08-31 深圳市大疆创新科技有限公司 Filming control method and device
CN111093022A (en) * 2018-10-24 2020-05-01 西安中兴新软件有限责任公司 Image shooting method, device, terminal and computer storage medium
CN111935393A (en) * 2020-06-28 2020-11-13 百度在线网络技术(北京)有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN112738388A (en) * 2019-10-28 2021-04-30 七鑫易维(深圳)科技有限公司 Photographing processing method and system, electronic device and storage medium
CN113301252A (en) * 2021-05-20 2021-08-24 努比亚技术有限公司 Image photographing method, mobile terminal and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018045654A1 (en) * 2016-09-09 2018-03-15 深圳市大疆创新科技有限公司 Method and system for displaying state of mobile device and control device
CN108476288A (en) * 2017-05-24 2018-08-31 深圳市大疆创新科技有限公司 Filming control method and device
CN111093022A (en) * 2018-10-24 2020-05-01 西安中兴新软件有限责任公司 Image shooting method, device, terminal and computer storage medium
CN112738388A (en) * 2019-10-28 2021-04-30 七鑫易维(深圳)科技有限公司 Photographing processing method and system, electronic device and storage medium
CN111935393A (en) * 2020-06-28 2020-11-13 百度在线网络技术(北京)有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN113301252A (en) * 2021-05-20 2021-08-24 努比亚技术有限公司 Image photographing method, mobile terminal and computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245022A (en) * 2022-02-23 2022-03-25 浙江宇视系统技术有限公司 Scene self-adaptive shooting method, electronic equipment and storage medium
CN114245022B (en) * 2022-02-23 2022-07-12 浙江宇视系统技术有限公司 Scene self-adaptive shooting method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113747011B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN106934777B (en) Scanning image acquisition method and device
US20230132407A1 (en) Method and device of video virtual background image processing and computer apparatus
CN108605087B (en) Terminal photographing method and device and terminal
WO2018040180A1 (en) Photographing method and apparatus
EP3490252A1 (en) Method and device for image white balance, storage medium and electronic equipment
CN108124102B (en) Image processing method, image processing apparatus, and computer-readable storage medium
KR101703013B1 (en) 3d scanner and 3d scanning method
KR101148508B1 (en) A method and device for display of mobile device, and mobile device using the same
CN111093022A (en) Image shooting method, device, terminal and computer storage medium
CN111290659A (en) Writing board information recording method and system and writing board
CN113747011A (en) Auxiliary shooting method and device, electronic equipment and medium
CN113302908B (en) Control method, handheld cradle head, system and computer readable storage medium
CN111914785B (en) Method, device and storage medium for improving definition of face image
CN115174878B (en) Projection picture correction method, apparatus and storage medium
CN109934168B (en) Face image mapping method and device
WO2015198478A1 (en) Image distortion correction apparatus, information processing apparatus and image distortion correction method
CN111726531B (en) Image shooting method, processing method, device, electronic equipment and storage medium
CN112640420B (en) Control method, device, equipment and system of electronic device
CN112154652A (en) Control method and control device of handheld cloud deck, handheld cloud deck and storage medium
JP7346594B2 (en) User equipment and strabismus correction method
US11949993B2 (en) Electric device, controlling method of controlling electric device, and computer readable storage medium
CN110771147A (en) Method for adjusting parameters of shooting device, control equipment and shooting system
US20230351632A1 (en) Method for providing visual content, host, and computer readable storage medium
CN112070681B (en) Image processing method and device
CN111985280B (en) Image processing method and device

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