Photo recommendation method, device, electronic device and storage medium

The electronic device identifies the scene and provides shooting posture guidance, and uses the skeleton diagram to adjust the shooting method, which solves the problem of users having difficulty taking classic photos and achieves a fast and efficient shooting process.

CN114697539BActive Publication Date: 2024-10-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011636732.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-10-15
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

Without the guidance of a professional photographer, it is difficult for users to take classic photos. They need to be familiar with the photo poses and have high requirements on the photographer, which results in long shooting times and poor results.

Method used

Acquire images through electronic devices, identify scenes and recommend photographing postures, use skeleton diagrams to guide users to adjust shooting methods and equipment positions, and automatically complete shooting when the matching degree reaches the threshold.

Benefits of technology

It reduces the time users spend taking pictures and improves the shooting experience and photo quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114697539B_ABST
    Figure CN114697539B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, electronic device and storage medium for recommending taking photos, the method comprising: obtaining a first image through an imaging device; receiving and presenting at least one recommended photo picture determined based on the first image; determining a target recommended photo picture in at least one recommended photo picture according to the received selection instruction; obtaining a skeleton diagram of a reference object in the target recommended photo picture; and superimposing and displaying the skeleton diagram of the reference object on a preview image, so that the user can adjust the photo pose, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton diagram of the reference object. In the above manner, the embodiment of the present invention can recommend a photo pose to the user according to the current scene and guide the user to take photos, thereby reducing the time the user spends on taking photos.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of electronic devices, and in particular to a method and device for recommending taking a photo, an electronic device, and a storage medium. Background Art

[0002] Taking photos is one of the major functions of smartphones, and users all hope to take classic photos based on the scene at the time. For example, when users visit a famous building, they hope to take a photo of touching the top of the building or placing the building on their palm; when users watch the sunset, they hope to take a photo of kissing the sunset; when a large group of people gather together, they hope to take creative group photos, and so on.

[0003] However, it is not easy to take classic photos without the guidance of a professional photographer. Firstly, the subject needs to be familiar with the photo poses. Secondly, the requirements for the photographer are also high. The photographer needs to place the phone in the correct position and angle and guide the subject to move the body to form a specific pose. Therefore, in reality, it is often necessary to take multiple photos to take a satisfactory photo, and it is possible that a satisfactory photo still cannot be taken. Summary of the invention

[0004] The main technical problem solved by the embodiments of the present invention is to provide a photo recommendation method, device, electronic device and storage medium, which can recommend photo poses to users according to the current scene and guide users to take photos, thereby reducing the time users spend on taking photos.

[0005] To achieve the above-mentioned purpose, a technical solution adopted by an embodiment of the present invention is as follows: In a first aspect, a photo recommendation method is provided, which is applied to an electronic device, wherein the electronic device includes an imaging device, and the method includes:

[0006] Acquire a first image by the imaging device;

[0007] Receiving and presenting at least one recommended picture for taking photos determined based on the first image;

[0008] Determining a target recommended picture among the at least one recommended picture for taking photos according to the received selection instruction;

[0009] Obtaining a skeleton image of a reference object in the target recommended image;

[0010] The skeleton diagram of the reference object is superimposed and displayed on the preview image, so that the user can adjust the shooting posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton diagram of the reference object.

[0011] Optionally, after acquiring the first image, the method further includes:

[0012] The shooting information of the first image is acquired, where the shooting information of the first image includes at least one of the following: tag information, location information, time information, and person information.

[0013] Optionally, the method further comprises:

[0014] identifying a scene corresponding to the first image according to the first image and / or shooting information of the first image;

[0015] The scene corresponding to the first image and the shooting information of the first image are sent to the server, so that the server can determine the at least one recommended picture according to the scene corresponding to the first image and the shooting information of the first image.

[0016] In one embodiment, the method further comprises:

[0017] The first image and the shooting information of the first image are sent to a server, so that the server determines the at least one recommended picture for taking photos according to the first image and / or the shooting information of the first image.

[0018] Optionally, the scene corresponding to the first image is a combination of one or more of cultural attractions, natural scenery, specific clothing and a group of people.

[0019] Optionally, the target recommended image includes location information, and the method further includes:

[0020] Obtaining location information of the target recommended image;

[0021] Determining whether the current location of the electronic device matches the positioning information;

[0022] If there is no match, a moving path for guiding the user to the place indicated by the positioning information is displayed.

[0023] In some embodiments, after displaying the skeleton image of the reference object on the preview image, the method further includes:

[0024] If the matching degree between the preview image and the skeleton image of the reference object exceeds a preset matching threshold, the preview image is automatically photographed.

[0025] In some embodiments, obtaining a skeleton image of a reference object in the target recommended image includes:

[0026] Extracting a skeleton diagram of a reference human body in the target recommended image;

[0027] Acquire a second image, where the second image contains a target user;

[0028] extracting a specific skeleton graph of the target user in the second image;

[0029] Fusion of the reference human skeleton graph with the target user's specific skeleton graph to generate the target user's specific posture skeleton graph;

[0030] Then, the step of superimposing and displaying the skeleton image of the reference object on the preview image includes:

[0031] The specific posture skeleton diagram of the target user is superimposed and displayed on the preview image.

[0032] Optionally, after superimposing and displaying the specific posture skeleton diagram of the target user on the preview image, the method further includes:

[0033] Extracting a skeleton image of the target user on the preview image;

[0034] If the matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture reaches a first matching threshold, the preview image is automatically photographed.

[0035] Optionally, before automatically shooting the preview image, the method further includes:

[0036] The shooting mode of the imaging device is automatically adjusted and / or an adjustment instruction is displayed according to the skeleton diagram of the target user and the skeleton diagram of the specific posture, wherein the shooting mode includes shooting posture and shooting parameters.

[0037] In some embodiments, obtaining a skeleton image of a reference object in the target recommended image further includes:

[0038] Extracting a skeleton image of a reference object in the target recommended image;

[0039] Then, the step of superimposing and displaying the skeleton image of the reference object on the preview image includes:

[0040] The specific posture skeleton diagram of the target user and the skeleton diagram of the reference object are superimposed and displayed on the preview image.

[0041] Optionally, after the specific posture skeleton diagram of the target user and the skeleton diagram of the reference object are superimposed and displayed on the preview image, the method further includes:

[0042] Extracting skeleton images of the target user and the target object on the preview image, wherein the target object corresponds to the reference object;

[0043] If the first matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture, and the second matching degree between the skeleton diagram of the target object and the skeleton diagram of the reference object meet the preset conditions, the preview image is automatically photographed.

[0044] In one embodiment, the preset conditions include:

