WO2023029992A1 - 拍摄方法、装置、电子设备和存储介质 - Google Patents

拍摄方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023029992A1
WO2023029992A1 PCT/CN2022/112921 CN2022112921W WO2023029992A1 WO 2023029992 A1 WO2023029992 A1 WO 2023029992A1 CN 2022112921 W CN2022112921 W CN 2022112921W WO 2023029992 A1 WO2023029992 A1 WO 2023029992A1
Authority
WO
WIPO (PCT)
Prior art keywords
shooting
information
picture
pose
current
Prior art date
Application number
PCT/CN2022/112921
Other languages
English (en)
French (fr)
Inventor
赵世佳
Original Assignee
北京字跳网络技术有限公司
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 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Priority to JP2023576334A priority Critical patent/JP2024525143A/ja
Priority to EP22863132.1A priority patent/EP4340379A4/en
Publication of WO2023029992A1 publication Critical patent/WO2023029992A1/zh
Priority to US18/535,045 priority patent/US20240129624A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • 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/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/635Region indicators; Field of view indicators

Definitions

  • Embodiments of the present disclosure relate to the technical field of photographing, for example, to a photographing method, device, electronic device, and storage medium.
  • a user can take pictures through a terminal device.
  • the shooting effect of the captured video or picture is not ideal, causing the user to spend a lot of energy to find a suitable shooting method to re-shoot or re-shoot the captured video or picture.
  • Retouching, poor shooting experience due to the lack of shooting experience, it often happens that the shooting effect of the captured video or picture is not ideal, causing the user to spend a lot of energy to find a suitable shooting method to re-shoot or re-shoot the captured video or picture. Retouching, poor shooting experience.
  • Embodiments of the present disclosure provide a shooting method, device, electronic equipment, and storage medium, so as to improve the shooting effect of videos or pictures.
  • an embodiment of the present disclosure provides a shooting method, including:
  • the camera is controlled to shoot the shooting object.
  • an embodiment of the present disclosure further provides a photographing device, including:
  • the prompt information display module is configured to generate current shooting prompt information based on the current key part ratio information, and display the current shooting prompt information on the shooting page, the current shooting prompt information includes shooting angle prompt information and shooting At least one of the distance prompt information;
  • the photographing module is configured to control the camera to photograph the photographed object when a photographing instruction is received.
  • an embodiment of the present disclosure also provides an electronic device, including:
  • memory is set to store program
  • the processor When the program is executed by the processor, the processor implements the photographing method described in the embodiment of the present disclosure.
  • the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the photographing method as described in the embodiments of the present disclosure is implemented.
  • FIG. 1 is a schematic flowchart of a shooting method provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a shooting page display provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of displaying another shooting page provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of a list of recommended poses provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural block diagram of a shooting device provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • FIG. 1 is a schematic flowchart of a photographing method provided by an embodiment of the present disclosure.
  • the method can be executed by a photographing device, wherein the device can be implemented by at least one of software and hardware, and can be configured in an electronic device, typically, a mobile phone or a tablet computer.
  • the shooting method provided by the embodiments of the present disclosure is applicable to a scene in which at least one of a shooting angle and a shooting distance of a user is prompted.
  • the shooting method provided in this embodiment may include:
  • the photographed object can be understood as an object photographed by the electronic device, such as a person or an animal photographed by the electronic device, and the following description will be made by taking the photographed object as an example.
  • the current key part ratio information can be understood as the photographer's key part ratio information in the current preview image.
  • the proportion information of the key parts may be the proportion information of the key parts of the photographed object in the photographer's body, or the proportion information between the key parts of the photographed object and the preset parts of the photographed object.
  • the key part ratio information is the ratio information between the key part of the photographed object and the preset part of the photographed object as an example for illustration.
  • the key part may include at least one of the head and the legs; the ratio information may be length ratio information, such as ratio information in a direction parallel to the human body; the preset part may be the upper body of the subject (such as including or head not included).
  • the electronic device displays the shooting page, and during the process of displaying the shooting page, periodically determines the proportion information of the current key part of the shooting object in the current preview image captured by the camera.
  • the head, legs and upper body of the subject can be identified according to the current preview screen , respectively determine the length information of the subject's head, legs and upper body in the vertical direction of the shooting screen, and calculate the head ratio information of the subject in the current preview screen according to the length information of the subject's head and the length information of the upper body , and, according to the length information of the legs of the subject and the length information of the upper body, the proportion information of the legs of the subject in the current preview image is calculated, so as to obtain the proportion information of the current key parts of the subject.
  • the determining the proportion information of the current key parts according to the current preview image collected by the camera includes: acquiring the current preview image collected by the camera; determining the first key point information of the subject according to the current preview image, as the The current posture information of the shooting object; and determine the current key part ratio information according to the current posture information.
  • the key point information as the current posture information of the photographed object, identifies the key parts and preset parts of the photographed object according to the current posture information, and determines the length information of the key parts of the photographed object in the preview screen and the length information of the preset parts in the preview screen length information, and calculate the length ratio information between the key part of the photographed object and the preset part according to the length information, and use it as the current key part ratio information of the photographed object.
  • S102 Generate current shooting prompt information based on the current key part ratio information, and display the current shooting prompt information on the shooting page, where the current shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information one.
  • the generating the current shooting prompt information based on the current key part ratio information includes: using the current key part ratio information as the current shooting prompt information; or, according to the current key part ratio information and preset key The relative size of the part ratio information generates current shooting prompt information; or, according to the deviation information between the current key part ratio information and the preset key part ratio information, determines the shooting correction information, and stores the shooting correction information As the current shooting prompt information.
  • the current key part ratio information may include the subject's head ratio information, leg ratio information, or a combination of the above contents in the current preview image; the relative size between the current key part ratio information and the preset key part ratio information
  • the prompt information can be the information used to prompt the relative size, such as the information prompting that the head ratio/leg ratio is too large or too small
  • the shooting correction information can be the information used to correct the user's shooting defects at the current moment, such as When the proportion of the head of the subject in the current preview picture is too large, or, when the proportion of the legs of the subject in the current preview picture is too small, the user may be prompted to increase the shooting distance (such as moving the camera backward), or, Prompt the user to adjust the shooting angle downward (such as moving the camera downward). down to adjust the shooting angle.
  • the shooting method provided in this embodiment further includes: displaying a target pose template on the upper layer of the preview screen displayed on the shooting page, wherein the target pose template is used to guide the shooting subject to present a corresponding shooting posture.
  • the electronic device may display a target pose template on the shooting page, and guide the shooting pose of the subject through the target pose template. For example, when the electronic device initially displays the shooting page, it may not immediately generate and display the current shooting prompt information, but when it is determined that the user has the willingness to perform shooting prompts/guidance, for example, after receiving a trigger to use a gesture template to perform shooting guidance During operation, the current shooting prompt information is periodically generated and displayed, so as to avoid unnecessary interference to the user caused by the display of the shooting prompt information, and improve the shooting experience of the user. This situation will be described below as an example.
  • the shooting guidance triggering operation may be a triggering operation instructing the electronic device to perform shooting posture guidance through the target posture template, that is, a triggering operation instructing the electronic device to display the target posture template, such as selecting or importing a posture picture.
  • the target pose template can be the pose template that the user wants to use for shooting guidance, such as the template selected by the user or the template corresponding to the pose picture imported by the user.
  • a wireframe diagram of which can be used to guide the subject to assume the corresponding shooting pose for shooting.
  • the display mode of the gesture template on the shooting page can be set as required, for example, the gesture template can be directly displayed at a preset display position on the shooting page.
  • the gesture template can be displayed according to the display position of the gesture template in its corresponding gesture picture, that is, the position of the gesture template in its corresponding gesture picture
  • the pose template is displayed at the same display position as the original display position.
  • the posture picture 22 corresponding to the posture template 21 can also be displayed in the shooting page, that is, the posture picture 22 based on which the posture template 21 is generated is displayed. , so that the user can clarify the shooting object and shooting environment in the pose picture 22 corresponding to the shooting template 21 .
  • the current key part ratio information of the shooting object in the current preview picture is determined according to the current preview picture collected by the camera; the current shooting method is generated based on the current key part proportion information.
  • prompt information and display the current shooting prompt information on the shooting page, wherein the current shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information;
  • the subject is photographed.
  • at least one of the shooting angle prompt and the shooting distance prompt is given according to the proportion information of the key parts of the shooting object in the current preview screen, so that the shooting object has Appropriate body proportions can improve the imaging effect of the subject and reduce the difficulty of shooting.
  • FIG. 3 is a schematic flowchart of another shooting method provided by an embodiment of the present disclosure.
  • the solution in this embodiment may be combined with one or more optional solutions in the foregoing embodiments.
  • the target pose template is a pose template corresponding to a pose picture selected from the recommended pose pictures, and before the target pose template is displayed on the upper layer of the preview screen displayed on the shooting page, it also includes: acquiring a shot The target shooting information of the object, wherein the target shooting information includes at least one of the posture information of the shooting object and shooting environment information when the posture recommendation operation is received; determine the recommended posture picture according to the target shooting information; display the recommended A pose list, wherein the recommended pose list is used to display the recommended pose pictures.
  • the target posture template is a posture template corresponding to the imported posture picture, and before the target posture template is displayed on the upper layer of the preview screen displayed on the shooting page, it also includes: acquiring the imported posture picture; determining the Importing second key point information of the person image in the pose picture; generating a target pose template corresponding to the imported pose picture according to the second key point information.
  • the shooting method provided in this embodiment may include:
  • the electronic device can automatically acquire the target shooting information of the shooting object when displaying the shooting page, and recommend a pose picture based on the target shooting information;
  • the pose recommendation operation is received, the target shooting information of the subject is obtained, and the pose picture is recommended based on the target shooting information, so as to avoid unnecessary interference to the user caused by the automatic display of the recommended pose list.
  • the pose recommendation operation may be an operation of instructing the electronic device to display a list of recommended poses, such as an operation of triggering a recommended pose control displayed on a shooting page.
  • the target shooting information can be understood as the shooting information of the shooting object when the pose recommendation operation is received, which may include at least one of pose information and shooting environment information.
  • the posture information can be understood as information used to characterize the shooting posture of the shooting object, such as position information of key points of the shooting object.
  • the shooting environment information can be understood as information used to characterize the shooting environment where the shooting object is located, such as shooting background information, external light information, or a combination of the foregoing.
  • the electronic device displays a shooting page, as shown in FIG. 4 . Therefore, when the photographer wants to instruct the electronic device to recommend shooting poses, he can pose his own favorite pose (for the situation where the photographer is the subject of photography) or instruct the subject to pose for his own favorite pose (for the case that the photographer is not is the case of the shooting object), and trigger the recommended gesture control 40 in the shooting page.
  • the electronic device when it detects that the user triggers the recommended gesture control 40 on the shooting page, it can determine that a gesture recommendation operation has been received, and in response to the gesture recommendation operation, determine the shooting information of the shooting object according to the preview picture collected by the camera at the current moment, For example, inputting the preset picture into the posture detection model obtained in advance training, and determining the photographing information of the photographed object based on the posture detection model.
  • the electronic device can determine the recommended pose picture directly according to the target shooting information, such as obtaining the shooting information of each pose picture in the pose picture library, and calculating the matching degree between the shooting information of each pose picture and the target shooting information , selecting a certain number of pose pictures in order of matching degrees from high to bottom as recommended pose pictures, or using pose pictures whose matching degrees exceed a preset matching degree threshold as recommended pose pictures, and obtaining the determined recommended pose pictures.
  • the target shooting information such as obtaining the shooting information of each pose picture in the pose picture library, and calculating the matching degree between the shooting information of each pose picture and the target shooting information , selecting a certain number of pose pictures in order of matching degrees from high to bottom as recommended pose pictures, or using pose pictures whose matching degrees exceed a preset matching degree threshold as recommended pose pictures, and obtaining the determined recommended pose pictures.
  • the electronic device may generate a gesture picture acquisition request carrying target shooting information, and send the gesture picture acquisition request to the server. Therefore, after the server receives the posture picture acquisition request sent by the electronic device, it can analyze the posture picture acquisition request, obtain the target shooting information carried in the posture picture acquisition request, and calculate the multiple posture pictures in the posture picture library. According to the matching degree between the shooting information of the target and the shooting information of the target, a certain number of pose pictures are selected as the recommended pose pictures according to the order of the matching degree from high to low, or the pose pictures matched to exceed the preset matching degree threshold are used as the recommended poses picture, and send the determined recommended pose picture to the electronic device. Correspondingly, the electronic device may receive the recommended pose picture returned by the server.
  • the pose pictures in the pose picture library can be set in advance, that is, a picture with a better shooting effect can be obtained in advance as a pose picture, and it and its corresponding pose template can be stored in the pose picture library.
  • the electronic device may display the recommended posture list 50 on the shooting page, and display the acquired recommended posture picture in the recommended posture list 50, as shown in FIG. 5 , for The photographer or subject makes a selection.
  • the pose picture can be recommended for the user according to the shooting information of the subject at the current moment, and the pose guide can be given to the user through the pose template corresponding to the pose picture, so that the subject can freely pose in the current shooting environment
  • the pose you like you can recommend similar high-quality poses to the user according to the shooting environment and the pose that the subject likes, so that the subject can fine-tune the pose they like, and you can get a better shooting effect without taking pictures.
  • a pose template can be generated based on a pose picture imported by the user, and the shooting pose of the subject can be guided through the pose template.
  • the imported pose picture can be understood as an imported pose picture.
  • the electronic device may use a pose template corresponding to a pose picture imported by the user to guide the user to take pictures.
  • the electronic device displays a photographing page. Therefore, when the user wants to take pictures with the shooting poses in his favorite pose pictures, he can trigger the pose picture import control 41 on the shooting page, and select his favorite pose pictures to import.
  • the electronic device may acquire a gesture picture imported by the user, so as to generate a gesture template corresponding to the gesture picture according to the gesture picture.
  • the imported posture picture and the posture template can also be uploaded to the server for storage, such as stored in a custom space corresponding to the user in the posture picture library, so as to facilitate subsequent
  • the user uses the pose template again to guide shooting poses or recommend pose pictures for the user based on the pose pictures stored in the pose picture library that can be used by the user and the imported pose pictures stored in the user's custom space.
  • the electronic device after the electronic device captures the original picture, it can input the original picture into a pre-trained image editing model, use the image editing model to modify the original image to obtain the target image, and save the captured image at the same time.
  • the original picture and the target picture, and the original picture or the target picture can be displayed, or the original picture and the target picture can be displayed correspondingly.
  • the image retouching model can be used to retouch an input image (such as an original image) and output a target image obtained through image retouching, which can be obtained through training in advance.
  • the target pose template may be the pose template used when taking the original picture.
  • the target pose picture may be a pose picture corresponding to the target pose template.
  • the target object can be understood as an object corresponding to the target pose template in the target pose picture, such as at least one of a person and an animal corresponding to the target pose template.
  • the color information of the target pose picture may be color information of the target pose picture, such as filter information adopted by the target pose picture.
  • the image information of the target object may include at least one of size information and position information of the target object presented in the target pose picture.
  • the electronic device after the electronic device captures the original picture, it can also input the original picture and the target pose picture corresponding to the target pose template used when taking the original picture into another image retouching model, through which the image retouching model
  • the original picture is To modify the picture, for example, the same filter as the target pose picture can be added to the original picture, and the original picture is cropped and/or scaled according to at least one of the size information and position information of the target object in the target pose picture, To make the color and/or composition of the target image similar to the target pose image.
  • the shooting method provided in this embodiment recommends a pose picture according to the pose of the subject to be photographed, guides the user's shooting pose through the pose template corresponding to the pose picture selected or imported by the user, and after the original picture is captured, the original picture is automatically Carrying out photo editing can solve the problem that the subject cannot pose when shooting, reduce the difficulty of shooting for the user, improve the shooting effect of the final picture, and improve the shooting experience of the user.
  • the ratio information determination module 601 is configured to determine the current key part ratio information according to the current preview image collected by the camera when the shooting page is displayed, wherein the current key part ratio information is the current preview image collected by the camera Among them, the proportion information of the key parts of the shooting object;
  • the prompt information display module 602 is configured to generate current shooting prompt information based on the current key part ratio information, and display the current shooting prompt information on the shooting page, the current shooting prompt information includes shooting angle prompt information and At least one of the prompt information of shooting distance;
  • the photographing module 603 is configured to control the camera to photograph the photographed object when a photographing instruction is received.
  • the ratio information of the current key parts of the object to be photographed is determined according to the current preview image collected by the camera in the current preview image; through the prompt information display module Generate current shooting prompt information based on the current key part ratio information, and display the current shooting prompt information on the shooting page, wherein the current shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; by shooting When the module receives the shooting instruction, it controls the camera to shoot the object.
  • At least one of the shooting angle prompt and the shooting distance prompt is given according to the key part ratio information of the shooting object in the current preview screen, so that the shooting object has Appropriate body proportions can improve the imaging effect of the subject and reduce the difficulty of shooting.
  • the ratio information determination module 601 may include: a picture acquisition unit configured to acquire a current preview picture captured by a camera; a gesture information determination unit configured to determine the first image of the subject according to the current preview picture.
  • the key point information is used as the current posture information of the shooting object; the ratio information determining unit is configured to determine the current ratio information of key parts according to the current posture information.
  • the prompt information display module 602 may also be configured to: display a target pose template on the upper layer of the preview screen displayed on the shooting page, wherein the target pose template is used to guide the shooting subject to present a corresponding shooting pose.
  • the target pose template may be a pose template corresponding to a pose picture selected from recommended pose pictures
  • the photographing device provided in this embodiment may further include: a photographing information acquisition module configured to Before the target pose template is displayed on the upper layer of the preview screen displayed in , the target shooting information of the shooting object is acquired, wherein the target shooting information includes the pose information and shooting environment of the shooting object when the pose recommendation operation is received At least one of the information; a pose picture determining module, configured to determine a recommended pose picture according to the target shooting information; a pose list display module, configured to display a list of recommended poses, wherein the list of recommended poses is used to display the The recommended pose picture.
  • the pose picture determination module may include: a request sending unit configured to generate a pose picture acquisition request carrying the target shooting information, and send the pose picture acquisition request to the server to request the The server determines the recommended pose picture based on the matching degree between the shooting information of the multiple pose pictures in the pose picture library and the target shooting information; the pose picture receiving unit is configured to receive the request returned by the server based on the pose picture acquisition request The recommended pose image for .
  • the photographing device may further include: a picture editing module, configured such that the photographing instruction is a photographing instruction, and after the control camera photographs the photographed object, the photographed original picture is Carry out picture modification to obtain a target picture, and save the original picture and the target picture.
  • a picture editing module configured such that the photographing instruction is a photographing instruction, and after the control camera photographs the photographed object, the photographed original picture is Carry out picture modification to obtain a target picture, and save the original picture and the target picture.
  • the photographing device provided in the embodiments of the present disclosure can execute the photographing method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the photographing method.
  • the photographing method provided in any embodiment of the present disclosure can execute the photographing method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the photographing method.
  • FIG. 7 it shows a schematic structural diagram of an electronic device (such as a terminal device) 700 suitable for implementing an embodiment of the present disclosure.
  • the terminal equipment in the embodiment of the present disclosure may include mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), PMP portable multimedia players (Portable Media Player, PMP), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (that is, digital TVs), desktop computers, and the like.
  • PDA Personal Digital Assistant
  • PMP portable multimedia players Portable Media Player
  • mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals)
  • fixed terminals such as digital televisions (that is, digital TVs), desktop computers, and the like.
  • the electronic device shown in FIG. 7 is only an example.
  • an electronic device 700 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) Various appropriate actions and processes are executed by a program loaded into a random access memory (Random Access Memory, RAM) 703 .
  • RAM Random Access Memory
  • various programs and data necessary for the operation of the electronic device 700 are also stored.
  • the processing device 701, ROM 702, and RAM 703 are connected to each other through a bus 704.
  • An input/output (Input/Output, I/O) interface 705 is also connected to the bus 704 .
  • an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; including, for example, a liquid crystal display (Liquid Crystal Display, LCD) , an output device 707 such as a speaker, a vibrator, etc.; a storage device 706 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709.
  • the communication means 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 7 shows electronic device 700 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network via communication means 709, or from storage means 706, or from ROM 702.
  • the processing device 701 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or a combination of the above two.
  • the computer-readable storage medium may be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a suitable combination of the above.
  • Examples of computer readable storage media may include: an electrical connection with one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (such as Electronic Programmable Read Only Memory (EPROM) or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc-Read Only Memory, CD-ROM), optical storage device, magnetic storage device, or the above suitable combination.
  • a computer-readable storage medium may be, for example, a tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take various forms and may, for example, include electromagnetic signals, optical signals, etc., or a suitable combination of the foregoing.
  • the computer-readable signal medium may also be other computer-readable media other than the computer-readable storage medium, and the computer-readable signal medium may send, propagate or transmit the program for use by or in conjunction with the instruction execution system, device or device .
  • the program code contained on the computer-readable medium can be transmitted by an appropriate medium, which may include, for example, electric wires, optical cables, radio frequency (Radio Frequency, RF), etc., or a suitable combination of the above.
  • the client and the server can communicate using currently known or future developed network protocols such as Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP), and can communicate with digital data in other forms or media (eg, communication network) interconnections.
  • network protocols such as Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP)
  • Examples of communication networks include local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN), Internet (for example, Internet) and peer-to-peer network (for example, Ad hoc peer-to-peer network), and currently known or networks developed in the future.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: in the case of displaying the shooting page, determines the current key according to the current preview screen captured by the camera. Part ratio information, wherein, the current key part ratio information is the key part ratio information of the shooting object in the current preview picture collected by the camera; the current shooting prompt information is generated based on the current key part ratio information, and in the The current shooting prompt information is displayed on the shooting page, and the current shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; The subject is photographed.
  • Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming language such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g. via the Internet using an Internet Service Provider). .
  • LAN local area network
  • WAN wide area network
  • Internet Service Provider e.g. via the Internet using an Internet Service Provider.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. It should be noted that the name of the module does not constitute a limitation of the unit itself in some cases.
  • FPGAs Field-Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Parts
  • SOC System on Chip
  • Complex Programmable Logic Device Complex Programmable Logic Device, CPLD
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may comprise an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a suitable combination of the foregoing.
  • machine-readable storage media may include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM), or flash memory), optical fiber, compact disc read only memory (CD-ROM), optical storage, magnetic storage, or a suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • flash memory flash memory
  • optical fiber compact disc read only memory
  • CD-ROM compact disc read only memory
  • magnetic storage or a suitable combination of the foregoing.
  • Example 1 provides a shooting method, including:
  • the current key part proportion information is the key part proportion information of the shooting object in the current preview picture collected by the camera ;
  • Example 2 determines the current key part ratio information according to the current preview picture collected by the camera according to the method described in Example 1, including:
  • example 3 is based on the method described in example 1, and the generating the current shooting prompt information based on the current key part ratio information includes:
  • Example 4 is according to the method described in Example 1, further comprising:
  • a target pose template is displayed on an upper layer of the preview image displayed on the shooting page, wherein the target pose template is used to guide the shooting subject to present a corresponding shooting pose.
  • example 5 is according to the method described in example 4, the target pose template is a pose template corresponding to a pose picture selected from the recommended pose pictures, and displayed on the shooting page Before the upper layer of the preview screen displays the target pose template, it also includes:
  • the target shooting information includes at least one of posture information and shooting environment information of the shooting object when the posture recommendation operation is received;
  • a list of recommended poses is displayed, wherein the list of recommended poses is used to display the picture of the recommended poses.
  • example 6 is according to the method described in example 5, and determining the recommended pose picture according to the target shooting information includes:
  • example 7 is based on the method described in example 4, the target pose template is a pose template corresponding to the imported pose picture, and the upper layer of the preview screen displayed on the shooting page displays the Before describing the target pose template, also include:
  • a pose template corresponding to the imported pose picture is generated according to the second key point information.
  • Example 8 is according to the method described in any one of Examples 4-7, the photographing instruction is a photographing instruction, and after controlling the camera to photograph the subject, further include:
  • Example 9 is according to the method described in Example 8, and the said modifying the original picture obtained by shooting to obtain the target picture includes:
  • Example 10 provides a shooting device, including:
  • the ratio information determination module is configured to determine the current key part ratio information according to the current preview image collected by the camera when the shooting page is displayed, wherein the current key part ratio information is in the current preview image collected by the camera , the proportion information of key parts of the subject;
  • the prompt information display module is configured to generate current shooting prompt information based on the current key part ratio information, and display the current shooting prompt information on the shooting page, the current shooting prompt information includes shooting angle prompt information and shooting At least one of the distance prompt information;
  • the photographing module is configured to control the camera to photograph the subject based on receiving the photographing instruction.
  • Example 11 provides an electronic device, including:
  • memory is set to store program
  • Example 12 provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of Examples 1-9 can be implemented. the shooting method described.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Studio Circuits (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开实施例提供了一种拍摄方法、装置、电子设备和存储介质。该方法包括:在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;在接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。

Description

拍摄方法、装置、电子设备和存储介质
本公开要求在2021年9月3日提交中国专利局、申请号为202111033948.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本公开中。
技术领域
本公开实施例涉及拍摄技术领域,例如涉及一种拍摄方法、装置、电子设备和存储介质。
背景技术
相关技术中,用户可以通过终端设备进行拍摄。然而,由于拍摄经验的匮乏,经常会出现拍摄得到的视频或图片的拍摄效果不理想的情况,导致用户需要耗费较大的精力寻找合适的拍摄方式重新进行拍摄或者对拍摄得到的视频或图片进行修图,拍摄体验不佳。
发明内容
本公开实施例提供一种拍摄方法、装置、电子设备和存储介质,以提高视频或图片的拍摄效果。
第一方面,本公开实施例提供了一种拍摄方法,包括:
在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
在接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
第二方面,本公开实施例还提供了一种拍摄装置,包括:
比例信息确定模块,被设置为在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
提示信息展示模块,被设置为基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄 提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
拍摄模块,被设置为在接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
第三方面,本公开实施例还提供了一种电子设备,包括:
处理器;
存储器,被设置为存储程序,
在所述程序被所述处理器执行时,所述处理器实现如本公开实施例所述的拍摄方法。
第四方面,本公开实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如本公开实施例所述的拍摄方法。
附图说明
结合附图并参考以下具体实施方式,本公开每个实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1为本公开实施例提供的一种拍摄方法的流程示意图;
图2为本公开实施例提供的一种拍摄页面显示示意图;
图3为本公开实施例提供的另一种拍摄方法的流程示意图;
图4为本公开实施例提供的另一种拍摄页面显示示意图;
图5为本公开实施例提供的一种推荐姿势列表示意图;
图6为本公开实施例提供的一种拍摄装置的结构框图示意图;
图7为本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将参照附图描述本公开的实施例。虽然附图中显示了本公开的一些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用。
应当理解,本公开的方法实施方式中记载的每个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行 示出的步骤。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1为本公开实施例提供的一种拍摄方法的流程示意图。该方法可以由拍摄装置执行,其中,该装置可以由软件和硬件中的至少之一实现,可配置于电子设备中,典型的,可以配置在手机或平板电脑中。本公开实施例提供的拍摄方法适用于对用户的拍摄角度和拍摄距离中的至少之一进行提示的场景。如图1所示,本实施例提供的拍摄方法可以包括:
S101、在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,当前关键部位比例信息为在摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息。
拍摄对象可以理解为电子设备所拍摄的对象,如电子设备所拍摄的人物或动物等,以下以拍摄对象为人物为例进行说明。当前关键部位比例信息可以理解为在当前预览画面中,拍摄者的关键部位比例信息。该关键部位比例信息可以为拍摄对象的关键部位在拍摄者人体中所占的比例信息,或者,拍摄对象的关键部位与拍摄对象的预设部位之间的比例信息。以下以关键部位比例信息为拍摄对象的关键部位与拍摄对象的预设部位之间的比例信息为例进行说明。该关键部位可以包括头部和腿部中的至少之一;该比例信息可以为长度比例信息,如在平行于人体方向上的比例信息;该预设部位可以为拍摄对象的上半身(如包括或不包括头部)。
示例性的,电子设备显示拍摄页面,并在显示拍摄页面的过程中,周期性地确定拍摄对象在摄像头采集的当前预览画面中的当前关键部位比例信息。以关键部位包括头部和腿部,预设部位为拍摄对象的上半身(不包括头部)、拍 摄对象竖直站立为例,可以根据该当前预览画面识别拍摄对象的头部、腿部和上半身,分别确定拍摄对象的头部、腿部和上半身在拍摄画面竖向上的长度信息,并根据拍摄对象头部的长度信息和上半身的长度信息计算得到拍摄对象在当前预览画面中的头部比例信息,以及,根据拍摄对象腿部的长度信息和上半身的长度信息计算得到拍摄对象在当前预览画面中的腿部比例信息,从而得到拍摄对象的当前关键部位比例信息。
在一个实施方式中,所述根据摄像头采集的当前预览画面确定当前关键部位比例信息,包括:获取摄像头采集的当前预览画面;根据所述当前预览画面确定拍摄对象的第一关键点信息,作为所述拍摄对象的当前姿势信息;根据所述当前姿势信息确定当前关键部位比例信息。
当前预览画面可以为当前时刻拍摄页面中所显示的预览画面,即摄像头在当前时刻所采集的画面。第一关键点信息可以理解为拍摄对象在当前预览画面中的关键点信息,如关键点的位置信息。拍摄对象的关键点可以根据需要进行设置,如拍摄对象的关键点可以包括拍摄对象在当前预览画面中的轮廓点,即当前预览画面中构成拍摄对象的人物轮廓的点;还可以包括构成拍摄对象在当前预览画面中的关键部位(如腿部或头部等)的点。
示例性的,可以预先训练得到能够识别拍摄对象的关键点信息的模型(如姿势识别模型)。从而,当显示拍摄页面时,可以周期性地获取摄像头所采集的当前预览画面,将该当前预览画面输入至该姿势识别模型中,并获取该姿势识别模型输出的拍摄对象在当前预览画面中的关键点信息,作为拍摄对象的当前姿势信息,根据该当前姿势信息识别拍摄对象的关键部位和预设部位,确定拍摄对象的关键部位在预览画面中的长度信息和预设部位在预览画面中的长度信息,并根据该长度信息计算得到拍摄对象的关键部位与预设部位之间的长度比例信息,作为拍摄对象的当前关键部位比例信息。
S102、基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一。
在本实施例中,当显示拍摄页面时,电子设备可以实时或周期性地获取拍摄对象的当前关键部位比例信息,并根据该当前关键部位比例信息在拍摄页面中显示或更新拍摄页面中所显示的拍摄提示信息,通过该拍摄提示信息进行拍摄提示,以使得拍摄对象在当前预览画面中具有合适的身材比例,从而避免出现在拍摄得到的视频或图片中,拍摄对象的身材比例不协调(如头部过大或腿长过短)的情况,提高所拍摄得到的视频或图片的质量。
示例性的,如图2所示,当初始显示拍摄提示信息时(即在拍摄页面中尚 未显示拍摄提示信息时),电子设备可以根据当前关键部位比例信息生成当前拍摄提示信息,并在拍摄页面中显示该当前拍摄提示信息20;当拍摄页面中已显示有拍摄提示信息时,电子设备可以根据当前关键部位比例信息生成当前拍摄提示信息,并将拍摄页面中所显示的拍摄提示信息更新为该当前拍摄提示信息20。
在本实施例中,当前拍摄提示信息可以理解为根据当前预览画面所生成的拍摄提示信息,该当前拍摄提示信息的信息内容可以根据需要进行设置,如拍摄提示信息可以包括当前关键部位比例信息、当前关键部位比例信息与预设关键部位比例信息之间的相对大小的提示信息和拍摄修正信息中的至少一项。
可选的,所述基于所述当前关键部位比例信息生成当前拍摄提示信息,包括:将所述当前关键部位比例信息作为当前拍摄提示信息;或者,根据所述当前关键部位比例信息与预设关键部位比例信息之间的相对大小,生成当前拍摄提示信息;或者,根据所述当前关键部位比例信息与预设关键部位比例信息之间的偏差信息,确定拍摄修正信息,并将所述拍摄修正信息作为当前拍摄提示信息。例如,当前关键部位比例信息可以包括拍摄对象在当前预览画面中的头部比例信息、腿部比例信息或者上述内容的组合等;当前关键部位比例信息与预设关键部位比例信息之间的相对大小的提示信息可以为用于提示该相对大小的信息,如提示头部比例/腿部比例过大或过小的信息;拍摄修正信息可以为用于修正用户在当前时刻的拍摄缺陷的信息,如当拍摄对象在当前预览画面中的头部比例过大时,或者,当拍摄对象在当前预览画面中的腿部比例过小时,可以提示用户增大拍摄距离(如向后移动摄像头),或者,提示用户向下调整拍摄角度(如向下移动摄像头),示例性的,当拍摄对象在当前预览画面中的头部比例过大且腿部比例过小时,可以同时提示用户增大拍摄距离和向下调整拍摄角度。
S103、在接收到拍摄指令的情况下,控制摄像头对拍摄对象进行拍摄。
在本实施例中,电子设备在接收到拍摄指令时,可以控制摄像头对拍摄对象进行拍摄,如控制摄像头拍摄照片或视频。拍摄指令可以为指示电子设备进行拍摄的指令,如拍照指令或视频拍摄指令等,其可以由电子设备在当前条件符合预设生成条件时自动生成,如根据拍摄对象的当前姿势信息同目标姿势模板之间的匹配度和拍摄对象的表情(如微笑程度以及眼睛的睁开程度等)中的至少之一,计算当前预览画面的画面分值,并在该画面分值高于预设阈值时,生成拍摄指令;也可以基于所接收到的拍摄操作(如作用于如图2所示的拍摄控件23的触发操作)生成,即电子设备可以自动抓拍,可以基于用户的触发操作进行拍摄。
在一个实施方式中,本实施例提供的拍摄方法还包括:在所述拍摄页面中所显示的预览画面的上层显示目标姿势模板,其中,所述目标姿势模板用于引导拍摄对象呈现相应的拍摄姿势。
在上述实施方式中,电子设备可以在拍摄页面中显示目标姿势模板,通过目标姿势模板对拍摄对象的拍摄姿势进行引导。例如,电子设备可以在初始显示拍摄页面时,不立即生成并显示当前拍摄提示信息,而是在确定用户具有进行拍摄提示/引导的意愿时,如在接收到采用一姿势模板进行拍摄引导的触发操作时,再周期性地生成并显示当前拍摄提示信息,以避免拍摄提示信息的显示对用户造成不必要的干扰,提高用户的拍摄体验。以下以此种情况为例进行说明。
可选的,拍摄引导触发操作可以为指示电子设备通过目标姿势模板进行拍摄姿势引导的触发操作,即指示电子设备显示目标姿势模板的触发操作,如选择或导入姿势图片的操作。目标姿势模板可以为用户欲采用其进行拍摄引导的姿势模板,如用户所选择的模板或者用户所导入的姿势图片对应的模板,该模板可以为姿势轮廓模板,即可以为由人物的轮廓线构成的线框图,其可用于引导拍摄对象呈现相应的拍摄姿势以进行拍摄。
示例性的,电子设备显示拍摄页面。用户在欲采用一姿势模板21进行拍摄引导时,可以执行采用该姿势模板21进行拍摄引导的触发操作。电子设备在检测到用户的上述触发操作时,可以在拍摄页面中所显示的预览画面的上层显示该姿势模板21;并在显示该姿势模板21的同时,周期性地生成当前拍摄提示信息20,并在拍摄页面中显示该当前拍摄提示信息20,如图2所示。
在上述实施方式中,姿势模板在拍摄页面中的显示方式可以根据需要设置,如可以直接在拍摄页面的预设显示位置显示该姿势模板。考虑到拍摄得到的图片/视频帧的构图效果,可选的,可以根据该姿势模板在其对应的姿势图片中的显示位置显示该姿势模板,即在与姿势模板在其对应的姿势图片中的原始显示位置相同的显示位置显示该姿势模板。
此外,如图2所示,当在拍摄页面中显示姿势模板21时,还可以在拍摄页面中显示该姿势模板21对应的姿势图片22,即显示生成该姿势模板21时所依据的姿势图片22,以便于用户明确拍摄模板21所对应的姿势图片22中的拍摄对象及拍摄环境。
本实施例提供的拍摄方法,在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定在该当前预览画面中,拍摄对象的当前关键部位比例信息;基于该当前关键部位比例信息生成当前拍摄提示信息,并在拍摄页面中展示该当前拍摄提示信息,其中,该当前拍摄提示信息包括拍摄角度提示信息和拍摄 距离提示信息中的至少之一;在接收到拍摄指令的情况下,控制摄像头对拍摄对象进行拍摄。本实施例通过采用上述的技术方案,根据拍摄对象在当前预览画面中的关键部位比例信息进行拍摄角度提示和拍摄距离提示中的至少之一,能够使得拍摄对象在拍摄得到的图片或视频中具有合适的身材比例,提高拍摄对象的成像效果,并降低拍摄难度。
图3为本公开实施例提供的另一种拍摄方法的流程示意图。本实施例中的方案可以与上述实施例中的一个或多个可选方案组合。可选的,所述目标姿势模板为从推荐姿势图片中选中的姿势图片对应的姿势模板,在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,还包括:获取拍摄对象的目标拍摄信息,其中,所述目标拍摄信息包括接收到姿势推荐操作时所述拍摄对象的姿势信息和拍摄环境信息中的至少之一;根据所述目标拍摄信息确定推荐姿势图片;显示推荐姿势列表,其中,所述推荐姿势列表用于展示所述推荐姿势图片。
可选的,所述目标姿势模板为导入姿势图片对应的姿势模板,在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,还包括:获取导入姿势图片;确定所述导入姿势图片中的人物图像的第二关键点信息;根据所述第二关键点信息生成所述导入姿势图片对应的目标姿势模板。
可选的,所述拍摄指令为拍照指令,在所述控制摄像头对所述拍摄对象进行拍摄之后,还包括:对拍摄得到的原始图片进行修图,得到目标图片,并保存所述原始图片与所述目标图片。
相应的,如图3所示,本实施例提供的拍摄方法可以包括:
S201、显示拍摄页面,执行S202或S205。
S202、获取拍摄对象的目标拍摄信息,其中,目标拍摄信息包括接收到姿势推荐操作时拍摄对象的姿势信息和拍摄环境信息中的至少之一。
在本实施例中,电子设备可以在展示拍摄页面时自动获取拍摄对象的目标拍摄信息,并基于该目标拍摄信息进行姿势图片的推荐;也可以在接收到用户推荐姿势图片的触发操作时,即在接收到姿势推荐操作时,再获取拍摄对象的目标拍摄信息,并基于该目标拍摄信息进行姿势图片的推荐,以避免自动显示推荐姿势列表对用户造成不必要的干扰,以下以此种情况为例进行说明。
可选的,姿势推荐操作可以为指示电子设备显示推荐姿势列表的操作,如触发拍摄页面中所显示的推荐姿势控件的操作。目标拍摄信息可以理解为在接收到姿势推荐操作时拍摄对象的拍摄信息,其可以包括姿势信息和拍摄环境信息中的至少之一。该姿势信息可以理解为用于表征拍摄对象的拍摄姿势的信息, 如拍摄对象的关键点的位置信息。该拍摄环境信息可以理解为用于表征拍摄对象所处的拍摄环境的信息,如拍摄背景信息、外界光线信息或者上述内容的组合等。
示例性的,电子设备显示拍摄页面,如图4所示。从而,拍摄者在欲指示电子设备进行拍摄姿势推荐时,可以摆出其自身喜欢的姿势(针对拍摄者即为拍摄对象的情况)或者指示拍摄对象摆出其自身喜欢的姿势(针对拍摄者不为拍摄对象的情况),并触发拍摄页面中的推荐姿势控件40。相应的,电子设备在检测到用户触发拍摄页面中的推荐姿势控件40时,可以确定接收到姿势推荐操作,并响应该姿势推荐操作,根据当前时刻摄像头采集的预览画面确定拍摄对象的拍摄信息,如将该预设画面输入至预先训练得到的姿势检测模型中,基于该姿势检测模型确定拍摄对象的拍摄信息。
S203、根据目标拍摄信息确定推荐姿势图片。
在本实施例中,电子设备可以直接根据目标拍摄信息确定推荐姿势图片,如获取姿势图片库中每个姿势图片的拍摄信息,计算每个姿势图片的拍摄信息与目标拍摄信息之间的匹配度,按照匹配度由高到底的顺序选取一定数量的姿势图片作为推荐姿势图片,或者,将匹配度超过预设匹配度阈值的姿势图片作为推荐姿势图片,并获取所确定的推荐姿势图片。
此外,电子设备也可以通过服务器根据目标拍摄信息确定推荐姿势图片。可选的,所述根据所述目标拍摄信息确定推荐姿势图片,包括:生成携带有所述目标拍摄信息的姿势图片获取请求,并将所述姿势图片获取请求发送给服务器,以请求所述服务器基于姿势图片库中多个姿势图片的拍摄信息与所述目标拍摄信息之间的匹配度确定推荐姿势图片;接收所述服务器基于所述姿势图片获取请求返回的所述推荐姿势图片。
示例性的,电子设备可以生成携带有目标拍摄信息的姿势图片获取请求,并将该姿势图片获取请求发送给服务器。从而,服务器在接收到电子设备发送的姿势图片获取请求后,可以对该姿势图片获取请求进行解析,得到该姿势图片获取请求中所携带的目标拍摄信息,计算姿势图片库中的多个姿势图片的拍摄信息与该目标拍摄信息之间的匹配度,按照匹配度由高到底的顺序选取一定数量的姿势图片作为推荐姿势图片,或者,将匹配到超过预设匹配度阈值的姿势图片作为推荐姿势图片,并将所确定的推荐姿势图片发送给电子设备。相应的,电子设备可以接收服务器所返回的推荐姿势图片。
在一个实施方式中,姿势图片库中的姿势图片可以预先进行设置,即可以预先获取拍摄效果较好的图片作为姿势图片,并将其及其对应的姿势模板存储到姿势图片库中。
S204、显示推荐姿势列表,执行S208,其中,推荐姿势列表用于展示推荐姿势图片。
示例性的,电子设备在获取到推荐姿势图片后,可以在拍摄页面中显示推荐姿势列表50,并在该推荐姿势列表50中显示所获取到的推荐姿势图片,如图5所示,以供拍摄者或拍摄对象进行选择。
在本实施例中,可以根据拍摄对象在当前时刻的拍摄信息为用户推荐姿势图片,并通过姿势图片对应的姿势模板对用户进行姿势引导,从而,拍摄对象在当前的拍摄环境中随意摆出一个自己喜欢的姿势,即可根据该拍摄环境以及拍摄对象喜欢的该姿势,为用户推荐相近的优质姿势,使得拍摄对象在其喜欢的姿势上进行微调,即可得到较佳的拍摄效果,无需拍摄对象在大量姿势图片中手动选择自己喜欢的姿势进行拍摄,能够解决拍摄对象在拍摄过程中不会拍姿势的问题,提高图片或视频的拍摄效果,并降低姿势模板选择所耗费的时间以及图片或视频的拍摄难度。
S205、获取导入姿势图片。
在本实施例中,可以基于用户导入的姿势图片生成姿势模板,并通过该姿势模板对拍摄对象的拍摄姿势进行引导。
在一个实施方式中,导入姿势图片可以理解为导入的姿势图片。
在本实施例中,电子设备可以采用用户导入的姿势图片对应的姿势模板引导用户进行拍摄。
示例性的,如图4所示,电子设备显示拍摄页面。从而,用户在欲采用自己喜欢的姿势图片中的拍摄姿势进行拍摄时,可以触发拍摄页面中的姿势图片导入控件41,并选择自己喜欢的姿势图片进行导入。相应的,电子设备可以获取用户导入的姿势图片,以根据该姿势图片生成该姿势图片对应的姿势模板。
S206、确定导入姿势图片中的人物图像的第二关键点信息。
S207、根据第二关键点信息生成导入姿势图片对应的姿势模板。
在本实施例中,可以基于导入姿势图片中的人物图像的关键点信息生成导入姿势图片的姿势模板,例如,可以将导入姿势图片输入至预先训练得到的姿势检测模型中,获取该姿势检测模型输出的该导入姿势图片中的所拍摄的一个或多个对象的关键点信息(即第二关键点信息),并根据该关键点信息生成该姿势图片对应的姿势模板,如沿顺时针方向或逆时针方向,依次连接位于图片中相应对象的轮廓上的关键点,得到该对象的线框图,作为该导入姿势图片对应的姿势模板。
此外,当得到导入姿势图片对应的姿势模板之后,还可以将该导入姿势图片与该姿势模板上传至服务器进行存储,如存储在姿势图片库中与该用户对应的自定义空间内,以便于后续用户再次使用该姿势模板进行拍摄姿势的引导或者基于姿势图片库中存储的用户均可使用的姿势图片以及该用户的自定义空间内存储的导入姿势图片为该用户推荐姿势图片。
S208、在拍摄页面中所显示的预览画面的上层显示目标姿势模板,并根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,目标姿势模板为从推荐姿势图片中选中的姿势图片对应的姿势模板或者导入姿势图片对应的姿势模板,用于引导拍摄对象呈现相应的拍摄姿势;当前关键部位比例信息为在摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息。
在本实施例中,可以在拍摄页面中所显示的预览画面的上层显示用户所选择的推荐姿势图片对应的姿势模块或者显示用户的导入姿势图片对应的姿势模板,以通过所显示的姿势模板引导拍摄对象呈现相应的拍摄姿势。
当采用用户所选择的推荐姿势图片对应的姿势模板对用户的拍摄姿势进行引导时,示例性的,如图5所示,电子设备显示推荐姿势列表50,并在该推荐姿势列表50中显示各推荐姿势图片。从而,用户在欲采用一推荐姿势图片中的拍摄姿势进行拍摄时,可以选择该推荐姿势图片,如触发该推荐姿势图片。相应的,电子设备在检测到用户触发一推荐姿势图片时,可以将该推荐姿势图片对应的姿势模板作为目标姿势模板,并确定接收到对目标姿势模板对应的姿势图片的选择操作,即确定接收到采用目标姿势模板进行拍摄引导的触发操作,并可以响应于该触发操作,将该姿势图片对应的姿势模板作为目标姿势模板,并在拍摄页面所显示的预览画面的上层显示该目标姿势模板。
在本实施例中,当目标姿势模板为推荐图片对应的姿势模板时,目标姿势模板可以由服务器发送给电子设备或者由电子设备根据相应的推荐姿势图片生成,即服务器在将各推荐姿势图片发送给电子设备时,可以同时将各推荐姿势图片对应的姿势模板发送给电子设备;或者,服务器可以仅将各推荐姿势图片发送给电子设备,从而,电子设备在检测到用户触发推荐姿势列表中的一推荐姿势图片时,可以根据该推荐姿势图片生成其对应的目标姿势模板。此外,电子设备在接收到对目标姿势模板对应的姿势图片的选择操作时,除执行S208之外,还可以关闭推荐姿势列表,以便于用户查看预览画面和目标姿势模板。
S209、基于当前关键部位比例信息生成当前拍摄提示信息,并在拍摄页面中展示当前拍摄提示信息,当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一。
S210、在接收到拍摄指令的情况下,控制摄像头对拍摄对象进行拍摄,拍 摄指令为拍照指令。
S211、对拍摄得到的原始图片进行修图,得到目标图片,并保存原始图片与目标图片。
原始图片可以为拍摄得到的图片;目标图片可以为对原始图片进行修图得到的图片。
在本实施例中,当拍摄指令为拍摄指令时,在拍摄完成后,还可以对拍摄得到的原始图片进行修图,以提高用户的体验。
示例性的,电子设备在拍摄得到原始图片之后,可以将该原始图片输入至预先训练得到的一个修图模型中,通过该修图模型对原始图片进行修图,得到目标图片,同时保存拍摄得到的原始图片和目标图片,并可以展示该原始图片或目标图片,或者,对应展示该原始图片和该目标图片。该修图模型可用于对输入的图片(如原始图片)进行修图,并输出修图得到的目标图片,其可以预先通过训练得到。
在一个实施方式中,为了提高原始图片的修图效果,本实施例可以根据拍摄原始图片时所采用的姿势模板对应的姿势图片对拍摄得到的原始图片进行修图,以使得修图得到的目标图片与该姿势图片具有相同或相似的拍摄效果,从而使得修图得到的原始图片更加符合用户(如拍摄者和拍摄对象中的至少之一)的真实拍摄意愿。可选的,所述对拍摄得到的原始图片进行修图,得到目标图片,包括:基于所述目标姿势模板对应的目标姿势图片的图片信息对所述原始图片进行修图,得到目标图片,其中,所述图片信息包括所述目标姿势图片的色彩信息和所述目标姿势图片中的目标对象的图像信息中的至少之一,所述图像信息包括所述目标对象的尺寸信息和位置信息中的至少之一。
在本实施例中,目标姿势模板可以为拍摄该原始图片时所采用的姿势模板。目标姿势图片可以为目标姿势模板所对应的姿势图片。目标对象可以理解为目标姿势图片中与目标姿势模板对应的对象,如与目标姿势模板对应的人物和动物中的至少之一。目标姿势图片的色彩信息可以为目标姿势图片的颜色信息,如目标姿势图片所采用滤镜信息。目标对象的图像信息可以包括目标姿势图片中所呈现的目标对象的尺寸信息和位置信息中的至少之一。
示例性的,电子设备在拍摄得到原始图片之后,也可以将该原始图片以及拍摄该原始图片时所采用的目标姿势模板对应的目标姿势图片输入至另一修图模型中,通过该修图模型根据该目标姿势图片的色彩信息、该目标姿势图片中的目标对象在目标姿势图片中的尺寸信息、该目标姿势图片中的目标对象在目标姿势图片中的位置信息或者上述内容的组合对原始图片进行修图,例如,可 以为原始图片添加与目标姿势图片相同的滤镜,并依据目标姿势图片中的目标对象的尺寸信息和位置信息中的至少之一对原始图片进行裁剪和/或缩放,以使得修图得到的目标图片与目标姿势图片相近的色彩和/或构图。
本实施例提供的拍摄方法,根据拍摄对象的姿势推荐姿势图片,通过用户选择或导入的姿势图片对应的姿势模板对用户的拍摄姿势进行引导,并在拍摄得到原始图片之后,自动对该原始图片进行修图,能够解决拍摄对象在拍摄时不会摆姿势的问题,降低用户的拍摄难度,并提高最终得到的图片的拍摄效果,提高用户的拍摄体验。
图6为本公开实施例提供的一种拍摄装置的结构框图。该装置可以由软件和硬件中的至少之一实现,可配置于电子设备中,典型的,可以配置在手机或平板电脑中,可通过执行拍摄方法对用户的拍摄距离和拍摄角度中的至少之一进行提示。如图6所示,本实施例提供的拍摄装置可以包括:比例信息确定模块601、提示信息展示模块602和拍摄模块603,其中,
比例信息确定模块601,被设置为在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
提示信息展示模块602,被设置为基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
拍摄模块603,被设置为在接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
本实施例提供的拍摄装置,通过比例信息确定模块在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定在该当前预览画面中,拍摄对象的当前关键部位比例信息;通过提示信息展示模块基于该当前关键部位比例信息生成当前拍摄提示信息,并在拍摄页面中展示该当前拍摄提示信息,其中,该当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;通过拍摄模块在接收到拍摄指令的情况下,控制摄像头对拍摄对象进行拍摄。本实施例通过采用上述的技术方案,根据拍摄对象在当前预览画面中的关键部位比例信息进行拍摄角度提示和拍摄距离提示中的至少之一,能够使得拍摄对象在拍摄得到的图片/视频中具有合适的身材比例,提高拍摄对象的成像效果,并降低拍摄难度。
在上述方案中,所述比例信息确定模块601可以包括:画面获取单元,被设置为获取摄像头采集的当前预览画面;姿势信息确定单元,被设置为根据所 述当前预览画面确定拍摄对象的第一关键点信息,作为所述拍摄对象的当前姿势信息;比例信息确定单元,被设置为根据所述当前姿势信息确定当前关键部位比例信息。
在上述方案中,所述提示信息展示模块602可以被设置为:将所述当前关键部位比例信息作为当前拍摄提示信息;或者,根据所述当前关键部位比例信息与预设关键部位比例信息之间的相对大小,生成当前拍摄提示信息;或者,根据所述当前关键部位比例信息与预设关键部位比例信息之间的偏差信息,确定拍摄修正信息,并将所述拍摄修正信息作为当前拍摄提示信息。
在上述方案中,所述提示信息展示模块602还可以被设置为:在所述拍摄页面中所显示的预览画面的上层显示目标姿势模板,其中,所述目标姿势模板用于引导拍摄对象呈现相应的拍摄姿势。
在上述方案中,所述目标姿势模板可以为从推荐姿势图片中选中的姿势图片对应的姿势模板,本实施例提供的拍摄装置还可以包括:拍摄信息获取模块,被设置为在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,获取拍摄对象的目标拍摄信息,其中,所述目标拍摄信息包括接收到所述姿势推荐操作时所述拍摄对象的姿势信息和拍摄环境信息中的至少之一;姿势图片确定模块,被设置为根据所述目标拍摄信息确定推荐姿势图片;姿势列表显示模块,被设置为显示推荐姿势列表,其中,所述推荐姿势列表用于展示所述推荐姿势图片。
在上述方案中,所述姿势图片确定模块可以包括:请求发送单元,被设置为生成携带有所述目标拍摄信息的姿势图片获取请求,并将所述姿势图片获取请求发送给服务器,以请求所述服务器基于姿势图片库中多个姿势图片的拍摄信息与所述目标拍摄信息之间的匹配度确定推荐姿势图片;姿势图片接收单元,被设置为接收所述服务器基于所述姿势图片获取请求返回的所述推荐姿势图片。
在上述方案中,所述目标姿势模板为导入姿势图片对应的姿势模板,本实施例提供的拍摄装置还可以包括:图片获取模块,被设置为在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,获取导入姿势图片;关键点信息确定模块,被设置为确定所述导入姿势图片中的人物图像的第二关键点信息;模板生成模块,被设置为根据所述第二关键点信息生成所述导入姿势图片对应的姿势模板。
可选的,本实施例提供的拍摄装置还可以包括:修图模块,被设置为所述拍摄指令为拍照指令,在所述控制摄像头对所述拍摄对象进行拍摄之后,对拍摄得到的原始图片进行修图,得到目标图片,并保存所述原始图片与所述目标图片。
在上述方案中,所述修图模块可被设置为:基于所述目标姿势模板对应的目标姿势图片的图片信息对所述原始图片进行修图,得到目标图片,其中,所述图片信息包括所述目标姿势图片的色彩信息和所述目标姿势图片中的目标对象的图像信息中的至少之一,所述图像信息包括所述目标对象的尺寸信息和位置信息中的至少之一。
本公开实施例提供的拍摄装置可执行本公开任意实施例提供的拍摄方法,具备执行拍摄方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本公开任意实施例所提供的拍摄方法。
下面参考图7,其示出了适于用来实现本公开实施例的电子设备(例如终端设备)700的结构示意图。本公开实施例中的终端设备可以包括诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、PMP便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等的移动终端以及诸如数字电视机(也即数字TV)、台式计算机等的固定终端。需要注意,图7示出的电子设备仅仅是一个示例。
如图7所示,电子设备700可以包括处理装置(例如中央处理器、图形处理器等)701,其可以根据存储在只读存储器(Read Only Memory,ROM)702中的程序或者从存储装置706加载到随机访问存储器(Random Access Memory,RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有电子设备700操作所需的各种程序和数据。处理装置701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(Input/Output,I/O)接口705也连接至总线704。
通常,以下装置可以连接至I/O接口705:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置706;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置707;包括例如磁带、硬盘等的存储装置706;以及通信装置709。通信装置709可以允许电子设备700与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有各种装置的电子设备700,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置709从网络上被下载和安装,或者从存储装置706被安装,或者从ROM 702 被安装。在该计算机程序被处理装置701执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的组合。可选的,计算机可读存储介质可以是电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者以上的合适组合。计算机可读存储介质的示例可以包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(如电子可编程只读存储器(Electronic Programable Read Only Memory,EPROM)或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc-Read Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的合适组合。在本公开中,计算机可读存储介质可以是例如包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,例如可以包括电磁信号、光信号等或上述的合适组合。计算机可读信号介质还可以是计算机可读存储介质以外的其他计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用适当的介质传输,例如可以包括:电线、光缆、射频(Radio Frequency,RF)等,或者上述的合适组合。
在一些实施方式中,客户端、服务器可以利用诸如超文本传输协议(HyperText Transfer Protocol,HTTP)之类的当前已知或未来研发的网络协议进行通信,并且可以与其他形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN),网际网(例如,互联网)以及端对端网络(例如,Ad hoc端对端网络),以及当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信 息和拍摄距离提示信息中的至少之一;在接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
本公开实施例的电子设备、程序和存储介质的有益效果,可以参考上述拍摄方法的有益效果分析,此次不再赘述。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。需要注意,模块的名称在一些情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field-Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地 使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的合适组合。机器可读存储介质的示例可以包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的合适组合。
根据本公开的一个或多个实施例,示例1提供了一种拍摄方法,包括:
在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
基于接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
根据本公开的一个或多个实施例,示例2根据示例1所述的方法所述根据摄像头采集的当前预览画面确定当前关键部位比例信息,包括:
获取摄像头采集的当前预览画面;
根据所述当前预览画面确定所述拍摄对象的第一关键点信息,作为所述拍摄对象的当前姿势信息;
根据所述当前姿势信息确定当前关键部位比例信息。
根据本公开的一个或多个实施例,示例3根据示例1所述的方法,所述基于所述当前关键部位比例信息生成当前拍摄提示信息,包括:
将所述当前关键部位比例信息作为当前拍摄提示信息;或者,
根据所述当前关键部位比例信息与预设关键部位比例信息之间的相对大小,生成当前拍摄提示信息;或者,
根据所述当前关键部位比例信息与预设关键部位比例信息之间的偏差信息,确定拍摄修正信息,并将所述拍摄修正信息作为当前拍摄提示信息。
根据本公开的一个或多个实施例,示例4根据示例1所述的方法,还包括:
在所述拍摄页面中所显示的预览画面的上层显示目标姿势模板,其中,所述目标姿势模板用于引导所述拍摄对象呈现相应的拍摄姿势。
根据本公开的一个或多个实施例,示例5根据示例4所述的方法,所述目标姿势模板为从推荐姿势图片中选中的姿势图片对应的姿势模板,在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,还包括:
获取所述拍摄对象的目标拍摄信息,其中,所述目标拍摄信息包括接收到所述姿势推荐操作时所述拍摄对象的姿势信息和拍摄环境信息中的至少之一;
根据所述目标拍摄信息确定所述推荐姿势图片;
显示推荐姿势列表,其中,所述推荐姿势列表用于展示所述推荐姿势图片。
根据本公开的一个或多个实施例,示例6根据示例5所述的方法,所述根据所述目标拍摄信息确定推荐姿势图片,包括:
生成携带有所述目标拍摄信息的姿势图片获取请求,并将所述姿势图片获取请求发送给服务器,以请求所述服务器基于姿势图片库中多个姿势图片的拍摄信息与所述目标拍摄信息之间的匹配度确定推荐姿势图片;
接收所述服务器基于所述姿势图片获取请求返回的所述推荐姿势图片。
根据本公开的一个或多个实施例,示例7根据示例4所述的方法,所述目标姿势模板为导入姿势图片对应的姿势模板,在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,还包括:
获取导入姿势图片;
确定所述导入姿势图片中的人物图像的第二关键点信息;
根据所述第二关键点信息生成所述导入姿势图片对应的姿势模板。
根据本公开的一个或多个实施例,示例8根据示例4-7任一所述的方法,所述拍摄指令为拍照指令,在所述控制所述摄像头对所述拍摄对象进行拍摄之后,还包括:
对拍摄得到的原始图片进行修图,得到目标图片,并保存所述原始图片与所述目标图片。
根据本公开的一个或多个实施例,示例9根据示例8所述的方法,所述对拍摄得到的原始图片进行修图,得到目标图片,包括:
基于所述目标姿势模板对应的目标姿势图片的图片信息对所述原始图片进行修图,得到目标图片,其中,所述图片信息包括所述目标姿势图片的色彩信息和所述目标姿势图片中的目标对象的图像信息中的至少之一,所述图像信息包括所述目标对象的尺寸信息和位置信息中的至少之一。
根据本公开的一个或多个实施例,示例10提供了一种拍摄装置,包括:
比例信息确定模块,被设置为在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
提示信息展示模块,被设置为基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
拍摄模块,被设置为基于接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
根据本公开的一个或多个实施例,示例11提供了一种电子设备,包括:
处理器;
存储器,被设置为存储程序,
在所述程序被所述处理器执行时,所述处理器实现如示例1-9中任一所述的拍摄方法。
根据本公开的一个或多个实施例,示例12提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如示例1-9中任一所述的拍摄方法。

Claims (12)

  1. 一种拍摄方法,包括:
    在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
    基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
    在接收到拍摄指令的情况下,控制所述摄像头对所述拍摄对象进行拍摄。
  2. 根据权利要求1所述的方法,其中,所述根据摄像头采集的当前预览画面确定当前关键部位比例信息,包括:
    获取摄像头采集的当前预览画面;
    根据所述当前预览画面确定所述拍摄对象的第一关键点信息,作为所述拍摄对象的当前姿势信息;
    根据所述当前姿势信息确定当前关键部位比例信息。
  3. 根据权利要求1所述的方法,其中,所述基于所述当前关键部位比例信息生成当前拍摄提示信息,包括:
    将所述当前关键部位比例信息作为当前拍摄提示信息;或者,
    根据所述当前关键部位比例信息与预设关键部位比例信息之间的相对大小,生成当前拍摄提示信息;或者,
    根据所述当前关键部位比例信息与预设关键部位比例信息之间的偏差信息,确定拍摄修正信息,并将所述拍摄修正信息作为当前拍摄提示信息。
  4. 根据权利要求1所述的方法,所述方法还包括:
    在所述拍摄页面中所显示的预览画面的上层显示目标姿势模板,其中,所述目标姿势模板用于引导所述拍摄对象呈现相应的拍摄姿势。
  5. 根据权利要求4所述的方法,其中,所述目标姿势模板为从推荐姿势图片中选中的姿势图片对应的姿势模板,在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,所述方法还包括:
    获取所述拍摄对象的目标拍摄信息,其中,所述目标拍摄信息包括接收到姿势推荐操作时所述拍摄对象的姿势信息和拍摄环境信息中的至少之一;
    根据所述目标拍摄信息确定所述推荐姿势图片;
    显示推荐姿势列表,其中,所述推荐姿势列表用于展示所述推荐姿势图片。
  6. 根据权利要求5所述的方法,其中,所述根据所述目标拍摄信息确定所述推荐姿势图片,包括:
    生成携带有所述目标拍摄信息的姿势图片获取请求,并将所述姿势图片获取请求发送给服务器,以请求所述服务器基于姿势图片库中多个姿势图片的拍摄信息与所述目标拍摄信息之间的匹配度确定推荐姿势图片;
    接收所述服务器基于所述姿势图片获取请求返回的所述推荐姿势图片。
  7. 根据权利要求4所述的方法,其中,所述目标姿势模板为导入姿势图片对应的姿势模板,在所述拍摄页面中所显示的预览画面的上层显示所述目标姿势模板之前,所述方法还包括:
    获取导入姿势图片;
    确定所述导入姿势图片中的人物图像的第二关键点信息;
    根据所述第二关键点信息生成所述导入姿势图片对应的姿势模板。
  8. 根据权利要求4-7任一所述的方法,其中,所述拍摄指令为拍照指令,在所述控制所述摄像头对所述拍摄对象进行拍摄之后,所述方法还包括:
    对拍摄得到的原始图片进行修图,得到目标图片,并保存所述原始图片与所述目标图片。
  9. 根据权利要求8所述的方法,其中,所述对拍摄得到的原始图片进行修图,得到目标图片,包括:
    基于所述目标姿势模板对应的目标姿势图片的图片信息对所述原始图片进行修图,得到目标图片,其中,所述图片信息包括所述目标姿势图片的色彩信息和所述目标姿势图片中的目标对象的图像信息中的至少之一,所述图像信息包括所述目标对象的尺寸信息和位置信息中的至少之一。
  10. 一种拍摄装置,包括:
    比例信息确定模块,被设置为在显示拍摄页面的情况下,根据摄像头采集的当前预览画面确定当前关键部位比例信息,其中,所述当前关键部位比例信息为在所述摄像头采集的当前预览画面中,拍摄对象的关键部位比例信息;
    提示信息展示模块,被设置为基于所述当前关键部位比例信息生成当前拍摄提示信息,并在所述拍摄页面中展示所述当前拍摄提示信息,所述当前拍摄提示信息包括拍摄角度提示信息和拍摄距离提示信息中的至少之一;
    拍摄模块,被设置为在接收到拍摄指令的情况下,控制所述摄像头对所述 拍摄对象进行拍摄。
  11. 一种电子设备,包括:
    处理器;
    存储器,被设置为存储程序,
    在所述程序被所述处理器执行时,所述处理器实现如权利要求1-9中任一所述的拍摄方法。
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-9中任一所述的拍摄方法。
PCT/CN2022/112921 2021-09-03 2022-08-17 拍摄方法、装置、电子设备和存储介质 WO2023029992A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2023576334A JP2024525143A (ja) 2021-09-03 2022-08-17 撮影方法、装置、電子機器および記憶媒体
EP22863132.1A EP4340379A4 (en) 2021-09-03 2022-08-17 PHOTOGRAPHY METHOD AND DEVICE AS WELL AS ELECTRONIC DEVICE AND STORAGE MEDIUM
US18/535,045 US20240129624A1 (en) 2021-09-03 2023-12-11 Method, electronic device and storage medium for capturing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111033948.3A CN115767257A (zh) 2021-09-03 2021-09-03 拍摄方法、装置、电子设备和存储介质
CN202111033948.3 2021-09-03

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/535,045 Continuation US20240129624A1 (en) 2021-09-03 2023-12-11 Method, electronic device and storage medium for capturing

Publications (1)

Publication Number Publication Date
WO2023029992A1 true WO2023029992A1 (zh) 2023-03-09

Family

ID=85331963

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112921 WO2023029992A1 (zh) 2021-09-03 2022-08-17 拍摄方法、装置、电子设备和存储介质

Country Status (5)

Country Link
US (1) US20240129624A1 (zh)
EP (1) EP4340379A4 (zh)
JP (1) JP2024525143A (zh)
CN (1) CN115767257A (zh)
WO (1) WO2023029992A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061452A (ja) * 2009-09-09 2011-03-24 Noritsu Koki Co Ltd ポーズ写真処理システム
US20130155249A1 (en) * 2011-12-20 2013-06-20 Fluke Corporation Thermal imaging camera for infrared rephotography
CN110475069A (zh) * 2019-09-03 2019-11-19 腾讯科技(深圳)有限公司 图像的拍摄方法及装置
CN111263066A (zh) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 构图指导方法、装置、电子设备及存储介质
WO2021169394A1 (zh) * 2020-02-25 2021-09-02 荣耀终端有限公司 基于深度的人体图像美化方法及电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6963360B1 (en) * 2000-11-13 2005-11-08 Hewlett-Packard Development Company, L.P. Adaptive and learning setting selection process with selectable learning modes for imaging device
KR20140001265A (ko) * 2012-06-22 2014-01-07 삼성전자주식회사 단말장치의 이미지 처리 장치 및 방법
KR102439502B1 (ko) * 2018-01-11 2022-09-05 삼성전자 주식회사 전자 장치 및 그의 영상 처리 방법
US11245840B2 (en) * 2018-03-06 2022-02-08 Eikon Technologies LLC Method and system for dynamically adjusting camera shots
CN111698411A (zh) * 2019-03-12 2020-09-22 丽宝大数据股份有限公司 脸部影像自动检测与拍摄方法
CN113132618B (zh) * 2019-12-31 2022-09-09 华为技术有限公司 辅助拍照方法、装置、终端设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061452A (ja) * 2009-09-09 2011-03-24 Noritsu Koki Co Ltd ポーズ写真処理システム
US20130155249A1 (en) * 2011-12-20 2013-06-20 Fluke Corporation Thermal imaging camera for infrared rephotography
CN110475069A (zh) * 2019-09-03 2019-11-19 腾讯科技(深圳)有限公司 图像的拍摄方法及装置
CN111263066A (zh) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 构图指导方法、装置、电子设备及存储介质
WO2021169394A1 (zh) * 2020-02-25 2021-09-02 荣耀终端有限公司 基于深度的人体图像美化方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4340379A4

Also Published As

Publication number Publication date
US20240129624A1 (en) 2024-04-18
JP2024525143A (ja) 2024-07-10
EP4340379A1 (en) 2024-03-20
EP4340379A4 (en) 2024-10-02
CN115767257A (zh) 2023-03-07

Similar Documents

Publication Publication Date Title
WO2020134556A1 (zh) 图像风格迁移方法、装置、电子设备及存储介质
CN111988528B (zh) 拍摄方法、装置、电子设备及计算机可读存储介质
US9338311B2 (en) Image-related handling support system, information processing apparatus, and image-related handling support method
US11094110B2 (en) Method, apparatus and electronic device for processing image
WO2022171024A1 (zh) 图像显示方法、装置、设备及介质
WO2023051185A1 (zh) 图像处理方法、装置、电子设备及存储介质
CN108495032B (zh) 图像处理方法、装置、存储介质及电子设备
WO2022068479A1 (zh) 图像处理方法、装置、电子设备及计算机可读存储介质
CN110418064B (zh) 对焦方法、装置、电子设备及存储介质
WO2021254502A1 (zh) 目标对象显示方法、装置及电子设备
WO2021237590A1 (zh) 图像采集方法、装置、设备及存储介质
WO2023040749A1 (zh) 图像处理方法、装置、电子设备及存储介质
CN113259583B (zh) 一种图像处理方法、装置、终端及存储介质
US11895424B2 (en) Video shooting method and apparatus, electronic device and storage medium
WO2021190625A1 (zh) 拍摄方法和设备
CN116934577A (zh) 一种风格图像生成方法、装置、设备及介质
WO2022233223A1 (zh) 图像拼接方法、装置、设备及介质
WO2020098431A1 (zh) 一种构建地图模型的方法及装置
WO2024198947A1 (zh) 虚拟场景处理方法、装置、电子设备及存储介质
WO2023029992A1 (zh) 拍摄方法、装置、电子设备和存储介质
WO2023140787A2 (zh) 视频的处理方法、装置、电子设备、存储介质和程序产品
WO2023029991A1 (zh) 拍摄方法、装置、电子设备和存储介质
WO2022213798A1 (zh) 图像处理方法、装置、电子设备和存储介质
WO2022242735A1 (zh) 视频的生成方法、装置、电子设备和存储介质
WO2022078190A1 (zh) 图像采集方法、装置、终端和存储介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2022863132

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023576334

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2022863132

Country of ref document: EP

Effective date: 20231211

NENP Non-entry into the national phase

Ref country code: DE