WO2021023059A1 - Photographing method and mobile terminal - Google Patents

Photographing method and mobile terminal Download PDF

Info

Publication number
WO2021023059A1
WO2021023059A1 PCT/CN2020/105144 CN2020105144W WO2021023059A1 WO 2021023059 A1 WO2021023059 A1 WO 2021023059A1 CN 2020105144 W CN2020105144 W CN 2020105144W WO 2021023059 A1 WO2021023059 A1 WO 2021023059A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
posture
display area
scene
subject
Prior art date
Application number
PCT/CN2020/105144
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021023059A1 publication Critical patent/WO2021023059A1/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/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • 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

Definitions

  • This application belongs to the field of terminal technology, and in particular relates to a photographing method and a mobile terminal based on artificial intelligence (AI) technology.
  • AI artificial intelligence
  • Existing mobile terminals can recognize the characteristics of the photographed object and/or the scene where the photographed object is located through intelligent recognition technology, so that the camera in the mobile terminal can be automatically adjusted according to the characteristics of the photographed object and/or the scene where the photographed object is located.
  • the parameters of light and shadow, exposure, etc. can be used to obtain images with better imaging effects.
  • the existing mobile terminal that adjusts camera parameters based on the features recognized by the intelligent recognition technology can only beautify the subject and/or the shooting scene, but cannot change the shooting position and/or posture of the subject. In this way, when the user lacks photography skills, it is often difficult to obtain images that satisfy the subject, which affects the shooting effect.
  • the embodiments of the present application provide a photographing method and a mobile terminal, which can recommend a photographing position and/or photographing posture during the photographing process, thereby improving the photographing effect of an image.
  • an embodiment of the present application provides a photographing method, including:
  • the first image may be the first frame preview image previewed by the first display area, or the Nth frame preview image after the first frame, or the first frame image collected by the camera, or
  • N is an integer greater than 1
  • the features of the subject include but are not limited to the facial features and physical features of the subject
  • the posture image to be recommended can be from the local or from Network access.
  • the recognizing the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located may be using AI recognition technology and target detection technology to recognize the target of the shooting object in the first image Characteristics and scene characteristics of the scene where the subject is located.
  • the acquiring the posture image to be recommended according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located includes:
  • a preset number of target sample images are selected from the sample images, and the selected target sample images are determined as the pose images to be recommended.
  • the target sample image when the target sample image is selected from the sample images, the target sample image can also be selected in combination with the individual characteristics of the photographed object, where the personalized characteristic may be the preference of the photographic action set by the photographic object in advance.
  • Features which can also be photo features such as preferred photo actions based on the analysis of the subject’s behavior data. The selection of target sample images by combining the individual features of the subject can help improve the subject’s satisfaction with the posture image. , And help improve the user experience.
  • the selecting a preset number of target sample images from the sample images includes:
  • the recommended value of the sample image may be determined according to the number of historical recommendations of the sample image within a preset time, or may be determined according to the number of historical selections of the sample image by the user within the preset time, or according to the user’s.
  • the target sample images can be sequentially displayed in the second display area as the posture images to be recommended, so that the subject or the photographer can be selected from the dynamically displayed posture images
  • the target posture image used in the current photo is selected, and the target posture image can be fixedly displayed in the second display area for the posture reference of the subject in the current photo, thereby improving the satisfaction of image shooting and improving user experience.
  • the display order of each posture image in the second display area can be determined according to the recommended value of each posture image. For example, the posture image with the higher the recommended value is displayed in the second display area first, and the lower the recommended value is. The posture image is later displayed in the second display area.
  • the at least one is acquired according to the target feature of the photographed object and the scene characteristic of the scene in which the photographed object is located.
  • Sample images including:
  • At least one sample image corresponding to the shooting category is acquired.
  • the shooting category may be a category classified according to scene characteristics and target characteristics, and each of the shooting categories may be correspondingly set with multiple sample images, that is, each of the shooting categories may be set with scene characteristics. Multiple sample images that match the scene features of the shooting category and the target features match the target features of the shooting category, so that the accuracy and efficiency of the sample image determination can be greatly improved through the setting of the shooting category, which helps Improve user experience.
  • the recognizing the target feature of the photographed object in the first image includes:
  • the acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located includes:
  • At least one sample image is acquired according to the group characteristics and the scene characteristics.
  • the target characteristic of each target object in the first image can be identified, and the multiple photographs in the first image can be determined according to the target characteristic of each photographed object.
  • the group characteristics of the objects, where the group characteristics may include the total number of photographed objects, the proportions of different facial features, and/or the proportions of different physical features, etc.
  • the acquiring at least one sample image according to the group characteristics and the scene characteristics includes:
  • At least one sample image whose matching degree with the group feature and the scene feature is greater than a first threshold is acquired from a pre-stored sample image library.
  • each sample image is marked with a scene feature and a group feature corresponding to the sample image. Therefore, after obtaining the group characteristics and scene characteristics corresponding to the first image, the matching degree between the group characteristics corresponding to the first image and the group characteristics corresponding to each sample image can be calculated respectively, and the corresponding group characteristics of the first image can be calculated respectively.
  • the matching degree between the scene feature and the scene feature corresponding to each sample image can then be determined according to the matching degree corresponding to each scene feature and the matching degree corresponding to each group feature. At least one sample image with a matching degree greater than a first threshold or the first M sample images with a high matching degree can be obtained, where M is an integer greater than or equal to, which is not limited in the embodiment of the application.
  • the posture adjustment may also include the adjustment of the position of each subject, that is, when the posture adjustment is performed, the height characteristics corresponding to each subject can also be obtained through AI recognition technology and image segmentation technology. And/or body shape characteristics, and/or facial shape characteristics, and the position adjustment method between each subject can be determined according to the height characteristics, and/or body shape characteristics, and/or facial characteristics of each subject to The position adjustment method is used to adjust the position between the photographed objects, so as to prevent the occurrence of occlusion in the multi-person photographing scene, which helps to improve the image shooting effect and helps to enhance the user experience.
  • the photographing the subject to obtain a photographed image includes:
  • the photographed object After it is determined that the photographed object has adjusted its posture according to the posture image displayed in the second display area, the photographed object is photographed to obtain a photographed image.
  • the embodiment of the present application may adjust the shooting posture of the subject according to the posture image displayed in the second display area before shooting Subject takes pictures.
  • the step of taking a picture of the photographing object to obtain a photographed image after determining that the photographing object performs posture adjustment according to the posture image displayed in the second display area includes:
  • the second image corresponding to the first display area can be acquired in real time.
  • the second image currently previewed in the first display area can be acquired, or the second image collected by the camera that will be in the first display area can be acquired.
  • a second image displayed in a display area, and the second image can be compared with the posture image displayed in the second display area to determine whether the subject has adjusted the camera posture.
  • the subject If it is determined that the subject has adjusted the camera posture, Then you can take a picture of the subject; if it is determined that the subject has not adjusted the posture, the difference between the subject’s posture and the posture in the posture image can be identified based on the image comparison, and the subject can be prompted based on the difference Further adjustment of the shooting posture can be performed, for example, by means of voice prompts, text prompts, or action prompts to prompt the subject to further adjust the shooting posture, so as to further confirm and correct the shooting posture, improve the image shooting effect, and enhance the user experience.
  • the method further includes:
  • the human body posture can be recognized and detected on the preset objects in the posture image through AI recognition technology and target detection technology, and the posture image can be generated based on the recognition and detection results.
  • the corresponding prompt voice and/or prompt text where the generated prompt voice and/or prompt text is mainly used to describe the specific posture of the preset object in the posture image, etc., therefore, when performing in the second display area
  • the prompt voice corresponding to the gesture image can also be played or the prompt text corresponding to the gesture image is displayed in the second display area or the first display area to assist in the prompt by combining the prompt voice and/or prompt text
  • the posture adjustment of the subject is carried out to improve the speed and efficiency of posture adjustment.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a first display screen and a second display screen, and the display area of the first display screen is the first display area The display area of the second display screen is the second display area.
  • the first display area faces the photographer, and the second display area faces the photographic object.
  • the posture image is displayed in the second display area facing the subject, so that the subject can directly view the posture image during the photographing process, so that the subject can directly adjust the posture according to the viewed posture image. Improve the efficiency of attitude adjustment.
  • the posture image can also be displayed in the first display area viewable by the photographer and the second display area viewable by the shooting object at the same time. It is convenient for the subject to directly adjust the posture based on the posture image, and it is also convenient for the photographer to assist in guiding the subject to adjust the posture according to the posture image displayed in the first display area, or to facilitate the photographer to understand the posture of the subject in real time Adjust the effect, thereby improving the efficiency of posture adjustment, improving the image shooting effect, and enhancing the user experience.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, the display area of the display screen is a first display area, and the second display area It is a partial display area of the first display area.
  • the first display area and the second display area face the photographer or the photographed object.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in different display areas of the display screen When taking a picture, the first display area and the second display area face the photographer or the photographed object.
  • the content displayed in the first display area and the second display area can also be exchanged.
  • the posture image displayed in the second display area can be switched to the first display area. Display, and can switch the first image displayed in the first display area to the second display area, so as to facilitate the photographer/or the subject to clearly view the first image or posture image.
  • an embodiment of the present application provides a photographing device, including:
  • An image acquisition module for acquiring a first image corresponding to the first display area
  • the feature recognition module is configured to recognize the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located;
  • the posture image recommendation module is used to obtain the posture image to be recommended according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located, and display the posture image in the second display area to prompt the The shooting object performs posture adjustment according to the posture image displayed in the second display area;
  • the photographing module is used to take a photograph of the photographed object to obtain a photographed image.
  • the posture image recommendation module includes:
  • a sample image acquisition unit configured to acquire at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
  • the posture image determining unit is configured to select a preset number of target sample images from the sample images, and determine the selected target sample image as the posture image to be recommended.
  • the posture image determining unit is further configured to obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, and N is an integer greater than or equal to 1.
  • the sample image acquisition unit when there is a photographed subject in the first image, includes:
  • a shooting category determining subunit configured to determine the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located;
  • the sample image acquisition first subunit is configured to acquire at least one sample image corresponding to the shooting category.
  • the feature recognition module is further configured to identify the target of each shooting object in the first image feature
  • the sample image acquisition unit further includes:
  • a group feature determining subunit configured to determine the group feature of the multiple shooting objects in the first image according to the target feature of each shooting object
  • the second subunit for acquiring sample images is configured to acquire at least one sample image according to the group characteristics and the scene characteristics.
  • the sample image acquiring second subunit is specifically configured to acquire the degree of matching with the group feature and the scene feature from a pre-stored sample image library according to the group feature and the scene feature At least one sample image greater than the first threshold.
  • the photographing module includes:
  • the posture adjustment determining unit is configured to take a picture of the subject to obtain a photographed image after it is determined that the subject is adjusted according to the posture image displayed in the second display area.
  • the posture adjustment determining unit includes:
  • An image acquisition subunit for acquiring a second image corresponding to the first display area
  • the photographing subunit is used to determine that the posture adjustment of the photographing object is completed when the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, and to take a picture of the photographing object to obtain Take pictures.
  • the photographing device further includes:
  • the prompt module is used to obtain the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a first display screen and a second display screen, and the display area of the first display screen is the first display Area, the display area of the second display screen is the second display area.
  • the first display area faces the photographer, and the second display area faces the photographic object.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, the display area of the display screen is a first display area, and the second display area It is a partial display area of the first display area.
  • the first display area and the second display area face the photographer or the photographed object.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in different display areas of the display screen When taking a picture, the first display area and the second display area face the photographer or the photographed object.
  • an embodiment of the present application provides a terminal device including a display screen, a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer
  • the program enables the mobile terminal to implement the photographing method according to any one of the above-mentioned first aspects.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation is as described in any of the above-mentioned first aspects.
  • embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the photographing method described in any one of the above-mentioned first aspects.
  • the first image corresponding to the first display area is acquired; the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located are recognized; according to the target feature of the shooting object and the scene where the shooting object is located According to the scene characteristics, the posture image to be recommended is acquired, and the posture image is displayed in the second display area to prompt the subject to adjust the posture according to the posture image displayed in the second display area; take a picture of the subject to obtain a photographed image.
  • the embodiment of the application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and display the posture image in the second display area, thereby facilitating shooting
  • the object directly adjusts the posture according to the displayed posture image, or it is convenient for the photographer to guide the object to perform posture adjustment according to the displayed posture image, which effectively improves the image shooting effect and enhances the user experience.
  • FIG. 1 is a schematic structural diagram of a mobile phone to which the photographing method provided by an embodiment of the present application is applicable;
  • FIG. 2 is an example diagram of a single-screen mobile phone to which the photographing method provided in an embodiment of the present application is applicable;
  • FIG. 3 is an example diagram of a folding screen mobile phone to which the photographing method provided by an embodiment of the present application is applicable;
  • Figure 4 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of previewing a first image in a photographing method provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of displaying a posture image in a second display area in the photographing method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of displaying a posture image in a second display area in a photographing method according to another embodiment of the present application.
  • FIG. 8 is a schematic diagram of displaying a posture image in a second display area in a photographing method according to another embodiment of the present application.
  • FIG. 9 is a schematic diagram of an application scenario provided by another embodiment of the present application.
  • FIG. 10 is a schematic diagram of an application scenario provided by another embodiment of the present application.
  • FIG. 11 is a schematic diagram of a photographing method provided by an embodiment of the present application for determining station position adjustment
  • FIG. 12 is a schematic diagram of a photographing method provided by an embodiment of the present application instructing station position adjustment through image instructions;
  • FIG. 13 is a schematic flowchart of a photographing method provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a photographing device provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the photographing method provided in the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers (
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • Fig. 1 shows a block diagram of a part of the structure of a mobile phone provided by an embodiment of the present application.
  • the mobile phone includes: a memory 110, an input unit 120, a display unit 130, a sensor 140, an audio circuit 150, a processor 160, a power supply 170, a camera 180 and other components.
  • the structure of the mobile phone shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
  • the memory 110 can be used to store software programs and modules.
  • the processor 160 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 110.
  • the memory 110 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 110 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 120 may be used to receive inputted digital or character information, and generate key signal input related to user settings and function control of the mobile phone 100.
  • the input unit 120 may include a touch panel 121 and other input devices 122.
  • the touch panel 121 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 121 or near the touch panel 121. Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 121 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 160, and can receive and execute commands from the processor 160.
  • the touch panel 121 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 120 may also include other input devices 122.
  • other input devices 122 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, and the like.
  • the display unit 130 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 130 may include a display panel 131.
  • the display panel 131 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • the touch panel 121 can cover the display panel 131. When the touch panel 121 detects a touch operation on or near it, it transmits it to the processor 160 to determine the type of the touch event, and then the processor 160 responds to the touch event. The type provides corresponding visual output on the display panel 131.
  • the touch panel 121 and the display panel 131 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 121 and the display panel 131 may be integrated. Realize the input and output functions of mobile phones.
  • the display unit 130 may include 1 or N display screens, and N is a positive integer greater than 1.
  • the above-mentioned display screen may be bent.
  • the above-mentioned display screen can be bent means that the display screen can be bent at any position along any axis to any angle, and can be maintained at that angle, for example, the display screen can be folded in half from the middle. You can also fold up and down from the middle.
  • the bent display screen may be referred to as a folding screen.
  • the folding screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here.
  • the display screen can also be a flexible screen, which has the characteristics of strong flexibility and bendability, and can provide users with a new interactive mode based on bendable characteristics, which can meet more needs of users for folding screen mobile phones.
  • the folding screen on the mobile phone can be switched between the small screen in the folded form and the large screen in the expanded form at any time.
  • the display unit 130 may include a primary display and a secondary display.
  • the primary and secondary displays are parallel and run independently of each other.
  • the primary display is set on one side of the mobile phone, and the secondary display is set on the other side of the mobile phone. side.
  • the main display screen and the sub display screen are two parallel surfaces.
  • an angle between the sub display screen and the horizontal ground is generated.
  • the angle between the main display screen of the double-sided screen mobile phone and the horizontal plane is equal or complementary.
  • the double-sided screen mobile phone can detect the angle between the main display of the double-sided screen mobile phone and the horizontal plane by means such as a gravity sensor.
  • the main display screen in the double-sided screen mobile phone is the main display device and is the most frequently used screen, while the secondary display screen is only used as an auxiliary screen and its use frequency is low.
  • the main display and the secondary display are not strictly distinguished. The user can set one screen as the primary display (or secondary display) under different usage scenarios, and the other screen will automatically be set as the secondary display (Or the main display).
  • the mobile phone 100 may also include at least one sensor 140, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 131 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 131 and/or when the mobile phone is moved to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify mobile phone posture applications (such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which can be configured in mobile phones, we will not here Repeat.
  • mobile phone posture applications such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.
  • vibration recognition related functions such as pedometer, percussion
  • other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which can be configured in mobile phones, we will not here Repeat.
  • the audio circuit 150, the speaker 151, and the microphone 152 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 150 can transmit the electric signal converted from the received audio data to the speaker 151, which is converted into a sound signal for output by the speaker 151; on the other hand, the microphone 152 converts the collected sound signal into an electric signal, and the audio circuit 150 After being received, it is converted into audio data, and then processed by the audio data output processor 160, and sent to, for example, another mobile phone, or the audio data is output to the memory 110 for further processing.
  • the processor 160 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes by running or executing software programs and/or modules stored in the memory 110, and calling data stored in the memory 110. Various functions and processing data of the mobile phone can be used to monitor the mobile phone as a whole.
  • the processor 160 may include one or more processing units; preferably, the processor 160 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 160.
  • the mobile phone 100 also includes a power source 170 (such as a battery) for supplying power to various components.
  • a power source 170 such as a battery
  • the power source may be logically connected to the processor 170 through a power management system, so that functions such as charging, discharging, and power management are realized through the power management system.
  • the mobile phone 100 may also include a camera 180.
  • the position of the camera 180 on the mobile phone 100 may be front or rear, which is not limited in the embodiment of the present application.
  • the camera 180 can obtain the optical image generated by the photographed object, and can convert the optical image into an electrical signal, and then the electrical signal can be converted into a digital signal through analog-to-digital conversion, and then the digital signal can be processed by the digital signal processor DSP The processed digital signal can be sent to the processor 160 for processing, and finally converted into an image that can be seen in the display unit 130.
  • the mobile phone 100 may include a single camera, a dual camera, or a triple camera, etc., which is not limited in the embodiment of the present application.
  • the mobile phone 100 may include three cameras, of which one is a main camera, one is a wide-angle camera, and one is a telephoto camera.
  • the multiple cameras may be all front-mounted, or all rear-mounted, or partly front-mounted and another part rear-mounted, which is not limited in the embodiment of the present application.
  • the mobile phone 100 may also include a Bluetooth module, etc., which will not be repeated here.
  • the photographing method provided in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and application scenarios.
  • the photographing method can be applied to the mobile phone 100 described above.
  • This scene can be a single-person photo-taking scene.
  • the photo-taking method in this scene can be applied to single-sided screen phones, double-sided screen phones or folding screen phones, among which, single-sided screen phones can also be folding screen phones.
  • the single-screen mobile phone formed after unfolding, the single-screen mobile phone, double-sided mobile phone or folding screen mobile phone includes a first display area 20 and a second display area 21.
  • the display screen of the single-sided screen mobile phone may include a first display area 20 for previewing a first image and a second display area 21 for displaying a posture image.
  • the first display area 20 and the second display area 21 both face the photographer or both face the subject.
  • both the first display area 20 and the second display area 21 can be located at any position in the display screen of a single-screen mobile phone.
  • the first display area 20 and the second display area 21 can be located in a single-screen mobile phone.
  • the different display areas in the display screen that is, the display areas of the first display area 20 and the second display area 21 do not overlap; for another example, the first display area 20 may be the entire display area of the mobile phone display with a single screen, and the second display The area 21 may be a part of the display area of the first display area 20, that is, the display areas of the first display area 20 and the second display area 21 may overlap.
  • the content displayed in the first display area 20 and the second display area 21 can also be exchanged.
  • the posture image displayed in the second display area 21 can be switched to the first display. It is displayed in the area 20, and the first image displayed in the first display area 20 can be switched to be displayed in the second display area 21, so as to facilitate the photographer/or subject to clearly view the first image or the posture image.
  • the double-sided screen mobile phone may use the display area of the main display screen as the first display area 20 and the display area of the secondary display screen as the second display area 21.
  • the first display area 20 can face the photographer to serve as the operator's operating terminal, and the second display area 21 can face the subject for viewing the posture image, so that the subject can directly follow the 2.
  • the posture image displayed in the display area 21 undergoes posture adjustment to improve posture adjustment efficiency.
  • the folding screen can adopt an integrated flexible display, or two rigid screens and a flexible screen located between the two rigid screens.
  • the folding screen may include: a first screen, a second screen, and a bendable area connecting the first screen and the second screen.
  • the display area of the first screen may be used as the first display area 20
  • the display area of the second screen may be used as the second display area 21.
  • the folding state can be fully folded, that is, the angle between the first screen and the second screen is 0 degrees (the actual angle may not reach 0 degrees, depending on the actual angle reported by the mobile phone sensor), or it can be partially folded , That is, the angle between the first screen and the second screen is greater than 0 degrees and less than 180 degrees.
  • the first display area 20 may face the photographer to serve as the operator's operating terminal, and the second display area 21 may face the photographed subject for the photographic subject to perform posture images. View.
  • the processor of the mobile phone when taking a picture, can obtain the first image corresponding to the first display area 20, and can recognize the first image through AI recognition technology to obtain the recognition As a result, the recognition result is used to indicate whether there is a subject in the first image, and to indicate the target feature of the subject when the subject is present, and to indicate the scene feature of the scene where the subject is located when the subject is present .
  • the target feature of the subject may include the facial feature and/or physical feature of the subject
  • the scene feature may include the scene type, such as beach/beach scene, forest scene, field scene, grass scene, desert scene, mountain peak Scenes, ocean scenes, lake/pond scenes, snow scenes, blue sky scenes, etc.
  • the embodiment of the present application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and displays the posture image through the second display area 21, so that the shooting object can directly
  • the posture adjustment is performed according to the displayed posture image or it is convenient for the photographer to guide the subject to perform posture adjustment according to the displayed posture image, which effectively improves the image shooting effect and enhances the user experience.
  • the mobile phone can set up a camera mode for acquiring posture images for shooting in advance for the user to choose.
  • the first image obtained can be recognized during the shooting process, and according to The recognition result displays the posture image in the second display area 21 of the mobile phone to prompt the subject to adjust the posture according to the displayed posture image; if the user does not select the photographing mode, the normal photographing process can be directly performed.
  • the mobile phone can start the camera according to the detected camera start instruction, and can preview the image collected by the camera in real time through the first display area of the mobile phone.
  • the user can start the camera in the mobile phone by inputting a camera start instruction, where the camera start instruction can be an instruction that triggers the generation of a preset button, or an instruction that triggers the generation of a preset gesture, or it can be a pre-trigger.
  • the voice keyword generation instruction is not limited in the embodiment of the present application.
  • the mobile phone can be preset to generate a camera start instruction when the "volume +" button is triggered twice, or to generate a camera start instruction when the "volume +" button and the "volume -” button are triggered simultaneously, then when the user presses +" button twice, or when the user presses the "volume +” button and the "volume -” button at the same time, the phone can generate and obtain the camera start instruction.
  • the mobile phone can be preset to generate a camera start instruction when a preset gesture such as an "O" gesture is collected, and when the user inputs a gesture that matches the preset gesture such as an "O” gesture, the mobile phone can Generate and get the camera start instruction.
  • the mobile phone can be preset to generate a camera start instruction when a preset voice keyword such as "photograph” is detected, and then when the user input voice contains a preset voice keyword such as "photograph", the mobile phone can generate And get the camera start instruction.
  • a preset voice keyword such as "photograph”
  • the mobile phone can generate And get the camera start instruction.
  • the mobile phone may obtain a first image corresponding to the first display area according to a trigger event or a preset duration, where obtaining the first image corresponding to the first display area may be obtained by obtaining a preview of the first display area
  • the image can also be the image captured by the camera in real time, that is, the camera can send the image captured in real time to the first display area of the mobile phone for preview, and can also send the image to the processor of the mobile phone as
  • the first image corresponding to the first display area acquired by the processor of the mobile phone is not limited in the embodiment of the present application.
  • preset duration described in the embodiments of the present application can be understood as a duration preset in the mobile phone.
  • the mobile phone may obtain the image currently previewed in the first display area or the image currently captured by the camera according to the detected specific instruction, and may determine the currently previewed image or the currently captured image as the first image.
  • the mobile phone can acquire the image currently previewed by the first display area or the image currently collected by the camera when detecting that the user clicks on any position of the first display area.
  • the mobile phone can obtain the image currently previewed in the first display area or the image currently collected by the camera when the camera startup time reaches the preset time length, and can use the currently previewed image or the currently collected image Determined to be the first image.
  • a timer or a timer can be preset in the mobile phone, and the timer or the timer can be started after the camera is started, and the duration of the timer or the timer is the preset duration (for example, 7 seconds).
  • the duration of the timer or the timer is the preset duration (for example, 7 seconds).
  • a scene recognition model may be constructed in the mobile phone in advance, so as to recognize the scene features in the first image through the scene recognition model.
  • the scene recognition model may be a convolutional neural network model based on a residual network (Residual Neural Network, ResNet) architecture, and the convolutional neural network can be obtained by training based on a scene database.
  • ResNet residual Network
  • the specific construction process and specific training process of the scene recognition model are not limited, and the existing construction process can be used for construction, or the existing training process can be used for training.
  • the scene recognition model can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; then image segmentation technology can be used , Such as using the image instance segmentation technology (Mask Region-based Convolutional Neural Networks, Mask RCNN) to perform target detection and segmentation on the preprocessed first image to obtain the foreground and background parts of the first image; then the background can be Part of the feature extraction and selection are performed, and scene features such as the scene type corresponding to the first image are identified by analyzing the selected features.
  • preprocessing such as information conversion, denoising, smoothing, and transformation
  • image segmentation technology can be used , such as using the image instance segmentation technology (Mask Region-based Convolutional Neural Networks, Mask RCNN) to perform target detection and segmentation on the preprocessed first image to obtain the foreground and background parts of the first image; then the background can be Part of the feature extraction and selection are performed, and scene features such as the
  • the embodiment of the present application may also construct a facial feature recognition model in the mobile phone in advance, so as to recognize the facial feature recognition model through the facial feature recognition model.
  • the facial features of the subject in the first image may be constructed from the mobile phone in advance.
  • the facial feature recognition model may be a multi-task convolutional neural network model (Multi-task Convolutioanl Neural Networks, MTCNN).
  • MTCNN Multi-task Convolutioanl Neural Networks
  • facial features recognized by the facial feature recognition model may include age features, gender features, facial features, expression features, and so on.
  • the facial feature recognition model receives the first image, it can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; then, it can sample people
  • preprocessing such as information conversion, denoising, smoothing, and transformation
  • the face recognition technology performs face recognition on the preprocessed first image to obtain the face block diagram and the key point coordinates of the facial features in the first image; then the face block diagram can be placed in the face block diagram according to the coordinates of the key points of the facial features Align the faces of, and perform feature extraction and analysis on the aligned faces to identify the facial features in the first image.
  • aligning the face in the face block diagram according to the coordinates of the key points of the facial features of the face may be performing operations such as rotating, scaling, and extracting the face in the face block diagram according to the coordinates of the key points of the facial features of the face.
  • the face is adjusted to a predetermined size and shape.
  • the embodiment of the present application may also construct a body recognition model in the mobile phone in advance, so as to recognize the photograph in the first image through the body recognition model The physical characteristics of the object.
  • the shape recognition model may be a dense human pose evaluation model DensePose Region-based Convolutional Neural Networks, DensePose RCNN).
  • the embodiment of this application does not limit the specific construction process and specific training process of DensePose RCNN, and the existing construction can be adopted. The process is constructed, or the existing training process can be used for training.
  • the shape recognition model after the shape recognition model receives the first image, it can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; Convolutional Neural Networks (Region-based Convolutional Neural Networks, RCNN) or Faster Region-based Convolutional Neural Networks (Faster RCNN) or YOLO algorithm (You only look once, YOLO) can perform target detection on the first image, The subject in the first image is detected; then the human body posture feature can be extracted for the subject, and the physical feature of the subject in the first image can be identified according to the extracted human posture feature.
  • the recognized physical characteristics may include height characteristics, body shape characteristics, and the like.
  • the embodiment of the present application may also construct a pose recommendation model in the mobile phone in advance, and the pose recommendation model may obtain the pose image to be recommended according to scene features and target features (ie, facial features and/or body features) to By comprehensively considering scene features and target features (ie, facial features and/or physical features) to obtain accurate and effective posture images to assist and guide the subject to shoot, improve image shooting effects and enhance user experience.
  • scene features and target features ie, facial features and/or body features
  • scene features and target features ie, facial features and/or physical features
  • the pose recommendation model may first obtain at least one sample image according to the target feature of the subject and the scene feature of the scene in which the subject is located, and select a preset number of target samples from the sample images Image, and the selected target sample image is determined as the posture image to be recommended.
  • the pose recommendation model may first obtain the recommended value of each sample image, then select the top N sample images with high recommended values as the target sample images, and determine the selected N target sample images as the ones to be recommended
  • the pose image where N is an integer greater than or equal to 1, to recommend the pose image through the recommended value, which helps to improve the recommendation accuracy and recommendation efficiency of the pose image.
  • the pose recommendation model may first determine the shooting category corresponding to the first image according to the scene features and the target features (face features and/or the physical features); then, the shooting category can be obtained.
  • Each sample image corresponding to the category, and a preset number of target sample images can be selected from these sample images, and each selected target sample image can be determined as the posture image to be recommended.
  • the setting of the shooting category can greatly improve The accuracy and efficiency of sample image determination improves user experience.
  • multiple preset shooting categories can be set according to scene characteristics and target characteristics (ie, facial features and/or physical characteristics).
  • scene characteristics and target characteristics ie, facial features and/or physical characteristics.
  • the grassy girlfriend category can be set according to scene characteristics and physical characteristics.
  • the high grass boyfriend category for example, you can set the beach aesthetic category and the beach funny category according to the scene characteristics, facial features, and physical characteristics, and so on.
  • Each preset shooting category can be configured with multiple sample images with better shooting effects and good postures, and the multiple sample images in each preset shooting category have scene characteristics that match the scene characteristics of the shooting category , And a sample image whose target feature matches the target feature of the shooting category.
  • the posture recommendation model After the posture recommendation model receives the scene feature and the facial feature and/or the physical feature, it can determine the shooting corresponding to the first image by matching the scene feature and the facial feature and/or the physical feature Category, that is, determining which preset shooting category is the shooting category corresponding to the first image.
  • the preset shooting categories and shooting categories are both based on the scene characteristics and target features (ie facial features and/or physical features) jointly determined categories, that is, the preset shooting categories and shooting categories are based on the scene features and target features (Ie, facial features and/or physical features) are classified into categories, so if any feature is different, the determined shooting category may also be different.
  • the shooting category is jointly determined by scene features and facial features, for two first images with the same scene features but different facial features, the determined two shooting categories may be different, so the recommended pose The images may also be different.
  • the shooting category determined according to subject A and the grass scene can be the grass girl category, and the shooting is determined according to subject B and the grass scene
  • the category can be a boyfriend category with tall grass. Therefore, for the subject A, a pose image will be obtained from the category of a small girlfriend on the grass for recommendation, and for the subject B, a pose image will be obtained from the category of boyfriend with a tall grass for recommendation.
  • the shooting category determined according to the subject C and the grass scene can be the grass little girlfriend category, and the shooting category is determined according to the subject C and the beach scene It can be a beach aesthetic category. Therefore, when the subject C is taking a photo on the grass, the pose image will be obtained from the grass little girlfriend category for recommendation, and for the subject C when taking a photo on the beach, the pose image will be obtained from the beach aesthetic category. recommend.
  • the shooting category is jointly determined by scene features and physical features or when the shooting category is jointly determined by scene features and facial features and physical features, if the scene features are different or if the facial features are not the same or if the physical features are not the same
  • the determined shooting category may also be different, and the recommended posture image may also be different.
  • the specific content is similar to the above description, and will not be repeated here.
  • the determined shooting category when the same subject is photographed in different scenes, the determined shooting category may be different, and the recommended posture images may also be different.
  • the determined shooting categories when different subjects are in the same When taking pictures in the scene, the determined shooting categories may also be different, and the recommended posture images may also be different.
  • the pose recommendation model can be classified through classifier design or classification decision, where the classifier design is to obtain a recognition rule through training, and perform classification through the recognition rule.
  • Classification decision is to classify the recognized objects in the feature space.
  • the scene feature and the first feature vector corresponding to the facial feature and/or the physical feature can be constructed first, and the scene features and facial features and/or physical features corresponding to each preset shooting category can be constructed respectively. Then, the matching degree between the first feature vector and each second feature vector is calculated respectively, and the shooting category to which the first image belongs is determined according to the matching degree.
  • the posture recommendation model determines the shooting category to which the first image belongs, it can acquire sample images corresponding to the shooting category, and select a preset number of target sample images from the sample images as the target sample images to be recommended Posture image.
  • the pose recommendation model can determine the pose image according to the recommended value of each sample image, so as to improve the recommendation accuracy and recommendation efficiency of the pose image.
  • the recommended value corresponding to each sample image can be determined according to the number of historical recommendations of each sample image within a preset time. For example, it can be determined according to the number of historical recommendations of each sample image in the past week. The more recommended number of sample images, the higher the corresponding recommendation value; the smaller the number of historical recommendations, the lower the corresponding recommendation value.
  • the recommended value corresponding to each sample image can also be determined according to the number of historical selections of each sample image by the mobile phone user within a preset time. For example, it can be determined based on the mobile phone user’s selection of each sample image in the past month. The number of historical selections is determined. The sample image with more historical selections has a higher recommended value; and the sample image with fewer historical selections has a lower recommended value.
  • the recommended value corresponding to each sample image can also be determined according to the personalized settings of the mobile phone user. For example, when the mobile phone user uses a photographing gesture in a sample image in the previous photographing process, When the camera pose is favorited or the favorite tag is set for the camera pose, the recommended value corresponding to the sample image is correspondingly higher. Accordingly, if the mobile phone user deletes the favorite camera pose or changes a certain camera pose When the dislike label is set, the recommended value corresponding to the sample image is correspondingly lower.
  • the mobile phone user can also pre-set a preset number of posture images recommended each time in the mobile phone, and the posture recommendation model can output the preset number of posture images for photo selection each time to satisfy the user’s requirements. Recommend willingness to improve user experience.
  • an input box can pop up in the mobile phone, and the mobile phone user can enter the recommended preset number each time (for example, 10 ), in each photo process, the pose recommendation model can output 10 pose images for photo selection.
  • the embodiment of the present application can also set the preset number recommended each time by default, for example, the preset number recommended each time can be set to 15 by default, when the mobile phone user has not set the preset number .
  • the posture recommendation model can output posture images according to the preset number of default settings, such as outputting 15 posture images each time for photo selection.
  • the pose recommendation model after the pose recommendation model obtains each sample image corresponding to the shooting category, it can further obtain the recommended value corresponding to each sample image, and can select a preset number of target sample images according to the recommended value as the target sample image to be recommended Posture image.
  • the posture recommendation model After the posture recommendation model obtains the recommended value corresponding to each sample image, it can first arrange the sample images in descending order according to the recommended value to obtain a descending sort group. In the descending order group, the sample image with the higher the recommended value The higher the ranking, and the lower the recommended value of the sample images, the lower the ranking; then, the top N target sample images with the highest ranking can be selected from the descending order group, and the selected top N The target sample image is determined as the posture image to be recommended.
  • the posture recommendation model can also be determined in conjunction with the individual characteristics of the subject, where the individual characteristics can be the subject’s preference for photographing actions and other photographic features, or In order to analyze the preferred photographing actions and other photographing features based on the behavior data of the photographed subject, for example, the photographic behavior data of the photographed subject can be searched for, the picture collection behavior data, the picture browsing behavior data and/or the historical photographed image of the photographed subject itself. The data is analyzed to obtain personalized features such as the subject's preference for taking pictures.
  • the posture recommendation model can firstly find a sample image matching the personalized feature from the sample images after acquiring each sample image corresponding to the shooting category, and then The recommended value corresponding to the found sample images is obtained, a preset number of target sample images can be selected according to the recommended value, and each target sample image is determined as the posture image to be recommended.
  • the pose recommendation model may be a convolutional neural network model obtained by collecting a large number of training images for labeling learning.
  • the training shooting category corresponding to each first training image through the initial posture recommendation model Determine the training shooting category corresponding to each first training image through the initial posture recommendation model, and calculate the training error according to the training shooting category and the preset shooting category corresponding to each first training image; if the training error does not meet the preset Condition, adjust the model parameters of the posture recommendation model, and determine the posture recommendation model after adjusting the model parameters as the initial posture recommendation model, and return to execute the training scene feature corresponding to each first training image and the training face feature and/ Or the training body features are input to the initial posture recommendation model to determine the steps and subsequent steps of the training shooting category corresponding to each first training image through the initial posture recommendation model; if the training error meets the preset conditions, the posture recommendation model is determined
  • the training is completed, and the trained posture recommendation model is used to classify each second training image into a corresponding preset shooting category, as a sample image corresponding to each preset shooting category.
  • the second training image and the first training image are both images with better shooting effect and good posture in a single-person
  • the sample image corresponding to each preset shooting category can not only include the corresponding second training image.
  • the image can also be crawled from the network in real time, and the crawled image Perform detection and analysis to determine whether the crawled image is a single-person scene image with good shooting effect and good posture. If so, the crawled image can be classified into the corresponding preset shooting category, that is, through the network Crawl to supplement the sample images of each preset shooting category, improve the diversity of posture image recommendation, and improve user experience.
  • the posture recommendation model can also integrate the functions of a scene recognition model, a facial feature recognition model, and/or a body recognition model, and the first image can be directly input to the posture recommendation model, and the posture recommendation model is Scene recognition and facial feature recognition and/or physical feature recognition can be directly performed on the first image, so that the posture image to be recommended can be obtained directly according to the recognized scene feature, facial feature and/or physical feature.
  • the pose recommendation model may be a convolutional neural network model based on Mask RCNN and face recognition technology.
  • the posture recommendation model can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; then, Mask RCNN can be used to
  • the preprocessed first image is subjected to target detection, target segmentation, and human body posture recognition, etc., to obtain the background part in the first image, the photographed object existing in the first image, and the human body posture feature corresponding to the photographed object; Subsequently, the background part can be extracted and selected, and the selected features can be analyzed to identify the scene features corresponding to the first image.
  • the facial recognition technology can also be used to capture the first image.
  • the object performs face detection to obtain the facial features corresponding to the first image; finally, the shape features in the first image can be obtained according to the human body posture feature, and the convolutional neural network can be used to obtain the scene feature and the facial feature And/or the physical feature determines the shooting category corresponding to the first image, so that the posture image to be recommended can be obtained according to the sample image corresponding to the shooting category.
  • each sample image may be an image collected and stored in the mobile phone in advance or stored in a cloud server connected to the mobile phone, or it may be an image captured from the network in real time during the photographing process.
  • the pose recommendation model When the pose recommendation model performs target detection on the first image, it can also crawl images from the network through technologies such as web crawlers, and can perform target detection and analysis on the captured images, so as to realize real-time detection and analysis based on the detection and analysis results.
  • the crawled images are classified into corresponding preset shooting categories, and used as sample images corresponding to the preset shooting categories.
  • the posture image can be displayed in the second display area of the mobile phone, and the posture image can be displayed to the subject or to the photographer, so that the subject can directly follow
  • the posture image performs posture adjustment or it is convenient for the photographer to guide the subject to perform posture adjustment according to the posture image, thereby improving the image shooting effect and enhancing the user experience.
  • the posture image can also be displayed in the first display area viewable by the photographer and the subject viewable
  • the second display area is convenient for the subject to directly adjust the posture according to the posture image, and it is also convenient for the photographer to assist in guiding the posture adjustment of the subject according to the posture image displayed in the first display area, or It is convenient for the photographer to understand the posture adjustment effect of the subject in real time, thereby improving the posture adjustment efficiency, improving the image shooting effect, and enhancing the user experience.
  • the display order corresponding to each posture image can be determined, and the posture images are sequentially displayed in the second display area according to the display order, so as to improve the effect of posture recommendation. It is convenient for the subject to quickly find a satisfactory recommended posture and enhance the user experience.
  • the display sequence corresponding to each posture image can be determined according to the recommended value corresponding to each posture image, wherein the posture image with the larger the recommended value is displayed in the second display area first, and the posture with the smaller recommended value The image is later displayed in the second display area.
  • the recommended value corresponding to each posture image can also be displayed, so that it is convenient for the subject and/or the photographer to select the posture image according to the recommended value, and enhance the user Experience.
  • the recommended value can be a specific value as shown in Figure 6, or a recommended index, such as a 5-star ( ⁇ ) recommendation index, a 4-star ( ⁇ ) recommendation index, 3 Star ( ⁇ ) recommendation index and so on.
  • AI recognition technology and target detection technology can also be used to recognize and detect the human body posture of the preset objects in each posture image, and each posture image can be generated according to the recognition and detection results
  • the corresponding prompt voice and/or prompt text wherein each generated prompt voice and/or each prompt text is mainly used to describe the specific posture of the preset object in the corresponding posture image.
  • the voice device such as the microphone in the mobile phone can also be used to play the prompt voice corresponding to the posture image, so as to combine the prompt voice to assist in prompting the subject to proceed.
  • Posture adjustment to improve the speed and efficiency of posture adjustment.
  • the prompt text corresponding to the posture image can also be displayed in the second display area or the first display area, so that the subject can be combined with the displayed prompt.
  • the posture adjustment can be carried out by text, or the photographer can assist in guiding the subject to adjust the posture according to the displayed prompt text, thereby improving the speed and efficiency of posture adjustment.
  • the subject or the photographer can select the posture image, that is, the subject or the photographer can select the desired posture image of the target from the multiple posture images.
  • the posture image of the target can be fixedly displayed in the second display area for the posture reference of the photographed object, which improves the satisfaction of image shooting and improves user experience.
  • the central position of the second display area can dynamically display posture images in the display order, and the edge position of the second display area can provide an "OK" or "OK” button for shooting
  • the subject or the photographer selects the posture image, that is, during the display of a certain posture image, if the "OK" or "OK” button is triggered, the center position of the second display area will be
  • the posture image is fixedly displayed to prompt the subject to adjust the posture according to the posture image.
  • the edge position of the second display area can also provide buttons such as "up” and “down” to facilitate viewing the previous posture image or the next posture image, and improve user experience.
  • the previous posture image or the next posture image can also be viewed by swiping to the left or swiping to the right.
  • the previous posture image can be viewed by swiping to the left.
  • the previous posture image or the next posture image can be viewed through the upward swipe operation and the downward swipe operation, which is not limited in the embodiment of the present application.
  • the central position of the second display area can also be divided into two parts.
  • the first part 81 is used to display the recommended For the posture image
  • the display content of the second part 82 can be the same as the display content in the first display area, that is, the second part 82 can be used to display the image corresponding to the current posture of the subject, so as to facilitate the subject to compare the two Right to adjust your camera posture and improve posture adjustment efficiency.
  • the processor of the mobile phone can issue a photographing instruction to control the camera to take a photograph of the photographed object to obtain a photographed image.
  • the mobile phone may also take a picture of the photographed object to obtain a photographed image after determining that the photographed object has adjusted its posture according to the posture image displayed in the second display area.
  • the mobile phone can determine whether the subject has adjusted his posture according to whether the voice confirmation instruction issued by the subject has been received, and can also determine whether the subject has adjusted himself according to whether the posture adjustment period reaches the preset adjustment period.
  • the camera posture of the camera is not limited in the embodiment of this application.
  • the mobile phone can confirm that it has received the subject's voice Voice confirmation instruction, at this time, the processor of the mobile phone can issue a photographing instruction to control the camera to take a picture and obtain a photographed image.
  • the timer in the mobile phone can be started in time to calculate the adjustment duration, and when the counted duration reaches the preset adjustment duration of 30 seconds, the mobile phone can confirm the subject The camera posture has been adjusted, and the processor of the mobile phone can now issue a camera command to control the camera to take a photo.
  • the mobile phone may also control the camera to take a picture of the subject after receiving the photographing instruction from the photographer to obtain the photographed image, that is, the photographer may send the photographing instruction to the mobile phone according to the adjustment of the posture image of the photographed object.
  • the camera can then be controlled to take pictures of the subject according to the photographing instruction.
  • the photographer can click the camera button in the mobile phone or trigger a voice command to send a camera command to the mobile phone, and the mobile phone can control the camera to take a photo according to the camera command. Take pictures.
  • to determine whether the subject has adjusted its own photographing posture can be determined according to the degree of matching between the second image and the posture image during the posture adjustment process. Specifically, the Display the second image corresponding to the area, and recognize the current photographing posture of the subject in the second image and the target photographing posture of the preset object in the selected target posture image through AI recognition technology, and then calculate the current photographing posture and The degree of matching between the target's camera posture; if the degree of matching is less than the first threshold, it can be considered that the subject has not adjusted the camera posture.
  • the difference between the current camera posture and the target camera posture can be determined , And prompt the subject to adjust the photographing posture according to the distinguished position until the matching degree between the adjusted current photographing posture and the target photographing posture is greater than or equal to the first threshold.
  • the degree of matching between the adjusted current camera posture and the target camera posture is greater than or equal to the first threshold, it is determined that the subject has adjusted the camera posture.
  • the camera can be controlled to take a photo to obtain a photo image to pass the matching
  • the calculation of the degree to further realize the confirmation and correction of the photographing posture can improve the effect of image shooting and enhance the user experience.
  • the histogram HistA of the current photographing posture and the histogram HistB of the target photographing posture can be calculated first, and then the normalized correlation coefficient between HistA and HistB, or the Bhattacharyya distance, or the histogram intersection distance can be calculated , Etc., so that the matching degree between the current camera pose and the target camera pose can be determined according to the normalized correlation coefficient or the Bhattacharyya distance, or the intersection distance of the histogram, and when the calculated matching degree is less than
  • the difference between the current photographing posture and the target’s photographing posture can be found by comparing histograms, so that the photographic subject can be prompted to adjust the posture according to the different position, for example, it can be played by voice
  • the method prompts the subject to adjust the posture and/or the manner of text display can be used to prompt the subject to adjust the posture.
  • the determination of the matching degree between the current photographing posture and the target photographing posture by calculating the normalized correlation coefficients between the histograms described above is only an example and not a limitation, and the embodiment of the present application may also Other methods such as matrix decomposition are used to determine the degree of matching between the current camera posture and the target camera posture.
  • the matching degree can also be displayed in the first display area and/or the second display area in real time, so that the object can be photographed and /Or the photographer clearly understands the specific fit between the photographing posture of the subject and the posture image.
  • This scene can be a scene where many people take a group photo.
  • the photographing method in this scene can be applied to a single-sided screen mobile phone as shown in Figure 2, or can be applied to a double-sided screen mobile phone as shown in Figure 3.
  • the single screen mobile phone may also be a single screen mobile phone formed after the folding screen mobile phone is unfolded.
  • both the double-sided screen mobile phone and the folding screen mobile phone in the folded state may include a first display area 20 and a second display area 21.
  • the first display area 20 can face the photographer to serve as the photographer’s operating terminal
  • the second display area 21 can face the subject for viewing the posture image of the subject, so that the subject can directly follow the second display
  • the image displayed in the area 21 undergoes posture adjustment to improve posture adjustment efficiency.
  • the display screen of the single-sided screen mobile phone may include a first display area 20 and a second display area 21, and the first display area 20 and The second display areas 21 all face the photographer or both face the subject.
  • Both the first display area 20 and the second display area 21 shown in FIG. 2 and FIG. 9 are only for schematic explanation and should not be construed as limiting the embodiments of the present application.
  • Both the first display area 20 and the second display area 21 can be located at any position in the display screen of a mobile phone with a single screen.
  • the positions of the first display area 20 and the second display area 21 can also be as shown in FIG. 10 position.
  • the content displayed in the first display area 20 and the second display area 21 can also be exchanged.
  • the posture image displayed in the second display area 21 can be switched to the first display area. 20, and the first image previewed in the first display area 20 can be switched to the second display area 21 for display, so as to facilitate the photographer/or subject to clearly view the first image or the posture image.
  • the processor of the mobile phone can obtain the first image corresponding to the first display area 20, and can recognize the first image through AI recognition technology to obtain the recognition result, which is used for Indicate whether there is a photographed object in the first image, and indicate the target feature of the photographed object when the photographed object exists, and indicate the scene characteristic of the scene where the photographed object is located when the photographed object exists. If there is a subject in the first image, the posture image to be recommended is acquired according to the identified target feature and scene feature of the subject, and the posture image is displayed in the second display area to prompt the subject to follow the posture The posture adjustment of the image is performed, and after the posture adjustment of the subject is prompted, the subject can be photographed to obtain the photographed image.
  • the target feature of the subject may include the facial feature of the subject and/or the physical feature of the subject
  • the scene feature may include the scene type, such as beach/beach scene, forest scene, field scene, grass scene, Desert scene, mountain peak scene, ocean scene, lake/pond scene, snow scene, blue sky scene, etc.
  • the embodiment of the application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and displays the posture image through the second display area, so that the shooting object can directly follow
  • the displayed posture image directly performs posture adjustment, or it is convenient for the photographer to guide the subject to perform posture adjustment according to the displayed posture image, so as to improve the image shooting effect and enhance the user experience.
  • the identified objects in the scene can include multiple, that is, the target features corresponding to the multiple objects in the first image (that is, facial features and/or shapes can be identified).
  • Feature when acquiring the posture image to be recommended according to the scene feature and the target feature (ie, facial feature and/or physical feature), the target feature corresponding to the multiple shooting objects (ie, facial feature and/or Or physical characteristics) perform statistical analysis to obtain the group characteristics in the first image, where the group characteristics may include the total number of photographed objects, the proportion of different facial features, and/or the proportion of different physical characteristics, etc., For example, when the facial features include facial features, the group features may include the proportion of fat faces, thin faces, etc.
  • the group features may include the proportion of women and the proportion of men among the multiple photographed subjects.
  • the group characteristics may include the proportion of young people, the proportion of teenagers, the proportion of middle-aged people, and the proportion of old people among the multiple subjects.
  • the group characteristics may include the proportions of different body types among the multiple photographed objects, and when the physical characteristics include height characteristics, the group characteristics may also include the multiple photographed objects. The proportion of different height ranges and so on.
  • the posture image to be recommended can be obtained according to the scene characteristics and the group characteristics, wherein the recommended posture image can include the cardioid alignment, V-shape alignment, and alignment corresponding to the preset objects in the posture image.
  • the co-op formation of simple stances, etc., for example, the posture image shown in Figure 9 can be determined based on the scene characteristics of the campus scene where the subject is located in the first image, the number of subjects, and the age of the subjects. Displayed in the second display area.
  • the posture image can also be displayed in the first display area viewable by the photographer and the viewable object by the photographer.
  • the second display area on the basis of facilitating the posture adjustment of the subject directly according to the posture image, can also facilitate the photographer to assist in guiding the posture adjustment of the subject according to the posture image displayed in the first display area, or it can be convenient
  • the photographer understands the position adjustment effect of the subject in real time, thereby improving the posture adjustment efficiency, improving the image shooting effect, and enhancing the user experience.
  • At least one sample image can be obtained according to the scene feature and the group feature, and a preset number of target samples can be selected from the sample image Image, and the selected target sample image is determined as the posture image to be recommended.
  • the scene feature and group feature corresponding to the first image can be matched with the scene feature and group feature corresponding to each sample image in the sample image library to obtain a match between the first image and each sample image According to the matching degree, obtain multiple sample images from the sample image library, and then select N target sample images from the multiple sample images, and determine the selected N target sample images as the pose to be recommended
  • multiple sample images with matching degrees greater than a first threshold can be obtained from a sample image library, and N target sample images can be selected from the multiple sample images according to the recommended value of each sample image, and the selected The N target sample images of are determined to be posture images to be recommended, where N is an integer greater than or equal to 1.
  • the first feature vector corresponding to the scene feature and the group feature of the first image can be constructed first, and the second feature vector corresponding to the scene feature and the group feature of each sample image in the sample image library can be constructed respectively, and then the second feature vectors corresponding to The matching degree between the first feature vector and each second feature vector, so that multiple sample images can be obtained from the sample image library according to the matching degree, and N target sample images can be selected according to the recommended value corresponding to each sample image As the posture image to be recommended.
  • the first weight corresponding to the scene feature and the second weight corresponding to the group feature can be preset according to the importance of the scene feature and the group feature. Therefore, in the calculation When the first image is matched with each sample image, the first feature vector corresponding to the scene feature and group feature of the first image can be constructed first, and the first feature vector corresponding to the scene feature and group feature of each second sample image can be constructed respectively.
  • Two feature vectors and then calculate the matching degree between the first feature vector and each second feature vector according to the first weight corresponding to the scene feature and the second weight corresponding to the group feature, so that the matching degree can be obtained from the sample image library
  • a plurality of sample images are obtained, and N target sample images can be selected as the posture images to be recommended according to the recommended value corresponding to each sample image.
  • each feature included in the group feature can be set to a unified second weight, or can be set to a different second weight according to the importance of each feature.
  • the target sample image can also be directly selected from the sample image library according to the matching degree.
  • the first M sample images with high matching degree can be selected from the sample image library as the target sample image.
  • a pre-built pose recommendation model may also be used to obtain the pose image.
  • the recognized scene feature and group feature may be input into the pose recommendation model, and the pose recommendation model That is, the recommended posture image can be obtained according to the scene characteristics and the group characteristics.
  • the pose recommendation model may first determine the shooting category corresponding to the first image according to the scene characteristics and the group characteristics; then, each sample image corresponding to the shooting category may be obtained, and the preset images may be selected from the sample images. Set a number of target sample images, and determine each selected target sample image as the posture image.
  • the co-op formation corresponding to the preset object in each target sample image can be output to the subject to remind the subject to follow the co-photograph Formation to adjust the photo posture, where the photo posture adjustment can include the adjustment of the camera position and/or the adjustment of the camera action, etc., to comprehensively recommend the best co-op formation to guide each shooting based on the scene characteristics and group characteristics
  • the subject performs photographing actions and/or adjustment of the photographing station to improve the image shooting effect in the co-photographing and enhance the user experience.
  • the pose recommendation model may be a convolutional neural network model obtained by collecting a large number of training images for labeling learning.
  • the posture recommendation model determines the training shooting category corresponding to each first training image, and calculates the training error according to the training shooting type and the preset shooting category corresponding to each first training image; if the training error does not meet the preset conditions, adjust The model parameters of the posture recommendation model, and the posture recommendation model adjusted by the model parameters is determined as the initial posture recommendation model, and return to execution.
  • the model is used to determine the steps and subsequent steps of the training shooting category corresponding to each first training image through the initial pose recommendation model; if the training error meets the preset conditions, it is determined that the training of the pose recommendation model is completed, and the trained pose recommendation is used
  • the model classifies each second training image into a corresponding preset shooting category as a sample image corresponding to each preset shooting category.
  • the second training image may include the first training image, and each second training image is an image with a better shooting effect in a co-production scene and a good co-production formation.
  • the sample image corresponding to each preset shooting category can not only include the corresponding second training image.
  • the image can also be crawled from the network in real time, and the crawled image Perform detection and analysis to determine whether the crawled image is a co-photographed scene image with a better shooting effect and a better co-production formation. If so, the crawled image can be classified into the corresponding preset shooting category to pass Web crawling supplements the sample images of each preset shooting category, improves the diversity of posture image recommendation, and improves user experience.
  • the pose recommendation model may first construct a first feature vector corresponding to the scene feature and the group feature, and respectively construct a second feature vector corresponding to the scene feature and the group feature in each preset shooting category, and then The matching degree between the first feature vector and each second feature vector is calculated respectively, and the shooting category to which the first image belongs is determined according to the matching degree.
  • the pose recommendation model may first construct the first feature vector corresponding to the scene feature and the group feature, and respectively construct the second feature vector corresponding to the scene feature and the group feature in each preset shooting category, and then according to The first weight corresponding to the scene feature and the second weight corresponding to the group feature respectively calculate the matching degree between the first feature vector and each second feature vector, and determine the shooting category to which the first image belongs according to the matching degree.
  • a preset number of target sample images in the shooting category can be acquired, and each target sample image can be determined as the posture image to be recommended and displayed on the double-sided screen mobile phone Or in the second display area of the folding screen mobile phone for the subject to view the posture image, so that the subject can directly adjust his own photographing action and/or photographing position according to the posture image to improve the posture adjustment efficiency.
  • a preset number of target sample images in the shooting category can be acquired, and each target sample image can be determined as the posture image to be recommended and displayed on the single-screen mobile phone In the second display area, the photographer can guide the subject to adjust the photographing posture according to the posture image.
  • the preset number and acquisition method corresponding to the target sample images in the scene are similar to the preset number and acquisition method corresponding to the target sample images in scene 1, and the basic principles are the same, and will not be repeated here.
  • the second image currently corresponding to the first display area can be acquired first, and the second image can be identified through AI recognition technology and image segmentation technology.
  • Body shape features and/or facial features between subjects are compared to obtain the corresponding comparison results, and based on the comparison results, it is determined whether the subject needs to be adjusted in position, if the subject does not need to be positioned To adjust, perform the photographing operation to obtain the photographed image; if the position adjustment of the photographed subject is needed, the position adjustment method is determined according to the comparison result, and the position adjustment between the photographed objects is carried out according to the position adjustment method , So as to prevent the occurrence of occlusion in the co-production scene, improve the image shooting effect, and enhance the user experience.
  • the above-mentioned acquiring the height features, and/or body shape features, and/or facial features corresponding to each shooting object may be acquiring the height features corresponding to each shooting object, or acquiring the body shape characteristics corresponding to each shooting object, or Obtain the facial features corresponding to each subject, or obtain the height and body features corresponding to each subject, or obtain the height and facial features corresponding to each subject, or the body and facial features corresponding to each subject , Or obtain the height feature, body shape feature, and face shape feature corresponding to each subject.
  • the stance adjustment method can be determined according to the comparison result of the height characteristics.
  • the stance adjustment method at this time is mainly to adjust the taller subject to the rear row farther from the camera to ensure the front and rear rows There will be no occlusion between the subjects in between, thus improving the image capture effect.
  • the determined position adjustment method may be the first photographic subject Position adjustment with the second subject.
  • the stance adjustment method can be determined according to the comparison result between the facial features.
  • the stance adjustment method is mainly to adjust the subject with a larger face to the rear row farther from the camera to improve the image
  • the shooting effect increases the satisfaction of shooting the subject.
  • the determined position adjustment method may be The position adjustment of the third photographic subject and the fourth photographic subject.
  • the stance adjustment method can be determined according to the comparison result between the body shape features.
  • the stance adjustment method is mainly to adjust the larger object to the rear row or the distance from the camera. The far sides of the shooting center to improve the image shooting effect.
  • the determined position adjustment method may be performed.
  • the position adjustment method when determining the position adjustment method according to two or three of the height feature, body shape feature and face shape feature, the position adjustment can be determined according to the priority order of height feature> face shape feature> body shape feature
  • the method that is, the position adjustment method is determined based on the height characteristics first, and when the height characteristics are the same, the position adjustment method can be determined according to the facial features, and when the height characteristics and facial features are the same, you can Determine the position adjustment method according to the body type characteristics.
  • the determined position adjustment method can be displayed in a second display area viewable by the subject through an image indication, This allows the subject to adjust the position directly according to the displayed image instructions, improving the efficiency of the position adjustment.
  • the determined position adjustment method can also be displayed in the first display area viewable by the photographer through image instructions, so that the photographer can follow the first display area.
  • the image indication displayed in a display area assists in guiding the subject to adjust the position, or to facilitate the photographer to understand the effect of the position adjustment of the subject, improve the image shooting effect, and enhance the user experience.
  • the determined position adjustment method can be used to guide the subject to adjust the position in the form of voice playback, or can be displayed in the first display area through image instructions, so that the photographer can According to the displayed image instructions, guide the subject to adjust the position.
  • the determined position adjustment method can of course also be used in the form of voice playback to assist in guiding the subject to adjust the position, or can also be displayed by image instructions In the first display area, the photographer can assist in guiding the subject to adjust the position according to the displayed image instructions, which is not limited in the embodiment of the present application.
  • a third image corresponding to the first display area can be further obtained, and the location of the shooting object in the third image can be identified through AI recognition technology.
  • the degree of matching between the overall camera posture and the target co-photographing posture of the preset object in the selected target posture image can be calculated; if the degree of matching is less than the second threshold, it is determined that the overall camera posture is The different positions between the target co-photographing postures, and the subject is prompted to adjust the photographing posture according to the different positions, until the matching degree between the adjusted overall photo-taking posture and the target co-photographing posture is greater than or equal to a second threshold.
  • the camera can be controlled to take pictures to obtain a photographed image, which improves the image photographing effect and improves user experience.
  • the degree of matching can also be displayed in the first display area and/or the second display area in real time to facilitate the shooting of the subject and /
  • the photographer clearly understands the specific fit between the photographing posture of the subject and the posture image.
  • the calculated matching degree of 9.5 can be displayed in the second display area to facilitate the photographer Clearly understand the specific fit between the photographing posture of the subject and the posture image.
  • this scene can be applied to a co-photographing scene of multiple people, and can guide the action of each subject in the co-photographing, adjusting the position of each subject according to the posture image, and improve the co-photographing effect and user experience .
  • an embodiment of the present application provides a photographing method, which can be applied to the above-mentioned mobile terminal, and the photographing method may include:
  • S1302 Identify the target feature of the shooting object in the first image and the scene feature where the shooting object is located;
  • the first image may be the first frame of preview image, or the Nth frame of preview image after the first frame, or the first frame of image collected by the camera, or the Nth frame after the first frame.
  • N is an integer greater than 1; the characteristics of the subject include, but are not limited to, the facial features and physical characteristics of the subject; the posture image to be recommended can be obtained locally or from the network.
  • the acquiring the posture image to be recommended according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located includes:
  • a preset number of target sample images are selected from the sample images, and the selected target sample images are determined as the pose images to be recommended.
  • the selecting a preset number of target sample images from the sample images includes:
  • the acquiring at least one sample image according to the target feature of the photographed object and the scene characteristic of the scene in which the photographed object is located includes:
  • At least one sample image corresponding to the shooting category is acquired.
  • the identifying target characteristics of the photographed objects in the first image includes:
  • the acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located includes:
  • At least one sample image is acquired according to the group characteristics and the scene characteristics.
  • the acquiring at least one sample image according to the group characteristics and the scene characteristics includes:
  • At least one sample image whose matching degree with the group feature and the scene feature is greater than a first threshold is acquired from a pre-stored sample image library.
  • the taking a picture of the subject to obtain a photographed image includes:
  • the photographed object After it is determined that the photographed object has adjusted its posture according to the posture image displayed in the second display area, the photographed object is photographed to obtain a photographed image.
  • the step of taking a picture of the photographing object to obtain a photographed image after determining that the photographing object performs posture adjustment according to the posture image displayed in the second display area includes:
  • the method further includes:
  • the photographing method is applied to a mobile terminal.
  • the mobile terminal includes a first display screen and a second display screen.
  • the display area of the first display screen is the first display area.
  • the display area of the second display screen is the second display area.
  • the first display area faces the photographer, and the second display area faces the photographic object.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, the display area of the display screen is a first display area, and the second display area is a partial display area of the first display area, When taking a picture, the first display area and the second display area face the photographer or the subject.
  • the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in different display areas of the display screen. , The first display area and the second display area face the photographer or the photographed subject.
  • the embodiment of the application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and display the posture image in the second display area, thereby facilitating shooting
  • the object directly adjusts the posture according to the displayed posture image, or it is convenient for the photographer to guide the subject to adjust the posture according to the displayed posture image, which effectively improves the image shooting effect and enhances the user experience.
  • FIG. 14 shows a structural block diagram of a photographing device provided in an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
  • the photographing device may be applied to the above-mentioned mobile terminal, and the photographing device may include:
  • the image acquisition module 1401 is configured to acquire a first image corresponding to the first display area
  • the feature recognition module 1402 is configured to recognize the target feature of the shooting object in the first image and the scene feature of the scene in which the shooting object is located;
  • the posture image recommendation module 1403 is configured to obtain a posture image to be recommended according to the target feature of the subject and the scene feature of the scene where the subject is located, and display the posture image in the second display area to prompt The shooting object performs posture adjustment according to the posture image displayed in the second display area;
  • the photographing module 1404 is used to photograph the subject to obtain a photographed image.
  • the posture image recommendation module 1403 includes:
  • a sample image acquisition unit configured to acquire at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
  • the posture image determining unit is configured to select a preset number of target sample images from the sample images, and determine the selected target sample image as the posture image to be recommended.
  • the posture image determining unit is specifically configured to obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, and N is an integer greater than or equal to 1.
  • the sample image acquisition unit includes:
  • a shooting category determining subunit configured to determine the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located;
  • the sample image acquisition first subunit is configured to acquire at least one sample image corresponding to the shooting category.
  • the feature recognition module 1402 is further configured to identify the target feature of each shooting object in the first image
  • the sample image acquisition unit includes:
  • a group feature determining subunit configured to determine the group feature of the multiple shooting objects in the first image according to the target feature of each shooting object
  • the second subunit for acquiring sample images is configured to acquire at least one sample image according to the group characteristics and the scene characteristics.
  • the sample image acquisition second subunit is specifically configured to acquire from a pre-stored sample image library according to the group characteristic and the scene characteristic, and the degree of matching with the group characteristic and the scene characteristic is greater than At least one sample image of the first threshold.
  • the photographing module 1404 includes:
  • the posture adjustment determining unit is configured to take a picture of the subject to obtain a photographed image after it is determined that the subject is adjusted according to the posture image displayed in the second display area.
  • the posture adjustment determining unit includes:
  • An image acquisition subunit for acquiring a second image corresponding to the first display area
  • the photographing subunit is used to determine that the posture adjustment of the photographing object is completed when the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, and to take a picture of the photographing object to obtain Take pictures.
  • the photographing device further includes:
  • the prompt module is used to obtain the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
  • the photographing device is applied to a mobile terminal, the mobile terminal includes a first display screen and a second display screen, the display area of the first display screen is the first display area, and the second display screen The display area is a second display area.
  • the first display area faces the photographer, and the second display area faces the photographic object.
  • the photographing device is applied to a mobile terminal
  • the mobile terminal includes a display screen
  • a display area of the display screen is a first display area
  • the second display area is a first display area
  • the first display area and the second display area face the photographer or the photographed subject.
  • the photographing device is applied to a mobile terminal.
  • the mobile terminal includes a display screen.
  • the first display area and the second display area are located in different display areas of the display screen.
  • the display area and the second display area face the photographer or the subject.
  • FIG. 15 is a schematic structural diagram of a mobile terminal provided by an embodiment of this application.
  • the mobile terminal 15 of this embodiment includes: at least one processor 1500 (only one is shown in FIG. 15), a memory 1501, and stored in the memory 1501 and available in the at least one processor 1500 A computer program 1502 running on the computer, and a display screen 1503.
  • the display screen 1503 includes a first display area and a second display area.
  • FIG. 15 is only an example of the mobile terminal 15 and does not constitute a limitation on the mobile terminal 15. It may include more or less components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, etc.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it realizes the steps that can realize the above-mentioned method embodiments.
  • the embodiments of the present application provide a computer program product.
  • the computer program product is run on a mobile terminal, the above-mentioned photographing method embodiments can be implemented when the mobile terminal is executed.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • entity or device capable of carrying computer program code to the photographing device/terminal device
  • recording medium computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM Random Access Memory
  • the disclosed device and method may be implemented in other ways.
  • the system embodiment described above is merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The present application is applicable to the technical field of terminals, and in particular, relates to an artificial intelligence (AI)-based photographing method and mobile terminal. The photographing method comprises: obtaining a first image corresponding to a first display region; identifying the target characteristic of a photography subject in the first image and the scene characteristic of a scene where the photography subject is located; obtaining, according to the target characteristic of the photography subject and the scene characteristic thereof, a posture image to be recommended, and displaying said posture image in a second display region to prompt the photography subject to adjust the posture according to the posture image displayed in the second display region; and photographing the photography subject to obtain a photographed image. The posture image is obtained according to the target characteristic of the photography subject and the scene characteristic thereof, which improves the accuracy and the effectiveness of posture image obtaining. Displaying the posture image in the second display region can make it convenient for the photography subject to adjust the posture or make it convenient for a photographer to guide the photography subject to adjust the posture, which improves the image capture effect.

Description

拍照方法和移动终端Photographing method and mobile terminal
本申请要求于2019年08月07日提交国家知识产权局、申请号为201910727319.7、申请名称为“拍照方法和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on August 07, 2019, the application number is 201910727319.7, and the application name is "Photographing Method and Mobile Terminal", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请属于终端技术领域,尤其涉及基于人工智能(AI)技术的拍照方法和移动终端。This application belongs to the field of terminal technology, and in particular relates to a photographing method and a mobile terminal based on artificial intelligence (AI) technology.
背景技术Background technique
随着拍照技术的不断发展和移动终端的广泛普及,移动终端的拍照功能被广泛使用,越来越多的用户利用手机、平板电脑等移动终端进行拍照,极大地提高了拍照的方便性和便捷性。With the continuous development of camera technology and the widespread popularity of mobile terminals, the camera function of mobile terminals is widely used. More and more users use mobile phones, tablet computers and other mobile terminals to take pictures, which greatly improves the convenience and convenience of taking pictures. Sex.
现有的移动终端可以通过智能识别技术识别被拍摄物体的特征和/或被拍摄物体所在的场景等,从而可根据被拍摄物体的特征和/或被拍摄物体所在的场景自动调节移动终端中相机的光影明暗和曝光等参数,以获取成像效果较好的图像。Existing mobile terminals can recognize the characteristics of the photographed object and/or the scene where the photographed object is located through intelligent recognition technology, so that the camera in the mobile terminal can be automatically adjusted according to the characteristics of the photographed object and/or the scene where the photographed object is located. The parameters of light and shadow, exposure, etc. can be used to obtain images with better imaging effects.
然而,现有的移动终端根据智能识别技术识别的特征进行相机参数的调整只能对拍摄对象和/或拍摄场景进行美化处理,而并不能改变拍摄对象的拍照站位和/或拍照姿势等,这样,当用户缺乏拍照技巧时,往往很难得到令拍摄对象满意的图像,影响拍摄效果。However, the existing mobile terminal that adjusts camera parameters based on the features recognized by the intelligent recognition technology can only beautify the subject and/or the shooting scene, but cannot change the shooting position and/or posture of the subject. In this way, when the user lacks photography skills, it is often difficult to obtain images that satisfy the subject, which affects the shooting effect.
发明内容Summary of the invention
本申请实施例提供了一种拍照方法和移动终端,可以在拍照过程中进行拍照站位和/或拍照姿势的推荐,从而提高图像的拍摄效果。The embodiments of the present application provide a photographing method and a mobile terminal, which can recommend a photographing position and/or photographing posture during the photographing process, thereby improving the photographing effect of an image.
第一方面,本申请实施例提供了一种拍照方法,包括:In the first aspect, an embodiment of the present application provides a photographing method, including:
获取与第一显示区域对应的第一图像;Acquiring a first image corresponding to the first display area;
识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景的场景特征;Identifying the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located;
根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,并将所述姿态图像显示于第二显示区域,以提示所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整;Obtain the posture image to be recommended according to the target feature of the subject and the scene feature of the scene in which the subject is located, and display the posture image in the second display area to prompt the subject according to the second Adjust the posture image displayed in the display area;
对所述拍摄对象进行拍照,得到拍照图像。Taking a picture of the subject to obtain a photographed image.
需要说明的是,所述第一图像可以为所述第一显示区域预览的第一帧预览图像,或者第一帧之后的第N帧预览图像,也可以为摄像头采集的第一帧图像,或者第一帧之后的第N帧图像,N为大于1的整数;所述拍摄对象的特征包括但不限于拍摄对象的脸部特征、形体特征等;所述待推荐的姿态图像可以从本地或者从网络获取。It should be noted that the first image may be the first frame preview image previewed by the first display area, or the Nth frame preview image after the first frame, or the first frame image collected by the camera, or For the Nth frame image after the first frame, N is an integer greater than 1; the features of the subject include but are not limited to the facial features and physical features of the subject; the posture image to be recommended can be from the local or from Network access.
应理解,所述识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景的场景特征可以是利用AI识别技术和目标检测技术来识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景的场景特征。It should be understood that the recognizing the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located may be using AI recognition technology and target detection technology to recognize the target of the shooting object in the first image Characteristics and scene characteristics of the scene where the subject is located.
在第一方面的一种可能的实现方式中,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,包括:In a possible implementation of the first aspect, the acquiring the posture image to be recommended according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located includes:
根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像;Acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
从所述样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。A preset number of target sample images are selected from the sample images, and the selected target sample images are determined as the pose images to be recommended.
应理解,在从所述样本图像中选取目标样本图像时,还可以结合拍摄对象的个性化特征来进行目标样本图像的选取,其中,个性化特征可以为拍摄对象事先设置的偏好拍照动作等拍照特征,也可以为根据拍摄对象的行为数据所分析得到的偏好拍照动作等拍照特征,通过结合拍摄对象的个性化特征来进行目标样本图像的选取,有助于提高拍摄对象对姿态图像的满意度,并有助于提升用户体验。It should be understood that when the target sample image is selected from the sample images, the target sample image can also be selected in combination with the individual characteristics of the photographed object, where the personalized characteristic may be the preference of the photographic action set by the photographic object in advance. Features, which can also be photo features such as preferred photo actions based on the analysis of the subject’s behavior data. The selection of target sample images by combining the individual features of the subject can help improve the subject’s satisfaction with the posture image. , And help improve the user experience.
可选地,所述从所述样本图像中选取预设数量的目标样本图像,包括:Optionally, the selecting a preset number of target sample images from the sample images includes:
获取每一个样本图像的推荐值,选择推荐值高的前N个样本图像作为目标样本图像,N为大于或等于1的整数。Obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, where N is an integer greater than or equal to 1.
应理解,所述样本图像的推荐值可以根据所述样本图像在预设时间内的历史推荐数量确定,也可以根据用户在预设时间内对样本图像的历史选择次数确定,还可以根据用户的个性化设置确定,例如根据用户设置的喜好标签确定,以根据推荐值来进行姿态图像的推荐,有助于提高姿态图像的推荐准确性和推荐效率。It should be understood that the recommended value of the sample image may be determined according to the number of historical recommendations of the sample image within a preset time, or may be determined according to the number of historical selections of the sample image by the user within the preset time, or according to the user’s The determination of personalized settings, for example, based on the preference tags set by the user, to recommend the posture image according to the recommended value, helps to improve the recommendation accuracy and recommendation efficiency of the posture image.
需要说明的是,在选取预设数量的目标样本图像后,可以将目标样本图像作为待推荐的姿态图像依次显示于第二显示区域,以使得拍摄对象或者拍摄者可以从动态显示的姿态图像中选取当次拍照所使用的目标姿态图像,并在当次拍照中可以将目标姿态图像固定显示在第二显示区域中来供拍摄对象进行姿态参考,从而提高图像拍摄的满意度,提升用户体验。It should be noted that after a preset number of target sample images are selected, the target sample images can be sequentially displayed in the second display area as the posture images to be recommended, so that the subject or the photographer can be selected from the dynamically displayed posture images The target posture image used in the current photo is selected, and the target posture image can be fixedly displayed in the second display area for the posture reference of the subject in the current photo, thereby improving the satisfaction of image shooting and improving user experience.
示例的,各姿态图像在第二显示区域中的显示顺序可以根据各姿态图像的推荐值来确定,例如,推荐值越高的姿态图像越先显示于第二显示区域中,推荐值越低的姿态图像越后显示于第二显示区域中。For example, the display order of each posture image in the second display area can be determined according to the recommended value of each posture image. For example, the posture image with the higher the recommended value is displayed in the second display area first, and the lower the recommended value is. The posture image is later displayed in the second display area.
在第一方面的一种可能的实现方式中,当所述第一图像中存在一个拍摄对象时,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像,包括:In a possible implementation manner of the first aspect, when there is a photographed subject in the first image, the at least one is acquired according to the target feature of the photographed object and the scene characteristic of the scene in which the photographed object is located. Sample images, including:
根据所述拍摄对象的目标特征以及所述拍摄对象的所在的场景的场景特征确定所述第一图像所对应的拍摄类别;Determine the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
获取所述拍摄类别所对应的至少一个样本图像。At least one sample image corresponding to the shooting category is acquired.
需要说明的是,所述拍摄类别可以为根据场景特征和目标特征分类得到的类别,每一个所述拍摄类别可以对应设置有多张样本图像,即每一个所述拍摄类别中可以设置有场景特征与该拍摄类别的场景特征相匹配、且目标特征与该拍摄类别的目标特征相匹配的多张样本图像,以通过拍摄类别的设置可以极大地提高样本图像确定的准确性和效率,有助于提升用户体验。It should be noted that the shooting category may be a category classified according to scene characteristics and target characteristics, and each of the shooting categories may be correspondingly set with multiple sample images, that is, each of the shooting categories may be set with scene characteristics. Multiple sample images that match the scene features of the shooting category and the target features match the target features of the shooting category, so that the accuracy and efficiency of the sample image determination can be greatly improved through the setting of the shooting category, which helps Improve user experience.
在第一方面的一种可能的实现方式中,当所述第一图像中存在多个拍摄对象时,所述识别所述第一图像中拍摄对象的目标特征,包括:In a possible implementation of the first aspect, when there are multiple photographed objects in the first image, the recognizing the target feature of the photographed object in the first image includes:
识别所述第一图像中每一个拍摄对象的目标特征;Identifying the target feature of each shooting object in the first image;
相应的,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像,包括:Correspondingly, the acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located includes:
根据每一个拍摄对象的目标特征确定所述第一图像中所述多个拍摄对象的群体特征;Determining the group characteristics of the multiple photographing objects in the first image according to the target characteristic of each photographing object;
根据所述群体特征和所述场景特征获取至少一个样本图像。At least one sample image is acquired according to the group characteristics and the scene characteristics.
应理解,若拍照场景为多人拍照场景时,可以识别所述第一图像中每一个目标对象的目标特征,并根据每一个拍摄对象的目标特征确定所述第一图像中所述多个拍摄对象的群体特征,其中,群体特征可以包括拍摄对象的总数、不同脸部特征所占的比例和/或不同形体特征所占的比例等。It should be understood that if the photographing scene is a multi-person photographing scene, the target characteristic of each target object in the first image can be identified, and the multiple photographs in the first image can be determined according to the target characteristic of each photographed object. The group characteristics of the objects, where the group characteristics may include the total number of photographed objects, the proportions of different facial features, and/or the proportions of different physical features, etc.
可选地,所述根据所述群体特征和所述场景特征获取至少一个样本图像,包括:Optionally, the acquiring at least one sample image according to the group characteristics and the scene characteristics includes:
根据所述群体特征和所述场景特征,从预先存储的样本图像库中获取与所述群体特征和所述场景特征的匹配度大于第一阈值的至少一个样本图像。According to the group feature and the scene feature, at least one sample image whose matching degree with the group feature and the scene feature is greater than a first threshold is acquired from a pre-stored sample image library.
需要说明的是,在多人拍照场景中,所述样本图像库中存储有多张样本图像,每一张样本图像均标记有该样本图像所对应的场景特征和群体特征。因此在获取到第一图像对应的群体特征和场景特征后,可分别计算该第一图像对应的群体特征与各样本图像对应的群体特征之间的匹配度,并分别计算该第一图像对应的场景特征与各样本图像对应的场景特征之间的匹配度,然后可以根据计算得到的各场景特征所对应的匹配度和各群体特征所对应的匹配度分别确定该第一图像与各样本图像之间的匹配度,并可以获取匹配度大于第一阈值的至少一张样本图像或者获取匹配度高的前M个样本图像,M为大于或等于的整数,本申请实施例对此不作限定。It should be noted that, in a multi-person photographing scene, multiple sample images are stored in the sample image library, and each sample image is marked with a scene feature and a group feature corresponding to the sample image. Therefore, after obtaining the group characteristics and scene characteristics corresponding to the first image, the matching degree between the group characteristics corresponding to the first image and the group characteristics corresponding to each sample image can be calculated respectively, and the corresponding group characteristics of the first image can be calculated respectively. The matching degree between the scene feature and the scene feature corresponding to each sample image can then be determined according to the matching degree corresponding to each scene feature and the matching degree corresponding to each group feature. At least one sample image with a matching degree greater than a first threshold or the first M sample images with a high matching degree can be obtained, where M is an integer greater than or equal to, which is not limited in the embodiment of the application.
应理解,在多人拍照场景中,姿态调整还可以包括各拍摄对象之间的站位调整,即在进行姿态调整时,还可以通过AI识别技术和图像分割技术获取各拍摄对象对应的身高特征和/或体型特征、和/或脸型特征,并可以根据各拍摄对象之间的身高特征、和/或体型特征、和/或的脸型特征确定各拍摄对象之间的站位调整方式,以根据站位调整方式来进行拍摄对象之间站位的调整,从而防止多人拍照场景中遮挡情况的发生,有助于提高图像拍摄效果,并有助于提升用户体验。It should be understood that in a multi-person photographing scene, the posture adjustment may also include the adjustment of the position of each subject, that is, when the posture adjustment is performed, the height characteristics corresponding to each subject can also be obtained through AI recognition technology and image segmentation technology. And/or body shape characteristics, and/or facial shape characteristics, and the position adjustment method between each subject can be determined according to the height characteristics, and/or body shape characteristics, and/or facial characteristics of each subject to The position adjustment method is used to adjust the position between the photographed objects, so as to prevent the occurrence of occlusion in the multi-person photographing scene, which helps to improve the image shooting effect and helps to enhance the user experience.
在第一方面的一种可能的实现方式中,所述对所述拍摄对象进行拍照,得到拍照图像,包括:In a possible implementation manner of the first aspect, the photographing the subject to obtain a photographed image includes:
在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像。After it is determined that the photographed object has adjusted its posture according to the posture image displayed in the second display area, the photographed object is photographed to obtain a photographed image.
需要说明的是,为确保图像的拍摄效果,提高图像拍摄的满意度,提升用户体验,本申请实施例可以在确定拍摄对象根据第二显示区域显示的姿态图像调整好拍照姿态后,再对拍摄对象进行拍照。It should be noted that, in order to ensure the image shooting effect, improve the satisfaction of image shooting, and improve user experience, the embodiment of the present application may adjust the shooting posture of the subject according to the posture image displayed in the second display area before shooting Subject takes pictures.
可选地,所述在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像,包括:Optionally, the step of taking a picture of the photographing object to obtain a photographed image after determining that the photographing object performs posture adjustment according to the posture image displayed in the second display area includes:
获取与所述第一显示区域对应的第二图像;Acquiring a second image corresponding to the first display area;
当所述第二图像与所述第二显示区域显示的姿态图像的匹配度大于第二阈值时,确定拍摄对象的姿态调整完成,并对所述拍摄对象进行拍照,得到拍照图像。When the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, it is determined that the posture adjustment of the shooting object is completed, and the shooting object is photographed to obtain a photographed image.
应理解,在拍摄对象进行姿态调整的过程中,可以实时获取与第一显示区域对应的第二图像,例如,可以获取第一显示区域当前预览的第二图像或者获取摄像头采集的、将要在第一显示区域中显示的第二图像,并可以通过将该第二图像与第二显示区域所显示的姿态图像进行比对来确定拍摄对象是否调整好拍照姿态,若确定拍摄对象调整好拍照姿态,则可以对拍摄对象进行拍照;若确定拍摄对象未调整好拍照姿态,则可以根据图像对比来识别拍摄对象的拍照姿态与姿态图像中的拍照姿态之间的区别,并可以根据该区别提示拍摄对象进行拍照姿态的进一步调整,例如可以通过语音提示、文字提示或者动作提示的方式来提示拍摄对象进行拍照姿态的进一步调整,以实现拍摄姿态的进一步确认与纠正,提高图像拍摄效果,提升用户体验。It should be understood that in the process of adjusting the posture of the subject, the second image corresponding to the first display area can be acquired in real time. For example, the second image currently previewed in the first display area can be acquired, or the second image collected by the camera that will be in the first display area can be acquired. A second image displayed in a display area, and the second image can be compared with the posture image displayed in the second display area to determine whether the subject has adjusted the camera posture. If it is determined that the subject has adjusted the camera posture, Then you can take a picture of the subject; if it is determined that the subject has not adjusted the posture, the difference between the subject’s posture and the posture in the posture image can be identified based on the image comparison, and the subject can be prompted based on the difference Further adjustment of the shooting posture can be performed, for example, by means of voice prompts, text prompts, or action prompts to prompt the subject to further adjust the shooting posture, so as to further confirm and correct the shooting posture, improve the image shooting effect, and enhance the user experience.
在第一方面的一种可能的实现方式中,在将所述姿态图像显示于第二显示区域之后,还包括:In a possible implementation of the first aspect, after displaying the posture image in the second display area, the method further includes:
获取所述姿态图像对应的提示语音和/或提示文字,通过所述提示语音和/或所述提示文字提示所述拍摄对象进行姿态调整。Acquire the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
需要说明的是,在获取到姿态图像后,还可以对通过AI识别技术和目标检测技术对姿态图像中的预设对象进行人体姿态的识别与检测,并可以根据识别、检测结果生成姿态图像所对应的提示语音和/或提示文字,其中,所生成的提示语音和/或提示文字主要用于描述姿态图像中的预设 对象所具有的具体姿态等,因此,当在第二显示区域中进行姿态图像的显示时,还可以通过播放姿态图像所对应的提示语音或者在第二显示区域或者第一显示区域中显示姿态图像所对应的提示文字,以结合提示语音和/或提示文字来辅助提示拍摄对象进行姿态调整,从而提高姿态的调整速度和调整效率。It should be noted that after the posture image is acquired, the human body posture can be recognized and detected on the preset objects in the posture image through AI recognition technology and target detection technology, and the posture image can be generated based on the recognition and detection results. The corresponding prompt voice and/or prompt text, where the generated prompt voice and/or prompt text is mainly used to describe the specific posture of the preset object in the posture image, etc., therefore, when performing in the second display area When the gesture image is displayed, the prompt voice corresponding to the gesture image can also be played or the prompt text corresponding to the gesture image is displayed in the second display area or the first display area to assist in the prompt by combining the prompt voice and/or prompt text The posture adjustment of the subject is carried out to improve the speed and efficiency of posture adjustment.
在第一方面的一种可能的实现方式中所述拍照方法应用于移动终端,所述移动终端包括第一显示屏和第二显示屏,所述第一显示屏的显示区域为第一显示区域,所述第二显示屏的显示区域为第二显示区域,在拍照时,所述第一显示区域面向拍摄者,所述第二显示区域面向拍摄对象。In a possible implementation of the first aspect, the photographing method is applied to a mobile terminal, the mobile terminal includes a first display screen and a second display screen, and the display area of the first display screen is the first display area The display area of the second display screen is the second display area. When taking a picture, the first display area faces the photographer, and the second display area faces the photographic object.
本申请实施例,通过在面向拍摄对象的第二显示区域中进行姿态图像的显示,使得拍摄对象在拍照过程中可直接查看姿态图像,从而方便拍摄对象根据所查看的姿态图像直接进行姿态调整,提高姿态调整效率。In the embodiment of the present application, the posture image is displayed in the second display area facing the subject, so that the subject can directly view the posture image during the photographing process, so that the subject can directly adjust the posture according to the viewed posture image. Improve the efficiency of attitude adjustment.
需要说明的是,在移动终端包括第一显示屏和第二显示屏时,也可以将姿态图像同时显示于拍摄者可查看的第一显示区域和拍摄对象可查看的第二显示区域,以在方便拍摄对象可直接根据姿态图像进行姿态调整的基础上,还可方便拍摄者根据第一显示区域所显示的姿态图像来辅助指导拍摄对象进行姿态调整,或者可方便拍摄者实时了解拍摄对象的姿态调整效果,从而提高姿态调整效率,提高图像拍摄效果,提升用户体验。It should be noted that when the mobile terminal includes a first display screen and a second display screen, the posture image can also be displayed in the first display area viewable by the photographer and the second display area viewable by the shooting object at the same time. It is convenient for the subject to directly adjust the posture based on the posture image, and it is also convenient for the photographer to assist in guiding the subject to adjust the posture according to the posture image displayed in the first display area, or to facilitate the photographer to understand the posture of the subject in real time Adjust the effect, thereby improving the efficiency of posture adjustment, improving the image shooting effect, and enhancing the user experience.
在第一方面的另一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述显示屏的显示区域为第一显示区域,所述第二显示区域为第一显示区域的部分显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。In another possible implementation of the first aspect, the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, the display area of the display screen is a first display area, and the second display area It is a partial display area of the first display area. When taking a picture, the first display area and the second display area face the photographer or the photographed object.
在第一方面的一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述第一显示区域和第二显示区域位于所述显示屏的不同显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。In a possible implementation of the first aspect, the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in different display areas of the display screen When taking a picture, the first display area and the second display area face the photographer or the photographed object.
需要说明的是,在拍照过程中,第一显示区域和第二显示区域中所显示的内容还可以进行互换,例如可以将第二显示区域中所显示的姿态图像切换至第一显示区域中显示,并可以将第一显示区域中所显示的第一图像切换至第二显示区域中显示,以方便拍摄者/或拍摄对象清楚查看第一图像或姿态图像。It should be noted that during the shooting process, the content displayed in the first display area and the second display area can also be exchanged. For example, the posture image displayed in the second display area can be switched to the first display area. Display, and can switch the first image displayed in the first display area to the second display area, so as to facilitate the photographer/or the subject to clearly view the first image or posture image.
第二方面,本申请实施例提供了一种拍照装置,包括:In the second aspect, an embodiment of the present application provides a photographing device, including:
图像获取模块,用于获取与第一显示区域对应的第一图像;An image acquisition module for acquiring a first image corresponding to the first display area;
特征识别模块,用于识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景的场景特征;The feature recognition module is configured to recognize the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located;
姿态图像推荐模块,用于根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,并将所述姿态图像显示于第二显示区域,以提示所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整;The posture image recommendation module is used to obtain the posture image to be recommended according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located, and display the posture image in the second display area to prompt the The shooting object performs posture adjustment according to the posture image displayed in the second display area;
拍照模块,用于对所述拍摄对象进行拍照,得到拍照图像。The photographing module is used to take a photograph of the photographed object to obtain a photographed image.
在第二方面的一种可能的实现方式中,所述姿态图像推荐模块,包括:In a possible implementation of the second aspect, the posture image recommendation module includes:
样本图像获取单元,用于根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像;A sample image acquisition unit, configured to acquire at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
姿态图像确定单元,用于从所述样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。The posture image determining unit is configured to select a preset number of target sample images from the sample images, and determine the selected target sample image as the posture image to be recommended.
可选地,所述姿态图像确定单元,还用于获取每一个样本图像的推荐值,选择推荐值高的前 N个样本图像作为目标样本图像,N为大于或等于1的整数。Optionally, the posture image determining unit is further configured to obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, and N is an integer greater than or equal to 1.
在第二方面的一种可能的实现方式中,当所述第一图像中存在一个拍摄对象时,所述样本图像获取单元,包括:In a possible implementation of the second aspect, when there is a photographed subject in the first image, the sample image acquisition unit includes:
拍摄类别确定子单元,用于根据所述拍摄对象的目标特征以及所述拍摄对象的所在的场景的场景特征确定所述第一图像所对应的拍摄类别;A shooting category determining subunit, configured to determine the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located;
样本图像获取第一子单元,用于获取所述拍摄类别所对应的至少一个样本图像。The sample image acquisition first subunit is configured to acquire at least one sample image corresponding to the shooting category.
在第二方面的另一种可能的实现方式中,当所述第一图像中存在多个拍摄对象时,所述特征识别模块,还用于识别所述第一图像中每一个拍摄对象的目标特征;In another possible implementation manner of the second aspect, when there are multiple shooting objects in the first image, the feature recognition module is further configured to identify the target of each shooting object in the first image feature;
相应的,所述样本图像获取单元,还包括:Correspondingly, the sample image acquisition unit further includes:
群体特征确定子单元,用于根据每一个拍摄对象的目标特征确定所述第一图像中所述多个拍摄对象的群体特征;A group feature determining subunit, configured to determine the group feature of the multiple shooting objects in the first image according to the target feature of each shooting object;
样本图像获取第二子单元,用于根据所述群体特征和所述场景特征获取至少一个样本图像。The second subunit for acquiring sample images is configured to acquire at least one sample image according to the group characteristics and the scene characteristics.
可选地,所述样本图像获取第二子单元,具体用于根据所述群体特征和所述场景特征,从预先存储的样本图像库中获取与所述群体特征和所述场景特征的匹配度大于第一阈值的至少一个样本图像。Optionally, the sample image acquiring second subunit is specifically configured to acquire the degree of matching with the group feature and the scene feature from a pre-stored sample image library according to the group feature and the scene feature At least one sample image greater than the first threshold.
在第二方面的一种可能的实现方式中,所述拍照模块,包括:In a possible implementation manner of the second aspect, the photographing module includes:
姿态调整确定单元,用于在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像。The posture adjustment determining unit is configured to take a picture of the subject to obtain a photographed image after it is determined that the subject is adjusted according to the posture image displayed in the second display area.
可选地,所述姿态调整确定单元,包括:Optionally, the posture adjustment determining unit includes:
图像获取子单元,用于获取与所述第一显示区域对应的第二图像;An image acquisition subunit for acquiring a second image corresponding to the first display area;
拍照子单元,用于当所述第二图像与所述第二显示区域显示的姿态图像的匹配度大于第二阈值时,确定拍摄对象的姿态调整完成,并对所述拍摄对象进行拍照,得到拍照图像。The photographing subunit is used to determine that the posture adjustment of the photographing object is completed when the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, and to take a picture of the photographing object to obtain Take pictures.
可选地,所述拍照装置,还包括:Optionally, the photographing device further includes:
提示模块,用于获取所述姿态图像对应的提示语音和/或提示文字,通过所述提示语音和/或所述提示文字提示所述拍摄对象进行姿态调整。The prompt module is used to obtain the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
在第二方面的一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括第一显示屏和第二显示屏,所述第一显示屏的显示区域为第一显示区域,所述第二显示屏的显示区域为第二显示区域,在拍照时,所述第一显示区域面向拍摄者,所述第二显示区域面向拍摄对象。In a possible implementation of the second aspect, the photographing method is applied to a mobile terminal, the mobile terminal includes a first display screen and a second display screen, and the display area of the first display screen is the first display Area, the display area of the second display screen is the second display area. When taking a picture, the first display area faces the photographer, and the second display area faces the photographic object.
在第二方面的另一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述显示屏的显示区域为第一显示区域,所述第二显示区域为第一显示区域的部分显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。In another possible implementation of the second aspect, the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, the display area of the display screen is a first display area, and the second display area It is a partial display area of the first display area. When taking a picture, the first display area and the second display area face the photographer or the photographed object.
在第二方面的一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述第一显示区域和第二显示区域位于所述显示屏的不同显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。In a possible implementation of the second aspect, the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in different display areas of the display screen When taking a picture, the first display area and the second display area face the photographer or the photographed object.
第三方面,本申请实施例提供了一种终端设备包括显示屏、存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,使得所述移动终端实现如上述第一方面中任一项所述的拍照方法。In the third aspect, an embodiment of the present application provides a terminal device including a display screen, a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer The program enables the mobile terminal to implement the photographing method according to any one of the above-mentioned first aspects.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面中任一项所述的拍照方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation is as described in any of the above-mentioned first aspects. The photographing method described.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的拍照方法。In a fifth aspect, embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the photographing method described in any one of the above-mentioned first aspects.
本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of this application have the following beneficial effects:
本申请实施例中,获取与第一显示区域对应的第一图像;识别第一图像中拍摄对象的目标特征和拍摄对象所在的场景的场景特征;根据拍摄对象的目标特征以及拍摄对象所在的场景的场景特征获取待推荐的姿态图像,并将姿态图像显示于第二显示区域,以提示拍摄对象根据第二显示区域显示的姿态图像进行姿态调整;对拍摄对象进行拍照,得到拍照图像。本申请实施例通过将拍摄对象的目标特征和场景特征相结合来获取姿态图像,可以提高姿态图像获取的准确性和有效性,并通过在第二显示区域显示所述姿态图像,从而可以方便拍摄对象直接根据所显示的姿态图像进行姿态调整或者方便拍摄者根据所显示的姿态图像来指导拍摄对象进行姿态调整,有效提高图像拍摄效果,提升用户体验。In the embodiment of the present application, the first image corresponding to the first display area is acquired; the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located are recognized; according to the target feature of the shooting object and the scene where the shooting object is located According to the scene characteristics, the posture image to be recommended is acquired, and the posture image is displayed in the second display area to prompt the subject to adjust the posture according to the posture image displayed in the second display area; take a picture of the subject to obtain a photographed image. The embodiment of the application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and display the posture image in the second display area, thereby facilitating shooting The object directly adjusts the posture according to the displayed posture image, or it is convenient for the photographer to guide the object to perform posture adjustment according to the displayed posture image, which effectively improves the image shooting effect and enhances the user experience.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本申请一实施例提供的拍照方法所适用于的手机的结构示意图;FIG. 1 is a schematic structural diagram of a mobile phone to which the photographing method provided by an embodiment of the present application is applicable;
图2是本申请一实施例提供的拍照方法所适用于的单面屏手机的示例图;2 is an example diagram of a single-screen mobile phone to which the photographing method provided in an embodiment of the present application is applicable;
图3是本申请一实施例提供的拍照方法所适用于的折叠屏手机的示例图;FIG. 3 is an example diagram of a folding screen mobile phone to which the photographing method provided by an embodiment of the present application is applicable;
图4是本申请一实施例提供的应用场景示意图;Figure 4 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图5是本申请一实施例提供的拍照方法预览第一图像的示意图;FIG. 5 is a schematic diagram of previewing a first image in a photographing method provided by an embodiment of the present application;
图6是本申请一实施例提供的拍照方法在第二显示区域中显示姿态图像的示意图;FIG. 6 is a schematic diagram of displaying a posture image in a second display area in the photographing method provided by an embodiment of the present application;
图7是本申请另一实施例提供的拍照方法在第二显示区域中显示姿态图像的示意图;FIG. 7 is a schematic diagram of displaying a posture image in a second display area in a photographing method according to another embodiment of the present application;
图8是本申请另一实施例提供的拍照方法在第二显示区域中显示姿态图像的示意图;FIG. 8 is a schematic diagram of displaying a posture image in a second display area in a photographing method according to another embodiment of the present application;
图9是本申请另一实施例提供的应用场景示意图;FIG. 9 is a schematic diagram of an application scenario provided by another embodiment of the present application;
图10是本申请另一实施例提供的应用场景示意图;FIG. 10 is a schematic diagram of an application scenario provided by another embodiment of the present application;
图11是本申请一实施例提供的拍照方法确定站位调整的示意图;FIG. 11 is a schematic diagram of a photographing method provided by an embodiment of the present application for determining station position adjustment;
图12是本申请一实施例提供的拍照方法通过图像指示指导站位调整的示意图;FIG. 12 is a schematic diagram of a photographing method provided by an embodiment of the present application instructing station position adjustment through image instructions;
图13是本申请一实施例提供的拍照方法的流程示意图;FIG. 13 is a schematic flowchart of a photographing method provided by an embodiment of the present application;
图14是本申请实施例提供的拍照装置的结构示意图;FIG. 14 is a schematic structural diagram of a photographing device provided by an embodiment of the present application;
图15是本申请实施例提供的移动终端的结构示意图。FIG. 15 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项 中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the items listed in the associated and all possible combinations, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the description of this application and the appended claims, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。The reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to" unless otherwise specifically emphasized.
本申请实施例提供的拍照方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等移动终端上,本申请实施例对移动终端的具体类型不作任何限制。The photographing method provided in the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers ( For mobile terminals such as ultra-mobile personal computer (UMPC), netbooks, and personal digital assistant (personal digital assistant, PDA), the embodiments of this application do not impose any restrictions on the specific types of mobile terminals.
以所述移动终端为手机为例。图1示出的是与本申请实施例提供的手机的部分结构的框图。参考图1,手机包括:存储器110、输入单元120、显示单元130、传感器140、音频电路150、处理器160、电源170以及摄像头180等部件。本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Take the mobile terminal as an example of a mobile phone. Fig. 1 shows a block diagram of a part of the structure of a mobile phone provided by an embodiment of the present application. 1, the mobile phone includes: a memory 110, an input unit 120, a display unit 130, a sensor 140, an audio circuit 150, a processor 160, a power supply 170, a camera 180 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
下面结合图1对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone in conjunction with Figure 1:
存储器110可用于存储软件程序以及模块,处理器160通过运行存储在存储器110的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器110可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器110可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 110 can be used to store software programs and modules. The processor 160 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 110. The memory 110 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 110 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元120可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,输入单元120可包括触控面板121以及其他输入设备122。触控面板121,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板121上或在触控面板121附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板121可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器160,并能接收处理器160发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板121。除了触控面板121,输入单元120还可以包括其他输入设备122。具体地,其他输入设备122可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键 等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 120 may be used to receive inputted digital or character information, and generate key signal input related to user settings and function control of the mobile phone 100. Specifically, the input unit 120 may include a touch panel 121 and other input devices 122. The touch panel 121, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 121 or near the touch panel 121. Operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 121 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 160, and can receive and execute commands from the processor 160. In addition, the touch panel 121 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 121, the input unit 120 may also include other input devices 122. Specifically, other input devices 122 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, and the like.
显示单元130可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元130可包括显示面板131,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板131。进一步的,触控面板121可覆盖显示面板131,当触控面板121检测到在其上或附近的触摸操作后,传送给处理器160以确定触摸事件的类型,随后处理器160根据触摸事件的类型在显示面板131上提供相应的视觉输出。虽然在图1中,触控面板121与显示面板131是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板121与显示面板131集成而实现手机的输入和输出功能。The display unit 130 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 130 may include a display panel 131. Optionally, the display panel 131 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 121 can cover the display panel 131. When the touch panel 121 detects a touch operation on or near it, it transmits it to the processor 160 to determine the type of the touch event, and then the processor 160 responds to the touch event. The type provides corresponding visual output on the display panel 131. Although in FIG. 1, the touch panel 121 and the display panel 131 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 121 and the display panel 131 may be integrated. Realize the input and output functions of mobile phones.
在一些实施例中,显示单元130可以包括1个或N个显示屏,N为大于1的正整数。在一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述显示屏可以被弯折。这里,上述显示屏可以被弯折是指显示屏可以在任意部位沿任意轴线被弯折到任意角度,并可以在该角度保持,例如,显示屏可以从中部左右对折。也可以从中部上下对折。本申请实施例中,可以将被弯折的显示屏称为折叠屏。其中,该折叠屏可以是一块屏幕,也可以是多块屏幕拼凑在一起组合成的显示屏,在此不做限定。显示屏还可以是一种柔性屏,具有柔韧性强和可弯曲的特点,可以给用户提供基于可弯折特性的新交互方式,可以满足用户对于折叠屏手机的更多需求。对于配置有折叠屏的手机而言,手机上的折叠屏可以随时在折叠形态下的小屏和展开形态下的大屏之间切换。In some embodiments, the display unit 130 may include 1 or N display screens, and N is a positive integer greater than 1. In some embodiments, when the display panel uses OLED, AMOLED, FLED and other materials, the above-mentioned display screen may be bent. Here, the above-mentioned display screen can be bent means that the display screen can be bent at any position along any axis to any angle, and can be maintained at that angle, for example, the display screen can be folded in half from the middle. You can also fold up and down from the middle. In the embodiments of the present application, the bent display screen may be referred to as a folding screen. Wherein, the folding screen may be one screen, or a display screen formed by patching together multiple screens, which is not limited here. The display screen can also be a flexible screen, which has the characteristics of strong flexibility and bendability, and can provide users with a new interactive mode based on bendable characteristics, which can meet more needs of users for folding screen mobile phones. For a mobile phone equipped with a folding screen, the folding screen on the mobile phone can be switched between the small screen in the folded form and the large screen in the expanded form at any time.
在一些实施例中,显示单元130可以包括主显示屏和副显示屏,主显示屏和副显示屏平行,且相互独立运行,主显示屏设置于手机一侧,副显示屏设置于手机另一侧。可以理解的是,一般情况下,主显示屏与副显示屏是两个平行的面,当主显示屏与副显示屏是平行关系时,副显示屏与水平地面之间产生一个夹角大小,跟双面屏手机的主显示屏与水平面所成的平面夹角大小相等或互补。双面屏手机可以通过如重力传感器等方式,检测出双面屏手机的主显示屏与水平面所成的平面夹角大小。可理解地,双面屏手机中主显示屏是主要显示装置,是使用频率最多的屏幕,而副显示屏只作为辅助屏幕,其使用频率较低。然而,主显示屏和副显示屏并不做严格区分,用户可以在不同的使用情景下将某一屏幕设置为主显示屏(或者副显示屏),则另一屏幕自动被设置为副显示屏(或者主显示屏)。In some embodiments, the display unit 130 may include a primary display and a secondary display. The primary and secondary displays are parallel and run independently of each other. The primary display is set on one side of the mobile phone, and the secondary display is set on the other side of the mobile phone. side. It is understandable that under normal circumstances, the main display screen and the sub display screen are two parallel surfaces. When the main display screen and the sub display screen are in a parallel relationship, an angle between the sub display screen and the horizontal ground is generated. The angle between the main display screen of the double-sided screen mobile phone and the horizontal plane is equal or complementary. The double-sided screen mobile phone can detect the angle between the main display of the double-sided screen mobile phone and the horizontal plane by means such as a gravity sensor. Understandably, the main display screen in the double-sided screen mobile phone is the main display device and is the most frequently used screen, while the secondary display screen is only used as an auxiliary screen and its use frequency is low. However, the main display and the secondary display are not strictly distinguished. The user can set one screen as the primary display (or secondary display) under different usage scenarios, and the other screen will automatically be set as the secondary display (Or the main display).
手机100还可包括至少一种传感器140,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板131的亮度,接近传感器可在手机移动到耳边时,关闭显示面板131和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone 100 may also include at least one sensor 140, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 131 according to the brightness of the ambient light. The proximity sensor can close the display panel 131 and/or when the mobile phone is moved to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify mobile phone posture applications (such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which can be configured in mobile phones, we will not here Repeat.
音频电路150、扬声器151、传声器152可提供用户与手机之间的音频接口。音频电路150可将接收到的音频数据转换后的电信号,传输到扬声器151,由扬声器151转换为声音信号输出;另一方面,传声器152将收集的声音信号转换为电信号,由音频电路150接收后转换为音频数据,再将音频数据输出处理器160处理后,发送给比如另一手机,或者将音频数据输出至存储器110以便进一步处理。The audio circuit 150, the speaker 151, and the microphone 152 can provide an audio interface between the user and the mobile phone. The audio circuit 150 can transmit the electric signal converted from the received audio data to the speaker 151, which is converted into a sound signal for output by the speaker 151; on the other hand, the microphone 152 converts the collected sound signal into an electric signal, and the audio circuit 150 After being received, it is converted into audio data, and then processed by the audio data output processor 160, and sent to, for example, another mobile phone, or the audio data is output to the memory 110 for further processing.
处理器160是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或 执行存储在存储器110内的软件程序和/或模块,以及调用存储在存储器110内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器160可包括一个或多个处理单元;优选的,处理器160可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器160中。The processor 160 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes by running or executing software programs and/or modules stored in the memory 110, and calling data stored in the memory 110. Various functions and processing data of the mobile phone can be used to monitor the mobile phone as a whole. Optionally, the processor 160 may include one or more processing units; preferably, the processor 160 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 160.
手机100还包括给各个部件供电的电源170(比如电池),优选的,电源可以通过电源管理系统与处理器170逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 also includes a power source 170 (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the processor 170 through a power management system, so that functions such as charging, discharging, and power management are realized through the power management system.
手机100还可以包括摄像头180。可选地,摄像头180在手机100的上的位置可以为前置的,也可以为后置的,本申请实施例对此不作限定。The mobile phone 100 may also include a camera 180. Optionally, the position of the camera 180 on the mobile phone 100 may be front or rear, which is not limited in the embodiment of the present application.
摄像头180可以获取拍摄物体所生成的光学图像,并可以将光学图像转换成电信号,然后可以经过模数转换将电信号变为数字信号,随后可以将通过数字信号处理器DSP对数字信号进行加工处理,并可以将加工处理后的数字信号送到处理器160中进行处理,最终转换成显示单元130中能够看到的图像。The camera 180 can obtain the optical image generated by the photographed object, and can convert the optical image into an electrical signal, and then the electrical signal can be converted into a digital signal through analog-to-digital conversion, and then the digital signal can be processed by the digital signal processor DSP The processed digital signal can be sent to the processor 160 for processing, and finally converted into an image that can be seen in the display unit 130.
可选地,手机100可以包括单摄像头、双摄像头或三摄像头等,本申请实施例对此不作限定。Optionally, the mobile phone 100 may include a single camera, a dual camera, or a triple camera, etc., which is not limited in the embodiment of the present application.
例如,手机100可以包括三摄像头,其中,一个为主摄像头、一个为广角摄像头、一个为长焦摄像头。For example, the mobile phone 100 may include three cameras, of which one is a main camera, one is a wide-angle camera, and one is a telephoto camera.
可选地,当手机100包括多个摄像头时,这多个摄像头可以全部前置,或者全部后置,或者一部分前置、另一部分后置,本申请实施例对此不作限定。Optionally, when the mobile phone 100 includes multiple cameras, the multiple cameras may be all front-mounted, or all rear-mounted, or partly front-mounted and another part rear-mounted, which is not limited in the embodiment of the present application.
另外,尽管未示出,手机100还可以包括蓝牙模块等,在此不再赘述。In addition, although not shown, the mobile phone 100 may also include a Bluetooth module, etc., which will not be repeated here.
为了更清楚的描述本申请的技术方案,以下将结合附图和应用场景,对本申请实施例提供的拍照方法进行详细说明,作为示例而非限定,该拍照方法可以应用于上述手机100中。In order to describe the technical solution of the present application more clearly, the photographing method provided in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and application scenarios. As an example and not a limitation, the photographing method can be applied to the mobile phone 100 described above.
场景一scene one
该场景可以为单人拍照场景,该场景中的拍照方法可以应用于单面屏手机中,也可以应用于双面屏手机或折叠屏手机中,其中,单面屏手机也可以是折叠屏手机展开后形成的单面屏手机,该单面屏手机、双面屏手机或折叠屏手机包括第一显示区域20和第二显示区域21。This scene can be a single-person photo-taking scene. The photo-taking method in this scene can be applied to single-sided screen phones, double-sided screen phones or folding screen phones, among which, single-sided screen phones can also be folding screen phones. The single-screen mobile phone formed after unfolding, the single-screen mobile phone, double-sided mobile phone or folding screen mobile phone includes a first display area 20 and a second display area 21.
例如,当该拍照方法应用于如图2所示的单面屏手机时,该单面屏手机的显示屏可以包括预览第一图像的第一显示区域20和显示姿态图像的第二显示区域21,且第一显示区域20和第二显示区域21均面向拍摄者或者均面向拍摄对象。For example, when the photographing method is applied to a single-sided screen mobile phone as shown in FIG. 2, the display screen of the single-sided screen mobile phone may include a first display area 20 for previewing a first image and a second display area 21 for displaying a posture image. , And the first display area 20 and the second display area 21 both face the photographer or both face the subject.
应理解,图2中所示的第一显示区域20和第二显示区域21的位置和大小仅作示意性解释,不应理解为对本申请实施例的限制。本申请实施例中,第一显示区域20和第二显示区域21均可以位于单面屏手机显示屏中的任一位置,例如第一显示区域20和第二显示区域21可以位于单面屏手机显示屏中的不同显示区域,即第一显示区域20和第二显示区域21的显示区域不存在重叠;又例如第一显示区域20可以为单面屏手机显示屏的全部显示区域,第二显示区域21则可以为第一显示区域20的部分显示区域,即第一显示区域20和第二显示区域21的显示区域可存在重叠。It should be understood that the positions and sizes of the first display area 20 and the second display area 21 shown in FIG. 2 are only for schematic explanation, and should not be construed as limiting the embodiments of the present application. In the embodiment of the present application, both the first display area 20 and the second display area 21 can be located at any position in the display screen of a single-screen mobile phone. For example, the first display area 20 and the second display area 21 can be located in a single-screen mobile phone. The different display areas in the display screen, that is, the display areas of the first display area 20 and the second display area 21 do not overlap; for another example, the first display area 20 may be the entire display area of the mobile phone display with a single screen, and the second display The area 21 may be a part of the display area of the first display area 20, that is, the display areas of the first display area 20 and the second display area 21 may overlap.
应理解,在拍照过程中,第一显示区域20和第二显示区域21中所显示的内容还可以进行互换,例如,可以将第二显示区域21中所显示的姿态图像切换至第一显示区域20中显示,并可以将第一显示区域20中所显示的第一图像切换至第二显示区域21中显示,以方便拍摄者/或拍摄对象清楚查看该第一图像或该姿态图像。It should be understood that during the photographing process, the content displayed in the first display area 20 and the second display area 21 can also be exchanged. For example, the posture image displayed in the second display area 21 can be switched to the first display. It is displayed in the area 20, and the first image displayed in the first display area 20 can be switched to be displayed in the second display area 21, so as to facilitate the photographer/or subject to clearly view the first image or the posture image.
例如,当该拍照方法应用于双面屏手机时,则该双面屏手机可以将主显示屏的显示区域作为 第一显示区域20,将副显示屏的显示区域作为第二显示区域21。在拍照时,第一显示区域20可以面向拍摄者,以作为拍摄者的操作端,第二显示区域21可以面向拍摄对象,以供拍摄对象进行姿态图像的查看,从而方便拍摄对象可以直接根据第二显示区域21中显示的姿态图像进行姿态调整,提高姿态调整效率。For example, when the photographing method is applied to a double-sided screen mobile phone, the double-sided screen mobile phone may use the display area of the main display screen as the first display area 20 and the display area of the secondary display screen as the second display area 21. When taking a photo, the first display area 20 can face the photographer to serve as the operator's operating terminal, and the second display area 21 can face the subject for viewing the posture image, so that the subject can directly follow the 2. The posture image displayed in the display area 21 undergoes posture adjustment to improve posture adjustment efficiency.
例如,当该拍照方法应用于如图3所示的折叠屏手机时,其折叠屏可以采用一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的显示屏。该折叠屏可以包括:第一屏、第二屏和连接第一屏和第二屏的可弯折区。在手机的折叠屏处于折叠状态时,可以将第一屏的显示区域作为第一显示区域20,将第二屏的显示区域作为第二显示区域21。其中,所述折叠状态可以是完全折叠,即第一屏和第二屏的夹角为0度(实际可能达不到0度,具体以手机传感器实际上报角度为准),也可以是部分折叠,即第一屏和第二屏的夹角大于0度且小于180度。如图4所示,在折叠屏手机的拍照中,第一显示区域20可以面向拍摄者,以作为拍摄者的操作端,第二显示区域21可以面向拍摄对象,以供拍摄对象进行姿态图像的查看。For example, when the photographing method is applied to a folding screen mobile phone as shown in Figure 3, the folding screen can adopt an integrated flexible display, or two rigid screens and a flexible screen located between the two rigid screens. The composed display screen. The folding screen may include: a first screen, a second screen, and a bendable area connecting the first screen and the second screen. When the folding screen of the mobile phone is in the folded state, the display area of the first screen may be used as the first display area 20, and the display area of the second screen may be used as the second display area 21. Wherein, the folding state can be fully folded, that is, the angle between the first screen and the second screen is 0 degrees (the actual angle may not reach 0 degrees, depending on the actual angle reported by the mobile phone sensor), or it can be partially folded , That is, the angle between the first screen and the second screen is greater than 0 degrees and less than 180 degrees. As shown in FIG. 4, in the photographing of a folding screen mobile phone, the first display area 20 may face the photographer to serve as the operator's operating terminal, and the second display area 21 may face the photographed subject for the photographic subject to perform posture images. View.
具体地,如图5和图6所示,在拍照时,手机的处理器可获取与第一显示区域20对应的第一图像,并可通过AI识别技术对该第一图像进行识别,获得识别结果,该识别结果用于指示该第一图像中是否存在拍摄对象,以及在存在拍摄对象时用于指示该拍摄对象的目标特征,以及在存在拍摄对象时指示该拍摄对象所在的场景的场景特征。若该第一图像中存在拍摄对象,则根据识别到的该拍摄对象的目标特征以及该场景特征获取待推荐的姿态图像,并将该姿态图像显示于第二显示区域21,以提示该拍摄对象根据该姿态图像进行姿态调整,而在提示该拍摄对象进行姿态调整后,则可以对该拍摄对象进行拍照,得到拍照图像。其中,该拍摄对象的目标特征可以包括该拍摄对象的脸部特征和/或形体特征,该场景特征可以包括场景类型,例如海滩/沙滩场景、树林场景、田地场景、草地场景、沙漠场景、山峰场景、海洋场景、湖/池塘场景、雪地场景、蓝天场景等。本申请实施例通过将拍摄对象的目标特征和场景特征相结合来获取姿态图像,可以提高姿态图像获取的准确性和有效性,并通过第二显示区域21显示姿态图像,从而方便拍摄对象可直接根据所显示的姿态图像进行姿态调整或者方便拍摄者根据所显示的姿态图像指导拍摄对象进行姿态调整,有效提高图像拍摄效果,提升用户体验。Specifically, as shown in FIG. 5 and FIG. 6, when taking a picture, the processor of the mobile phone can obtain the first image corresponding to the first display area 20, and can recognize the first image through AI recognition technology to obtain the recognition As a result, the recognition result is used to indicate whether there is a subject in the first image, and to indicate the target feature of the subject when the subject is present, and to indicate the scene feature of the scene where the subject is located when the subject is present . If there is a photographed subject in the first image, obtain the posture image to be recommended according to the identified target feature of the subject and the scene feature, and display the posture image in the second display area 21 to prompt the subject The posture adjustment is performed according to the posture image, and after the posture adjustment of the subject is prompted, the subject can be photographed to obtain the photographed image. Wherein, the target feature of the subject may include the facial feature and/or physical feature of the subject, and the scene feature may include the scene type, such as beach/beach scene, forest scene, field scene, grass scene, desert scene, mountain peak Scenes, ocean scenes, lake/pond scenes, snow scenes, blue sky scenes, etc. The embodiment of the present application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and displays the posture image through the second display area 21, so that the shooting object can directly The posture adjustment is performed according to the displayed posture image or it is convenient for the photographer to guide the subject to perform posture adjustment according to the displayed posture image, which effectively improves the image shooting effect and enhances the user experience.
应理解,该手机中可以事先设置获取姿态图像进行拍摄的拍照模式来供用户选择,在拍照时,若用户选择该拍照模式,则在拍照过程中可以对获取的第一图像进行识别,并根据识别结果在该手机的第二显示区域21中进行姿态图像的显示,以提示拍摄对象根据所显示的姿态图像进行姿态调整;若用户未选择该拍照模式,则可以直接进行常规的拍照处理。It should be understood that the mobile phone can set up a camera mode for acquiring posture images for shooting in advance for the user to choose. When taking a photo, if the user selects the camera mode, the first image obtained can be recognized during the shooting process, and according to The recognition result displays the posture image in the second display area 21 of the mobile phone to prompt the subject to adjust the posture according to the displayed posture image; if the user does not select the photographing mode, the normal photographing process can be directly performed.
可选地,该手机可以根据检测到的相机启动指令启动相机,并可以通过该手机的第一显示区域预览摄像头实时采集的图像。相应地,用户可以通过输入相机启动指令来启动该手机中的相机,其中,该相机启动指令可以是触发预设按键生成的指令,也可以是触发预设手势生成的指令,还可以是触发预设语音关键词生成的指令,本申请实施例对此不作限定。Optionally, the mobile phone can start the camera according to the detected camera start instruction, and can preview the image collected by the camera in real time through the first display area of the mobile phone. Correspondingly, the user can start the camera in the mobile phone by inputting a camera start instruction, where the camera start instruction can be an instruction that triggers the generation of a preset button, or an instruction that triggers the generation of a preset gesture, or it can be a pre-trigger. It is assumed that the voice keyword generation instruction is not limited in the embodiment of the present application.
例如,该手机中可以预先设置“音量+”按键触发两次时生成相机启动指令,或者预先设置“音量+”按键与“音量-”按键同时触发时生成相机启动指令,则当用户按压“音量+”按键两次,或者当用户同时按压“音量+”按键和“音量-”按键时,该手机即可生成并获取到相机启动指令。又例如,该手机中可以预先设置采集到“O”形手势等预设手势时生成相机启动指令,则当用户输入与“O”形手势等预设手势相匹配的手势时,该手机即可生成并获取到相机启动指令。还例如,该手机中可以预先设置检测到“拍照”等预设语音关键词时生成相机启动指令,则当用户输入的 语音中含有“拍照”等预设语音关键词时,该手机即可生成并获取到相机启动指令。For example, the mobile phone can be preset to generate a camera start instruction when the "volume +" button is triggered twice, or to generate a camera start instruction when the "volume +" button and the "volume -" button are triggered simultaneously, then when the user presses +" button twice, or when the user presses the "volume +" button and the "volume -" button at the same time, the phone can generate and obtain the camera start instruction. For another example, the mobile phone can be preset to generate a camera start instruction when a preset gesture such as an "O" gesture is collected, and when the user inputs a gesture that matches the preset gesture such as an "O" gesture, the mobile phone can Generate and get the camera start instruction. For example, the mobile phone can be preset to generate a camera start instruction when a preset voice keyword such as "photograph" is detected, and then when the user input voice contains a preset voice keyword such as "photograph", the mobile phone can generate And get the camera start instruction.
可选地,该手机可以根据触发事件或者预设时长,获取与第一显示区域对应的第一图像,其中,获取与第一显示区域对应的第一图像可以是获取该第一显示区域预览的图像,也可以是获取摄像头实时采集的图像,即摄像头在将实时采集到的图像发送至该手机的第一显示区域进行预览的同时,还可以将该图像发送至该手机的处理器,以作为该手机的处理器获取的与第一显示区域对应的第一图像,本申请实施例对此不作限定。Optionally, the mobile phone may obtain a first image corresponding to the first display area according to a trigger event or a preset duration, where obtaining the first image corresponding to the first display area may be obtained by obtaining a preview of the first display area The image can also be the image captured by the camera in real time, that is, the camera can send the image captured in real time to the first display area of the mobile phone for preview, and can also send the image to the processor of the mobile phone as The first image corresponding to the first display area acquired by the processor of the mobile phone is not limited in the embodiment of the present application.
应理解,本申请实施例中所述的预设时长可以理解为在该手机中预先设置的时长。It should be understood that the preset duration described in the embodiments of the present application can be understood as a duration preset in the mobile phone.
可选地,该手机可以根据检测到的特定指令,获取该第一显示区域当前预览的图像或者获取摄像头当前采集的图像,并可将该当前预览的图像或者当前采集的图像确定为该第一图像。Optionally, the mobile phone may obtain the image currently previewed in the first display area or the image currently captured by the camera according to the detected specific instruction, and may determine the currently previewed image or the currently captured image as the first image.
例如,该手机可以在检测到用户对该第一显示区域的任意位置进行点击的点击操作时,获取该第一显示区域当前预览的图像或者获取摄像头当前采集的图像。For example, the mobile phone can acquire the image currently previewed by the first display area or the image currently collected by the camera when detecting that the user clicks on any position of the first display area.
可选地,该手机可以在相机启动的时长达到该预设时长时,获取该第一显示区域当前预览的图像或者获取摄像头当前采集的图像,并可将该当前预览的图像或者当前采集的图像确定为该第一图像。Optionally, the mobile phone can obtain the image currently previewed in the first display area or the image currently collected by the camera when the camera startup time reaches the preset time length, and can use the currently previewed image or the currently collected image Determined to be the first image.
例如,该手机中可以预先设置定时器或者计时器,该定时器或者该计时器可以在相机启动后启动,该定时器或者该计时器的时长为该预设时长(如为7秒),当该定时器定时结束或者当该计时器计时到7秒时,获取该第一显示区域当前预览的图象或者获取摄像头当前采集的图像。For example, a timer or a timer can be preset in the mobile phone, and the timer or the timer can be started after the camera is started, and the duration of the timer or the timer is the preset duration (for example, 7 seconds). When the timer expires or when the timer reaches 7 seconds, the image currently previewed in the first display area or the image currently collected by the camera is obtained.
可选地,本申请实施例可事先在该手机中构建场景识别模型,以通过该场景识别模型来识别该第一图像中的场景特征。Optionally, in this embodiment of the present application, a scene recognition model may be constructed in the mobile phone in advance, so as to recognize the scene features in the first image through the scene recognition model.
在一种可能的实现方式中,该场景识别模型可以为基于残差网络(Residual Neural Network,ResNet)架构的卷积神经网络模型,该卷积神经网络可以基于场景数据库训练得到,本实施例对于场景识别模型的具体构建过程和具体训练过程不作限定,可以采用现有的构建过程进行构建,也可以采用现有的训练过程进行训练。In a possible implementation, the scene recognition model may be a convolutional neural network model based on a residual network (Residual Neural Network, ResNet) architecture, and the convolutional neural network can be obtained by training based on a scene database. The specific construction process and specific training process of the scene recognition model are not limited, and the existing construction process can be used for construction, or the existing training process can be used for training.
具体地,该场景识别模型在接收到该第一图像后,可首先对该第一图像进行信息转换、去噪、平滑、变换等预处理,以强化图像的重要特征;然后可采用图像分割技术,如采用图像实例分割技术(Mask Region-based Convolutional Neural Networks,Mask RCNN)对预处理后的第一图像进行目标检测与分割,得到该第一图像中的前景部分和背景部分;随后可对背景部分进行特征的提取与选择,并通过对所选择的特征进行分析来识别出该第一图像对应的场景类型等场景特征。Specifically, after the scene recognition model receives the first image, it can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; then image segmentation technology can be used , Such as using the image instance segmentation technology (Mask Region-based Convolutional Neural Networks, Mask RCNN) to perform target detection and segmentation on the preprocessed first image to obtain the foreground and background parts of the first image; then the background can be Part of the feature extraction and selection are performed, and scene features such as the scene type corresponding to the first image are identified by analyzing the selected features.
可选地,在该拍摄对象的目标特征包括该拍摄对象的脸部特征时,本申请实施例还可事先在该手机中构建脸部特征识别模型,以通过该脸部特征识别模型来识别该第一图像中拍摄对象的脸部特征。Optionally, when the target feature of the photographed subject includes the facial feature of the photographed subject, the embodiment of the present application may also construct a facial feature recognition model in the mobile phone in advance, so as to recognize the facial feature recognition model through the facial feature recognition model. The facial features of the subject in the first image.
具体地,该脸部特征识别模型可以为多任务卷积神经网络模型(Multi-task Convolutioanl Neural Networks,MTCNN),本实施例对于MTCNN的具体构建过程和具体训练过程不作限定,可以采用现有的构建过程进行构建,也可以采用现有的训练过程进行训练。Specifically, the facial feature recognition model may be a multi-task convolutional neural network model (Multi-task Convolutioanl Neural Networks, MTCNN). This embodiment does not limit the specific construction process and specific training process of MTCNN, and the existing The construction process can be used for construction, or the existing training process can be used for training.
需要说明的是,该脸部特征识别模型所识别出的脸部特征可以包括年龄特征、性别特征、脸型特征、表情特征,等等。It should be noted that the facial features recognized by the facial feature recognition model may include age features, gender features, facial features, expression features, and so on.
具体地,该脸部特征识别模型在接收到该第一图像后,可首先对该第一图像进行信息转换、去噪、平滑、变换等预处理,以强化图像的重要特征;然后可采样人脸识别技术对预处理后的第一图像进行人脸识别,得到该第一图像中的人脸框图和人脸五官关键点坐标;随后可根据该人脸 五官关键点坐标将该人脸框图中的人脸对齐,并对对齐后的人脸进行特征提取与分析来识别出该第一图像中的脸部特征。其中,根据该人脸五官关键点坐标将该人脸框图中的人脸对齐可以为根据该人脸五官关键点坐标对该人脸框图中的人脸进行旋转、缩放、抠取等操作来将人脸调整到预定的大小和形态。Specifically, after the facial feature recognition model receives the first image, it can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; then, it can sample people The face recognition technology performs face recognition on the preprocessed first image to obtain the face block diagram and the key point coordinates of the facial features in the first image; then the face block diagram can be placed in the face block diagram according to the coordinates of the key points of the facial features Align the faces of, and perform feature extraction and analysis on the aligned faces to identify the facial features in the first image. Among them, aligning the face in the face block diagram according to the coordinates of the key points of the facial features of the face may be performing operations such as rotating, scaling, and extracting the face in the face block diagram according to the coordinates of the key points of the facial features of the face. The face is adjusted to a predetermined size and shape.
可选地,在该拍摄对象的目标特征包括该拍摄对象的形体特征时,本申请实施例还可以事先在该手机中构建形体识别模型,以通过该形体识别模型来识别该第一图像中拍摄对象的形体特征。Optionally, when the target feature of the photographed object includes the physical characteristic of the photographed object, the embodiment of the present application may also construct a body recognition model in the mobile phone in advance, so as to recognize the photograph in the first image through the body recognition model The physical characteristics of the object.
具体地,该形体识别模型可为密集人体姿态评估模型DensePose Region-based Convolutional Neural Networks,DensePose RCNN),本申请实施例对于DensePose RCNN的具体构建过程和具体训练过程不作限定,可以采用现有的构建过程进行构建,也可以采用现有的训练过程进行训练。Specifically, the shape recognition model may be a dense human pose evaluation model DensePose Region-based Convolutional Neural Networks, DensePose RCNN). The embodiment of this application does not limit the specific construction process and specific training process of DensePose RCNN, and the existing construction can be adopted. The process is constructed, or the existing training process can be used for training.
具体地,该形体识别模型在接收到该第一图像后,可首先对该第一图像进行信息转换、去噪、平滑、变换等预处理,以强化图像的重要特征;然后可通过基于区域的卷积神经网络(Region-based Convolutional Neural Networks,RCNN)或者可通过Faster Region-based Convolutional Neural Networks(Faster RCNN)或者可通过YOLO算法(You only look once,YOLO)对该第一图像进行目标检测,检测出该第一图像中的拍摄对象;随后可对该拍摄对象进行人体姿态特征的提取,并根据所提取的人体姿态特征识别出该第一图像中拍摄对象的形体特征。其中,所识别的形体特征可以包括身高特征、体型特征等。Specifically, after the shape recognition model receives the first image, it can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; Convolutional Neural Networks (Region-based Convolutional Neural Networks, RCNN) or Faster Region-based Convolutional Neural Networks (Faster RCNN) or YOLO algorithm (You only look once, YOLO) can perform target detection on the first image, The subject in the first image is detected; then the human body posture feature can be extracted for the subject, and the physical feature of the subject in the first image can be identified according to the extracted human posture feature. Among them, the recognized physical characteristics may include height characteristics, body shape characteristics, and the like.
可选地,本申请实施例还可以事先在该手机中构建姿态推荐模型,该姿态推荐模型可以根据场景特征以及目标特征(即脸部特征和/或形体特征)获取待推荐的姿态图像,以通过综合考虑场景特征以及目标特征(即脸部特征和/或形体特征)来获取精确的、有效的姿态图像辅助和指导拍摄对象进行拍摄,提高图像拍摄效果,提升用户体验。Optionally, the embodiment of the present application may also construct a pose recommendation model in the mobile phone in advance, and the pose recommendation model may obtain the pose image to be recommended according to scene features and target features (ie, facial features and/or body features) to By comprehensively considering scene features and target features (ie, facial features and/or physical features) to obtain accurate and effective posture images to assist and guide the subject to shoot, improve image shooting effects and enhance user experience.
在一种可能的实现方式中,该姿态推荐模型可首先根据该拍摄对象的目标特征以及该拍摄对象所在的场景的场景特征获取至少一个样本图像,并从样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。In a possible implementation, the pose recommendation model may first obtain at least one sample image according to the target feature of the subject and the scene feature of the scene in which the subject is located, and select a preset number of target samples from the sample images Image, and the selected target sample image is determined as the posture image to be recommended.
具体地,该姿态推荐模型可以首先获取每一个样本图像的推荐值,然后选择出推荐值高的前N个样本图像作为目标样本图像,并将所选取的N个目标样本图像确定为待推荐的姿态图像,其中,N为大于或等于1的整数,以通过推荐值进行姿态图像的推荐,有助于提高姿态图像的推荐准确性和推荐效率。Specifically, the pose recommendation model may first obtain the recommended value of each sample image, then select the top N sample images with high recommended values as the target sample images, and determine the selected N target sample images as the ones to be recommended The pose image, where N is an integer greater than or equal to 1, to recommend the pose image through the recommended value, which helps to improve the recommendation accuracy and recommendation efficiency of the pose image.
在一种可能的实现方式中,该姿态推荐模型可首先根据该场景特征以及该目标特征(脸部特征和/或该形体特征)确定该第一图像所对应的拍摄类别;然后可以获取该拍摄类别所对应的各样本图像,并可以从这些样本图像中选取预设数量的目标样本图像,并将所选取的各目标样本图像确定为待推荐的姿态图像,通过拍摄类别的设置可以极大地提高样本图像确定的准确性和效率,提升用户体验。In a possible implementation, the pose recommendation model may first determine the shooting category corresponding to the first image according to the scene features and the target features (face features and/or the physical features); then, the shooting category can be obtained. Each sample image corresponding to the category, and a preset number of target sample images can be selected from these sample images, and each selected target sample image can be determined as the posture image to be recommended. The setting of the shooting category can greatly improve The accuracy and efficiency of sample image determination improves user experience.
需要说明的是,该姿态推荐模型中可根据场景特征以及目标特征(即脸部特征和/或形体特征)设置多个预设拍摄类别,如可以根据场景特征和形体特征设置草地小个女友类别和草地高个男友类别等,如可以根据场景特征、脸部特征和形体特征设置沙滩唯美类别和沙滩搞怪类别,等等。每一个预设拍摄类别中可以配置有拍摄效果较好、姿态较好看的多张样本图像,而每一个预设拍摄类别中的多张样本图像均为场景特征与该拍摄类别的场景特征相匹配、且目标特征与该拍摄类别的目标特征相匹配的样本图像。因此,当该姿态推荐模型接收到该场景特征以及该脸部特征和/或该形体特征后,可通过场景特征以及脸部特征和/或形体特征的匹配来确定该第一图像所对应的 拍摄类别,即确定哪一个预设拍摄类别为该第一图像所对应的拍摄类别。It should be noted that in this pose recommendation model, multiple preset shooting categories can be set according to scene characteristics and target characteristics (ie, facial features and/or physical characteristics). For example, the grassy girlfriend category can be set according to scene characteristics and physical characteristics. And the high grass boyfriend category, for example, you can set the beach aesthetic category and the beach funny category according to the scene characteristics, facial features, and physical characteristics, and so on. Each preset shooting category can be configured with multiple sample images with better shooting effects and good postures, and the multiple sample images in each preset shooting category have scene characteristics that match the scene characteristics of the shooting category , And a sample image whose target feature matches the target feature of the shooting category. Therefore, after the posture recommendation model receives the scene feature and the facial feature and/or the physical feature, it can determine the shooting corresponding to the first image by matching the scene feature and the facial feature and/or the physical feature Category, that is, determining which preset shooting category is the shooting category corresponding to the first image.
应理解,预设拍摄类别和拍摄类别均为基于场景特征以及目标特征(即脸部特征和/或形体特征)共同确定的类别,即预设拍摄类别和拍摄类别均为根据场景特征和目标特征(即脸部特征和/或形体特征)分类得到的类别,因此若存在任一特征不相同的话,所确定出的拍摄类别也可能不相同。具体地,在拍摄类别由场景特征和脸部特征共同确定时,对于场景特征相同,而脸部特征不同的两张第一图像,所确定出的两拍摄类别可能不相同,因此所推荐的姿态图像也可能不相同。例如,在拍摄对象A和拍摄对象B均在草地拍照时,根据拍摄对象A及草地场景所确定出的拍摄类别可以为草地小个女友类别,而根据拍摄对象B及草地场景所确定出的拍摄类别可以为草地高个男友类别,因此,对于拍摄对象A将从草地小个女友类别中获取姿态图像来进行推荐,而对于拍摄对象B将从草地高个男友类别中获取姿态图像来进行推荐。又例如,在拍摄对象C分别在草地和沙滩拍照时,根据拍摄对象C及草地场景所确定出的拍摄类别可以为草地小个女友类别,而根据拍摄对象C及沙滩场景所确定出的拍摄类别可以为沙滩唯美类别,因此,对于拍摄对象C在草地拍照时将从草地小个女友类别中获取姿态图像来进行推荐,而对于拍摄对象C在沙滩拍照时将从沙滩唯美类别获取姿态图像来进行推荐。It should be understood that the preset shooting categories and shooting categories are both based on the scene characteristics and target features (ie facial features and/or physical features) jointly determined categories, that is, the preset shooting categories and shooting categories are based on the scene features and target features (Ie, facial features and/or physical features) are classified into categories, so if any feature is different, the determined shooting category may also be different. Specifically, when the shooting category is jointly determined by scene features and facial features, for two first images with the same scene features but different facial features, the determined two shooting categories may be different, so the recommended pose The images may also be different. For example, when subject A and subject B are both taking pictures on the grass, the shooting category determined according to subject A and the grass scene can be the grass girl category, and the shooting is determined according to subject B and the grass scene The category can be a boyfriend category with tall grass. Therefore, for the subject A, a pose image will be obtained from the category of a small girlfriend on the grass for recommendation, and for the subject B, a pose image will be obtained from the category of boyfriend with a tall grass for recommendation. For another example, when the subject C is taking pictures on the grass and the beach respectively, the shooting category determined according to the subject C and the grass scene can be the grass little girlfriend category, and the shooting category is determined according to the subject C and the beach scene It can be a beach aesthetic category. Therefore, when the subject C is taking a photo on the grass, the pose image will be obtained from the grass little girlfriend category for recommendation, and for the subject C when taking a photo on the beach, the pose image will be obtained from the beach aesthetic category. recommend.
应理解,在拍摄类别由场景特征和形体特征共同确定或者在拍摄类别由场景特征以及脸部特征和形体特征共同确定时,若场景特征不相同或者若脸部特征不相同或者若形体特征不相同时,所确定出的拍摄类别也可能不相同,所推荐的姿态图像也可能不相同,具体内容与上述描述相似,在此不再赘述。It should be understood that when the shooting category is jointly determined by scene features and physical features or when the shooting category is jointly determined by scene features and facial features and physical features, if the scene features are different or if the facial features are not the same or if the physical features are not the same At the same time, the determined shooting category may also be different, and the recommended posture image may also be different. The specific content is similar to the above description, and will not be repeated here.
也就是说,本申请实施例中,当同一拍摄对象在不同场景中拍照时,所确定出的拍摄类别可能不相同,所推荐的姿态图像也可能不相同,类似地,当不同拍摄对象在同一场景中拍照时,所确定出的拍摄类别也可能不相同,所推荐的姿态图像也可能不相同。That is to say, in the embodiment of the present application, when the same subject is photographed in different scenes, the determined shooting category may be different, and the recommended posture images may also be different. Similarly, when different subjects are in the same When taking pictures in the scene, the determined shooting categories may also be different, and the recommended posture images may also be different.
在此,该姿态推荐模型可以通过分类器设计或者分类决策来进行分类,其中,分类器设计是通过训练得到一种识别规则,通过该识别规则进行分类。分类决策则是在特征空间中对被识别对象进行分类。Here, the pose recommendation model can be classified through classifier design or classification decision, where the classifier design is to obtain a recognition rule through training, and perform classification through the recognition rule. Classification decision is to classify the recognized objects in the feature space.
例如,可首先构建该场景特征以及该脸部特征和/或该形体特征所对应的第一特征向量,并分别构建各预设拍摄类别中的场景特征以及脸部特征和/或形体特征所对应的第二特征向量,然后分别计算该第一特征向量与各第二特征向量之间的匹配度,并根据匹配度来确定该第一图像所属的拍摄类别。For example, the scene feature and the first feature vector corresponding to the facial feature and/or the physical feature can be constructed first, and the scene features and facial features and/or physical features corresponding to each preset shooting category can be constructed respectively. Then, the matching degree between the first feature vector and each second feature vector is calculated respectively, and the shooting category to which the first image belongs is determined according to the matching degree.
可选地,该姿态推荐模型在确定该第一图像所属的拍摄类别后,则可获取该拍摄类别所对应的样本图像,以从样本图像中选择预设数量的目标样本图像来作为待推荐的姿态图像。Optionally, after the posture recommendation model determines the shooting category to which the first image belongs, it can acquire sample images corresponding to the shooting category, and select a preset number of target sample images from the sample images as the target sample images to be recommended Posture image.
在一种可能的实现方式中,该姿态推荐模型可以根据各样本图像的推荐值来进行姿态图像的确定,以提高姿态图像的推荐准确性和推荐效率。In a possible implementation manner, the pose recommendation model can determine the pose image according to the recommended value of each sample image, so as to improve the recommendation accuracy and recommendation efficiency of the pose image.
可选地,各样本图像所对应的推荐值可根据各样本图像在预设时间内的历史推荐数量来确定,例如,可以根据各样本图像在过去一周内的历史推荐数量来确定,其中,历史推荐数量越多的样本图像,其所对应的推荐值则越高;历史推荐数量越少的样本图像,其所对应的推荐值则越低。Optionally, the recommended value corresponding to each sample image can be determined according to the number of historical recommendations of each sample image within a preset time. For example, it can be determined according to the number of historical recommendations of each sample image in the past week. The more recommended number of sample images, the higher the corresponding recommendation value; the smaller the number of historical recommendations, the lower the corresponding recommendation value.
可选地,各样本图像所对应的推荐值还可以根据该手机用户在预设时间内对各样本图像的历史选择次数确定,例如,可以根据该手机用户在过去一个月内对各样本图像的历史选择次数确定,其中,历史选择次数越多的样本图像,其所对应的推荐值则越高;而历史选择次数越少的样本图像,其所对应的推荐值则越低。Optionally, the recommended value corresponding to each sample image can also be determined according to the number of historical selections of each sample image by the mobile phone user within a preset time. For example, it can be determined based on the mobile phone user’s selection of each sample image in the past month. The number of historical selections is determined. The sample image with more historical selections has a higher recommended value; and the sample image with fewer historical selections has a lower recommended value.
可选地,各样本图像所对应的推荐值还可以根据该手机用户的个性化设置确定,例如,当该手机用户在以前的拍照过程中使用了某一样本图像中的拍照姿态,并将该拍照姿态进行了收藏或者对该拍照姿态设置了喜好标签时,该样本图像所对应的推荐值相应较高,相应地,若该手机用户对所收藏的拍照姿态进行了删除或者对某一拍照姿态设置了不喜欢标签时,则该样本图像所对应的推荐值相应较低。Optionally, the recommended value corresponding to each sample image can also be determined according to the personalized settings of the mobile phone user. For example, when the mobile phone user uses a photographing gesture in a sample image in the previous photographing process, When the camera pose is favorited or the favorite tag is set for the camera pose, the recommended value corresponding to the sample image is correspondingly higher. Accordingly, if the mobile phone user deletes the favorite camera pose or changes a certain camera pose When the dislike label is set, the recommended value corresponding to the sample image is correspondingly lower.
可选地,该手机用户还可以在该手机中预先设置姿态图像每次所推荐的预设数量,该姿态推荐模型每次则可输出该预设数量的姿态图像来供拍照选择,满足用户的推荐意愿,提升用户体验。Optionally, the mobile phone user can also pre-set a preset number of posture images recommended each time in the mobile phone, and the posture recommendation model can output the preset number of posture images for photo selection each time to satisfy the user’s requirements. Recommend willingness to improve user experience.
例如,在该手机用户选择获取姿态图像进行拍摄的拍照模式时,可以在该手机中弹出一输入框,该手机用户可以在该输入框中输入每次所推荐的预设数量(如可输入10),则在每一次的拍照过程中,该姿态推荐模型即可输出10个姿态图像来供拍照选择。For example, when the mobile phone user selects the camera mode for capturing posture images for shooting, an input box can pop up in the mobile phone, and the mobile phone user can enter the recommended preset number each time (for example, 10 ), in each photo process, the pose recommendation model can output 10 pose images for photo selection.
应理解,本申请实施例也可以对每次所推荐的预设数量进行默认设置,例如可将每次所推荐的预设数量默认设置为15,当该手机用户未进行预设数量的设置时,该姿态推荐模型则可以根据默认设置的预设数量来进行姿态图像的输出,如每次输出15个姿态图像来供拍照选择。It should be understood that the embodiment of the present application can also set the preset number recommended each time by default, for example, the preset number recommended each time can be set to 15 by default, when the mobile phone user has not set the preset number , The posture recommendation model can output posture images according to the preset number of default settings, such as outputting 15 posture images each time for photo selection.
具体地,该姿态推荐模型在获取该拍摄类别所对应的各样本图像后,可进一步获取各样本图像所对应的推荐值,并可根据推荐值选取预设数量的目标样本图像来作为待推荐的姿态图像。Specifically, after the pose recommendation model obtains each sample image corresponding to the shooting category, it can further obtain the recommended value corresponding to each sample image, and can select a preset number of target sample images according to the recommended value as the target sample image to be recommended Posture image.
例如,该姿态推荐模型在获取到各样本图像所对应的推荐值后,首先可以根据推荐值对样本图像进行降序排列,得到降序排序组,在该降序排列组中,推荐值越高的样本图像排序越靠前,而推荐值越低的样本图像则排序越靠后;然后,可以从该降序排列组中选取排序靠前的前N个的目标样本图像,并可以将所选取的前N个目标样本图像确定为待推荐的姿态图像。For example, after the posture recommendation model obtains the recommended value corresponding to each sample image, it can first arrange the sample images in descending order according to the recommended value to obtain a descending sort group. In the descending order group, the sample image with the higher the recommended value The higher the ranking, and the lower the recommended value of the sample images, the lower the ranking; then, the top N target sample images with the highest ranking can be selected from the descending order group, and the selected top N The target sample image is determined as the posture image to be recommended.
可选地,该姿态推荐模型在进行姿态图像的确定时,还可以结合拍摄对象的个性化特征来确定,其中,该个性化特征可以为拍摄对象事先设置的偏好拍照动作等拍照特征,也可以为根据拍摄对象的行为数据所分析得到的偏好拍照动作等拍照特征,例如,可通过对拍摄对象的图片搜索行为数据、图片收藏行为数据、图片浏览行为数据和/或拍摄对象自身的历史拍摄图像数据进行分析,得到拍摄对象的偏好拍照动作等个性化特征。Optionally, when determining the posture image, the posture recommendation model can also be determined in conjunction with the individual characteristics of the subject, where the individual characteristics can be the subject’s preference for photographing actions and other photographic features, or In order to analyze the preferred photographing actions and other photographing features based on the behavior data of the photographed subject, for example, the photographic behavior data of the photographed subject can be searched for, the picture collection behavior data, the picture browsing behavior data and/or the historical photographed image of the photographed subject itself. The data is analyzed to obtain personalized features such as the subject's preference for taking pictures.
应理解,在拍摄对象具有个性化特征时,该姿态推荐模型在获取该拍摄类别所对应的各样本图像后,可首先从这些样本图像中找出与该个性化特征相匹配的样本图像,然后获取所找出的这些样本图像所对应的推荐值,并可根据推荐值选取预设数量的目标样本图像,并将各目标样本图像确定为待推荐的姿态图像。It should be understood that when the photographed object has a personalized feature, the posture recommendation model can firstly find a sample image matching the personalized feature from the sample images after acquiring each sample image corresponding to the shooting category, and then The recommended value corresponding to the found sample images is obtained, a preset number of target sample images can be selected according to the recommended value, and each target sample image is determined as the posture image to be recommended.
可选地,该姿态推荐模型可以为通过采集大量的训练图像进行标记学习得到的卷积神经网络模型。Optionally, the pose recommendation model may be a convolutional neural network model obtained by collecting a large number of training images for labeling learning.
具体地,首先采集第一训练图像和第二训练图像,并标记各第一训练图像所对应的预设拍摄类别;其次,识别各第一训练图像中预设对象所在的训练场景的训练场景特征和预设对象的训练脸部特征和/或训练形体特征;随后,分别将各第一训练图像对应的训练场景特征以及训练脸部特征和/或训练形体特征输入至初始的姿态推荐模型,以通过该初始的姿态推荐模型分别确定各第一训练图像所对应的训练拍摄类别,并根据各第一训练图像所对应的训练拍摄类别和预设拍摄类别计算训练误差;若训练误差不满足预设条件,则调整姿态推荐模型的模型参数,并将模型参数调整后的姿态推荐模型确定为初始的姿态推荐模型,返回执行分别将各第一训练图像对应的训练场景特征以及训练脸部特征和/或训练形体特征输入至初始的姿态推荐模型,以通过初始的姿态推荐模型分别确定各第一训练图像对应的训练拍摄类别的步骤以及后续步骤;若训练误差满足预设条 件,则确定姿态推荐模型训练完成,并利用训练完成的姿态推荐模型将各第二训练图像分类至对应的预设拍摄类别,以作为各预设拍摄类别所对应的样本图像。其中,该第二训练图像和该第一训练图像均为单人拍照场景中拍摄效果较好、姿态较好看的图像,且该第二训练图像可以包括该第一训练图像。Specifically, first collect the first training image and the second training image, and mark the preset shooting category corresponding to each first training image; secondly, identify the training scene characteristics of the training scene where the preset object is located in each first training image And the training facial features and/or training physical features of the preset object; subsequently, the training scene features and the training facial features and/or training physical features corresponding to each first training image are input to the initial posture recommendation model, respectively. Determine the training shooting category corresponding to each first training image through the initial posture recommendation model, and calculate the training error according to the training shooting category and the preset shooting category corresponding to each first training image; if the training error does not meet the preset Condition, adjust the model parameters of the posture recommendation model, and determine the posture recommendation model after adjusting the model parameters as the initial posture recommendation model, and return to execute the training scene feature corresponding to each first training image and the training face feature and/ Or the training body features are input to the initial posture recommendation model to determine the steps and subsequent steps of the training shooting category corresponding to each first training image through the initial posture recommendation model; if the training error meets the preset conditions, the posture recommendation model is determined The training is completed, and the trained posture recommendation model is used to classify each second training image into a corresponding preset shooting category, as a sample image corresponding to each preset shooting category. Wherein, the second training image and the first training image are both images with better shooting effect and good posture in a single-person photographing scene, and the second training image may include the first training image.
应理解,各预设拍摄类别所对应的样本图像不仅仅可以包括所对应的第二训练图像,本申请实施例中,还可以实时从网络中进行图像的爬取,并对所爬取的图像进行检测与分析来确定所爬取的图像是否为拍摄效果较好、姿态较好看的单人场景图像,若是的话,则可以将所爬取的图像分类至对应的预设拍摄类别,即通过网络爬取来补充各预设拍摄类别的样本图像,提高姿态图像推荐的多样性,提升用户体验。It should be understood that the sample image corresponding to each preset shooting category can not only include the corresponding second training image. In the embodiment of the present application, the image can also be crawled from the network in real time, and the crawled image Perform detection and analysis to determine whether the crawled image is a single-person scene image with good shooting effect and good posture. If so, the crawled image can be classified into the corresponding preset shooting category, that is, through the network Crawl to supplement the sample images of each preset shooting category, improve the diversity of posture image recommendation, and improve user experience.
可选地,该姿态推荐模型也可以集成有场景识别模型、脸部特征识别模型和/或形体识别模型的功能,即可直接将该第一图像输入至该姿态推荐模型,该姿态推荐模型则可直接对该第一图像进行场景识别以及脸部特征识别和/或形体特征识别,从而可直接根据所识别的场景特征以及脸部特征和/或形体特征来得到待推荐的姿态图像。Optionally, the posture recommendation model can also integrate the functions of a scene recognition model, a facial feature recognition model, and/or a body recognition model, and the first image can be directly input to the posture recommendation model, and the posture recommendation model is Scene recognition and facial feature recognition and/or physical feature recognition can be directly performed on the first image, so that the posture image to be recommended can be obtained directly according to the recognized scene feature, facial feature and/or physical feature.
例如,该姿态推荐模型可以为基于Mask RCNN和人脸识别技术所构建的卷积神经网络模型。具体地,该姿态推荐模型在接收到该第一图像后,可首先对该第一图像进行信息转换、去噪、平滑、变换等预处理,以强化图像的重要特征;然后可利用Mask RCNN对预处理后的第一图像进行目标检测、目标分割和人体姿态识别等,得到该第一图像中的背景部分、该第一图像中所存在的拍摄对象以及该拍摄对象所对应的人体姿态特征;随后可对背景部分进行特征的提取与选择,并通过对所选择的特征进行分析来识别出该第一图像所对应的场景特征,同时还可利用人脸识别技术对该第一图像中的拍摄对象进行人脸检测,得到该第一图像所对应的脸部特征;最后可根据人体姿态特征得到该第一图像中的形体特征,并可利用卷积神经网络根据该场景特征以及该脸部特征和/或该形体特征确定该第一图像所对应的拍摄类别,从而可根据该拍摄类别所对应的样本图像得到待推荐的姿态图像。For example, the pose recommendation model may be a convolutional neural network model based on Mask RCNN and face recognition technology. Specifically, after the posture recommendation model receives the first image, it can first perform preprocessing such as information conversion, denoising, smoothing, and transformation on the first image to enhance the important features of the image; then, Mask RCNN can be used to The preprocessed first image is subjected to target detection, target segmentation, and human body posture recognition, etc., to obtain the background part in the first image, the photographed object existing in the first image, and the human body posture feature corresponding to the photographed object; Subsequently, the background part can be extracted and selected, and the selected features can be analyzed to identify the scene features corresponding to the first image. At the same time, the facial recognition technology can also be used to capture the first image. The object performs face detection to obtain the facial features corresponding to the first image; finally, the shape features in the first image can be obtained according to the human body posture feature, and the convolutional neural network can be used to obtain the scene feature and the facial feature And/or the physical feature determines the shooting category corresponding to the first image, so that the posture image to be recommended can be obtained according to the sample image corresponding to the shooting category.
应理解,各样本图像可以是事先采集并存储于该手机或者存储于与该手机相连接的云端服务器中的图像,也可以是在拍照过程中实时从网络中所抓取的图像,例如,该姿态推荐模型在对该第一图像进行目标检测时,还可通过网络爬虫等技术从网络中爬取图像,并可对所抓取的图像进行目标检测与分析,以根据检测与分析结果将实时爬取的图像分类至对应的预设拍摄类别,以作为该预设拍摄类别所对应的样本图像。It should be understood that each sample image may be an image collected and stored in the mobile phone in advance or stored in a cloud server connected to the mobile phone, or it may be an image captured from the network in real time during the photographing process. For example, the When the pose recommendation model performs target detection on the first image, it can also crawl images from the network through technologies such as web crawlers, and can perform target detection and analysis on the captured images, so as to realize real-time detection and analysis based on the detection and analysis results. The crawled images are classified into corresponding preset shooting categories, and used as sample images corresponding to the preset shooting categories.
可选地,在得到待推荐的姿态图像后,可以将姿态图像显示于该手机的第二显示区域中,即可将姿态图像显示给拍摄对象或者显示给拍摄者,从而方便拍摄对象可直接根据该姿态图像进行姿态调整或者方便拍摄者根据该姿态图像指导拍摄对象进行姿态调整,提高图像拍摄效果,提升用户体验。Optionally, after obtaining the posture image to be recommended, the posture image can be displayed in the second display area of the mobile phone, and the posture image can be displayed to the subject or to the photographer, so that the subject can directly follow The posture image performs posture adjustment or it is convenient for the photographer to guide the subject to perform posture adjustment according to the posture image, thereby improving the image shooting effect and enhancing the user experience.
具体地,在双面屏手机和处于折叠状态的折叠屏手机中,在得到待推荐的姿态图像后,也可以将该姿态图像同时显示于拍摄者可查看的第一显示区域和拍摄对象可查看的第二显示区域,以在方便拍摄对象可直接根据该姿态图像进行姿态调整的基础上,还可方便拍摄者根据第一显示区域所显示的姿态图像来辅助指导拍摄对象进行姿态调整,或者可方便拍摄者实时了解拍摄对象的姿态调整效果,从而提高姿态调整效率,提高图像拍摄效果,提升用户体验。Specifically, in a double-sided screen mobile phone and a folding screen mobile phone in a folded state, after the posture image to be recommended is obtained, the posture image can also be displayed in the first display area viewable by the photographer and the subject viewable The second display area is convenient for the subject to directly adjust the posture according to the posture image, and it is also convenient for the photographer to assist in guiding the posture adjustment of the subject according to the posture image displayed in the first display area, or It is convenient for the photographer to understand the posture adjustment effect of the subject in real time, thereby improving the posture adjustment efficiency, improving the image shooting effect, and enhancing the user experience.
可选地,在获取到多个待推荐的姿态图像后,可确定各姿态图像对应的显示顺序,并根据该显示顺序将各姿态图像依次显示于该第二显示区域,以提高姿态推荐效果,方便拍摄对象快速找 到满意的推荐姿态,提升用户体验。Optionally, after acquiring a plurality of posture images to be recommended, the display order corresponding to each posture image can be determined, and the posture images are sequentially displayed in the second display area according to the display order, so as to improve the effect of posture recommendation. It is convenient for the subject to quickly find a satisfactory recommended posture and enhance the user experience.
具体地,可以根据各姿态图像所对应的推荐值来确定各姿态图像所对应的显示顺序,其中,推荐值越大的姿态图像越先显示于该第二显示区域,而推荐值越小的姿态图像则越后显示于该第二显示区域。Specifically, the display sequence corresponding to each posture image can be determined according to the recommended value corresponding to each posture image, wherein the posture image with the larger the recommended value is displayed in the second display area first, and the posture with the smaller recommended value The image is later displayed in the second display area.
可选地,在该第二显示区域中显示各姿态图像时,还可以显示各姿态图像所对应的推荐值,从而方便拍摄对象和/或者拍摄者根据推荐值来进行姿态图像的选择,提升用户体验。其中,所述推荐值可以为如图6所示的具体数值,也可以为推荐指数,如可以为5星(★★★★★)推荐指数、4星(★★★★)推荐指数、3星(★★★)推荐指数等等。Optionally, when each posture image is displayed in the second display area, the recommended value corresponding to each posture image can also be displayed, so that it is convenient for the subject and/or the photographer to select the posture image according to the recommended value, and enhance the user Experience. Among them, the recommended value can be a specific value as shown in Figure 6, or a recommended index, such as a 5-star (★★★★★) recommendation index, a 4-star (★★★★) recommendation index, 3 Star (★★★) recommendation index and so on.
可选地,在获取到各姿态图像后,还可以通过AI识别技术和目标检测技术对各姿态图像中的预设对象进行人体姿态的识别与检测,并可以根据识别、检测结果生成各姿态图像所对应的提示语音和/或提示文字,其中,所生成的各提示语音和/或各提示文字主要用于描述所对应的姿态图像中的预设对象所具有的具体姿态等。Optionally, after acquiring each posture image, AI recognition technology and target detection technology can also be used to recognize and detect the human body posture of the preset objects in each posture image, and each posture image can be generated according to the recognition and detection results The corresponding prompt voice and/or prompt text, wherein each generated prompt voice and/or each prompt text is mainly used to describe the specific posture of the preset object in the corresponding posture image.
具体地,当在该第二显示区域中进行姿态图像的显示时,还可以通过该手机中的麦克风等语音装置来播放该姿态图像所对应的提示语音,以结合提示语音来辅助提示拍摄对象进行姿态调整,从而提高姿态的调整速度和调整效率。当在该第二显示区域中进行姿态图像的显示时,还可以在该第二显示区域或者该第一显示区域中显示该姿态图像所对应的提示文字,以使得拍摄对象可以结合所显示的提示文字来进行姿态调整,或者使得拍摄者可根据所显示的提示文字来辅助指导拍摄对象进行姿态的调整,提高姿态的调整速度和调整效率。Specifically, when the posture image is displayed in the second display area, the voice device such as the microphone in the mobile phone can also be used to play the prompt voice corresponding to the posture image, so as to combine the prompt voice to assist in prompting the subject to proceed. Posture adjustment to improve the speed and efficiency of posture adjustment. When the posture image is displayed in the second display area, the prompt text corresponding to the posture image can also be displayed in the second display area or the first display area, so that the subject can be combined with the displayed prompt The posture adjustment can be carried out by text, or the photographer can assist in guiding the subject to adjust the posture according to the displayed prompt text, thereby improving the speed and efficiency of posture adjustment.
可选地,在姿态图像的显示过程中,拍摄对象或者拍摄者可以进行姿态图像的选择,即拍摄对象或者拍摄者可以从这多个姿态图像中选择所喜欢的目标姿态图像,当次拍照中,可以在该第二显示区域中固定显示该目标姿态图像,以供拍摄对象进行姿态的参考,提高图像拍摄的满意度,提升用户体验。Optionally, in the process of displaying the posture image, the subject or the photographer can select the posture image, that is, the subject or the photographer can select the desired posture image of the target from the multiple posture images. , The posture image of the target can be fixedly displayed in the second display area for the posture reference of the photographed object, which improves the satisfaction of image shooting and improves user experience.
例如,如图7所示,该第二显示区域的中央位置可按照显示顺序进行姿态图像的动态显示,该第二显示区域的边缘位置则可提供一“确定”或“OK”按钮来供拍摄对象或者拍摄者进行姿态图像的选择,即在某一姿态图像的显示过程中,若“确定”或者“OK”按钮被触发,则在该次拍照过程中,该第二显示区域的中央位置将固定显示该姿态图像,以提示拍摄对象根据该姿态图像来进行姿态调整。For example, as shown in FIG. 7, the central position of the second display area can dynamically display posture images in the display order, and the edge position of the second display area can provide an "OK" or "OK" button for shooting The subject or the photographer selects the posture image, that is, during the display of a certain posture image, if the "OK" or "OK" button is triggered, the center position of the second display area will be The posture image is fixedly displayed to prompt the subject to adjust the posture according to the posture image.
如图7所示,该第二显示区域的边缘位置还可以提供“上”、“下”等按钮,以方便查看上一张姿态图像或者查看下一张姿态图像,提升用户体验。As shown in FIG. 7, the edge position of the second display area can also provide buttons such as "up" and "down" to facilitate viewing the previous posture image or the next posture image, and improve user experience.
应理解,本申请实施例中也可以通过向左划的操作、向右划的操作来进行上一张姿态图像或者下一张姿态图像的查看,例如可以通过向左划的操作来查看上一张姿态图像,通过向右划的操作来查看下一张图像,或者也可以通过向左划的操作来查看下一张姿态图像,通过向右划的操作来查看上一张图像,又或者可以通过向上划的操作、向下划的操作来进行上一张姿态图像或者下一张姿态图像的查看,本申请实施例对此不作限定。It should be understood that in the embodiments of the present application, the previous posture image or the next posture image can also be viewed by swiping to the left or swiping to the right. For example, the previous posture image can be viewed by swiping to the left. A posture image, swipe right to view the next image, or swipe left to view the next posture image, swipe right to view the previous image, or you can The previous posture image or the next posture image can be viewed through the upward swipe operation and the downward swipe operation, which is not limited in the embodiment of the present application.
可选地,如图8所示,在双面屏手机或者处于折叠状态的折叠屏手机中,该第二显示区域的中央位置还可以划分为两个部分,第一部分81用于显示所推荐的姿态图像,第二部分82的显示内容则可与第一显示区域中的显示内容相同,即第二部分82可用于显示拍摄对象当前拍照姿态所对应的图像,从而方便拍摄对象根据两者的比对来调整自身的拍照姿态,提高姿态调整效率。Optionally, as shown in FIG. 8, in a double-sided screen mobile phone or a folding screen mobile phone in a folded state, the central position of the second display area can also be divided into two parts. The first part 81 is used to display the recommended For the posture image, the display content of the second part 82 can be the same as the display content in the first display area, that is, the second part 82 can be used to display the image corresponding to the current posture of the subject, so as to facilitate the subject to compare the two Right to adjust your camera posture and improve posture adjustment efficiency.
可选地,在提示拍摄对象根据第二显示区域中的姿态图像进行拍照姿态的调整后,该手机的 处理器即可发出拍照指令来控制相机对拍摄对象进行拍照,得到拍照图像。Optionally, after prompting the photographed subject to adjust the photographing posture according to the posture image in the second display area, the processor of the mobile phone can issue a photographing instruction to control the camera to take a photograph of the photographed object to obtain a photographed image.
在一种可能的实现方式中,该手机还可以在确定拍摄对象根据第二显示区域显示的姿态图像进行姿态调整后,对拍摄对象进行拍照,得到拍照图像。In a possible implementation manner, the mobile phone may also take a picture of the photographed object to obtain a photographed image after determining that the photographed object has adjusted its posture according to the posture image displayed in the second display area.
具体地,该手机可以根据是否接收到拍摄对象发出的语音确认指令来确定拍摄对象是否调整好自身的拍照姿态,也可以根据姿态调整的时长是否达到预设调整时长来确定拍摄对象是否调整好自身的拍照姿态,本申请实施例对此不作限定。Specifically, the mobile phone can determine whether the subject has adjusted his posture according to whether the voice confirmation instruction issued by the subject has been received, and can also determine whether the subject has adjusted himself according to whether the posture adjustment period reaches the preset adjustment period. The camera posture of the camera is not limited in the embodiment of this application.
例如,在无拍摄者操作的自动拍摄中,若拍摄对象在进行姿态调整的过程中发出包含“OK”或者“调整好”等关键词的语音时,该手机即可确认接收到拍摄对象发出的语音确认指令,此时该手机的处理器即可发出拍照指令来控制相机进行拍照,得到拍照图像。又例如,在拍摄对象选择目标姿态图像后,可及时启动该手机内的计时器,以进行调整时长的统计,而当所统计的时长达到预设调整时长30秒时,该手机即可确认拍摄对象已调整好自身的拍照姿态,此时该手机的处理器即可发出拍照指令来控制相机进行拍照。For example, in automatic shooting without the photographer's operation, if the subject makes a voice that contains keywords such as "OK" or "adjusted" during the posture adjustment process, the mobile phone can confirm that it has received the subject's voice Voice confirmation instruction, at this time, the processor of the mobile phone can issue a photographing instruction to control the camera to take a picture and obtain a photographed image. For another example, after the subject selects the target posture image, the timer in the mobile phone can be started in time to calculate the adjustment duration, and when the counted duration reaches the preset adjustment duration of 30 seconds, the mobile phone can confirm the subject The camera posture has been adjusted, and the processor of the mobile phone can now issue a camera command to control the camera to take a photo.
应理解,该手机也可以是在接收到拍摄者的拍照指令后控制相机对拍摄对象进行拍照,得到拍照图像,即拍摄者可以根据拍摄对象的姿态图像调整情况发送拍照指令至该手机,该手机即可根据该拍照指令来控制相机对拍摄对象进行拍照。It should be understood that the mobile phone may also control the camera to take a picture of the subject after receiving the photographing instruction from the photographer to obtain the photographed image, that is, the photographer may send the photographing instruction to the mobile phone according to the adjustment of the posture image of the photographed object. The camera can then be controlled to take pictures of the subject according to the photographing instruction.
例如,当拍摄者确定拍摄对象的姿态调整完毕时,拍摄者可通过点击该手机中的拍照按钮或者触发语音指令来向该手机发送拍照指令,该手机则可以根据该拍照指令控制相机拍照,得到拍照图像。For example, when the photographer determines that the posture of the subject is adjusted, the photographer can click the camera button in the mobile phone or trigger a voice command to send a camera command to the mobile phone, and the mobile phone can control the camera to take a photo according to the camera command. Take pictures.
在一种可能的实现方式中,确定拍摄对象是否调整好自身的拍照姿态,可以根据姿态调整过程中的第二图像与姿态图像之间的匹配度来确定,具体地,可以首先获取与第一显示区域对应的第二图像,并可以通过AI识别技术识别该第二图像中拍摄对象的当前拍照姿态和所选择的目标姿态图像中预设对象的目标拍照姿态,随后可计算该当前拍照姿态与该目标拍照姿态之间的匹配度;若该匹配度小于第一阈值,则可认为拍摄对象当前并未调整好拍照姿态,此时可确定该当前拍照姿态与该目标拍照姿态之间的区别位置,并根据该区别位置提示该拍摄对象进行拍照姿态的调整,直到调整后的当前拍照姿态与该目标拍照姿态之间的匹配度大于或者等于第一阈值为止。当调整后的当前拍照姿态与该目标拍照姿态之间的匹配度大于或者等于第一阈值时,则确定拍摄对象调整好拍照姿态,此时则可控制相机进行拍照,得到拍照图像,以通过匹配度的计算来进一步实现拍照姿态的确认与纠正,可以提高图像拍摄效果,提升用户体验。In a possible implementation manner, to determine whether the subject has adjusted its own photographing posture can be determined according to the degree of matching between the second image and the posture image during the posture adjustment process. Specifically, the Display the second image corresponding to the area, and recognize the current photographing posture of the subject in the second image and the target photographing posture of the preset object in the selected target posture image through AI recognition technology, and then calculate the current photographing posture and The degree of matching between the target's camera posture; if the degree of matching is less than the first threshold, it can be considered that the subject has not adjusted the camera posture. At this time, the difference between the current camera posture and the target camera posture can be determined , And prompt the subject to adjust the photographing posture according to the distinguished position until the matching degree between the adjusted current photographing posture and the target photographing posture is greater than or equal to the first threshold. When the degree of matching between the adjusted current camera posture and the target camera posture is greater than or equal to the first threshold, it is determined that the subject has adjusted the camera posture. At this time, the camera can be controlled to take a photo to obtain a photo image to pass the matching The calculation of the degree to further realize the confirmation and correction of the photographing posture can improve the effect of image shooting and enhance the user experience.
可选地,可首先计算该当前拍照姿态的直方图HistA和该目标拍照姿态的直方图HistB,然后可计算HistA与HistB之间的归一化相关系数,或者巴氏距离,或者直方图相交距离,等等,从而可根据该归一化相关系数或者该巴氏距离,或者该直方图相交距离来确定该当前拍照姿态与该目标拍照姿态之间的匹配度,而当计算得到的匹配度小于第一阈值时,可通过直方图比较来找出该当前拍照姿态与该目标拍照姿态之间的区别位置,从而可根据该区别位置来提示该拍摄对象进行姿态调整,例如,可以通过语音播放的方式来提示该拍摄对象进行姿态调整和/或可以通过文字显示的方式来提示该拍摄对象进行姿态调整。Optionally, the histogram HistA of the current photographing posture and the histogram HistB of the target photographing posture can be calculated first, and then the normalized correlation coefficient between HistA and HistB, or the Bhattacharyya distance, or the histogram intersection distance can be calculated , Etc., so that the matching degree between the current camera pose and the target camera pose can be determined according to the normalized correlation coefficient or the Bhattacharyya distance, or the intersection distance of the histogram, and when the calculated matching degree is less than At the first threshold, the difference between the current photographing posture and the target’s photographing posture can be found by comparing histograms, so that the photographic subject can be prompted to adjust the posture according to the different position, for example, it can be played by voice The method prompts the subject to adjust the posture and/or the manner of text display can be used to prompt the subject to adjust the posture.
应理解,上述所述的通过计算直方图之间的归一化相关系数等来确定该当前拍照姿态与该目标拍照姿态之间的匹配度仅作为示例而非限定,本申请实施例中还可以采用矩阵分解等其他方法来确定该当前拍照姿态与该目标拍照姿态之间的匹配度。It should be understood that the determination of the matching degree between the current photographing posture and the target photographing posture by calculating the normalized correlation coefficients between the histograms described above is only an example and not a limitation, and the embodiment of the present application may also Other methods such as matrix decomposition are used to determine the degree of matching between the current camera posture and the target camera posture.
可选地,在计算得到该当前拍照姿态与该目标拍照姿态之间的匹配度后,还可以将该匹配度 实时显示于该第一显示区域和/或该第二显示区域,以便拍摄对象和/或拍摄者清楚了解该拍摄对象的拍照姿态与姿态图像的具体贴合情况。Optionally, after calculating the matching degree between the current photographing posture and the target photographing posture, the matching degree can also be displayed in the first display area and/or the second display area in real time, so that the object can be photographed and /Or the photographer clearly understands the specific fit between the photographing posture of the subject and the posture image.
场景二Scene two
该场景可以为多人合照场景,该场景中的拍照方法可以应用于如图2所示的单面屏手机中,也可以应用于双面屏手机中,还可以应用于如图3所示的折叠屏手机中,其中,单面屏手机也可以是折叠屏手机展开后形成的单面屏手机。This scene can be a scene where many people take a group photo. The photographing method in this scene can be applied to a single-sided screen mobile phone as shown in Figure 2, or can be applied to a double-sided screen mobile phone as shown in Figure 3. Among the folding screen mobile phones, the single screen mobile phone may also be a single screen mobile phone formed after the folding screen mobile phone is unfolded.
例如,当该拍照方法应用于双面屏手机或者应用于折叠屏手机时,该双面屏手机和处于折叠状态的折叠屏手机均可以包括第一显示区域20和第二显示区域21,在拍照时,第一显示区域20可以面向拍摄者,以作为拍摄者的操作端,第二显示区域21可以面向拍摄对象,以供拍摄对象进行姿态图像的查看,从而方便拍摄对象可以直接根据第二显示区域21中显示的图像进行姿态调整,提高姿态调整效率。For example, when the photographing method is applied to a double-sided screen mobile phone or a folding screen mobile phone, both the double-sided screen mobile phone and the folding screen mobile phone in the folded state may include a first display area 20 and a second display area 21. At this time, the first display area 20 can face the photographer to serve as the photographer’s operating terminal, and the second display area 21 can face the subject for viewing the posture image of the subject, so that the subject can directly follow the second display The image displayed in the area 21 undergoes posture adjustment to improve posture adjustment efficiency.
如图2和图9所示,当该拍照方法应用于单面屏手机时,该单面屏手机的显示屏可以包括第一显示区域20和第二显示区域21,且第一显示区域20和第二显示区域21均面向拍摄者或者均面向拍摄对象。As shown in Figures 2 and 9, when the photographing method is applied to a single-sided screen mobile phone, the display screen of the single-sided screen mobile phone may include a first display area 20 and a second display area 21, and the first display area 20 and The second display areas 21 all face the photographer or both face the subject.
应理解,图2和图9中所示的第一显示区域20和第二显示区域21的位置和大小仅作示意性解释,不应理解为对本申请实施例的限制,本申请实施例中,第一显示区域20和第二显示区域21均可以位于单面屏手机显示屏中的任一位置,如第一显示区域20和第二显示区域21的位置还可以为如图10中所示的位置。另外,在拍照过程中,第一显示区域20和第二显示区域21中所显示的内容还可以进行互换,例如,可以将第二显示区域21中所显示的姿态图像切换至第一显示区域20中显示,并可以将第一显示区域20中所预览的第一图像切换至第二显示区域21中显示,以方便拍摄者/或拍摄对象清楚查看该第一图像或该姿态图像。It should be understood that the positions and sizes of the first display area 20 and the second display area 21 shown in FIG. 2 and FIG. 9 are only for schematic explanation and should not be construed as limiting the embodiments of the present application. In the embodiments of the present application, Both the first display area 20 and the second display area 21 can be located at any position in the display screen of a mobile phone with a single screen. For example, the positions of the first display area 20 and the second display area 21 can also be as shown in FIG. 10 position. In addition, during the photographing process, the content displayed in the first display area 20 and the second display area 21 can also be exchanged. For example, the posture image displayed in the second display area 21 can be switched to the first display area. 20, and the first image previewed in the first display area 20 can be switched to the second display area 21 for display, so as to facilitate the photographer/or subject to clearly view the first image or the posture image.
针对该场景,在拍照时,该手机的处理器可以获取与第一显示区域20对应的第一图像,并可通过AI识别技术对该第一图像进行识别,获得识别结果,该识别结果用于指示该第一图像中是否存在拍摄对象,以及在存在拍摄对象时用于指示该拍摄对象的目标特征,以及在存在拍摄对象时指示该拍摄对象所在的场景的场景特征。若该第一图像中存在拍摄对象,则根据识别到的该拍摄对象的目标特征以及场景特征获取待推荐的姿态图像,并将该姿态图像显示于第二显示区域,以提示拍摄对象根据该姿态图像进行姿态调整,而在提示拍摄对象进行姿态调整后,则可以对拍摄对象进行拍照,得到拍照图像。其中,该拍摄对象的目标特征可以包括该拍摄对象的脸部特征和/或该拍摄对象的形体特征,该场景特征可以包括场景类型,例如海滩/沙滩场景、树林场景、田地场景、草地场景、沙漠场景、山峰场景、海洋场景、湖/池塘场景、雪地场景、蓝天场景等。本申请实施例通过将拍摄对象的目标特征和场景特征相结合来获取姿态图像,可以提高姿态图像获取的准确性和有效性,并通过第二显示区域显示姿态图像,从而方便拍摄对象可直接根据所显示的姿态图像直接进行姿态调整或者可方便拍摄者根据所显示的姿态图像来指导拍摄对象进行姿态调整,以提高图像拍摄效果,提升用户体验。For this scenario, when taking a picture, the processor of the mobile phone can obtain the first image corresponding to the first display area 20, and can recognize the first image through AI recognition technology to obtain the recognition result, which is used for Indicate whether there is a photographed object in the first image, and indicate the target feature of the photographed object when the photographed object exists, and indicate the scene characteristic of the scene where the photographed object is located when the photographed object exists. If there is a subject in the first image, the posture image to be recommended is acquired according to the identified target feature and scene feature of the subject, and the posture image is displayed in the second display area to prompt the subject to follow the posture The posture adjustment of the image is performed, and after the posture adjustment of the subject is prompted, the subject can be photographed to obtain the photographed image. Wherein, the target feature of the subject may include the facial feature of the subject and/or the physical feature of the subject, and the scene feature may include the scene type, such as beach/beach scene, forest scene, field scene, grass scene, Desert scene, mountain peak scene, ocean scene, lake/pond scene, snow scene, blue sky scene, etc. The embodiment of the application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and displays the posture image through the second display area, so that the shooting object can directly follow The displayed posture image directly performs posture adjustment, or it is convenient for the photographer to guide the subject to perform posture adjustment according to the displayed posture image, so as to improve the image shooting effect and enhance the user experience.
该场景与场景一的区别在于,该场景中所识别出的拍摄对象可以包括多个,即可以识别到该第一图像中多个拍摄对象所对应的目标特征(即脸部特征和/或形体特征),而在根据场景特征以及目标特征(即脸部特征和/或形体特征)获取待推荐的姿态图像时,可首先对这多个拍摄对象所对应的目标特征(即脸部特征和/或形体特征)进行统计分析,得到该第一图像中的群体特征,其中,该群体特征可以包括拍摄对象的总数、不同脸部特征所占的比例和/或不同形体特征所占的比 例等,例如,当脸部特征包括脸型特征时,该群体特征可以包括这多个拍摄对象中胖脸所占的比例、瘦脸所占的比例等或者可以包括这多个拍摄对象中圆脸所占的比例、方脸所占的比例、瓜子脸所占的比例等。又比如当脸部特征包括性别特征时,该群体特征可以包括这多个拍摄对象中女性所占的比例、男性所占的比例。还如当脸部特征包括年龄特征时,该群体特征可以包括这多个拍摄对象中青年所占的比例、少年所占的比例、中年所占的比例、老年所占的比例等。类似地,当形体特征包括体型特征时,该群体特征可以包括这多个拍摄对象中不同体型所占的比例,而当形体特征包括身高特征时,该群体特征还可以包括这多个拍摄对象中不同身高范围所占的比例等等。随后,可根据场景特征和群体特征来获取待推荐的姿态图像,其中,所推荐的姿态图像中可以包括该姿态图像中的预设对象所对应的心形合拍队形、V形合拍队形、简单分排站位的合拍队形等等,例如可以根据第一图像中拍摄对象所在的校园场景的场景特征和拍摄对象的拍摄人数、拍摄年龄等群体特征确定出如图9所示的姿态图像显示于第二显示区域中。The difference between this scene and scene one is that the identified objects in the scene can include multiple, that is, the target features corresponding to the multiple objects in the first image (that is, facial features and/or shapes can be identified). Feature), and when acquiring the posture image to be recommended according to the scene feature and the target feature (ie, facial feature and/or physical feature), the target feature corresponding to the multiple shooting objects (ie, facial feature and/or Or physical characteristics) perform statistical analysis to obtain the group characteristics in the first image, where the group characteristics may include the total number of photographed objects, the proportion of different facial features, and/or the proportion of different physical characteristics, etc., For example, when the facial features include facial features, the group features may include the proportion of fat faces, thin faces, etc. among the multiple subjects, or may include the proportion of round faces among the subjects. , The proportion of square faces, the proportion of melon seeds, etc. For another example, when the facial features include gender features, the group features may include the proportion of women and the proportion of men among the multiple photographed subjects. For example, when the facial features include age characteristics, the group characteristics may include the proportion of young people, the proportion of teenagers, the proportion of middle-aged people, and the proportion of old people among the multiple subjects. Similarly, when the physical characteristics include body characteristics, the group characteristics may include the proportions of different body types among the multiple photographed objects, and when the physical characteristics include height characteristics, the group characteristics may also include the multiple photographed objects. The proportion of different height ranges and so on. Subsequently, the posture image to be recommended can be obtained according to the scene characteristics and the group characteristics, wherein the recommended posture image can include the cardioid alignment, V-shape alignment, and alignment corresponding to the preset objects in the posture image. The co-op formation of simple stances, etc., for example, the posture image shown in Figure 9 can be determined based on the scene characteristics of the campus scene where the subject is located in the first image, the number of subjects, and the age of the subjects. Displayed in the second display area.
应理解,在双面屏手机和处于折叠状态的折叠屏手机中,在得到待推荐的姿态图像后,也可以该姿态图像同时显示于拍摄者可查看的第一显示区域和拍摄对象可查看的第二显示区域,以在方便拍摄对象可直接根据该姿态图像进行姿态调整的基础上,还可方便拍摄者根据第一显示区域所显示的姿态图像来辅助指导拍摄对象进行姿态调整,或者可方便拍摄者实时了解拍摄对象的站位调整效果,从而提高姿态调整效率,提高图像拍摄效果,提升用户体验。It should be understood that in a double-sided screen mobile phone and a folding screen mobile phone in a folded state, after the posture image to be recommended is obtained, the posture image can also be displayed in the first display area viewable by the photographer and the viewable object by the photographer. The second display area, on the basis of facilitating the posture adjustment of the subject directly according to the posture image, can also facilitate the photographer to assist in guiding the posture adjustment of the subject according to the posture image displayed in the first display area, or it can be convenient The photographer understands the position adjustment effect of the subject in real time, thereby improving the posture adjustment efficiency, improving the image shooting effect, and enhancing the user experience.
在一种可能的实现方式中,在获取到该第一图像对应的场景特征和群体特征后,可根据场景特征和群体特征获取至少一个样本图像,并从样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。In a possible implementation manner, after obtaining the scene feature and the group feature corresponding to the first image, at least one sample image can be obtained according to the scene feature and the group feature, and a preset number of target samples can be selected from the sample image Image, and the selected target sample image is determined as the posture image to be recommended.
具体地,可首先将该第一图像对应的场景特征、群体特征与样本图像库中的各样本图像所对应的场景特征和群体特征进行匹配,得到该第一图像与各样本图像之间的匹配度,并根据匹配度从样本图像库中获取多张样本图像,然后可以从这多张样本图像中选择出N张目标样本图像,并将所选择的N张目标样本图像确定为待推荐的姿态图像,例如可以从样本图像库中获取匹配度大于第一阈值的多张样本图像,并可以根据各样本图像的推荐值从这多张样本图像中选取出N个目标样本图像,并将所选取的N个目标样本图像确定为待推荐的姿态图像,其中,N为大于或者等于1的整数。Specifically, the scene feature and group feature corresponding to the first image can be matched with the scene feature and group feature corresponding to each sample image in the sample image library to obtain a match between the first image and each sample image According to the matching degree, obtain multiple sample images from the sample image library, and then select N target sample images from the multiple sample images, and determine the selected N target sample images as the pose to be recommended For example, multiple sample images with matching degrees greater than a first threshold can be obtained from a sample image library, and N target sample images can be selected from the multiple sample images according to the recommended value of each sample image, and the selected The N target sample images of are determined to be posture images to be recommended, where N is an integer greater than or equal to 1.
例如,可以首先构建第一图像的场景特征和群体特征所对应的第一特征向量,并分别构建样本图像库中的各样本图像的场景特征和群体特征所对应的第二特征向量,然后分别计算该第一特征向量与各第二特征向量之间的匹配度,从而可以根据匹配度从样本图像库中获取多个样本图像,并可以根据各样本图像对应的推荐值选择出N个目标样本图像来作为待推荐的姿态图像。For example, the first feature vector corresponding to the scene feature and the group feature of the first image can be constructed first, and the second feature vector corresponding to the scene feature and the group feature of each sample image in the sample image library can be constructed respectively, and then the second feature vectors corresponding to The matching degree between the first feature vector and each second feature vector, so that multiple sample images can be obtained from the sample image library according to the matching degree, and N target sample images can be selected according to the recommended value corresponding to each sample image As the posture image to be recommended.
例如,在计算第一图像与各样本图像之间的匹配度之前,可以根据场景特征和群体特征的重要性预先设置场景特征对应的第一权重和群体特征对应的第二权重,因此,在计算第一图像与各样本图像的匹配度时,可以首先构建第一图像的场景特征和群体特征所对应的第一特征向量,并分别构建各第二样本图像的场景特征和群体特征所对应的第二特征向量,然后根据场景特征对应的第一权重、群体特征对应的第二权重分别计算该第一特征向量与各第二特征向量之间的匹配度,从而可以根据匹配度从样本图像库中获取多个样本图像,并可以根据各样本图像对应的推荐值选择出N个目标样本图像来作为待推荐的姿态图像。For example, before calculating the degree of matching between the first image and each sample image, the first weight corresponding to the scene feature and the second weight corresponding to the group feature can be preset according to the importance of the scene feature and the group feature. Therefore, in the calculation When the first image is matched with each sample image, the first feature vector corresponding to the scene feature and group feature of the first image can be constructed first, and the first feature vector corresponding to the scene feature and group feature of each second sample image can be constructed respectively. Two feature vectors, and then calculate the matching degree between the first feature vector and each second feature vector according to the first weight corresponding to the scene feature and the second weight corresponding to the group feature, so that the matching degree can be obtained from the sample image library A plurality of sample images are obtained, and N target sample images can be selected as the posture images to be recommended according to the recommended value corresponding to each sample image.
应理解,本申请实施例中,可以将群体特征所包括的各特征设置为统一的第二权重,也可以再根据各特征的重要性设置成不同的第二权重。It should be understood that, in the embodiments of the present application, each feature included in the group feature can be set to a unified second weight, or can be set to a different second weight according to the importance of each feature.
应理解,本申请实施例中,也可以根据匹配度直接从样本图像库中选择出目标样本图像,例如,可以从样本图像库中选择匹配度高的前M张样本图像来作为目标样本图像。可选地,本申请实施例中,也可以利用预先构建的姿态推荐模型来获取该姿态图像,例如,可将所识别到的场景特征和群体特征输入至该姿态推荐模型中,该姿态推荐模型即可以根据场景特征和群体特征来得到所推荐的姿态图像。It should be understood that in the embodiment of the present application, the target sample image can also be directly selected from the sample image library according to the matching degree. For example, the first M sample images with high matching degree can be selected from the sample image library as the target sample image. Optionally, in the embodiment of the present application, a pre-built pose recommendation model may also be used to obtain the pose image. For example, the recognized scene feature and group feature may be input into the pose recommendation model, and the pose recommendation model That is, the recommended posture image can be obtained according to the scene characteristics and the group characteristics.
具体地,该姿态推荐模型可以首先根据该场景特征和该群体特征确定该第一图像所对应的拍摄类别;然后可以获取该拍摄类别所对应的各样本图像,并可以从这些样本图像中选取预设数量的目标样本图像,将所选取的各目标样本图像确定为该姿态图像,即可以将各目标样本图像中预设对象所对应的合拍队形输出给拍照对象,以提示拍照对象根据该合拍队形来进行拍照姿态的调整,其中,拍照姿态的调整可以包括拍照站位的调整和/或拍照动作的调整等,以通过场景特征和群体特征来综合推荐最佳的合拍队形指导各拍摄对象进行拍照动作和/或拍照站位的调整,提高合拍中的图像拍摄效果,提升用户体验。Specifically, the pose recommendation model may first determine the shooting category corresponding to the first image according to the scene characteristics and the group characteristics; then, each sample image corresponding to the shooting category may be obtained, and the preset images may be selected from the sample images. Set a number of target sample images, and determine each selected target sample image as the posture image. That is, the co-op formation corresponding to the preset object in each target sample image can be output to the subject to remind the subject to follow the co-photograph Formation to adjust the photo posture, where the photo posture adjustment can include the adjustment of the camera position and/or the adjustment of the camera action, etc., to comprehensively recommend the best co-op formation to guide each shooting based on the scene characteristics and group characteristics The subject performs photographing actions and/or adjustment of the photographing station to improve the image shooting effect in the co-photographing and enhance the user experience.
可选地,该姿态推荐模型可以为通过采集大量的训练图像进行标记学习得到的卷积神经网络模型。Optionally, the pose recommendation model may be a convolutional neural network model obtained by collecting a large number of training images for labeling learning.
具体地,首先采集第一训练图像和第二训练图像,其中,第一训练图像和第二训练图像均为合拍场景中的图像,并标记各第一训练图像所对应的预设拍摄类别;其次,识别各第一训练图像中预设对象所在的训练场景的训练场景特征和各预设对象的训练脸部特征和/或训练形体特征,并对所识别的各训练脸部特征和/或各训练形体特征进行统计分析得到各第一训练图像中的训练群体特征;随后,分别将各第一训练图像所对应的训练场景特征和训练群体特征输入至初始的姿态推荐模型,以通过该初始的姿态推荐模型分别确定各第一训练图像所对应的训练拍摄类别,并根据各第一训练图像所对应的训练拍摄类型和预设拍摄类别计算训练误差;若训练误差不满足预设条件,则调整姿态推荐模型的模型参数,并将模型参数调整后的姿态推荐模型确定为初始的姿态推荐模型,返回执行分别将各第一训练图像所对应的训练场景特征和训练群体特征输入至初始的姿态推荐模型,以通过初始的姿态推荐模型分别确定各第一训练图像对应的训练拍摄类别的步骤以及后续步骤;若训练误差满足预设条件,则确定姿态推荐模型训练完成,并利用训练完成的姿态推荐模型将各第二训练图像分类至对应的预设拍摄类别,以作为各预设拍摄类别所对应的样本图像。其中,该第二训练图像可以包括该第一训练图像,且各第二训练图像均为合拍场景中拍摄效果较好、合拍队形较好看的图像。Specifically, first collect the first training image and the second training image, where the first training image and the second training image are both images in a co-photographed scene, and mark the preset shooting category corresponding to each first training image; , Identify the training scene features of the training scene where the preset objects are located in each first training image and the training facial features and/or training physical features of each preset object, and compare the recognized training facial features and/or each Perform statistical analysis on the training body features to obtain the training group features in each first training image; then, respectively input the training scene features and training group features corresponding to each first training image to the initial posture recommendation model to pass the initial The posture recommendation model determines the training shooting category corresponding to each first training image, and calculates the training error according to the training shooting type and the preset shooting category corresponding to each first training image; if the training error does not meet the preset conditions, adjust The model parameters of the posture recommendation model, and the posture recommendation model adjusted by the model parameters is determined as the initial posture recommendation model, and return to execution. Input the training scene features and training group features corresponding to each first training image to the initial posture recommendation. The model is used to determine the steps and subsequent steps of the training shooting category corresponding to each first training image through the initial pose recommendation model; if the training error meets the preset conditions, it is determined that the training of the pose recommendation model is completed, and the trained pose recommendation is used The model classifies each second training image into a corresponding preset shooting category as a sample image corresponding to each preset shooting category. Wherein, the second training image may include the first training image, and each second training image is an image with a better shooting effect in a co-production scene and a good co-production formation.
应理解,各预设拍摄类别所对应的样本图像不仅仅可以包括所对应的第二训练图像,本申请实施例中,还可以实时从网络中进行图像的爬取,并对所爬取的图像进行检测与分析来确定所爬取的图像是否为拍摄效果较好、合拍队形较好看的合拍场景图像,若是的话,则可以将所爬取的图像分类至对应的预设拍摄类别,以通过网络爬取来补充各预设拍摄类别的样本图像,提高姿态图像推荐的多样性,提高用户体验。It should be understood that the sample image corresponding to each preset shooting category can not only include the corresponding second training image. In the embodiment of the present application, the image can also be crawled from the network in real time, and the crawled image Perform detection and analysis to determine whether the crawled image is a co-photographed scene image with a better shooting effect and a better co-production formation. If so, the crawled image can be classified into the corresponding preset shooting category to pass Web crawling supplements the sample images of each preset shooting category, improves the diversity of posture image recommendation, and improves user experience.
可选地,该姿态推荐模型可以首先构建该场景特征和该群体特征所对应的第一特征向量,并分别构建各预设拍摄类别中的场景特征和群体特征所对应的第二特征向量,然后分别计算该第一特征向量与各第二特征向量之间的匹配度,并根据匹配度来确定该第一图像所属的拍摄类别。Optionally, the pose recommendation model may first construct a first feature vector corresponding to the scene feature and the group feature, and respectively construct a second feature vector corresponding to the scene feature and the group feature in each preset shooting category, and then The matching degree between the first feature vector and each second feature vector is calculated respectively, and the shooting category to which the first image belongs is determined according to the matching degree.
具体地,该姿态推荐模型可以首先构建该场景特征和该群体特征所对应的第一特征向量,并分别构建各预设拍摄类别中的场景特征和群体特征所对应的第二特征向量,然后根据场景特征对应的第一权重、群体特征对应的第二权重分别计算该第一特征向量与各第二特征向量之间的匹配 度,并根据匹配度来确定该第一图像所属的拍摄类别。Specifically, the pose recommendation model may first construct the first feature vector corresponding to the scene feature and the group feature, and respectively construct the second feature vector corresponding to the scene feature and the group feature in each preset shooting category, and then according to The first weight corresponding to the scene feature and the second weight corresponding to the group feature respectively calculate the matching degree between the first feature vector and each second feature vector, and determine the shooting category to which the first image belongs according to the matching degree.
可选地,在确定该第一图像所属的拍摄类别后,可以获取该拍摄类别中预设数量的目标样本图像,并可以将各目标样本图像确定为待推荐的姿态图像显示于双面屏手机或者折叠屏手机的第二显示区域中,以供拍摄对象查看该姿态图像,从而方便拍摄对象直接根据该姿态图像来调整自身的拍照动作和/或拍照站位等,以提高姿态调整效率。Optionally, after determining the shooting category to which the first image belongs, a preset number of target sample images in the shooting category can be acquired, and each target sample image can be determined as the posture image to be recommended and displayed on the double-sided screen mobile phone Or in the second display area of the folding screen mobile phone for the subject to view the posture image, so that the subject can directly adjust his own photographing action and/or photographing position according to the posture image to improve the posture adjustment efficiency.
可选地,在确定该第一图像所属的拍摄类别后,可获取该拍摄类别中预设数量的目标样本图像,并可以将各目标样本图像确定为待推荐的姿态图像显示于单面屏手机的第二显示区域中,以供拍摄者根据该姿态图像指导拍摄对象进行拍照姿态的调整。Optionally, after determining the shooting category to which the first image belongs, a preset number of target sample images in the shooting category can be acquired, and each target sample image can be determined as the posture image to be recommended and displayed on the single-screen mobile phone In the second display area, the photographer can guide the subject to adjust the photographing posture according to the posture image.
应理解,该场景中的目标样本图像所对应的预设数量和获取方式与场景一中目标样本图像所对应的预设数量和获取方式相似,基本原理相同,在此不再赘述。It should be understood that the preset number and acquisition method corresponding to the target sample images in the scene are similar to the preset number and acquisition method corresponding to the target sample images in scene 1, and the basic principles are the same, and will not be repeated here.
在一种可能的实现方式中,在确定各拍摄对象调整好拍照姿态后,可以首先获取当前与该第一显示区域对应的第二图像,并可通过AI识别技术和图像分割技术识别该第二图像中的各拍摄对象以及各拍摄对象所对应的身高特征、和/或体型特征、和/或脸型特征;随后,可比对拍摄对象之间的身高特征、和/或者比对拍摄对象之间的体型特征、和/或者比对拍摄对象之间的脸型特征,得到对应的比对结果,并根据该比对结果确定是否还需要对拍摄对象进行站位调整,若不需要对拍摄对象进行站位调整,则执行拍照操作,得到拍照图像;若还需要对拍照对象进行站位调整,则根据该比对结果确定站位调整方式,以根据站位调整方式来进行拍摄对象之间站位的调整,从而防止合拍场景中遮挡情况的发生,提高图像拍摄效果,提升用户体验。In a possible implementation manner, after determining that each subject has adjusted the photographing posture, the second image currently corresponding to the first display area can be acquired first, and the second image can be identified through AI recognition technology and image segmentation technology. Each subject in the image and the height feature, and/or body shape feature, and/or face feature corresponding to each subject; subsequently, the height feature between the subjects can be compared, and/or the height feature between the subjects can be compared. Body shape features and/or facial features between subjects are compared to obtain the corresponding comparison results, and based on the comparison results, it is determined whether the subject needs to be adjusted in position, if the subject does not need to be positioned To adjust, perform the photographing operation to obtain the photographed image; if the position adjustment of the photographed subject is needed, the position adjustment method is determined according to the comparison result, and the position adjustment between the photographed objects is carried out according to the position adjustment method , So as to prevent the occurrence of occlusion in the co-production scene, improve the image shooting effect, and enhance the user experience.
应理解,上述的获取各拍摄对象所对应的身高特征、和/或体型特征、和/或脸型特征可以为获取各拍摄对象所对应的身高特征,或者获取各拍摄对象所对应的体型特征,或者获取各拍摄对象所对应的脸型特征,或者获取各拍摄对象所对应的身高特征和体型特征,或者获取各拍摄对象所对应的身高特征和脸型特征,或者各拍摄对象所对应的体型特征和脸型特征,或者获取各拍摄对象所对应的身高特征、体型特征和脸型特征。It should be understood that the above-mentioned acquiring the height features, and/or body shape features, and/or facial features corresponding to each shooting object may be acquiring the height features corresponding to each shooting object, or acquiring the body shape characteristics corresponding to each shooting object, or Obtain the facial features corresponding to each subject, or obtain the height and body features corresponding to each subject, or obtain the height and facial features corresponding to each subject, or the body and facial features corresponding to each subject , Or obtain the height feature, body shape feature, and face shape feature corresponding to each subject.
具体地,可根据身高特征之间的比对结果来确定站位调整方式,此时的站位调整方式主要是将身高较高的拍摄对象调整至距离相机较远的后排,以确保前后排之间的拍摄对象之间不会存在遮挡情况,从而提高图像拍摄效果。Specifically, the stance adjustment method can be determined according to the comparison result of the height characteristics. The stance adjustment method at this time is mainly to adjust the taller subject to the rear row farther from the camera to ensure the front and rear rows There will be no occlusion between the subjects in between, thus improving the image capture effect.
例如,若根据身高特征之间的比对结果确定第一排中的第一拍摄对象遮挡了第二排中的第二拍摄对象,则所确定的站位调整方式可以为将该第一拍摄对象与该第二拍摄对象进行站位调整。For example, if it is determined according to the comparison result between the height features that the first photographic subject in the first row occludes the second photographic subject in the second row, the determined position adjustment method may be the first photographic subject Position adjustment with the second subject.
可选地,可根据脸型特征之间的比对结果来确定站位调整方式,此时的站位调整方式主要是将脸型较大的拍摄对象调整至距离相机较远的后排,以提高图像拍摄效果,增加拍摄对象拍摄的满意度。Optionally, the stance adjustment method can be determined according to the comparison result between the facial features. At this time, the stance adjustment method is mainly to adjust the subject with a larger face to the rear row farther from the camera to improve the image The shooting effect increases the satisfaction of shooting the subject.
例如,若根据脸型特征之间的比对结果确定第一排中的第三拍摄对象的脸型比第二排中第四拍摄对象的脸型大,则所确定的站位调整方式可以为将该第三拍摄对象与该第四拍摄对象进行站位调整。For example, if it is determined that the face of the third subject in the first row is larger than the face of the fourth subject in the second row according to the comparison result between facial features, the determined position adjustment method may be The position adjustment of the third photographic subject and the fourth photographic subject.
可选地,可根据体型特征之间的比对结果来确定站位调整方式,此时的站位调整方式主要是将体型较大的拍摄对象调整至距离相机较远的后排或者调整至距离拍摄中心较远的两边,以提高图像拍摄效果。Optionally, the stance adjustment method can be determined according to the comparison result between the body shape features. At this time, the stance adjustment method is mainly to adjust the larger object to the rear row or the distance from the camera. The far sides of the shooting center to improve the image shooting effect.
例如,如图11所示,若根据体型特征之间的比对结果确定第一排中的拍摄对象1100的体型比第一排中的拍摄对象1101的体型大,则所确定的站位调整方式可以为将拍摄对象1100与拍摄 对象1101进行站位调整。For example, as shown in FIG. 11, if it is determined according to the comparison result between the body shape features that the body shape of the subject 1100 in the first row is larger than the body shape of the subject 1101 in the first row, the determined position adjustment method The position adjustment of the shooting object 1100 and the shooting object 1101 may be performed.
需要说明的是,在根据身高特征、体型特征和脸型特征中的两个或者三个特征来确定站位调整方式时,可按照身高特征>脸型特征>体型特征的优先级顺序来确定站位调整方式,即优先根据身高特征来确定站位调整方式,而在身高特征相同的情况下,则可根据脸型特征来确定站位调整方式,而在身高特征和脸型特征均相同的情况下,则可根据体型特征来确定站位调整方式。It should be noted that when determining the position adjustment method according to two or three of the height feature, body shape feature and face shape feature, the position adjustment can be determined according to the priority order of height feature> face shape feature> body shape feature The method, that is, the position adjustment method is determined based on the height characteristics first, and when the height characteristics are the same, the position adjustment method can be determined according to the facial features, and when the height characteristics and facial features are the same, you can Determine the position adjustment method according to the body type characteristics.
可选地,如图12所示,在双面屏手机和处于折叠状态的折叠屏手机中,所确定的站位调整方式可以通过图像指示显示于拍摄对象可查看的第二显示区域中,以使得拍摄对象可直接根据所显示的图像指示来进行站位调整,提高站位调整效率。Optionally, as shown in FIG. 12, in a double-sided screen mobile phone and a folding screen mobile phone in a folded state, the determined position adjustment method can be displayed in a second display area viewable by the subject through an image indication, This allows the subject to adjust the position directly according to the displayed image instructions, improving the efficiency of the position adjustment.
应理解,在双面屏手机和处于折叠状态的折叠屏手机中,所确定的站位调整方式还可以通过图像指示显示于拍摄者可查看的第一显示区域中,以方便拍摄者可根据第一显示区域所显示的图像指示来辅助指导拍摄对象进行站位调整,或者方便拍摄者了解拍摄对象的站位调整效果,提高图像拍摄效果,提升用户体验。It should be understood that in a double-sided screen mobile phone and a folding screen mobile phone in a folded state, the determined position adjustment method can also be displayed in the first display area viewable by the photographer through image instructions, so that the photographer can follow the first display area. The image indication displayed in a display area assists in guiding the subject to adjust the position, or to facilitate the photographer to understand the effect of the position adjustment of the subject, improve the image shooting effect, and enhance the user experience.
可选地,在单面屏手机中,所确定的站位调整方式可通过语音播放的形式来指导拍摄对象进行站位调整,或者可以通过图像指示显示于第一显示区域,以使得拍摄者可以根据所显示的图像指示来指导拍摄对象进行站位调整。Optionally, in a single-screen mobile phone, the determined position adjustment method can be used to guide the subject to adjust the position in the form of voice playback, or can be displayed in the first display area through image instructions, so that the photographer can According to the displayed image instructions, guide the subject to adjust the position.
应理解,在双面屏手机和处于折叠状态的折叠屏手机中,所确定的站位调整方式当然也可以通过语音播放的形式来辅助指导拍摄对象进行站位调整,或者也可以通过图像指示显示于第一显示区域,以通过拍摄者根据所显示的图像指示来辅助指导拍摄对象进行站位调整,本申请实施例对此不作限定。It should be understood that in the double-sided screen mobile phone and the folding screen mobile phone in the folded state, the determined position adjustment method can of course also be used in the form of voice playback to assist in guiding the subject to adjust the position, or can also be displayed by image instructions In the first display area, the photographer can assist in guiding the subject to adjust the position according to the displayed image instructions, which is not limited in the embodiment of the present application.
在一种可能的实现方式中,在完成拍摄对象的站位调整后,还可以进一步获取与该第一显示区域对应的第三图像,并可以通过AI识别技术识别该第三图像中拍摄对象所对应的整体拍照姿态,随后可以计算该整体拍照姿态与所选择的目标姿态图像中预设对象的目标合拍姿态之间的匹配度;若该匹配度小于第二阈值,则确定该整体拍照姿态与该目标合拍姿态之间的区别位置,并根据该区别位置提示该拍摄对象进行拍照姿态的调整,直到调整后的整体拍照姿态与该目标合拍姿态之间的匹配度大于或者等于第二阈值为止。当调整后的整体拍照姿态与该目标合拍姿态之间的匹配度大于或者等于第二阈值时,则可控制相机进行拍照,得到拍照图像,提高图像拍摄效果,提高用户体验。In a possible implementation manner, after completing the adjustment of the position of the shooting object, a third image corresponding to the first display area can be further obtained, and the location of the shooting object in the third image can be identified through AI recognition technology. Corresponding to the overall camera posture, then the degree of matching between the overall camera posture and the target co-photographing posture of the preset object in the selected target posture image can be calculated; if the degree of matching is less than the second threshold, it is determined that the overall camera posture is The different positions between the target co-photographing postures, and the subject is prompted to adjust the photographing posture according to the different positions, until the matching degree between the adjusted overall photo-taking posture and the target co-photographing posture is greater than or equal to a second threshold. When the degree of matching between the adjusted overall photographing posture and the target co-photographing posture is greater than or equal to the second threshold, the camera can be controlled to take pictures to obtain a photographed image, which improves the image photographing effect and improves user experience.
可选地,在计算得到该整体拍照姿态与该目标合拍姿态之间的匹配度后,还可以将匹配度实时显示于该第一显示区域和/或该第二显示区域,以方便拍摄对象和/或拍摄者清楚了解该拍摄对象的拍照姿态与姿态图像之间的具体贴合情况,例如,如图9所示,可将计算得到的匹配度9.5显示于第二显示区域,以方便拍摄者清楚了解该拍摄对象的拍照姿态与姿态图像之间的具体贴合情况。Optionally, after the degree of matching between the overall photographing posture and the target co-photographing posture is calculated, the degree of matching can also be displayed in the first display area and/or the second display area in real time to facilitate the shooting of the subject and / Or the photographer clearly understands the specific fit between the photographing posture of the subject and the posture image. For example, as shown in Figure 9, the calculated matching degree of 9.5 can be displayed in the second display area to facilitate the photographer Clearly understand the specific fit between the photographing posture of the subject and the posture image.
需要说明的是,本场景中的匹配度计算与场景一中的匹配度计算相似,基本原理相同,在此不再赘述。It should be noted that the matching degree calculation in this scenario is similar to the matching degree calculation in scenario 1, and the basic principle is the same, so it will not be repeated here.
本场景与场景一的区别在于,本场景可以应用于多人的合拍场景,并可以根据姿态图像来指导合拍中各拍摄对象动作、站位的调整等,提高合拍的图像拍摄效果,提升用户体验。The difference between this scene and scene one is that this scene can be applied to a co-photographing scene of multiple people, and can guide the action of each subject in the co-photographing, adjusting the position of each subject according to the posture image, and improve the co-photographing effect and user experience .
如图13所示,本申请实施例提供了一种拍照方法,可应用于上述移动终端,所述拍照方法可以包括:As shown in FIG. 13, an embodiment of the present application provides a photographing method, which can be applied to the above-mentioned mobile terminal, and the photographing method may include:
S1301、获取与第一显示区域对应的第一图像;S1301: Acquire a first image corresponding to a first display area;
S1302、识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景特征;S1302: Identify the target feature of the shooting object in the first image and the scene feature where the shooting object is located;
S1303、根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,并将所述姿态图像显示于第二显示区域,以提示所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整;S1303. Obtain a posture image to be recommended according to the target feature of the subject and the scene feature of the scene in which the subject is located, and display the posture image in a second display area to prompt the subject according to the The posture image displayed in the second display area is adjusted for posture;
S1304、对所述拍摄对象进行拍照,得到拍照图像。S1304. Take a photo of the subject to obtain a photo image.
需要说明的是,所述第一图像可以为第一帧预览图像,或者第一帧之后的第N帧预览图像,也可以为摄像头采集的第一帧图像,或者第一帧之后的第N帧图像,N为大于1的整数;所述拍摄对象的特征包括但不限于拍摄对象的脸部特征、形体特征等;所述待推荐的姿态图像可以从本地或者从网络获取。It should be noted that the first image may be the first frame of preview image, or the Nth frame of preview image after the first frame, or the first frame of image collected by the camera, or the Nth frame after the first frame. For the image, N is an integer greater than 1; the characteristics of the subject include, but are not limited to, the facial features and physical characteristics of the subject; the posture image to be recommended can be obtained locally or from the network.
在一种可能的实现方式中,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,包括:In a possible implementation manner, the acquiring the posture image to be recommended according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located includes:
根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像;Acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
从所述样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。A preset number of target sample images are selected from the sample images, and the selected target sample images are determined as the pose images to be recommended.
具体地,所述从所述样本图像中选取预设数量的目标样本图像,包括:Specifically, the selecting a preset number of target sample images from the sample images includes:
获取每一个样本图像的推荐值,选择推荐值高的前N个样本图像作为目标样本图像,N为大于或等于1的整数。Obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, where N is an integer greater than or equal to 1.
可选地,当所述第一图像中存在一个拍摄对象时,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像,包括:Optionally, when there is a photographed object in the first image, the acquiring at least one sample image according to the target feature of the photographed object and the scene characteristic of the scene in which the photographed object is located includes:
根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征确定所述第一图像所对应的拍摄类别;Determining the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
获取所述拍摄类别所对应的至少一个样本图像。At least one sample image corresponding to the shooting category is acquired.
在一种可能的实现方式中,当所述第一图像中存在多个拍摄对象时,所述识别所述第一图像中拍摄对象的目标特征包括:In a possible implementation manner, when there are multiple photographed objects in the first image, the identifying target characteristics of the photographed objects in the first image includes:
识别所述第一图像中每一个拍摄对象的目标特征;Identifying the target feature of each shooting object in the first image;
相应的,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像,包括:Correspondingly, the acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located includes:
根据每一个拍摄对象的目标特征确定所述第一图像中所述多个拍摄对象的群体特征;Determining the group characteristics of the multiple photographing objects in the first image according to the target characteristic of each photographing object;
根据所述群体特征和所述场景特征获取至少一个样本图像。At least one sample image is acquired according to the group characteristics and the scene characteristics.
可选地,所述根据所述群体特征和所述场景特征获取至少一个样本图像包括:Optionally, the acquiring at least one sample image according to the group characteristics and the scene characteristics includes:
根据所述群体特征和所述场景特征,从预先存储的样本图像库中获取与所述群体特征和所述场景特征的匹配度大于第一阈值的至少一个样本图像。According to the group feature and the scene feature, at least one sample image whose matching degree with the group feature and the scene feature is greater than a first threshold is acquired from a pre-stored sample image library.
在一种可能的实现方式中,所述对所述拍摄对象进行拍照,得到拍照图像,包括:In a possible implementation manner, the taking a picture of the subject to obtain a photographed image includes:
在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像。After it is determined that the photographed object has adjusted its posture according to the posture image displayed in the second display area, the photographed object is photographed to obtain a photographed image.
可选地,所述在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像,包括:Optionally, the step of taking a picture of the photographing object to obtain a photographed image after determining that the photographing object performs posture adjustment according to the posture image displayed in the second display area includes:
获取与所述第一显示区域对应的第二图像;Acquiring a second image corresponding to the first display area;
当所述第二图像与所述第二显示区域显示的姿态图像的匹配度大于第二阈值时,确定拍摄对象的姿态调整完成,并对所述拍摄对象进行拍照,得到拍照图像。When the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, it is determined that the posture adjustment of the shooting object is completed, and the shooting object is photographed to obtain a photographed image.
可选地,在将所述姿态图像显示于第二显示区域之后,还包括:Optionally, after displaying the posture image in the second display area, the method further includes:
获取所述姿态图像对应的提示语音和/或提示文字,通过所述提示语音和/或所述提示文字提示所述拍摄对象进行姿态调整。Acquire the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
在一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括第一显示屏和第二显示屏,所述第一显示屏的显示区域为第一显示区域,所述第二显示屏的显示区域为第二显示区域,在拍照时,所述第一显示区域面向拍摄者,所述第二显示区域面向拍摄对象。In a possible implementation manner, the photographing method is applied to a mobile terminal. The mobile terminal includes a first display screen and a second display screen. The display area of the first display screen is the first display area. The display area of the second display screen is the second display area. When taking a picture, the first display area faces the photographer, and the second display area faces the photographic object.
可选地,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述显示屏的显示区域为第一显示区域,所述第二显示区域为第一显示区域的部分显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。Optionally, the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, the display area of the display screen is a first display area, and the second display area is a partial display area of the first display area, When taking a picture, the first display area and the second display area face the photographer or the subject.
在一种可能的实现方式中,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述第一显示区域和第二显示区域位于所述显示屏的不同显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。In a possible implementation, the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in different display areas of the display screen. , The first display area and the second display area face the photographer or the photographed subject.
本申请实施例通过将拍摄对象的目标特征和场景特征相结合来获取姿态图像,可以提高姿态图像获取的准确性和有效性,并通过在第二显示区域显示所述姿态图像,从而可以方便拍摄对象直接根据所显示的姿态图像进行姿态调整或者方便拍摄者根据所显示的姿态图像指导拍摄对象进行姿态调整,有效提高图像拍摄效果,提升用户体验。The embodiment of the application obtains the posture image by combining the target feature of the shooting object and the scene feature, which can improve the accuracy and effectiveness of the posture image acquisition, and display the posture image in the second display area, thereby facilitating shooting The object directly adjusts the posture according to the displayed posture image, or it is convenient for the photographer to guide the subject to adjust the posture according to the displayed posture image, which effectively improves the image shooting effect and enhances the user experience.
对应于上文实施例所述的拍照方法,图14示出了本申请实施例提供的拍照装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the photographing method described in the above embodiment, FIG. 14 shows a structural block diagram of a photographing device provided in an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
参照图14,该拍照装置可应用于上述移动终端,所述拍照装置可以包括:Referring to FIG. 14, the photographing device may be applied to the above-mentioned mobile terminal, and the photographing device may include:
图像获取模块1401,用于获取与第一显示区域对应的第一图像;The image acquisition module 1401 is configured to acquire a first image corresponding to the first display area;
特征识别模块1402,用于识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景的场景特征;The feature recognition module 1402 is configured to recognize the target feature of the shooting object in the first image and the scene feature of the scene in which the shooting object is located;
姿态图像推荐模块1403,用于根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,并将所述姿态图像显示于第二显示区域,以提示所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整;The posture image recommendation module 1403 is configured to obtain a posture image to be recommended according to the target feature of the subject and the scene feature of the scene where the subject is located, and display the posture image in the second display area to prompt The shooting object performs posture adjustment according to the posture image displayed in the second display area;
拍照模块1404,用于对所述拍摄对象进行拍照,得到拍照图像。The photographing module 1404 is used to photograph the subject to obtain a photographed image.
在一种可能的实现方式中,所述姿态图像推荐模块1403,包括:In a possible implementation, the posture image recommendation module 1403 includes:
样本图像获取单元,用于根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像;A sample image acquisition unit, configured to acquire at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
姿态图像确定单元,用于从所述样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。The posture image determining unit is configured to select a preset number of target sample images from the sample images, and determine the selected target sample image as the posture image to be recommended.
具体地,所述姿态图像确定单元,具体用于获取每一个样本图像的推荐值,选择推荐值高的前N个样本图像作为目标样本图像,N为大于或等于1的整数。Specifically, the posture image determining unit is specifically configured to obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, and N is an integer greater than or equal to 1.
可选地,当所述第一图像中存在一个拍摄对象时,所述样本图像获取单元包括:Optionally, when there is a subject in the first image, the sample image acquisition unit includes:
拍摄类别确定子单元,用于根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征确定所述第一图像所对应的拍摄类别;A shooting category determining subunit, configured to determine the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene in which the shooting object is located;
样本图像获取第一子单元,用于获取所述拍摄类别所对应的至少一个样本图像。The sample image acquisition first subunit is configured to acquire at least one sample image corresponding to the shooting category.
在一种可能的实现方式中,当所述第一图像中存在多个拍摄对象时,所述特征识别模块1402,还用于识别所述第一图像中每一个拍摄对象的目标特征;In a possible implementation, when there are multiple shooting objects in the first image, the feature recognition module 1402 is further configured to identify the target feature of each shooting object in the first image;
相应的,所述样本图像获取单元包括:Correspondingly, the sample image acquisition unit includes:
群体特征确定子单元,用于根据每一个拍摄对象的目标特征确定所述第一图像中所述多个拍摄对象的群体特征;A group feature determining subunit, configured to determine the group feature of the multiple shooting objects in the first image according to the target feature of each shooting object;
样本图像获取第二子单元,用于根据所述群体特征和所述场景特征获取至少一个样本图像。The second subunit for acquiring sample images is configured to acquire at least one sample image according to the group characteristics and the scene characteristics.
具体地,所述样本图像获取第二子单元,具体用于根据所述群体特征和所述场景特征,从预先存储的样本图像库中获取与所述群体特征和所述场景特征的匹配度大于第一阈值的至少一个样本图像。Specifically, the sample image acquisition second subunit is specifically configured to acquire from a pre-stored sample image library according to the group characteristic and the scene characteristic, and the degree of matching with the group characteristic and the scene characteristic is greater than At least one sample image of the first threshold.
可选地,所述拍照模块1404,包括:Optionally, the photographing module 1404 includes:
姿态调整确定单元,用于在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像。The posture adjustment determining unit is configured to take a picture of the subject to obtain a photographed image after it is determined that the subject is adjusted according to the posture image displayed in the second display area.
具体地,所述姿态调整确定单元包括:Specifically, the posture adjustment determining unit includes:
图像获取子单元,用于获取与所述第一显示区域对应的第二图像;An image acquisition subunit for acquiring a second image corresponding to the first display area;
拍照子单元,用于当所述第二图像与所述第二显示区域显示的姿态图像的匹配度大于第二阈值时,确定拍摄对象的姿态调整完成,并对所述拍摄对象进行拍照,得到拍照图像。The photographing subunit is used to determine that the posture adjustment of the photographing object is completed when the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, and to take a picture of the photographing object to obtain Take pictures.
在一种可能的实现方式中,所述拍照装置,还包括:In a possible implementation manner, the photographing device further includes:
提示模块,用于获取所述姿态图像对应的提示语音和/或提示文字,通过所述提示语音和/或所述提示文字提示所述拍摄对象进行姿态调整。The prompt module is used to obtain the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
可选地,所述拍照装置应用于移动终端,所述移动终端包括第一显示屏和第二显示屏,所述第一显示屏的显示区域为第一显示区域,所述第二显示屏的显示区域为第二显示区域,在拍照时,所述第一显示区域面向拍摄者,所述第二显示区域面向拍摄对象。Optionally, the photographing device is applied to a mobile terminal, the mobile terminal includes a first display screen and a second display screen, the display area of the first display screen is the first display area, and the second display screen The display area is a second display area. When taking a picture, the first display area faces the photographer, and the second display area faces the photographic object.
在一种可能的实现方式中,所述拍照装置应用于移动终端,所述移动终端包括显示屏,所述显示屏的显示区域为第一显示区域,所述第二显示区域为第一显示区域的部分显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。In a possible implementation manner, the photographing device is applied to a mobile terminal, the mobile terminal includes a display screen, a display area of the display screen is a first display area, and the second display area is a first display area When taking a photo, the first display area and the second display area face the photographer or the photographed subject.
可选地,所述拍照装置应用于移动终端,所述移动终端包括显示屏,所述第一显示区域和第二显示区域位于所述显示屏的不同显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。Optionally, the photographing device is applied to a mobile terminal. The mobile terminal includes a display screen. The first display area and the second display area are located in different display areas of the display screen. The display area and the second display area face the photographer or the subject.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units, Module completion, that is, divide the internal structure of the device into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Form realization can also be realized in the form of software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.
图15为本申请一实施例提供的移动终端的结构示意图。如图15所示,该实施例的移动终端15包括:至少一个处理器1500(图15中仅示出一个)、存储器1501以及存储在所述存储器1501中并可在所述至少一个处理器1500上运行的计算机程序1502,以及显示屏1503,所述显示屏1503 包括第一显示区域和第二显示区域,所述处理器1500执行所述计算机程序1502时,使得所述移动终端实现上述任意各个拍照方法实施例。FIG. 15 is a schematic structural diagram of a mobile terminal provided by an embodiment of this application. As shown in FIG. 15, the mobile terminal 15 of this embodiment includes: at least one processor 1500 (only one is shown in FIG. 15), a memory 1501, and stored in the memory 1501 and available in the at least one processor 1500 A computer program 1502 running on the computer, and a display screen 1503. The display screen 1503 includes a first display area and a second display area. When the processor 1500 executes the computer program 1502, the mobile terminal implements any of the above Examples of photographing methods.
本领域技术人员可以理解,图15仅仅是移动终端15的举例,并不构成对移动终端15的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。Those skilled in the art can understand that FIG. 15 is only an example of the mobile terminal 15 and does not constitute a limitation on the mobile terminal 15. It may include more or less components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, etc.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例的步骤。The embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it realizes the steps that can realize the above-mentioned method embodiments.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时可实现上述各个拍照方法实施例。The embodiments of the present application provide a computer program product. When the computer program product is run on a mobile terminal, the above-mentioned photographing method embodiments can be implemented when the mobile terminal is executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the implementation of all or part of the processes in the above-mentioned embodiment methods in the present application can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may at least include: any entity or device capable of carrying computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium. Such as U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, according to legislation and patent practices, computer-readable media cannot be electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the system embodiment described above is merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be Combined or can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (14)

  1. 一种拍照方法,其特征在于,包括:A photographing method, characterized in that it comprises:
    获取与第一显示区域对应的第一图像;Acquiring a first image corresponding to the first display area;
    识别所述第一图像中拍摄对象的目标特征和所述拍摄对象所在的场景的场景特征;Identifying the target feature of the shooting object in the first image and the scene feature of the scene where the shooting object is located;
    根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,并将所述姿态图像显示于第二显示区域,以提示所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整;Obtain the posture image to be recommended according to the target feature of the subject and the scene feature of the scene in which the subject is located, and display the posture image in the second display area to prompt the subject according to the second Adjust the posture image displayed in the display area;
    对所述拍摄对象进行拍照,得到拍照图像。Taking a picture of the subject to obtain a photographed image.
  2. 如权利要求1所述的拍照方法,其特征在于,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取待推荐的姿态图像,包括:The photographing method according to claim 1, wherein the acquiring the posture image to be recommended according to the target characteristics of the photographed object and the scene characteristic of the scene in which the photographed object is located comprises:
    根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像;Acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
    从所述样本图像中选取预设数量的目标样本图像,并将所选取的目标样本图像确定为待推荐的姿态图像。A preset number of target sample images are selected from the sample images, and the selected target sample images are determined as the pose images to be recommended.
  3. 如权利要求2所述的拍照方法,其特征在于,所述从所述样本图像中选取预设数量的目标样本图像,包括:3. The photographing method according to claim 2, wherein the selecting a preset number of target sample images from the sample images comprises:
    获取每一个样本图像的推荐值,选择推荐值高的前N个样本图像作为目标样本图像,N为大于或等于1的整数。Obtain the recommended value of each sample image, and select the first N sample images with high recommended value as the target sample image, where N is an integer greater than or equal to 1.
  4. 如权利要求2所述的拍照方法,其特征在于,当所述第一图像中存在一个拍摄对象时,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像,包括:The photographing method according to claim 2, wherein when there is a photographed subject in the first image, the acquisition of at least the characteristics of the scene in which the photographed subject is located is at least A sample image, including:
    根据所述拍摄对象的目标特征以及所述拍摄对象的所在的场景的场景特征确定所述第一图像所对应的拍摄类别;Determine the shooting category corresponding to the first image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located;
    获取所述拍摄类别所对应的至少一个样本图像。At least one sample image corresponding to the shooting category is acquired.
  5. 如权利要求2所述的拍照方法,其特征在于,当所述第一图像中存在多个拍摄对象时,所述识别所述第一图像中拍摄对象的目标特征,包括:3. The photographing method according to claim 2, wherein when there are multiple photographed objects in the first image, the identifying target features of the photographed objects in the first image comprises:
    识别所述第一图像中每一个拍摄对象的目标特征;Identifying the target feature of each shooting object in the first image;
    相应的,所述根据所述拍摄对象的目标特征以及所述拍摄对象所在的场景的场景特征获取至少一个样本图像,包括:Correspondingly, the acquiring at least one sample image according to the target feature of the shooting object and the scene feature of the scene where the shooting object is located includes:
    根据每一个拍摄对象的目标特征确定所述第一图像中所述多个拍摄对象的群体特征;Determining the group characteristics of the multiple photographing objects in the first image according to the target characteristic of each photographing object;
    根据所述群体特征和所述场景特征获取至少一个样本图像。At least one sample image is acquired according to the group characteristics and the scene characteristics.
  6. 如权利要求5所述的拍照方法,其特征在于,所述根据所述群体特征和所述场景特征获取至少一个样本图像,包括:The photographing method according to claim 5, wherein said acquiring at least one sample image according to said group characteristics and said scene characteristics comprises:
    根据所述群体特征和所述场景特征,从预先存储的样本图像库中获取与所述群体特征和所述场景特征的匹配度大于第一阈值的至少一个样本图像。According to the group feature and the scene feature, at least one sample image whose matching degree with the group feature and the scene feature is greater than a first threshold is acquired from a pre-stored sample image library.
  7. 如权利要求1所述的拍照方法,其特征在于,所述对所述拍摄对象进行拍照,得到拍照图像,包括:The photographing method according to claim 1, wherein the photographing the subject to obtain a photographed image comprises:
    在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像。After it is determined that the photographed object has adjusted its posture according to the posture image displayed in the second display area, the photographed object is photographed to obtain a photographed image.
  8. 如权利要求7所述的拍照方法,其特征在于,所述在确定所述拍摄对象根据所述第二显示区域显示的姿态图像进行姿态调整后,对所述拍摄对象进行拍照,得到拍照图像,包括:8. The photographing method according to claim 7, wherein after determining that the photographed object is adjusted according to the posture image displayed in the second display area, the photographed object is photographed to obtain the photographed image, include:
    获取与所述第一显示区域对应的第二图像;Acquiring a second image corresponding to the first display area;
    当所述第二图像与所述第二显示区域显示的姿态图像的匹配度大于第二阈值时,确定拍摄对象的姿态调整完成,并对所述拍摄对象进行拍照,得到拍照图像。When the degree of matching between the second image and the posture image displayed in the second display area is greater than a second threshold, it is determined that the posture adjustment of the shooting object is completed, and the shooting object is photographed to obtain a photographed image.
  9. 如权利要求1所述的拍照方法,其特征在于,在将所述姿态图像显示于第二显示区域之后,还包括:The photographing method according to claim 1, wherein after displaying the posture image in the second display area, the method further comprises:
    获取所述姿态图像对应的提示语音和/或提示文字,通过所述提示语音和/或所述提示文字提示所述拍摄对象进行姿态调整。Acquire the prompt voice and/or prompt text corresponding to the posture image, and prompt the photographic subject to adjust the posture through the prompt voice and/or the prompt text.
  10. 如权利要求1至9任一项所述的拍照方法,其特征在于,所述拍照方法应用于移动终端,所述移动终端包括第一显示屏和第二显示屏,所述第一显示屏的显示区域为第一显示区域,所述第二显示屏的显示区域为第二显示区域,在拍照时,所述第一显示区域面向拍摄者,所述第二显示区域面向拍摄对象。The photographing method according to any one of claims 1 to 9, wherein the photographing method is applied to a mobile terminal, and the mobile terminal includes a first display screen and a second display screen. The display area is a first display area, and the display area of the second display screen is a second display area. When taking a picture, the first display area faces the photographer, and the second display area faces the subject.
  11. 如权利要求1至9任一项所述的拍照方法,其特征在于,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述显示屏的显示区域为第一显示区域,所述第二显示区域为第一显示区域的部分显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。The photographing method according to any one of claims 1 to 9, wherein the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the display area of the display screen is the first display area. The second display area is a part of the display area of the first display area. When taking a picture, the first display area and the second display area face the photographer or the photographed subject.
  12. 如权利要求1至9任一项所述的拍照方法,其特征在于,所述拍照方法应用于移动终端,所述移动终端包括显示屏,所述第一显示区域和第二显示区域位于所述显示屏的不同显示区域,在拍照时,所述第一显示区域和所述第二显示区域面向拍摄者或者拍摄对象。The photographing method according to any one of claims 1 to 9, wherein the photographing method is applied to a mobile terminal, the mobile terminal includes a display screen, and the first display area and the second display area are located in the Different display areas of the display screen, when taking a picture, the first display area and the second display area face the photographer or the photographed object.
  13. 一种移动终端,包括显示屏、存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使得所述移动终端实现如权利要求1至12任一项所述的拍照方法。A mobile terminal includes a display screen, a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program so that all The mobile terminal implements the photographing method according to any one of claims 1 to 12.
  14. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至12任一项所述的拍照方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the photographing method according to any one of claims 1 to 12 when the computer program is executed by a processor.
PCT/CN2020/105144 2019-08-07 2020-07-28 Photographing method and mobile terminal WO2021023059A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910727319.7 2019-08-07
CN201910727319.7A CN112351185A (en) 2019-08-07 2019-08-07 Photographing method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2021023059A1 true WO2021023059A1 (en) 2021-02-11

Family

ID=74367294

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105144 WO2021023059A1 (en) 2019-08-07 2020-07-28 Photographing method and mobile terminal

Country Status (2)

Country Link
CN (1) CN112351185A (en)
WO (1) WO2021023059A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361513A (en) * 2021-06-07 2021-09-07 博奥生物集团有限公司 Mobile terminal tongue picture acquisition method, device and equipment
CN113595746A (en) * 2021-07-16 2021-11-02 广州市瀚云信息技术有限公司 Control method and device for power supply of shielding device
CN113780217A (en) * 2021-09-16 2021-12-10 中国平安人寿保险股份有限公司 Live broadcast auxiliary prompting method and device, computer equipment and storage medium
CN113824878A (en) * 2021-08-20 2021-12-21 荣耀终端有限公司 Shooting control method based on foldable screen and electronic equipment
CN113890994A (en) * 2021-09-30 2022-01-04 荣耀终端有限公司 Image capturing method, system, storage medium, and program product
CN114063864A (en) * 2021-11-29 2022-02-18 惠州Tcl移动通信有限公司 Image display method, image display device, electronic equipment and computer readable storage medium
WO2022226809A1 (en) * 2021-04-27 2022-11-03 深圳市大疆创新科技有限公司 Image capture method and apparatus, storage medium, and terminal device
WO2023192771A1 (en) * 2022-03-29 2023-10-05 Qualcomm Incorporated Recommendations for image capture

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194254A (en) * 2021-04-28 2021-07-30 上海商汤智能科技有限公司 Image shooting method and device, electronic equipment and storage medium
CN114466132B (en) * 2021-06-11 2024-06-14 荣耀终端有限公司 Photographing display method, electronic equipment and storage medium
CN113596306B (en) * 2021-07-27 2023-05-05 重庆电子工程职业学院 Shooting range prompting device of photographic equipment
CN113705401A (en) * 2021-08-18 2021-11-26 深圳传音控股股份有限公司 Image processing method, terminal device and storage medium
CN115022543A (en) * 2022-05-31 2022-09-06 Oppo广东移动通信有限公司 Photographing method, photographing device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891958A (en) * 2011-07-22 2013-01-23 北京华旗随身数码股份有限公司 Digital camera with posture guiding function
CN103220466A (en) * 2013-03-27 2013-07-24 华为终端有限公司 Method and device for outputting pictures
CN107018333A (en) * 2017-05-27 2017-08-04 北京小米移动软件有限公司 Shoot template and recommend method, device and capture apparatus
US20190174056A1 (en) * 2017-12-01 2019-06-06 Samsung Electronics Co., Ltd. Method and system for providing recommendation information related to photography

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8332429B2 (en) * 2010-06-22 2012-12-11 Xerox Corporation Photography assistant and method for assisting a user in photographing landmarks and scenes
CN107257439B (en) * 2017-07-26 2019-05-17 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN109964478A (en) * 2017-10-14 2019-07-02 华为技术有限公司 A kind of image pickup method and electronic device
CN107835364A (en) * 2017-10-30 2018-03-23 维沃移动通信有限公司 One kind is taken pictures householder method and mobile terminal
CN108184050B (en) * 2017-12-15 2020-04-24 维沃移动通信有限公司 Photographing method and mobile terminal
CN108347559A (en) * 2018-01-05 2018-07-31 深圳市金立通信设备有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN108924413B (en) * 2018-06-27 2021-01-08 维沃移动通信有限公司 Shooting method and mobile terminal
CN109547694A (en) * 2018-11-29 2019-03-29 维沃移动通信有限公司 A kind of image display method and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891958A (en) * 2011-07-22 2013-01-23 北京华旗随身数码股份有限公司 Digital camera with posture guiding function
CN103220466A (en) * 2013-03-27 2013-07-24 华为终端有限公司 Method and device for outputting pictures
CN107018333A (en) * 2017-05-27 2017-08-04 北京小米移动软件有限公司 Shoot template and recommend method, device and capture apparatus
US20190174056A1 (en) * 2017-12-01 2019-06-06 Samsung Electronics Co., Ltd. Method and system for providing recommendation information related to photography

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022226809A1 (en) * 2021-04-27 2022-11-03 深圳市大疆创新科技有限公司 Image capture method and apparatus, storage medium, and terminal device
CN113361513A (en) * 2021-06-07 2021-09-07 博奥生物集团有限公司 Mobile terminal tongue picture acquisition method, device and equipment
CN113595746A (en) * 2021-07-16 2021-11-02 广州市瀚云信息技术有限公司 Control method and device for power supply of shielding device
CN113595746B (en) * 2021-07-16 2023-07-11 广州市瀚云信息技术有限公司 Control method and device for power supply of shielding device
CN113824878A (en) * 2021-08-20 2021-12-21 荣耀终端有限公司 Shooting control method based on foldable screen and electronic equipment
CN113780217A (en) * 2021-09-16 2021-12-10 中国平安人寿保险股份有限公司 Live broadcast auxiliary prompting method and device, computer equipment and storage medium
CN113890994A (en) * 2021-09-30 2022-01-04 荣耀终端有限公司 Image capturing method, system, storage medium, and program product
CN114063864A (en) * 2021-11-29 2022-02-18 惠州Tcl移动通信有限公司 Image display method, image display device, electronic equipment and computer readable storage medium
WO2023192771A1 (en) * 2022-03-29 2023-10-05 Qualcomm Incorporated Recommendations for image capture
US11871104B2 (en) 2022-03-29 2024-01-09 Qualcomm Incorporated Recommendations for image capture

Also Published As

Publication number Publication date
CN112351185A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
WO2021023059A1 (en) Photographing method and mobile terminal
WO2021135601A1 (en) Auxiliary photographing method and apparatus, terminal device, and storage medium
CN108234891B (en) A kind of photographic method and mobile terminal
WO2019134516A1 (en) Method and device for generating panoramic image, storage medium, and electronic apparatus
WO2019128508A1 (en) Method and apparatus for processing image, storage medium, and electronic device
CN109547694A (en) A kind of image display method and terminal device
CN107995429A (en) A kind of image pickup method and mobile terminal
CN109194879A (en) Photographic method, device, storage medium and mobile terminal
CN110865754B (en) Information display method and device and terminal
CN109361865A (en) A kind of image pickup method and terminal
CN111726536A (en) Video generation method and device, storage medium and computer equipment
CN108712603B (en) Image processing method and mobile terminal
WO2022227393A1 (en) Image photographing method and apparatus, electronic device, and computer readable storage medium
CN107592459A (en) A kind of photographic method and mobile terminal
EP2092461A1 (en) User interface for face recognition
CN111491187B (en) Video recommendation method, device, equipment and storage medium
CN109413326A (en) Camera control method and Related product
WO2021179830A1 (en) Image composition guidance method and apparatus, and electronic device
CN112036331A (en) Training method, device and equipment of living body detection model and storage medium
CN107835359A (en) Triggering method of taking pictures, mobile terminal and the storage device of a kind of mobile terminal
CN111159449B (en) Image display method and electronic equipment
CN108462826A (en) A kind of method and mobile terminal of auxiliary photo-taking
CN109495616A (en) A kind of photographic method and terminal device
CN109246351A (en) A kind of patterning process and terminal device
CN110086998B (en) Shooting method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20849475

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20849475

Country of ref document: EP

Kind code of ref document: A1