[0045] The sum of the first matching degree and the second matching degree reaches a second matching threshold;

[0046] Alternatively, one of the first matching degree and the second matching degree reaches a third matching threshold, and the other of the first matching degree and the second matching degree reaches a fourth matching threshold.

[0047] In some embodiments, before automatically photographing the preview image, the method further includes:

[0048] The shooting mode of the imaging device is automatically adjusted and / or an adjustment instruction is displayed according to the skeleton diagram of the target object and the skeleton diagram of the reference object, wherein the shooting mode includes shooting posture and shooting parameters.

[0049] In a second aspect, a photo recommendation device is provided, which is applied to an electronic device, wherein the electronic device includes an imaging device, and the device includes:

[0050] An image acquisition module, configured to acquire a first image through the imaging device;

[0051] A picture presentation module, configured to receive and present at least one recommended picture determined based on the first image;

[0052] A picture determination module, configured to determine a target recommended picture among the at least one recommended picture for taking photos according to the received selection instruction;

[0053] A skeleton image acquisition module, used to acquire a skeleton image of a reference object in the target recommended image;

[0054] The overlay display module is used to overlay and display the skeleton diagram of the reference object on the preview image, so that the user can adjust the shooting posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton diagram of the reference object.

[0055] Optionally, the device further comprises:

[0056] The information acquisition module is used to acquire the shooting information of the first image, where the shooting information of the first image includes at least one of the following: tag information, location information, time information and person information.

[0057] Optionally, the device further comprises:

[0058] A scene recognition module is used to identify the scene corresponding to the first image based on the first image and / or the shooting information of the first image, and send the scene corresponding to the first image and the shooting information of the first image to the server, so that the server can determine at least one recommended picture based on the scene corresponding to the first image and the shooting information of the first image.

[0059] In one embodiment, the device further comprises:

[0060] An information sending module is used to send the first image and the shooting information of the first image to a server, so that the server can identify the scene corresponding to the first image according to the first image and / or the shooting information of the first image, and determine the at least one recommended picture according to the scene corresponding to the first image and the shooting information of the first image.

[0061] Optionally, the scene corresponding to the first image is a combination of one or more of cultural attractions, natural scenery, specific clothing and a group of people.

[0062] Optionally, the target recommended picture includes positioning information, and the device further includes:

[0063] The positioning acquisition module is used to obtain the positioning information of the target recommended image.

[0064] The position determination module is used to determine whether the current position of the electronic device matches the positioning information.

[0065] The path display module is used to display a moving path for guiding the user to the place indicated by the positioning information.

[0066] In some embodiments, the skeleton image acquisition module is used to extract the skeleton image of the reference object human body in the target recommended image;

[0067] The image acquisition module is further used to acquire a second image, wherein the second image contains the target user.

[0068] The skeleton image acquisition module is further used to extract a specific skeleton image of the target user in the second image.

[0069] The device further comprises: an image fusion module, which is used to fuse the skeleton image of the reference human body with the specific skeleton image of the target user to generate a specific posture skeleton image of the target user.

[0070] The overlay display module is specifically used to overlay and display the specific posture skeleton diagram of the target user on the preview image.

[0071] Optionally, the skeleton image acquisition module is further used to extract the skeleton image of the target user on the preview image; the device also includes:

[0072] The automatic shooting module is used to automatically shoot the preview image if the matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture reaches a first matching threshold.

[0073] Optionally, the device further comprises:

[0074] The automatic adjustment module is used to automatically adjust the shooting mode of the imaging device and / or display adjustment instructions according to the skeleton diagram of the target user and the skeleton diagram of the specific posture before automatically shooting the preview image.

[0075] In some embodiments, the skeleton image acquisition module is further used to extract the skeleton image of the reference object in the target recommended image;

[0076] The overlay display module is specifically used to overlay and display the specific posture skeleton diagram of the target user and the skeleton diagram of the reference object on the preview image.

[0077] Optionally, the skeleton image acquisition module is further used to extract skeleton images of the target user and the target object on the preview image, and the target object corresponds to the reference object; the device further includes:

[0078] The automatic shooting module is used to automatically shoot the preview image if the first matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture, and the second matching degree between the skeleton diagram of the target object and the skeleton diagram of the reference object meet the preset conditions.

[0079] In one embodiment, the preset conditions include:

[0080] The sum of the first matching degree and the second matching degree reaches a second matching threshold;

[0081] Alternatively, one of the first matching degree and the second matching degree reaches a third matching threshold, and the other of the first matching degree and the second matching degree reaches a fourth matching threshold.

[0082] Optionally, the device further comprises:

[0083] The automatic adjustment module is used to automatically adjust the shooting mode of the imaging device and / or display adjustment instructions according to the skeleton diagram of the target object and the skeleton diagram of the reference object before automatically shooting the preview image. The shooting mode includes shooting posture and shooting parameters.

[0084] According to a third aspect, an electronic device is provided, including:

[0085] at least one processor; and

[0086] A memory connected to the at least one processor; wherein,

[0087] The memory stores an instruction program that can be executed by the at least one processor. The instruction program is executed by the at least one processor to enable the at least one processor to perform the method described above.

[0088] According to a fourth aspect, a non-volatile computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the method as described above.

[0089] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions, which are used to be executed by an electronic device to implement the method as described above.

[0090] The beneficial effect of the embodiments of the present invention is as follows: different from the prior art, after acquiring the first image, the embodiments of the present invention can receive and present at least one recommended photo picture determined based on the first image, and determine a target recommended picture in at least one recommended photo picture according to the received selection instruction, and by acquiring a skeleton diagram of a reference object in the target recommended picture, and superimposing and displaying the skeleton diagram of the reference object on the preview image, the user can adjust the photo posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton diagram of the reference object, thereby reducing the time the user spends on taking photos and improving the user's photo experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0092] Figure 1 This is a schematic diagram of an application scenario involved in the prior art Figure 1 ;

[0093] Figure 2 This is a schematic diagram of an application scenario involved in the prior art Figure 2 ;

[0094] Figure 3 This is a schematic diagram of an application scenario involved in an embodiment of the present invention. Figure 1 ;

[0095] Figure 4 This is a schematic diagram of an application scenario involved in an embodiment of the present invention. Figure 2 ;

[0096] Figure 5 It is a schematic diagram of a logical architecture provided by an embodiment of the present invention;

[0097] Figure 6 This is an image example of a cultural attraction corresponding to a scene provided by an embodiment of the present invention;

[0098] Figure 7 This is an example of an image of a natural scenery corresponding to a scene provided by an embodiment of the present invention;

