Image shooting method and device, electronic equipment and storage medium
By obtaining and utilizing the first shooting status parameters, adjusting the shooting status and optimizing the images, the problem of unpredictable photography effects of passers-by is solved and the user experience is improved.
Patent Information
- Application Number
- CN202411701652.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, when inviting passers-by to help take photos, the photo effect is difficult to meet expectations, resulting in a low user experience.
By obtaining the first shooting status parameters, the third person is prompted to adjust the shooting status to obtain a more accurate first image, and determine the optimized image based on the first image and body data to improve the user experience.
With the help of passers-by, it has achieved optimized images that meet the expectations of those who are to be photographed, and improved the user experience.
Smart Images

Figure CN119835519A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent terminals, and in particular to an image shooting method, device, electronic equipment and storage medium. Background Art
[0002] When a family travels and arrives at a scenic spot and is eager to capture a beautiful family moment or take a group photo for other reasons, they tend to ask passers-by to help take photos. However, since these "photographers" are random and unprofessional, their photography skills vary. Although everyone is happy to help, the final photo effect may not meet expectations and may not be what the user wants at all. This poses a certain problem for families pursuing high-quality group photos, resulting in a low user experience. Therefore, how to provide an image capture method that can improve the user experience when capturing images has become an urgent problem to be solved. Summary of the invention
[0003] The embodiment of the present invention provides an image shooting method, which aims to solve the problem that when inviting passers-by to help take photos, the photo effect cannot meet expectations, resulting in a low user experience in the existing image shooting method. Since the first shooting state parameter is obtained when the first person performs pre-shooting, according to the first shooting state parameter, a more accurate first image can be obtained after prompting the third person to perform the first image shooting process, and then according to the first image and body shape data, an optimized image that meets the expectations of the person to be photographed can be determined, thereby improving the user experience.
[0004] In a first aspect, an embodiment of the present invention provides an image capturing method, the method comprising the following steps:
[0005] Acquire a first shooting state parameter when the first person pre-shoots the second person;
[0006] When it is detected that the first person and the second person are at the target position, based on the first shooting state parameter and the current shooting state parameter, prompting a third person to perform a shooting state adjustment action to obtain a first image;
[0007] An optimization operation is performed based on the first image and the body shape data of the first person to determine an optimized image.
[0008] Optionally, when the first person and the second person are detected to be at the target position, based on the first shooting state parameter and the current shooting state parameter, prompting a third person to perform a shooting state adjustment action to obtain a first image includes:
[0009] When it is detected that the first person and the second person are at the target position, obtaining current shooting state parameters;
[0010] Determining first shooting prompt data based on the current shooting state parameter and the first shooting state parameter;
[0011] Based on the first shooting prompt data, prompt the third person to perform a shooting state adjustment action, and update the current shooting state parameters in real time;
[0012] If the comparison result between the current shooting state parameter and the first shooting state parameter is within a preset range, the third person is prompted to perform a shooting operation to obtain the first image.
[0013] Optionally, the first shooting prompt data includes position prompt data and angle prompt data, the current shooting state parameter includes a current shooting position and a current shooting angle, the first shooting state parameter includes a first shooting position and a first shooting angle, and determining the first shooting prompt data based on the current shooting state parameter and the first shooting state parameter includes:
[0014] Determining the position prompt data based on the current shooting position and the first shooting position;
[0015] The angle prompt data is determined based on the current shooting angle and the first shooting angle.
[0016] Optionally, the prompting the third person to perform a shooting operation to obtain the first image includes:
[0017] providing the position prompt data to the third person, and calculating whether the current shooting position satisfies the first shooting position; until the current shooting position satisfies the first shooting position, providing the angle prompt data to the third person, and calculating whether the current shooting angle satisfies the first shooting angle;
[0018] When the current shooting angle satisfies the first shooting angle, the third person is prompted to perform a shooting operation to obtain the first image.
[0019] Optionally, performing an optimization operation based on the first image and the body shape data of the first person to determine an optimized image includes:
[0020] Based on the body shape data, calculating blank data in the first image;
[0021] Comparing the blank data with preset blank reference data to obtain a comparison result;
[0022] Based on the comparison result, the optimized image is determined.
[0023] Optionally, determining the optimized image based on the comparison result includes:
[0024] When the comparison result is that the blank data meets the preset blank reference data, determining the first image as the optimized image;
[0025] When the comparison result is that the blank data does not satisfy the preset blank reference data, adjusting the first shooting state parameter based on the blank data and the preset blank reference data to obtain a second shooting state parameter;
[0026] Based on the second shooting state parameter, prompting a third person to perform a shooting state adjustment action, and updating the current shooting state parameter in real time;
[0027] If the comparison result between the current shooting state parameter and the second shooting state parameter is within a preset range, the third person is prompted to perform a shooting operation to obtain the optimized image.
[0028] Optionally, the preset blank reference data includes upper and lower blank reference data and left and right blank reference data, the blank data includes upper and lower blank data and left and right blank data, and adjusting the first shooting state parameter based on the blank data and the preset blank reference data to obtain the second shooting state parameter includes:
[0029] Taking the upper and lower blank reference data as an adjustment target, adjusting the first shooting state parameter based on the upper and lower blank data to obtain a third shooting state parameter;
[0030] The left and right blank reference data is used as an adjustment target, and the third shooting state parameter is adjusted based on the left and right blank data to obtain the second shooting state parameter.
[0031] In a second aspect, an embodiment of the present invention further provides an image capturing device, the image capturing device comprising:
[0032] An acquisition module, used to acquire a first shooting state parameter when the first person pre-shoots the second person;
[0033] a processing module, configured to prompt a third person to perform a shooting state adjustment action based on the first shooting state parameter and the current shooting state parameter to obtain a first image when the first person and the second person are detected to be at the target position;
[0034] The optimization module is used to perform an optimization operation based on the first image and the body data of the first person to determine an optimized image.
[0035] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the image capture method provided in the embodiment of the present invention when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the image capturing method provided in the embodiment of the invention are implemented.
[0037] In an embodiment of the present invention, a first shooting state parameter is obtained when a first person performs a pre-shooting of a second person; when it is detected that the first person and the second person are at the target position, based on the first shooting state parameter and the current shooting state parameter, a third person is prompted to perform a shooting state adjustment action to obtain a first image; an optimization operation is performed based on the first image and the body shape data of the first person to determine an optimized image. Since the first shooting state parameter is obtained when the first person performs a pre-shooting, a more accurate first image can be obtained after prompting the third person to perform the first image shooting process according to the first shooting state parameter, and then after the first image and the body shape data, an optimized image that meets the expectations of the person to be photographed can be determined, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 is a flow chart of an image capturing method provided by an embodiment of the present invention;
[0040] Figure 2 is a schematic diagram of angle adjustment of a shooting terminal provided by an embodiment of the present invention;
[0041] Figure 3 is a schematic diagram of angle adjustment of another shooting terminal provided by an embodiment of the present invention;
[0042] Figure 4 is a structural schematic diagram of an image capturing device provided in an embodiment of the present invention;
[0043] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0045] like Figure 1 As shown, Figure 1 is a flow chart of an image capturing method provided by an embodiment of the present invention, comprising:
[0046] 101. Obtain a first shooting state parameter when a first person pre-shoots a second person.
[0047] In an embodiment of the present invention, the above-mentioned image shooting method can be applied to an intelligent terminal with a shooting function, such as a smart phone, a smart watch, a tablet computer, a laptop computer, or can also be applied to an intelligent camera with functions such as data processing, data analysis, data storage, and data transmission. Or in order to reduce the use of computing resources of the shooting terminal, it can also be applied to an intelligent terminal management platform, and the above-mentioned intelligent terminal management platform can be constructed by a server or a server cluster, and the above-mentioned server or server cluster can be any electronic device with functions such as data processing, data analysis, data storage, and data transmission. The above-mentioned intelligent terminal management platform can send instructions to the shooting terminal and receive data through the above-mentioned data transmission function to implement the above-mentioned image shooting method.
[0048] The number of persons to be photographed is at least two, one of whom is a first person, and at least one second person. The above-mentioned persons to be photographed can be understood as persons who need to appear in the same frame for group photos, the above-mentioned second person can be understood as one of the persons waiting to be photographed, and the above-mentioned first person can be understood as being pre-photographed and is one of the persons waiting to be photographed.
[0049] The above-mentioned pre-shooting can be understood as an action of the first person shooting the second person, that is, the first person and the second person need to take a photo together, and the first person pre-shoots the second person before taking the photo, so that when the third person (i.e., a passerby) shoots the person to be photographed later, an optimized image that meets the needs of the person to be photographed can be captured.
[0050] The first shooting state parameter may be the position of the terminal and the angle of the terminal when the first person pre-shoots the second person and presses the shooting button (or camera shutter). The first state parameter may be obtained by a collection sensor deployed in the terminal, such as a distance sensor, a horizontal measurement sensor, etc.
[0051] 102. When it is detected that the first person and the second person are at the target position, based on the first shooting state parameter and the current shooting state parameter, prompt the third person to perform a shooting state adjustment action to obtain a first image.
[0052] In an embodiment of the present invention, the target position can be set by the person to be photographed, such as the first person or the second person. For example, the person to be photographed can use the terminal to photograph a reference image of the target position. Detecting whether the first person and the second person are at the target position can be achieved based on the reference image. For example, when the first person and the second person are included in the picture collected by the terminal, the similarity between the collected picture and the reference image is calculated. When the similarity is greater than a preset similarity threshold, it is determined that the first person and the second person are at the target position. It should be noted that since the reference image often does not include people when shooting the reference image (that is, the reference image only includes the environment image, not the person), the preset similarity threshold can be set according to the number of people in the picture, that is, when the number of people in the picture is more, the preset similarity threshold can be set lower accordingly, and when the number of people in the picture is less, the preset similarity threshold can be set higher accordingly. (That is, the preset similarity threshold is inversely proportional to the number of people in the picture).
[0053] Therefore, it can be known from the above description that, assuming that the above screen only includes the second person, the above preset similarity threshold is the first similarity threshold, and when the above screen includes the first person and the second person, it is the second similarity threshold, and when the above screen includes the first person, the second person and other persons, it is the third similarity threshold. At this time, the first similarity threshold is greater than the second similarity threshold, and the second similarity threshold is greater than the third similarity threshold. By setting the similarity threshold according to the number of people in the screen, the problem of reduced detection accuracy caused by the increase in similarity fluctuation due to the appearance of people can be well avoided, that is, the detection accuracy of whether the first person and / or the second person is at the target position can be well improved.
[0054] When it is detected that both the first person and the second person are at the target position, it means that the person to be photographed has found a person (i.e., the third person) who is willing to help the person to be photographed take a photo after seeking help from passers-by. At this time, the current shooting state parameter can be obtained, and prompt data (for example, text information, voice information, or graphic information, etc., to inform the third person how to adjust the shooting angle and shooting position) can be generated based on the current shooting state parameter and the first shooting state parameter. When the current shooting state parameter meets the first shooting state parameter, the third person is prompted to press the shooting button to obtain the first image.
[0055] 103. Perform an optimization operation based on the first image and the body shape data of the first person to determine an optimized image.
[0056] In an embodiment of the present invention, the blank data in the first image can be calculated based on the above-mentioned body shape data, and the above-mentioned blank data includes upper and lower blank data and left and right blank data. The above-mentioned upper and lower blank data include the range between the vertex of the character's head and the upper boundary of the first image and the range between the vertex of the character's bottom and the lower boundary of the first image. The above-mentioned left and right blank data include the range between the leftmost vertex of the character's body and the left boundary of the first image and the range between the rightmost vertex of the character's body and the right boundary of the first image. When the above-mentioned upper and lower blank data meet the upper and lower blank reference data in the preset blank reference data, and the above-mentioned left and right blank data meet the left and right blank reference data in the preset blank reference data, the above-mentioned first image can be determined as the above-mentioned optimized image. The above-mentioned preset blank reference data can be determined according to the above-mentioned body shape data. For example, the blank reference data corresponding to different experience data can be preset. When an optimization operation is required, the body shape data of the above-mentioned first person can be extracted to determine the corresponding blank reference data.
[0057] The above compliance can be determined by comparing the ratio of the blank data with the ratio of the blank reference data. If the comparison result is less than a preset ratio threshold, it is compliant, otherwise it is not compliant. The preset ratio threshold can be set based on historical experience of image shooting or obtained by a limited number of experiments.
[0058] If it does not meet the requirements, it means that the first person did not take his height and body shape into consideration when pre-shooting, so the height and body shape of the first person also have a great impact on the effect of the photo. For example, after the first person stands in, because of his height, his head is close to the highest point of the photo, which will reduce the blank space above the head, resulting in poor effect of the first image. Therefore, at this time, the preset blank reference data can be used as the adjustment target, and the first shooting state parameters can be adjusted based on the blank data to obtain the second shooting state parameters. Based on the second shooting state parameters, the third person is prompted to shoot again, and the image obtained is used as the optimized image.
[0059] It should be noted that the above-mentioned optimized images can be multiple, that is, when prompting the above-mentioned third person to take pictures again, the above-mentioned third person can be prompted to obtain multiple optimized images through continuous shooting, fixed interval shooting or other shooting methods, and the multiple optimized images can be stored for the first person and the second person to screen.
[0060] In an embodiment of the present invention, a first shooting state parameter is obtained when a first person performs a pre-shooting of a second person; when it is detected that the first person and the second person are at the target position, a first image is obtained based on the first shooting state parameter and the current shooting state parameter; an optimization operation is performed based on the first image and the body shape data of the first person to determine an optimized image. Since the first shooting state parameter is obtained when the first person performs a pre-shooting, a more accurate first image can be obtained after prompting a third person to perform a first image shooting process based on the first shooting state parameter, and then based on the first image and the body shape data, an optimized image that meets the expectations of the person to be shot can be determined, thereby improving the user experience.
[0061] It can be understood that in the specific implementation of the present application, related data such as shooting status parameters, first image, optimized image, shooting prompt data, etc., when the embodiments in the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data and the use of shooting prompt data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0062] It should be noted that the image capturing method provided in the embodiment of the present invention can be applied to devices such as computers and servers that can capture images.
[0063] Optionally, in the step of obtaining the first image by prompting a third person to perform a shooting status adjustment action based on the first shooting status parameter and the current shooting status parameter when the first person and the second person are detected to be in the target position, the current shooting status parameter can be obtained when the first person and the second person are detected to be in the target position; first shooting prompt data can be determined based on the current shooting status parameter and the first shooting status parameter; based on the first shooting prompt data, the third person can be prompted to perform a shooting status adjustment action, and the current shooting status parameter can be updated in real time; if the comparison result between the current shooting status parameter and the first shooting status parameter is within a preset range, the third person can be prompted to perform a shooting operation to obtain the first image.
[0064] In an embodiment of the present invention, when the first person and the second person are detected to be at the target position, the current state parameter can be obtained, and the current state parameter can be the state parameter of the terminal at the current moment, and can include the current shooting position and the current shooting angle. The first shooting state parameter can also correspond to the first shooting position and the first shooting angle. The first shooting prompt data includes position prompt data and angle prompt data.
[0065] Therefore, the coordinate difference between the current shooting position and the first shooting position can be calculated, and the position prompt data (which can be text, voice, image or other prompt methods) can be generated based on the coordinate difference. Similarly, the angle difference between the current shooting angle and the first shooting angle can be calculated, and the angle prompt data (which can be text, voice, image or other prompt methods) can be generated based on the angle difference. After obtaining the position prompt data and the angle prompt data, the first shooting prompt data is provided to a third person to prompt the third person to shoot according to the first shooting state parameters (i.e., adjust the current state parameters to match the first shooting state parameters) to obtain the first image.
[0066] The above-mentioned preset range can be understood as the allowable error range. Under normal circumstances, it is difficult for a third person to 100% replicate the first shooting state parameters when performing a shooting operation. Therefore, it is necessary to set a preset range to ensure the shooting effect while improving the efficiency of the third person in performing the shooting state adjustment action.
[0067] Optionally, the first shooting prompt data includes position prompt data and angle prompt data, the current shooting status parameters include the current shooting position and the current shooting angle, the first shooting status parameters include the first shooting position and the first shooting angle, and in the step of determining the first shooting prompt data based on the current shooting status parameters and the first shooting status parameters, the position prompt data can also be determined based on the current shooting position and the first shooting position; and the angle prompt data can be determined based on the current shooting angle and the first shooting angle.
[0068] In an embodiment of the present invention, the above-mentioned current shooting position may include current longitude and latitude coordinates and a current altitude, the above-mentioned current shooting angle may be a current overhead shooting angle or a current upward shooting angle, the above-mentioned first shooting state parameter may also include a first longitude and latitude and a first altitude, and the above-mentioned first shooting angle may be a first overhead shooting angle or a first upward shooting angle.
[0069] Specifically, when the current longitude and latitude coordinates are different from the first longitude and latitude coordinates, the difference between the current longitude and latitude coordinates and the first longitude and latitude coordinates can be calculated, and the direction and distance of the plane movement (plane movement based on the ground) required when the third person holds the terminal is determined based on the above difference, and the corresponding location prompt data is generated based on the above plane movement direction and distance. When the current altitude is different from the first altitude, the difference between the current altitude and the first altitude can also be calculated, so as to calculate the direction and distance of the up and down movement required when the third person holds the terminal, and the corresponding location prompt data is generated based on the above up and down movement direction and distance.
[0070] Similarly, when the first shooting angle is the first upward shooting angle or the first downward shooting angle, when the current shooting angle is the first upward shooting angle or the first downward shooting angle, the first upward shooting angle is different from the current downward shooting angle or the current upward shooting angle, or the first downward shooting angle is different from the current downward shooting angle or the current upward shooting angle, the difference between the first upward shooting angle and the current downward shooting angle or the current upward shooting angle can be calculated, or the difference between the first downward shooting angle and the current downward shooting angle or the current upward shooting angle can be calculated, and the angle that the third person needs to adjust the handheld terminal is determined based on the above difference, and the above angle prompt data is determined.
[0071] Optionally, in the step of prompting a third person to perform a shooting operation to obtain a first image, position prompt data can also be provided to the third person, and it is calculated whether the current shooting position satisfies the first shooting position; until the current shooting position satisfies the first shooting position, angle prompt data can be provided to the third person, and it is calculated whether the current shooting angle satisfies the first shooting angle; until the current shooting angle satisfies the first shooting angle, the third person is prompted to perform a shooting operation to obtain a first image.
[0072] In an embodiment of the present invention, when a third person holds the terminal, the location prompt data is first provided to the third person, and the height above the ground (i.e., the altitude) and the longitude and latitude position (i.e., the longitude and latitude position of the terminal, specifically the front, back, left, and right positions of the mobile phone based on the ground) are adjusted. Assuming that when the height above the ground is higher than the first shooting state parameter, the third person is reminded by voice "please lower the height of the mobile phone terminal"; similarly to the longitude and latitude position, the third person is reminded by voice "please move forward / backward / left / right", which is consistent with the above-mentioned height above the ground means and has the same effect. In order to avoid repetition and redundancy, it will not be repeated here.
[0073] In addition, an arrow guide (i.e., graphic prompt) can also be set on the terminal screen, with graphic reminders of left, right, up, down, forward, and backward, as well as upward or downward shooting angles, which can more vividly prompt a third person to quickly adjust the terminal to meet the first shooting state parameters, thereby improving the shooting efficiency of the first image.
[0074] Specifically, when the current shooting angle satisfies the first shooting angle, the shooting button (or shooting key) in the screen of the terminal can be changed from gray and inoperable to bright color. It is inoperable (i.e., shooting cannot be performed) when gray, and operable (i.e., shooting can be performed) when bright. If the current shooting angle satisfies the first shooting angle, the shooting button is in bright color, but it is not detected that the shooting button is pressed, then it is necessary to continuously detect whether the current shooting position satisfies the first shooting position and whether the current shooting angle satisfies the first shooting angle. If the current shooting position does not satisfy the first shooting position or the current shooting angle does not satisfy the first shooting angle, the shooting button is changed from bright color to gray.
[0075] It should be noted that the judgment condition of whether the current shooting angle meets the first shooting angle can be that when the current shooting angle is equal to the first shooting angle, it is judged to be met, otherwise it is not met. Alternatively, the angle difference between the current shooting angle and the first shooting angle can be calculated, and when the angle difference is less than a preset angle difference threshold, it is judged to be met, otherwise it is not met.
[0076] Similarly, the judgment condition of whether the current shooting position meets the first shooting position can be that when the current shooting position is equal to the first shooting position, it is judged to be met, otherwise it is not met. Alternatively, the coordinate difference between the current shooting position and the first shooting position can be calculated, and when the coordinate difference is less than a preset coordinate difference threshold, it is judged to be met, otherwise it is not met.
[0077] It is understandable that the above coordinate difference threshold and angle difference threshold can be set by historical image shooting experience, or can be obtained by a limited number of tests. If the coordinate difference threshold and angle difference threshold are used as the judgment conditions for whether they meet the requirements, the adjustment time of the third person to adjust the above terminal can be reduced while still ensuring the accuracy of the adjustment. That is, while improving the adjustment efficiency of the above terminal, its adjustment accuracy can still be guaranteed.
[0078] In addition, it is also possible to calculate from the perspective of the image, using the features of the surrounding areas in the pre-shooting as the target comparison features, for example, obtaining the pixel features of the preset rows at the top / bottom / left / right ends as the target comparison features, and when the third person adjusts, the surrounding features obtained by the third person are consistent with the target comparison features or the similarity exceeds a certain threshold, then the photo can be taken. In the process of adjustment, the third person can slowly shake the lens left and right, so that a wide range of pixel features can be obtained, and the moving direction of the third person can be calculated based on the location of the pixel features of the preset rows at the top / bottom / left / right ends to ensure that the third person can quickly adjust to the target shooting state.
[0079] The order of the above-mentioned shooting positions and shooting angles can be adjusted arbitrarily according to actual needs, that is, the angle prompt data is first provided to the third person, and it is calculated whether the current shooting angle satisfies the first shooting angle. When it does, the position prompt data is provided to the third person, and when the current shooting angle satisfies the first shooting angle, the third person is prompted to perform the shooting operation.
[0080] Alternatively, the position prompt data and the angle prompt data may be provided to a third person at the same time, and it may be calculated at the same time whether the current shooting position satisfies the first shooting position and whether the current shooting angle satisfies the first shooting angle. When both are satisfied, the third person is prompted to perform a shooting operation to obtain a first image.
[0081] Optionally, in the step of performing an optimization operation based on the first image and the body data of the first person to determine the optimized image, blank data in the first image can also be calculated based on the body data; the blank data is compared with preset blank reference data to obtain a comparison result; and the optimized image is determined based on the comparison result.
[0082] In an embodiment of the present invention, the above-mentioned body shape data may be the body shape data of the above-mentioned first person in the above-mentioned first image, and may specifically include height data and body shape data. The above-mentioned blank data may be calculated based on the above-mentioned height data and the above-mentioned body shape data. The above-mentioned blank data may be the area in the above-mentioned first image that is not occupied by the person. The above-mentioned blank data may include upper and lower blank data and left and right blank data. The above-mentioned preset blank reference data may be excellent photos with a relatively good blank ratio. The above-mentioned excellent photos may be selected by the above-mentioned person to be photographed, or may be scored and selected by professionals in the field of image shooting.
[0083] Specifically, a database of excellent photos can be established, and the upper, lower, left, and right blank space data of each excellent photo in the database can be calculated. Based on these data and the number of excellent photos in the database, the upper, lower, left, and right blank space data that can be used for reference can be calculated (including upper and lower blank space reference data and left and right blank space reference data).
[0084] The above comparison can be to compare the above blank data with the above upper and lower blank reference data to obtain a first comparison result, and to compare the above left and right blank data with the above left and right blank reference data to obtain a second comparison result. When the above first comparison result and the second comparison result are both successful, the above comparison result is a successful comparison. On the contrary, when either the first comparison result or the second comparison result is a failed comparison, the above comparison result is a failed comparison.
[0085] When the comparison result is successful, the first image can be used as the optimized image. On the contrary, when the comparison result is failed, the first shooting state parameter can be adjusted according to the blanking data and the preset blanking reference data to obtain the second shooting state parameter, and the optimized image can be determined according to the second shooting state parameter.
[0086] Optionally, in the step of determining the optimized image based on the comparison result, the first image can be determined as the optimized image when the comparison result is that the blank data satisfies the preset blank reference data; when the comparison result is that the blank data does not satisfy the preset blank reference data, based on the blank data and the preset blank reference data, the first shooting state parameter is adjusted to obtain the second shooting state parameter; based on the second shooting state parameter, a third person is prompted to perform a shooting state adjustment action, and the current shooting state parameter is updated in real time; if the comparison result between the current shooting state parameter and the second shooting state parameter is within the preset range, the third person is prompted to perform a shooting operation to obtain the optimized image.
[0087] In an embodiment of the present invention, when the comparison result is that the blank data meets the preset blank reference data (i.e., the comparison is successful), the first image can be determined as an optimized image. At this time, it can be simply understood that although the first person did not consider his or her body shape during the pre-shooting, the body shapes of the first person and the second person are similar, so after the first image is shot, the blank data of the first image is relatively good. At this time, the first image can be determined as an optimized image.
[0088] On the contrary, when the comparison result is that the blank data does not meet the preset blank reference data (that is, the comparison fails), the first shooting state parameters can be adjusted based on the body shape data and the preset blank reference data to obtain the second shooting state parameters, and based on the second shooting state parameters, the corresponding second shooting prompt data (for example, it can be data in the form of text, voice, image, etc.) is generated, and the second shooting prompt data is provided to a third person so that the third person can complete the above-mentioned second image capture processing and obtain the above-mentioned optimized image.
[0089] It should be noted that the method for generating the second shooting prompt data is the same as the method for generating the first shooting prompt data, and the effects are the same, and to avoid repetition and redundancy, they will not be repeated here.
[0090] It should be further explained that the above-mentioned preset range can also be understood as the allowable error range. Under normal circumstances, it is difficult for a third person to 100% reach the second shooting state parameter when performing a shooting operation. Therefore, it is necessary to set a preset range. While ensuring the shooting effect, it can improve the efficiency of the third person in performing the shooting state adjustment action.
[0091] Optionally, the preset blank reference data includes upper and lower blank reference data and left and right blank reference data, and the blank data includes upper and lower blank data and left and right blank data. In the step of adjusting the first shooting state parameters based on the blank data and the preset blank reference data to obtain the second shooting state parameters, the upper and lower blank reference data can be used as the adjustment target, and the first shooting state parameters can be adjusted based on the upper and lower blank data to obtain the third shooting state parameters; the left and right blank reference data can be used as the adjustment target, and the third shooting state parameters can be adjusted based on the left and right blank data to obtain the second shooting state parameters.
[0092] In the embodiment of the present invention, the distance between the height data and the upper boundary and the lower boundary of the first image can be calculated to obtain the upper and lower margin data, and the left and right margin data can be obtained according to the distance between the body shape data and the left boundary and the right boundary of the first image. (That is, the margin data is calculated based on the body shape data).
[0093] Assume that the upper margin in the upper and lower margin data is 5%, but the upper margin in the upper and lower margin reference data is 10%. At this time, the first shooting angle in the first shooting state parameter can be adjusted, and the first shooting angle can be adjusted toward the upward shooting direction to obtain the third shooting state parameter, so that the upper margin in the above upper and lower margin data is also 10%.
[0094] It should be noted that, since the third shooting state parameter is obtained after adjusting the first shooting angle in the first shooting state parameter, the third shooting state parameter includes the first shooting position and the second shooting angle.
[0095] Assume that the left margin in the left and right margin data is 5%, but the left margin in the left and right margin reference data is 15%. At this time, the first shooting position in the third shooting state parameter can be adjusted, and the first shooting position can be adjusted to the left to obtain the second shooting state parameter (including the second shooting position and the second shooting angle), so that the left margin in the above left and right margin data is also 15%.
[0096] It should be noted that the adjustment order of the upper and lower blanking data and the left and right blanking data can also be adjusted arbitrarily according to actual needs. For example, the left and right blanking reference data can be used as the adjustment target first, and the first shooting state parameter can be adjusted based on the left and right blanking data to obtain the third shooting state parameter, and the upper and lower blanking reference data can be used as the adjustment target, and the third shooting state parameter can be adjusted based on the upper and lower blanking reference data to obtain the second shooting state parameter. The third shooting state parameter can also be understood as an intermediate state for adjusting the blanking data.
[0097] like Figure 2 FIG. 1 is a schematic diagram of an angle adjustment of a shooting terminal provided by an embodiment of the present invention. Specifically, Figure 2As can be seen from the left image in the figure, the shooting terminal can be a smartphone, and the horizontal angle can be adjusted by placing the smartphone horizontally, or as can be seen from the right image, the vertical angle can be adjusted by placing the smartphone vertically.
[0098] like Figure 3 FIG. 1 is a schematic diagram of another angle adjustment of a shooting terminal provided by an embodiment of the present invention. Specifically, Figure 3 As can be seen from the image, the shooting terminal also uses a smartphone as an example. By placing the smartphone vertically, the front and rear tilt angles can be adjusted. Similarly, by placing the smartphone horizontally, the front and rear tilt angles can also be adjusted. Whether to place the smartphone horizontally or vertically can be selected by the person to be photographed.
[0099] like Figure 4 As shown, an embodiment of the present invention further provides an image capturing device, comprising:
[0100] An acquisition module 401 is used to acquire a first shooting state parameter when a first person pre-shoots a second person;
[0101] The processing module 402 is used for prompting a third person to perform a shooting state adjustment action based on the first shooting state parameter and the current shooting state parameter to obtain a first image when the first person and the second person are detected to be at the target position;
[0102] The optimization module 403 is used to perform an optimization operation based on the first image and the body shape data of the first person to determine an optimized image.
[0103] Optionally, the processing module 402 includes:
[0104] A first acquisition submodule, configured to acquire current shooting state parameters when it is detected that the first person and the second person are at the target position;
[0105] A first determining submodule, configured to determine first shooting prompt data based on the current shooting state parameter and the first shooting state parameter;
[0106] A first prompting submodule, configured to prompt the third person to perform a shooting state adjustment action based on the first shooting prompting data, and to update the current shooting state parameters in real time;
[0107] The second prompting submodule is used to prompt the third person to perform a shooting operation to obtain the first image if the comparison result between the current shooting state parameter and the first shooting state parameter is within a preset range.
[0108] Optionally, the first shooting prompt data includes position prompt data and angle prompt data, the current shooting state parameter includes a current shooting position and a current shooting angle, the first shooting state parameter includes a first shooting position and a first shooting angle, and the first determining submodule includes:
[0109] A first determining unit, configured to determine the position prompt data based on the current shooting position and the first shooting position;
[0110] The second determining unit is used to determine the angle prompt data based on the current shooting angle and the first shooting angle.
[0111] Optionally, the second prompt submodule includes:
[0112] a first calculation unit, configured to provide the position prompt data to the third person, and calculate whether the current shooting position satisfies the first shooting position; until the current shooting position satisfies the first shooting position, provide the angle prompt data to the third person, and calculate whether the current shooting angle satisfies the first shooting angle;
[0113] The first prompting unit is used to prompt the third person to perform a shooting operation to obtain the first image until the current shooting angle meets the first shooting angle.
[0114] Optionally, the optimization module 403 includes:
[0115] A first calculation submodule, configured to calculate blank data in the first image based on the body shape data;
[0116] A first comparison submodule, used for comparing the blank data with preset blank reference data to obtain a comparison result;
[0117] The first determination submodule is used to determine the optimized image based on the comparison result.
[0118] Optionally, the first determining submodule includes:
[0119] A third determining unit, configured to determine the first image as the optimized image when the comparison result is that the blank data satisfies the preset blank reference data;
[0120] a first adjustment unit, configured to adjust the first shooting state parameter based on the blank data and the preset blank reference data to obtain a second shooting state parameter when the comparison result is that the blank data does not satisfy the preset blank reference data;
[0121] A second prompting unit, configured to prompt a third person to perform a shooting state adjustment action based on the second shooting state parameter, and to update the current shooting state parameter in real time;
[0122] The third prompting unit is used to prompt the third person to perform a shooting operation to obtain the optimized image if the comparison result between the current shooting state parameter and the second shooting state parameter is within a preset range.
[0123] Optionally, the preset blank reference data includes upper and lower blank reference data and left and right blank reference data, the blank data includes upper and lower blank data and left and right blank data, and the first adjustment unit includes:
[0124] A first adjustment subunit is configured to adjust the first shooting state parameter based on the upper and lower blanking data, taking the upper and lower blanking reference data as an adjustment target, to obtain a third shooting state parameter;
[0125] The second adjustment subunit is used to take the left and right blank reference data as an adjustment target, and adjust the third shooting state parameter based on the left and right blank data to obtain the second shooting state parameter.
[0126] like Figure 5 As shown, an embodiment of the present invention further provides an electronic device, characterized in that it includes a processor, and the processor can execute any one of the above-mentioned image capturing methods.
[0127] Specifically, it includes a processor 501 and a memory 502, and a computer program for executing the image capturing method which is stored in the memory 502 and can be run on the processor 501, wherein:
[0128] The processor 501 runs the computer program of the image capturing method stored in the memory 502 and performs the following steps:
[0129] Acquire a first shooting state parameter when the first person pre-shoots the second person;
[0130] When it is detected that the first person and the second person are at the target position, based on the first shooting state parameter and the current shooting state parameter, prompting a third person to perform a shooting state adjustment action to obtain a first image;
[0131] An optimization operation is performed based on the first image and the body shape data of the first person to determine an optimized image.
[0132] Optionally, the processor 501 executes, when detecting that the first person and the second person are at the target position, prompting a third person to perform a shooting state adjustment action based on the first shooting state parameter and the current shooting state parameter to obtain the first image, including:
[0133] When it is detected that the first person and the second person are at the target position, obtaining current shooting state parameters;
[0134] Determining first shooting prompt data based on the current shooting state parameter and the first shooting state parameter;
[0135] Based on the first shooting prompt data, prompt the third person to perform a shooting state adjustment action, and update the current shooting state parameters in real time;
[0136] If the comparison result between the current shooting state parameter and the first shooting state parameter is within a preset range, the third person is prompted to perform a shooting operation to obtain the first image.
[0137] Optionally, the first shooting prompt data includes position prompt data and angle prompt data, the current shooting state parameter includes a current shooting position and a current shooting angle, the first shooting state parameter includes a first shooting position and a first shooting angle, and the processor 501 determines the first shooting prompt data based on the current shooting state parameter and the first shooting state parameter, including:
[0138] Determining the position prompt data based on the current shooting position and the first shooting position;
[0139] The angle prompt data is determined based on the current shooting angle and the first shooting angle.
[0140] Optionally, the prompting of the third person to perform a shooting operation to obtain the first image performed by the processor 501 includes:
[0141] providing the position prompt data to the third person, and calculating whether the current shooting position satisfies the first shooting position; until the current shooting position satisfies the first shooting position, providing the angle prompt data to the third person, and calculating whether the current shooting angle satisfies the first shooting angle;
[0142] When the current shooting angle satisfies the first shooting angle, the third person is prompted to perform a shooting operation to obtain the first image.
[0143] Optionally, the processor 501 performs the optimization operation based on the first image and the body shape data of the first person to determine the optimized image, including:
[0144] Based on the body shape data, calculating blank data in the first image;
[0145] Comparing the blank data with preset blank reference data to obtain a comparison result;
[0146] Based on the comparison result, the optimized image is determined.
[0147] Optionally, the determining the optimized image based on the comparison result performed by the processor 501 includes:
[0148] When the comparison result is that the blank data meets the preset blank reference data, determining the first image as the optimized image;
[0149] When the comparison result is that the blank data does not satisfy the preset blank reference data, adjusting the first shooting state parameter based on the blank data and the preset blank reference data to obtain a second shooting state parameter;
[0150] Based on the second shooting state parameter, prompting a third person to perform a shooting state adjustment action, and updating the current shooting state parameter in real time;
[0151] If the comparison result between the current shooting state parameter and the second shooting state parameter is within a preset range, the third person is prompted to perform a shooting operation to obtain the optimized image.
[0152] Optionally, the preset blank reference data includes upper and lower blank reference data and left and right blank reference data, the blank data includes upper and lower blank data and left and right blank data, and the processor 501 performs the adjustment of the first shooting state parameter based on the blank data and the preset blank reference data to obtain the second shooting state parameter, including:
[0153] Taking the upper and lower blank reference data as an adjustment target, adjusting the first shooting state parameter based on the upper and lower blank data to obtain a third shooting state parameter;
[0154] The left and right blank reference data is used as an adjustment target, and the third shooting state parameter is adjusted based on the left and right blank data to obtain the second shooting state parameter.
[0155] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the image capturing method or the application-side image capturing method provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0156] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer 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 above-mentioned methods. Among them, the above-mentioned computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0157] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. An image capturing method, characterized in that: The method comprises the following steps: Acquire a first shooting state parameter when the first person pre-shoots the second person; When it is detected that the first person and the second person are at the target position, based on the first shooting state parameter and the current shooting state parameter, prompting a third person to perform a shooting state adjustment action to obtain a first image; An optimization operation is performed based on the first image and the body shape data of the first person to determine an optimized image.
2. The image capturing method according to claim 1, wherein: When the first person and the second person are detected to be at the target position, based on the first shooting state parameter and the current shooting state parameter, prompting a third person to perform a shooting state adjustment action to obtain a first image includes: When it is detected that the first person and the second person are at the target position, obtaining current shooting state parameters; Determining first shooting prompt data based on the current shooting state parameter and the first shooting state parameter; Based on the first shooting prompt data, prompt the third person to perform a shooting state adjustment action, and update the current shooting state parameters in real time; If the comparison result between the current shooting state parameter and the first shooting state parameter is within a preset range, the third person is prompted to perform a shooting operation to obtain the first image.
3. The image capturing method according to claim 2, wherein: The first shooting prompt data includes position prompt data and angle prompt data, the current shooting state parameter includes a current shooting position and a current shooting angle, the first shooting state parameter includes a first shooting position and a first shooting angle, and determining the first shooting prompt data based on the current shooting state parameter and the first shooting state parameter includes: Determining the position prompt data based on the current shooting position and the first shooting position; The angle prompt data is determined based on the current shooting angle and the first shooting angle.
4. The image capturing method according to claim 3, wherein: The prompting the third person to perform a shooting operation to obtain the first image includes: providing the position prompt data to the third person, and calculating whether the current shooting position satisfies the first shooting position; until the current shooting position satisfies the first shooting position, providing the angle prompt data to the third person, and calculating whether the current shooting angle satisfies the first shooting angle; When the current shooting angle satisfies the first shooting angle, the third person is prompted to perform a shooting operation to obtain the first image.
5. The image capturing method according to claim 1, wherein: The performing an optimization operation based on the first image and the body shape data of the first person to determine an optimized image includes: Based on the body shape data, calculating blank data in the first image; Comparing the blank data with preset blank reference data to obtain a comparison result; Based on the comparison result, the optimized image is determined.
6. The image capturing method according to claim 5, wherein: The step of determining the optimized image based on the comparison result includes: When the comparison result is that the blank data meets the preset blank reference data, determining the first image as the optimized image; When the comparison result is that the blank data does not satisfy the preset blank reference data, adjusting the first shooting state parameter based on the blank data and the preset blank reference data to obtain a second shooting state parameter; Based on the second shooting state parameter, prompting a third person to perform a shooting state adjustment action, and updating the current shooting state parameter in real time; If the comparison result between the current shooting state parameter and the second shooting state parameter is within a preset range, the third person is prompted to perform a shooting operation to obtain the optimized image.
7. The image capturing method according to claim 6, wherein: The preset blank reference data includes upper and lower blank reference data and left and right blank reference data, the blank data includes upper and lower blank data and left and right blank data, and adjusting the first shooting state parameter based on the blank data and the preset blank reference data to obtain the second shooting state parameter includes: Taking the upper and lower blank reference data as an adjustment target, adjusting the first shooting state parameter based on the upper and lower blank data to obtain a third shooting state parameter; The left and right blank reference data is used as an adjustment target, and the third shooting state parameter is adjusted based on the left and right blank data to obtain the second shooting state parameter.
8. An image capturing device, characterized in that: The image capturing device comprises: An acquisition module, used to acquire a first shooting state parameter when the first person pre-shoots the second person; a processing module, configured to prompt a third person to perform a shooting state adjustment action based on the first shooting state parameter and the current shooting state parameter to obtain a first image when the first person and the second person are detected to be at the target position; The optimization module is used to perform an optimization operation based on the first image and the body shape data of the first person to determine an optimized image.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the image capture method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the image capturing method according to any one of claims 1 to 7 are implemented.