[0099] Figure 8 This is an example of an image in which the corresponding scene is a specific dress provided by an embodiment of the present invention;

[0100] Fig. 9 This is an example of an image in which the corresponding scene provided by an embodiment of the present invention is a combination of multiple people;

[0101] Fig.10 The corresponding scene provided by the embodiment of the present invention is an image example of a cultural attraction and a group of people;

[0102] Fig.11 The corresponding scenes provided by the embodiment of the present invention are examples of images of natural scenery and a group of people;

[0103] Fig.12 is another logical architecture schematic diagram provided by an embodiment of the present invention;

[0104] Fig.13 is a schematic diagram of generating a specific posture skeleton diagram of a target user provided by an embodiment of the present invention;

[0105] Fig.14 is a schematic diagram of displaying adjustment instructions on an electronic device provided by an embodiment of the present invention;

[0106] Fig.15 is a flow chart of a photo recommendation method provided by an embodiment of the present invention;

[0107] Fig.16 The skeleton diagram of the reference human body and the reference object in the extraction target recommendation picture provided by the embodiment of the present invention;

[0108] Fig.17 is a flow chart of another photo recommendation method provided by an embodiment of the present invention;

[0109] Fig.18 is a schematic diagram of guiding a user to a location indicated by positioning information provided by an embodiment of the present invention;

[0110] Fig.19 is a partial flow chart of another photo recommendation method provided by an embodiment of the present invention;

[0111] Fig. 20 is a schematic diagram of a photo recommendation device provided by an embodiment of the present invention;

[0112] Fig.21 is a schematic diagram of another photo recommendation device provided by an embodiment of the present invention;

[0113] Fig. 22 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0114] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0115] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those generally understood by technicians in the technical field of the present invention. It should be noted that although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from that here; the words "first" and "second" used in this article do not limit the data and execution order, but only distinguish the same or similar items with basically the same functions and effects; the term "and / or" used in this specification includes any and all combinations of one or more related listed items.

[0116] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0117] First see Figure 1 and Figure 2 , Figure 1 and Figure 2 is a schematic diagram of an application scenario involved in the prior art, in which people take photos at tourist attractions as souvenirs and choose popular poses related to the place to take photos, for example, Figure 1 In (a), the subject is pushing the Leaning Tower of Pisa; Figure 1 In (b), the subject touches the top of the Taj Mahal; Figure 1 In (c), the subjects imitate the Titanic pose together.

[0118] However, in practice, it is difficult for ordinary users to take satisfactory photos due to the following reasons (but not limited to): a) the distance between the imaging device and the subject may be inappropriate; b) the photographer may not be able to correctly guide the posture; c) the imaging device may be tilted or at a wrong angle; d) the current position may not provide a good field of view; e) the user may lack creativity to come up with different postures. Figure 2 shows some examples of bad posture photos taken in Figure 2 In (a), the subject is too far away from the imaging device; Figure 2 In (b), due to poor guidance, the subject’s hand did not touch the top of the Taj Mahal; Figure 2 In (c), the imaging device is tilted at a certain angle.

[0119] For single travelers, it is even more difficult to take photos of classic poses. When using countdown shooting, multiple adjustments are required between the shooting point of the imaging device and one's own standing point. The above problems also exist when strangers are needed to take photos or selfies are taken. Strangers may not be able to understand the shooting intentions of the person being photographed.

[0120] Therefore, an embodiment of the present invention provides a photo recommendation method, which can guide users to take satisfactory photos by identifying the current scene and recommending the photo posture associated with it, and then superimposing the photo posture in the reference photo on the preview image.

[0121] See also Figure 3 and Figure 4 , Figure 3 and Figure 4 It is a schematic diagram of an application scenario involved in an embodiment of the present invention, in which an electronic device (eg, a smart phone, a tablet computer, a medical device, etc.) is communicatively connected with a server.

[0122] The electronic device here is a device with camera function and communication function, including an imaging device, a processor, a memory, an input device and an output device. Furthermore, embedded computing, control technology, artificial intelligence technology and biometric authentication technology can be integrated to realize functions such as calling, taking pictures, listening to music, playing games, information processing, fingerprint scanning, and environmental detection; wherein the imaging device is fixed or restricted to a specific position or place of the electronic device, the imaging device can remain stationary at the specific position or place or move within a limited range, and the imaging device can be disassembled or not after being fixed or restricted to the specific position or place.

[0123] The server here can be a physical server or a logical server virtualized from multiple physical servers, or a server group consisting of multiple servers that can communicate with each other, and each functional module can be distributed on each server in the server group.

[0124] The electronic device obtains a first image and sends the first image to a server. After receiving the first image, the server inputs the first image into a pre-trained scene recognition model to determine the scene of the first image, and then recommends a recommended photo picture suitable for the scene of the first image from a picture recommendation database to the electronic device based on the scene of the first image. After the electronic device receives and presents the recommended photo picture in a preset manner, the user can select a recommended photo picture according to personal preference, and the electronic device feeds back the recommended photo picture selected by the user to the server based on the user's selection instruction.

[0125] Furthermore, the server can also input the recommended photo picture selected by the user into a pre-trained skeleton extraction model to extract a skeleton map of a reference object in the recommended photo picture, wherein the skeleton map of the reference object includes a main structure map and a contour edge map of the reference object, and the extracted reference object can be a reference human body, or a reference object and a reference human body; the electronic device superimposes the received skeleton map of the reference object on the preview image, so that the user can adjust the photo posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton map of the reference object.

[0126] Figure 5 A schematic diagram of a logical architecture provided by an embodiment of the present invention is shown, wherein the dotted line represents offline processing and the solid line represents online processing. The data acquisition module of the server 200 is used to obtain a large number of initial images from the network platform through a web crawler or other technical means, and the screened initial images are marked to obtain training samples; the training samples are input into the model to be trained, and the model to be trained is trained using a set machine learning algorithm to obtain a corresponding model; in particular, after the scene recognition model is obtained, the screened high-quality images can be input into the scene recognition model to determine the scene corresponding to each high-quality image.

[0127] Among them, high-quality pictures can be obtained by retrieving popular photos taken by professional photographers, or captured from social media according to their popularity, or determined according to other criteria; scenes can be divided into one or more combinations of cultural attractions, natural scenery, specific clothing and multi-person groups. Figure 6-Figure 11 The images corresponding to the scenes are respectively shown as "human attractions", "natural scenery", "specific clothing", "multi-person group", "human attractions and multi-person group", and "natural scenery and multi-person group".

[0128] In one implementation, each picture in the picture recommendation database can record the following information: a) label information related to its corresponding scene, for example, Taj Mahal, beach, road, lawn, sunglasses, etc.; b) location information (longitude and latitude) and time information when the picture was taken; c) settings of the imaging device used to take the picture, including but not limited to aperture parameters, shutter parameters, ISO value, zoom level; d) the image of the main character in the picture, for example, gender, number of people, etc.

[0129] It is understandable that the above-mentioned scene recognition model and / or skeleton extraction model can also be integrated into the electronic device in the form of software and / or hardware.

[0130] Fig.12 Another logical architecture diagram provided by an embodiment of the present invention is shown. Figure 5 The difference is that the server 200 is also integrated with an image fusion model and an image matching algorithm in the form of software and / or hardware.

[0131] The image fusion model is used to fuse the skeleton image of the reference human body and the skeleton image of the user to be photographed, i.e., the target user, to generate a skeleton image of the target user in a specific posture. Fig.13 As shown, (a) is an example of superimposing a skeleton diagram of a reference object in a photo recommendation picture, where the reference object includes a reference object and a reference human body, and (b) is an example of superimposing a skeleton diagram of a reference object and a specific posture skeleton diagram of a target user. It can be seen from the figure that the skeleton diagram of the reference object remains unchanged, while the generated specific posture skeleton diagram of the target user combines the personalized body contour of the target user and the posture skeleton of the reference human body in the photo recommendation picture, which can better guide the target user to adjust the photo posture.

[0132] The image matching algorithm calculates the matching degree between the preview image and the skeleton diagram of the reference object displayed in a superimposed manner, and if the matching degree reaches a matching threshold, sends a shooting instruction to the electronic device 100 to automatically control the electronic device to shoot; or the image matching algorithm can calculate the deviation between the preview image and the skeleton diagram of the reference object displayed in a superimposed manner, and sends an adjustment instruction to the electronic device 100 according to the output deviation, so that the electronic device automatically adjusts according to the adjustment instruction, or displays the adjustment instruction; Fig.14 An example of displaying an adjustment instruction on an electronic device is shown.

[0133] Among them, the image matching algorithm can adopt the existing feature-based matching algorithm: first extract the features of the image, then generate feature descriptors, and finally match the features of the two images according to the similarity of the descriptors.

[0134] In another embodiment, in order to improve the matching accuracy, the preview image can be first input into the skeleton extraction model to extract the skeleton map of the target object, and the matching degree is calculated based on the skeleton map of the target object in the preview image and the skeleton map of the superimposed reference object, or the deviation between the two is calculated.

[0135] Likewise, the above-mentioned image fusion model and / or image matching algorithm may also be integrated into the electronic device in the form of software and / or hardware.

[0136] Based on the above description, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0137] Example 1

[0138] See also Fig.15 , Fig.15 A flowchart of a method for recommending photographing provided by an embodiment of the present invention is provided. The method is applied to an electronic device, wherein the electronic device includes an imaging device. The method includes:

[0139] Step 110: Acquire a first image through an imaging device.

[0140] The first image here may be an image taken by the user himself, or may be an image automatically acquired by the imaging device when the user turns on the “recommended photo” function.

[0141] Step 120: Acquire shooting information of the first image.

[0142] It should be understood that the shooting information of the first image may be relevant information automatically acquired by the electronic device or may be relevant information manually input by the user. Optionally, the shooting information of the first image includes at least one of the following: tag information, location information, time information and person information.

[0143] For example, after acquiring the first image, the electronic device acquires the location information of the first image according to the GPS, acquires the time information of the first image according to its system time, and acquires the character information in the first image, such as the number of faces contained in the image and the corresponding genders, according to image recognition technology; a text box may be provided for user input, or common labels such as "beach", "lawn", and "mountaintop" may be provided for user selection, and the information entered by the user or the selected label may be used as the label information of the first image.

[0144] Step 130: Identify the scene corresponding to the first image according to the first image and / or the shooting information of the first image, and send the scene corresponding to the first image and the shooting information of the first image to the server.

[0145] In this embodiment, a scene recognition model is stored in the electronic device. The first image and / or the shooting information of the first image is input into the scene recognition model, and the scene corresponding to the first image can be output, wherein the scene corresponding to the first image is a combination of one or more of cultural attractions, natural scenery, specific clothing and a combination of multiple people.

[0146] After determining the scene corresponding to the first image, the scene corresponding to the first image and the shooting information of the first image are sent to the server, so that the server can determine at least one recommended picture for taking pictures based on the scene corresponding to the first image and the shooting information of the first image; for example, the server first determines the sub-library in the picture recommendation database based on the scene corresponding to the first image, and then determines the search ranking in the sub-library based on the correlation between the shooting information of the first image and the record information of each picture in the sub-library, as well as the popularity of each picture and other factors, and the preset pictures ranked at the top are determined as the recommended pictures for taking pictures.

[0147] In another embodiment, in order to reduce the load of the electronic device, the scene recognition model is stored in the server. After obtaining the first image and the shooting information of the first image, the electronic device sends the first image and the shooting information of the first image to the server, so that the server can determine at least one recommended picture for taking pictures based on the first image and the shooting information of the first image.

[0148] It is understandable that the step of obtaining the shooting information of the first image is not necessary. The scene recognition model can directly identify the scene corresponding to the first image based on the first image, and subsequently in the sub-library in the picture recommendation database, the search ranking can also be directly determined based on the popularity of each picture, and / or the comprehensive score of aesthetic factors such as picture quality and composition.

[0149] Step 140: Receive and present at least one recommended picture determined based on the first image.

[0150] After the server sends the top-ranked recommended pictures to the electronic device according to the ranking of the search results, the electronic device presents the received recommended pictures in a set presentation mode. In actual applications, the number of recommended pictures presented on the display interface of the electronic device is limited. Figure 3 After the recommended pictures are displayed, the user can also request the server to send more recommended pictures by "changing a batch", swiping right, or other similar operations.

[0151] Step 150: Determine a target recommended picture among at least one recommended picture for taking photos according to the received selection instruction.

[0152] Step 160: Extract a skeleton image of the reference object in the target recommended image.

[0153] The skeleton diagram involved in this embodiment is the main structure and contour edge of the object. In another implementation, the skeleton diagram may also be a contour edge diagram of the object. Wherein, the reference object may be a reference human body, or a reference human body and a reference object. The skeleton diagram of the reference object extracted by the skeleton extraction model is a skeleton diagram of the reference human body, or a skeleton diagram including the reference human body and the reference object. Fig.16 As shown, Fig.16 The skeleton diagram of the reference human body and the reference object in the target recommendation image is shown.

[0154] In another embodiment, similarly, in order to reduce the load of the electronic device, the skeleton extraction model is stored in the server. After determining the target recommended picture selected by the user, the electronic device sends the target recommended picture to the server, and receives the skeleton image of the reference object in the target recommended picture returned by the server.

[0155] Step 170: Overlay and display the skeleton image of the reference object on the preview image.

[0156] The preview image is the image currently displayed on the shooting interface. The user can adjust the shooting posture, the shooting mode of the imaging device and / or the mobile electronic device according to the skeleton diagram of the reference object displayed on the preview image.

[0157] Exemplarily, when the skeleton diagram of the reference object is a skeleton diagram of a reference human body, the user can guide the user to be photographed to adjust his or her photo-taking posture (including his or her standing point) based on the skeleton diagram of the reference human body and the posture of the user to be photographed; the shooting mode of the imaging device can be adjusted, or the electronic device can be moved forward, backward, left, or right, based on the position and size of the skeleton diagram of the reference human body and the position and size of the user to be photographed on the preview image.

[0158] Among them, the shooting mode of the imaging device may include shooting posture and shooting parameters. For example, the electronic device may include a driving device for driving the imaging device, and the user can drive the imaging device to complete adjustments such as yaw, pitch, and roll by operating the driving device to adjust the shooting posture of the imaging device; or, the electronic device can be connected to an external driving device (such as a handheld gimbal), and the user can drive the electronic device to complete adjustments such as yaw, pitch, and roll by operating the external driving device to adjust the shooting posture of the imaging device.

[0159] The shooting parameters include the focal length and viewing angle of the imaging device. For example, the focal length of the imaging device is adjusted according to the size of the user to be photographed in the preview image and the size of the reference human skeleton image; the viewing angle of the imaging device is adjusted according to the position of the user to be photographed in the preview image and the position of the reference human skeleton image.

[0160] Exemplarily, when the skeleton diagram of the reference object is a skeleton diagram of a reference human body and a reference object, the user can not only guide the user to be photographed to adjust his or her photographing posture according to the skeleton diagram of the reference human body and the posture of the user to be photographed, but can also further adjust the shooting mode of the imaging device, or move the electronic device forward, backward, left or right according to the position and skeleton diagram of the reference object and the position and skeleton diagram of the target object.

[0161] In one embodiment, the method further comprises:

[0162] Step 180: If the matching degree between the preview image and the skeleton image of the reference object exceeds a preset matching threshold, the preview image is automatically photographed.

[0163] The electronic device also stores an image matching algorithm. During the shooting process, the electronic device continuously detects the matching degree between the preview image and the skeleton diagram of the reference object at a set frequency. If the matching degree between the preview image and the skeleton diagram of the reference object exceeds a preset matching threshold, the preview image is automatically photographed to capture a better image without the need for manual operation by the user.

[0164] It is understandable that the image matching algorithm can also be stored in the server, and the electronic device sends the preview image to the server at a certain frequency so that the server can detect the matching degree between the preview image and the skeleton diagram of the reference object, and automatically shoot the preview image after receiving the shooting instruction sent by the server.

[0165] After identifying the scene corresponding to the first image, this embodiment sends the scene corresponding to the first image and the shooting information of the first image to the server, so that the server can determine the recommended picture for taking pictures to recommend to the user based on the scene corresponding to the first image and the shooting information of the first image; the skeleton diagram of the reference object in the target recommended picture can also be extracted, and the skeleton diagram of the reference object can be superimposed on the preview image to enable the user to adjust the shooting posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton diagram of the reference object, thereby reducing the time spent by the user on taking pictures.

[0166] Example 2

[0167] See also Fig.17 , Fig.17 A flowchart of another photo recommendation method provided by an embodiment of the present invention, the method is applied to an electronic device, and the method includes:

[0168] Step 210: Acquire a first image through an imaging device.

[0169] Step 220: Acquire shooting information of the first image.

[0170] Step 230: Identify the scene corresponding to the first image according to the first image and / or the shooting information of the first image, and send the scene corresponding to the first image and the shooting information of the first image to the server.

[0171] Step 240: Receive and present at least one recommended picture determined based on the first image.

[0172] The above steps 210 to 240 may refer to Example 1, and will not be described again here to avoid redundancy.

[0173] Step 250: Determine a target recommended picture in at least one recommended picture for taking photos according to the received selection instruction, where the target recommended picture includes positioning information.

[0174] In this embodiment, when the scene corresponding to the first image includes a cultural attraction or a natural scenery, the obtained target recommended picture may further include positioning information, that is, the shooting point when the target recommended picture was shot.

[0175] Step 251: Obtain the location information of the target recommended image.

[0176] Step 252: Determine whether the current position of the electronic device matches the positioning information.

[0177] By determining whether the current position of the electronic device matches the positioning information, it can be determined whether the current position of the electronic device is a better shooting point. Determining whether the current position of the electronic device matches the positioning information is to determine whether the current position of the electronic device is within the preset range of the positioning information. If so, it is determined that the current position of the electronic device matches the positioning information and step 260 is executed. If not, step 253 is executed.

[0178] Step 253: Display a moving path for guiding the user to the location indicated by the positioning information.

[0179] Similarly, the location indicated by the positioning information is any location within the preset range of the positioning information. In specific implementation, the electronic device can call its navigation map and display the moving path on the navigation map, or the electronic device can generate the moving path according to its current position and positioning information.

[0180] like Fig.18 As shown, Fig.18 In order to guide the user to the location indicated by the positioning information, a moving path is displayed on the navigation map of the electronic device. The navigation map can be displayed semi-transparently on the preview image in the form of a floating frame, or can be displayed side by side with the preview image.

[0181] Step 260: extracting a skeleton image of a reference human body in the target recommended image.

[0182] Step 270: Acquire a second image, where the second image contains the target user.

[0183] Similarly, the second image here can be an image taken by the user himself, or an image automatically acquired when the imaging device detects a user to be photographed, that is, a target user. It should be noted that when the first image acquired already contains the target user, the second image and the first image can be the same image.

[0184] Exemplarily, the user has taken a first image containing the target user at a preferred shooting point. After the user selects the target recommended image, the first image can be used as the second image and step 271 is directly executed.

[0185] It should also be noted that there is no obvious order between step 260 and step 270 , and step 270 may be performed first and then step 260 , or step 260 and step 270 may be performed simultaneously.

[0186] Step 271: extracting a specific skeleton image of the target user in the second image.

[0187] The specific skeleton graph involved in this embodiment is the main structure and contour edge of the target user. For target users with different body shapes, the specific skeleton graph extracted by the skeleton extraction model is also different. It can be seen that the specific skeleton graph is a skeleton graph with a high matching degree tailored to the body shape of the target user.

[0188] In other embodiments where the skeleton extraction model is stored in a server, after acquiring the second image, the electronic device sends the second image to the server so that the server extracts a specific skeleton diagram of the target user.

[0189] Step 280: Fusing the skeleton graph of the reference human body with the specific skeleton graph of the target user to generate a specific posture skeleton graph of the target user.

[0190] In the target recommended image, the reference human body is presented in a certain photo pose, and the extracted skeleton image of the reference human body also reflects the photo pose. The skeleton image of the reference human body is fused with the specific skeleton image of the target user to generate the skeleton image of the specific pose of the target user, that is, the skeleton image corresponding to the target user presenting the photo pose of the reference human body.

[0191] In this embodiment, the image fusion model is stored in an electronic device. In other implementations, the image fusion model may also be stored in a server. After obtaining the skeleton image of the reference human body in the target recommended image and the specific skeleton image of the target user in the second image, the server fuses the two to generate a specific posture skeleton image of the target user.

[0192] Step 290: Overlay and display the specific posture skeleton diagram of the target user on the preview image.

[0193] Step 291: extracting the skeleton image of the target user on the preview image.

[0194] Here, the implementation method of extracting the skeleton diagram of the target user on the preview image is similar to that of extracting the reference human body in the target recommended image and extracting the specific skeleton diagram of the target user in the second image, which is within the scope that can be easily understood by those skilled in the art and will not be repeated here.

[0195] Step 292: Determine whether the matching degree between the skeleton diagram of the target user on the preview image and the skeleton diagram of the specific posture reaches a first matching threshold.

[0196] Similar to step 180 in Example 1, during the shooting process, the electronic device continuously detects the matching degree between the skeleton diagram of the target user on the preview image and the skeleton diagram of the specific posture at a set frequency; alternatively, the electronic device may also send the preview image to the server at a certain frequency so that the server detects the matching degree between the skeleton diagram of the target user on the preview image and the skeleton diagram of the specific posture.

[0197] If the matching degree between the skeleton diagram of the target user on the preview image and the skeleton diagram of the specific posture exceeds the first matching threshold, it indicates that the position and size of the target user on the preview image are consistent with the position and size of the reference human body in the target recommended image, and the photographing posture of the target user is consistent with the photographing posture of the reference human body in the target recommended image, and step 294 is executed; otherwise, step 293 is executed.

[0198] Step 293: Automatically adjust the shooting mode of the imaging device and / or display adjustment instructions based on the skeleton diagram of the target user and the skeleton diagram of the specific posture.

[0199] As described in Embodiment 1, the shooting mode of the imaging device may include shooting posture and shooting parameters. The electronic device may adjust the shooting posture of the imaging device through its driving device or an external driving device; the shooting parameters include the focal length and viewing angle of the imaging device. The adjustment instruction is an instruction for adjusting the shooting mode of the imaging device.

[0200] Step 294: Automatically capture the preview image.

[0201] The target recommended picture of this embodiment may also include positioning information, which can guide the user to the location indicated by the positioning information to obtain a better shooting point; further, it can also merge the skeleton diagram of the reference human body in the target recommended picture with the specific skeleton diagram of the target user to generate a specific posture skeleton diagram of the target user, and superimpose the specific posture skeleton diagram of the target user on the preview image to better guide the user to take pictures.

[0202] Example 3

[0203] See also Fig.19 , Fig.19 A flowchart of another method for recommending photographs provided by an embodiment of the present invention is different from that of Embodiment 2 in that, after guiding the user to the location indicated by the positioning information, the method of this embodiment includes:

[0204] Step 360: Extract skeleton images of reference human bodies and reference objects in the target recommended image.

[0205] In particular, when the current corresponding scene includes cultural attractions or specific clothing, the obtained target recommended pictures include reference human bodies and reference objects. Of course, when the current corresponding scene includes a multi-person scene or a natural scenery, the obtained target recommended pictures may also include reference objects. For example, when the scene of the first image is a natural scenery, and the time information of the first image is evening or the label information is dusk, the obtained target recommended pictures include sunset; when the scene corresponding to the first image is a multi-person scene, and the label information of the first image is basketball, the obtained target recommended pictures include basketball.

[0206] Step 370: Acquire a second image, where the second image contains the target user.

[0207] Step 371: extracting a specific skeleton image of the target user in the second image.

[0208] Step 380: Fusing the skeleton graph of the reference human body with the specific skeleton graph of the target user to generate a specific posture skeleton graph of the target user.

[0209] Step 390: Overlay and display the specific posture skeleton image of the target user and the skeleton image of the reference object on the preview image.

[0210] Step 391: Extract the skeleton images of the target user and the target object on the preview image.

[0211] The target object on the preview image corresponds to the reference object in the target recommended image. For example, when a user wants to take a classic photo with the Taj Mahal, a picture containing the Taj Mahal is usually selected as the target recommended image; when a user wants to take a cool photo with the help of sunglasses, a picture containing sunglasses is usually selected as the target recommended image. Therefore, the target object on the preview image is the reference object in the target recommended image taken by other people.

[0212] The implementation of the above steps can refer to the relevant descriptions of Example 1 and Example 2. It is within the scope that can be easily understood by those skilled in the art and will not be described here to avoid redundancy.

[0213] Step 392: Determine whether a first matching degree between the skeleton image of the target user and the skeleton image of the specific posture, and a second matching degree between the skeleton image of the target object and the skeleton image of the reference object meet a preset condition.

[0214] The preset conditions include: the sum of the first matching degree and the second matching degree reaches the second matching threshold; or, one of the first matching degree and the second matching degree reaches the third matching threshold, and the other of the first matching degree and the second matching degree reaches the fourth matching threshold.

[0215] Among them, the first matching degree between the skeleton image of the target user and the skeleton image of the specific posture represents the degree of consistency between the position and size of the target user on the preview image and the position and size of the reference human body in the target recommended image, as well as the degree of consistency between the photographing posture of the target user and the photographing posture of the reference human body in the target recommended image; the second matching degree between the skeleton image of the target object and the skeleton image of the reference object represents the degree of consistency between the position and size of the target object on the preview image and the position and size of the reference object in the target recommended image.

[0216] Therefore, when the first matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture, and the second matching degree between the skeleton diagram of the target object and the skeleton diagram of the reference object meet the above preset conditions, it means that the preview image as a whole is more consistent with the target recommended image, and step 394 is executed; otherwise, step 393 is executed.

[0217] Step 393: Automatically adjust the shooting mode of the imaging device and / or display adjustment instructions according to the skeleton diagram of the target object and the skeleton diagram of the reference object.

[0218] Different from Example 2, since the shape, position and / or size of the target object is relatively fixed, this embodiment automatically adjusts the shooting mode of the imaging device and / or displays adjustment instructions based on the skeleton diagram of the target object and the skeleton diagram of the reference object, and the shooting mode of the imaging device can also include shooting posture and shooting parameters.

[0219] Step 394: Automatically capture the preview image.

[0220] This embodiment generates a specific posture skeleton map of the target user by extracting the skeleton maps of the reference human body and the reference object in the target recommended picture, and fusing the skeleton map of the reference human body in the target recommended picture with the specific skeleton map of the target user. The first matching degree between the skeleton map of the target user and the specific posture skeleton map on the preview image, and the second matching degree between the skeleton map of the target object and the skeleton map of the reference object meet the preset conditions, and the preview image is automatically photographed, which can accurately capture pictures with a high overall consistency with the target recommended picture, further reducing the time users spend on taking pictures.

[0221] Example 4

[0222] See also Fig. 20 , Fig. 20 This is a schematic diagram of a photo recommendation device provided by an embodiment of the present invention. The device 400 is applied to an electronic device, and the electronic device includes an imaging device. The device 400 includes:

[0223] An image acquisition module 410 is used to acquire a first image through an imaging device;

[0224] The information acquisition module 420 is used to acquire shooting information of the first image;

[0225] The scene recognition module 430 is used to recognize the scene corresponding to the first image according to the first image and / or the shooting information of the first image, and send the scene corresponding to the first image and the shooting information of the first image to the server.

[0226] The picture presentation module 440 is used to receive and present at least one recommended picture determined based on the first image;

[0227] The picture determination module 450 is used to determine a target recommended picture among at least one recommended picture for taking photos according to the received selection instruction;

[0228] A skeleton image acquisition module 460 is used to extract a skeleton image of a reference object in a target recommended image;

[0229] The overlay display module 470 is used to overlay and display the skeleton diagram of the reference object on the preview image, so that the user can adjust the shooting posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the skeleton diagram of the reference object.

[0230] Furthermore, the apparatus 400 further includes:

[0231] The automatic shooting module 480 is used to automatically shoot the preview image if the matching degree between the preview image and the skeleton image of the reference object exceeds a preset matching threshold.

[0232] It should be noted that in Example 4 of the present invention, the device 400 can respectively execute the photo recommendation method provided in Example 1 of the present invention, and has functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in the embodiment of the device, please refer to the basic photo recommendation method provided in Example 1 of the present invention.

[0233] Example 5

[0234] See also Fig.21 , Fig.21 This is a schematic diagram of a photo recommendation device provided by an embodiment of the present invention. The device 500 is applied to an electronic device, and the device 500 includes:

[0235] An image acquisition module 510, configured to acquire a first image through an imaging device;

[0236] The information acquisition module 520 is used to acquire shooting information of the first image;

[0237] The scene recognition module 530 is used to recognize the scene corresponding to the first image according to the first image and / or the shooting information of the first image, and send the scene corresponding to the first image and the shooting information of the first image to the server.

[0238] The picture presentation module 540 is used to receive and present at least one recommended picture determined based on the first image;

[0239] The picture determination module 550 is used to determine a target recommended picture among at least one recommended picture for taking photos according to the received selection instruction, where the target recommended picture includes positioning information;

[0240] The positioning acquisition module 551 is used to obtain the positioning information of the target recommended image.

[0241] The position determination module 552 is used to determine whether the current position of the electronic device matches the positioning information.

[0242] The path display module 553 is used to display a moving path for guiding the user to the location indicated by the positioning information.

[0243] A skeleton image acquisition module 560 is used to extract a skeleton image of a reference human body in a target recommended image;

[0244] The image acquisition module 510 is further configured to acquire a second image, wherein the second image includes the target user.

[0245] The skeleton image acquisition module 560 is further configured to extract a specific skeleton image of the target user in the second image.

[0246] The image fusion module 570 is used to fuse the skeleton image of the reference human body with the specific skeleton image of the target user to generate a specific posture skeleton image of the target user.

[0247] The overlay display module 580 is used to overlay and display the specific posture skeleton diagram of the target user on the preview image.

[0248] The skeleton image acquisition module 560 is also used to extract the skeleton image of the target user in the preview image.

[0249] The matching degree judgment module 590 is used to judge whether the matching degree between the skeleton diagram of the target user in the preview image and the skeleton diagram of the specific posture reaches a first matching threshold.

[0250] The automatic adjustment module 591 is used to automatically adjust the shooting mode of the imaging device and / or display adjustment instructions according to the skeleton diagram of the target user and the skeleton diagram of the specific posture.

[0251] The automatic shooting module 592 is used to automatically shoot the preview image.

[0252] In another embodiment,

[0253] The skeleton image acquisition module 560 is further used to extract the skeleton image of the reference object in the target recommended image and extract the skeleton image of the target object in the preview image.

[0254] The overlay display module 580 is further used to overlay and display the skeleton image of the reference object on the preview image.

[0255] Then, the matching degree judgment module 590 is used to judge whether the first matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture, and the second matching degree between the skeleton diagram of the target object and the skeleton diagram of the reference object meet the preset conditions.

[0256] And an automatic adjustment module 591 is used to automatically adjust the shooting mode of the imaging device and / or display adjustment instructions according to the skeleton diagram of the target object and the skeleton diagram of the reference object.

[0257] It should be noted that in Example 5 of the present invention, device 500 can respectively execute the photo recommendation methods provided in Examples 2 and 3 of the present invention, and has functional modules and beneficial effects corresponding to the execution methods. For technical details that are not fully described in the embodiments of the device, please refer to the photo recommendation methods provided in Examples 2 and 3 of the present invention.

[0258] Example 6

[0259] Fig. 22 An electronic device provided in an embodiment of the present invention includes:

[0260] at least one processor 610 and a memory 620 communicatively connected to the at least one processor 610, Fig. 22 A processor 610 is taken as an example.

[0261] The processor 610 and the memory 620 may be connected via a bus or other means. Fig. 22 The example of connecting through bus is taken in the following.

[0262] The memory 620 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the photo recommendation method in the embodiment of the present invention (for example, Fig. 20 , 21The processor 610 implements the photo recommendation method of the method embodiment by running the non-volatile software programs, instructions and modules stored in the memory 620.

[0263] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the PTZ, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 620 may optionally include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the PTZ via a network. Embodiments of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0264] The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, the photo recommendation method in the method embodiment is executed, for example, the above-described Fig.15 , Fig.17 , Fig.19 The method steps in Fig. 20 , 21 The functions of each module in.

[0265] The electronic device 600 can execute the photo recommendation method provided in the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the photo recommendation method provided in embodiments 1-3 of the present invention.

[0266] The electronic device of the embodiment of the present invention exists in various forms, including but not limited to:

[0267] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, etc.

[0268] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, etc.

[0269] (3) Other electronic devices with photo taking and data exchange functions.

[0270] Example 7

[0271] An embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by an electronic device to perform the photo recommendation method in any of the above method embodiments, for example, to perform the above described Fig.15 , 17 , the method steps in 19, and implementation Fig. 20 , 21 The functions of each module in .

[0272] The embodiment of the present invention further provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by an electronic device, the electronic device executes the photo recommendation method in any of the above method embodiments, for example, executing the above described Fig.15 , 17 , the method steps in 19, and implementation Fig. 20 , 21 The functions of each module in .

[0273] It should be noted that the device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0274] Through the description of the above embodiments, a person of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, can also be implemented by hardware. A person of ordinary skill in the art can understand that all or part of the processes in the method of the embodiment can be completed by hardware related to computer program instructions, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the methods. Among them, the storage medium can be a read-only memory (ROM) or a random access memory (RAM).

[0275] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for recommending taking a photo, applied to an electronic device, wherein the electronic device includes an imaging device, characterized in that: The method comprises: Acquire a first image by the imaging device; Receiving and displaying at least one recommended picture determined based on the first image; Determining a target recommended picture among the at least one recommended picture for taking photos according to the received selection instruction; Extracting a skeleton diagram of a reference human body in the target recommended image; Acquire a second image, where the second image contains a target user; Extracting a specific skeleton image of the target user in the second image, wherein the specific skeleton image is a main structure and a contour edge of the target user; Fusion of the reference human skeleton graph with the target user's specific skeleton graph to generate the target user's specific posture skeleton graph; The specific posture skeleton diagram of the target user is superimposed and displayed on the preview image, so that the user can adjust the shooting posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the specific posture skeleton diagram.

2. The method according to claim 1, characterized in that After acquiring the first image, the method further includes: The shooting information of the first image is acquired, where the shooting information of the first image includes at least one of the following: tag information, location information, time information, and person information.

3. The method according to claim 2, characterized in that The method further comprises: identifying a scene corresponding to the first image according to the first image and / or shooting information of the first image; The scene corresponding to the first image and the shooting information of the first image are sent to the server, so that the server determines the at least one recommended picture according to the scene corresponding to the first image and the shooting information of the first image.

4. The method according to claim 2, characterized in that: The method further comprises: The first image and the shooting information of the first image are sent to a server, so that the server determines the at least one recommended picture for taking photos according to the first image and / or the shooting information of the first image.

5. The method according to claim 3, characterized in that: The scene corresponding to the first image is a combination of one or more of cultural attractions, natural scenery, specific clothing and a group of people.

6. The method according to claim 5, characterized in that The target recommended image includes positioning information, and the method further includes: Obtaining location information of the target recommended image; Determining whether the current location of the electronic device matches the positioning information; If there is no match, a moving path for guiding the user to the place indicated by the positioning information is displayed.

7. The method according to any one of claims 1 to 6, characterized in that: After the specific posture skeleton diagram of the target user is superimposed and displayed on the preview image, the method further includes: If the matching degree between the preview image and the specific posture skeleton diagram of the target user exceeds a preset matching threshold, the preview image is automatically photographed.

8. The method according to claim 1, characterized in that After the specific posture skeleton diagram of the target user is superimposed and displayed on the preview image, the method further includes: Extracting a skeleton image of the target user on the preview image; If the matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture reaches a first matching threshold, the preview image is automatically photographed.

9. The method according to claim 8, characterized in that Before automatically shooting the preview image, the method further includes: The shooting mode of the imaging device is automatically adjusted and / or an adjustment instruction is displayed according to the skeleton diagram of the target user and the skeleton diagram of the specific posture, wherein the shooting mode includes shooting posture and shooting parameters.

10. The method according to claim 1, characterized in that Before the specific posture skeleton diagram of the target user is superimposed on the preview image, the method further includes: Extracting a skeleton image of a reference object in the target recommended image; Then, the step of superimposing and displaying the specific posture skeleton diagram of the target user on the preview image includes: The specific posture skeleton diagram of the target user and the skeleton diagram of the reference object are superimposed and displayed on the preview image.

11. The method according to claim 10, characterized in that After the specific posture skeleton diagram of the target user and the skeleton diagram of the reference object are superimposed and displayed on the preview image, the method further includes: Extracting skeleton images of the target user and the target object on the preview image, wherein the target object corresponds to the reference object; If the first matching degree between the skeleton diagram of the target user and the skeleton diagram of the specific posture, and the second matching degree between the skeleton diagram of the target object and the skeleton diagram of the reference object meet the preset conditions, the preview image is automatically photographed.

12. The method according to claim 11, characterized in that The preset conditions include: The sum of the first matching degree and the second matching degree reaches a second matching threshold; Alternatively, one of the first matching degree and the second matching degree reaches a third matching threshold, and the other of the first matching degree and the second matching degree reaches a fourth matching threshold.

13. The method according to claim 12, characterized in that Before automatically shooting the preview image, the method further includes: The shooting mode of the imaging device is automatically adjusted and / or an adjustment instruction is displayed according to the skeleton diagram of the target object and the skeleton diagram of the reference object, wherein the shooting mode includes shooting posture and shooting parameters.

14. A photographing recommendation device, applied to an electronic device, wherein the electronic device includes an imaging device, characterized in that: The device comprises: An image acquisition module, configured to acquire a first image through the imaging device; A picture presentation module, configured to receive and present at least one recommended picture determined based on the first image; A picture determination module, configured to determine a target recommended picture among the at least one recommended picture for taking photos according to the received selection instruction; A skeleton image acquisition module is used to extract a skeleton image of a reference human body in the target recommended image; acquire a second image, wherein the second image contains a target user; extract a specific skeleton image of the target user in the second image, wherein the specific skeleton image is the main structure and contour edge of the target user; merge the skeleton image of the reference human body with the specific skeleton image of the target user to generate a specific posture skeleton image of the target user; The overlay display module is used to overlay and display the specific posture skeleton diagram of the target user on the preview image, so that the user can adjust the shooting posture, adjust the shooting mode of the imaging device and / or move the electronic device according to the specific posture skeleton diagram.

15. An electronic device, characterized in that: include: at least one processor; as well as A memory connected to the at least one processor; wherein, The memory stores an instruction program executable by the at least one processor, and the instruction program is executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 13.

16. A non-volatile computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by an electronic device, the electronic device executes the method according to any one of claims 1 to 13.