Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
A shooting method provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart of a shooting method provided in an embodiment of the present invention is shown, and is applied to a first electronic device, where the first electronic device includes at least one camera and a foldable display screen, and the method specifically includes the following steps:
step 101, acquiring a preview image acquired by a target camera; the target camera is any one of the at least one camera.
In this embodiment of the application, the first electronic device includes at least one camera and a foldable display screen, where the foldable display screen includes at least two display screens, and all the cameras in the first electronic device may be located on any one of the display screens, or at least one camera may be disposed on each display screen.
The method comprises the steps that each camera in first electronic equipment collects images to be displayed, after each camera finishes the collection of the images to be displayed, a target camera is determined from each camera according to the images to be displayed collected by each camera, and the images to be displayed collected by the target cameras are determined to be preview images. The target camera is any one of at least one camera included in the first electronic device, and the preview image acquired by the target camera is acquired, so that the subsequent foldable display screen can be folded based on the preview image.
For example, when the first electronic device includes three cameras a1, a2, and A3, images to be displayed acquired by the three cameras are respectively B1, B2, and B3, and it is determined that the target camera is a2 from among the cameras a1, a2, and A3 according to the image to be displayed B1, the image to be displayed B2, and the image to be displayed B3, the image to be displayed B2 acquired by the target camera a2 is determined to be a preview image.
And 102, sending prompt information to second electronic equipment connected with the first electronic equipment under the condition that the contour integrity of the target object in the preview image is smaller than a first set value.
In this embodiment of the application, a first electronic device and a second electronic device are connected through bluetooth or WiFi (Wireless Fidelity), after a preview image acquired by a target camera is acquired, an outline of a target object is acquired from the preview image, if the target object is a person, the outline of the person in the preview image is acquired, integrity of the acquired outline of the target object is determined, and when the integrity of the outline of the target object is smaller than a first set value and only a partial outline of the target object t is present in the preview image as shown in fig. 2, the first electronic device sends a prompt message to the second electronic device connected to the first electronic device to prompt that the integrity of the outline of the target object t in the preview image acquired by the target camera in the first electronic device is smaller than the first set value.
For example, when the first setting value is 80% and the integrity of the contour of the target object t in the acquired preview image is 60%, the first electronic device sends a prompt message to the second electronic device connected thereto.
The prompt message can be displayed on the display interface of the second electronic device in a text form, can be played through a loudspeaker in the second electronic device in a voice form, can be displayed on the display interface of the second electronic device in a text form, and can be played through the loudspeaker in the second electronic device in a voice form. The first set value may be 100%, 90% or 80%, and the first set value may be set according to actual requirements, which is not limited in the embodiment of the present invention.
In this embodiment, when the target object t is a human figure, the contour integrity of the target object t is determined by identifying the contour of the human figure in the preview image, and when the identified contour of the human figure includes the contour of the head and the contour of the limbs of the human figure, it is determined that all the contours of the human figure are included in the preview image. Specifically, different weight values can be respectively given to the head contour and the four limbs contour according to the importance degree of the head and the four limbs of the person in shooting, when the figure contour integrity is calculated, the contact ratio of each part of contour of the person appearing in the preview image and the corresponding standard contour is calculated, then the product of the contact ratio and the weight value corresponding to the part of contour is calculated, and finally, the products are summed, so that the contour integrity of the person in the preview image is obtained.
Because in the shooting process, the human face basically needs to be ensured to appear in the preview image, a higher weight value can be given to the head outline, lower weight values can be given to the limbs, the distribution proportion of the weight values can be set according to actual requirements, and the embodiment of the application does not limit the distribution proportion.
For example, when the head contour, the right-hand contour, and the right-leg contour of the person are included in the preview image, the weight values corresponding to the head contour, the right-hand contour, and the right-leg contour are M1, M2, and M3, and M1> M2> M3, the degree of overlap between the head contour and the corresponding standard contour is N1, the degree of overlap between the right-hand contour and the corresponding standard contour is N2, and the degree of overlap between the right-leg contour and the corresponding standard contour is N3, at this time, the contour integrity of the person in the preview image is: n1 × M1+ N2 × M2+ N3 × M3.
Step 103, receiving a motion track returned by the second electronic device; the motion trail is acquired by the second electronic device when the holder of the second electronic device executes corresponding action according to the prompt message.
In this embodiment of the application, after receiving the prompt message sent by the first electronic device, the second electronic device pops up the first prompt content on a display interface of the second electronic device, and the second electronic device may be a watch or other wearable device. As shown in fig. 3, the first prompt content includes a word indicating whether the screen of the target display screen needs to be adjusted, the first prompt content further includes an option for the holder of the second electronic device to select for the first time, when the second electronic device receives a trigger operation of the holder of the second electronic device on the yes option in the first prompt content, the display interface of the second electronic device pops up the second prompt content, the second prompt content includes a word indicating that the movement direction of the second electronic device corresponding to the target display screen is adjusted, and an option for reminding the holder of the second electronic device to control the movement direction of the second electronic device, the holder of the second electronic device can adjust the target display screen T by moving the second electronic device up and down according to a prompt of the "up and down" option, or according to a prompt of the "front and back" option, so as to adjust the target display screen T by moving the second electronic device back and forth.
And sending prompt information to second electronic equipment connected with the first electronic equipment under the condition that the contour integrity of the target object t in the preview image is smaller than a first set value so as to acquire instruction information that the first electronic equipment needs to be adjusted from the second electronic equipment.
In the embodiment of the present application, the second electronic device may be held by the target object t or may be held by an object other than the target object t, and after the first electronic device sends the prompt information to the second electronic device, the holder of the second electronic device may control the second electronic device to perform a corresponding action according to the prompt information.
For example, after the second electronic device receives the prompt message sent by the first electronic device, and the holder of the second electronic device controls the second electronic device to move up or down from the initial position according to the prompt message, the application in the second electronic device for recording the movement track monitors the movement track of the second electronic device moving up or down from the initial position and collects the movement track of the second electronic device, and after the second electronic device stops moving, the second electronic device sends the movement track collected by the application for recording the movement track to the first electronic device, so that the first electronic device can adjust the display screen in the first electronic device according to the movement track.
The motion trail of the second electronic device is controlled by the holder of the second electronic device, before the holder of the second electronic device controls the second electronic device to make corresponding motion, the second electronic device needs to start an application for recording the motion trail in the second electronic device, and the application can record the motion trail of the second electronic device in the process that the holder of the second electronic device controls the second electronic device to move.
And 104, determining the folding parameters of the target display screen where the target camera is located according to the motion track.
In this embodiment of the application, after the first electronic device receives the motion trajectory returned by the second electronic device, the first electronic device may determine, according to the motion trajectory, the folding parameter of the target display screen T where the target camera is located.
For example, the folding direction, the folding angle, and the like of the target display screen T may be determined, so that the target display screen T is subsequently folded according to the folding parameters, so that the shooting range of the target camera on the target display screen is adjusted.
For example, as shown in fig. 4, when the second electronic device moves upward from the initial position by a distance L =2cm in the motion trajectory of the second electronic device, it may be determined that the target display screen T on which the target camera is located needs to be folded by a folding angle α =20 ° away from the display surface of the display screen connected to the target display screen T.
And 105, controlling the target display screen to be folded according to the folding parameters so as to adjust the shooting range of the target camera.
In the embodiment of the application, after the folding parameters of the target display screen T where the target camera is located are determined, the target display screen T can be folded according to the folding parameters.
Specifically, a rotary motor can be arranged between the target display screen T and a screen connected with the target display screen T, after the acquired folding parameters of the target display screen T are obtained, the folding parameters of the target display screen T are sent to a rotary motor control module, and the rotary motor control module controls the rotary motor to rotate according to the folding parameters, so that the target display screen T is driven to be folded.
When folding target display screen T, can fold target display screen T according to predetermineeing the frequency, predetermine the frequency and can be set for by the user in advance, for example, can set up to fold 10 every second, this application does not limit to this.
In the embodiment of the present application, after the target display screen T is folded according to the folding parameters, the preview image acquired by the target camera includes a complete outline of the target object T, as shown in fig. 4. The shooting range of the target camera positioned on the target display screen T can be adjusted according to the target display screen T after the folding parameters are folded, so that the preview image acquired by the target camera can include a more complete outline of the target object T.
In the embodiment of the application, when the contour of a target object in a preview image acquired by a target camera is incomplete, that is, only part of the target object is located in the preview image, prompt information is sent to a second electronic device through a first electronic device, a holder of the second electronic device executes corresponding actions according to the prompt information, the second electronic device acquires a corresponding motion track and sends the motion track to the first electronic device, the first electronic device determines a folding parameter of a target display screen where the target camera is located according to the motion track, so that the target display screen is folded according to the folding parameter to adjust the shooting range of the target camera, the adjusted preview image contains the complete contour of the target object, and a user does not need to manually fold the target display screen of the first electronic device to adjust the shooting range of the camera in the process, the adjustment process is simple, and the shooting efficiency is improved.
Referring to fig. 5, a flowchart of another shooting method provided in the embodiment of the present invention is shown, which specifically includes the following steps:
and step 501, acquiring images to be displayed, which are acquired by the cameras and arranged on the display screens.
In this application embodiment, the foldable display screen of the first electronic device includes at least two display screens, each display screen is provided with a camera, and each display screen is provided with at least one camera.
Firstly, the preview interface of the camera arranged on each display screen is started, then the image to be displayed collected by the camera arranged on each display screen is obtained, the image to be displayed is collected by each camera arranged on the electronic equipment, so that a plurality of images to be displayed can be obtained, and the first electronic equipment can screen the image which meets the condition from the plurality of images to be displayed.
Step 502, determining a target camera from each camera according to the parameter information of the target object in each image to be displayed, and determining the image to be displayed acquired by the target camera as the preview image; wherein the parameter information includes at least one of location information and area fraction.
In the embodiment of the application, when the target object t in the image to be displayed acquired by each camera is incomplete, the parameter information of the target object t in each image to be displayed is acquired, and the parameter information comprises at least one of position information and area ratio.
Specifically, step 502 includes: substep 5021 and substep 5022.
Substep 5021, determining distance information between the target object and each camera according to the parameter information of the target object in each image to be displayed.
In the embodiment of the application, after the parameter information of the target object t in the plurality of images to be displayed is acquired, the distance information between the target object t and each camera is determined according to the parameter information.
When the parameter information is position information, acquiring position information of a target object t in each image to be displayed, and calculating an image distance between the position of the target object t and the central position of the image to be displayed in each image to be displayed, wherein the size of the image distance reflects the distance information of the target object t relative to each camera, the distance of the target object t relative to each camera is farther when the image distance is larger, and the distance of the target object t relative to each camera is closer when the image distance is smaller, and the position information of the target object t is the coordinate position of the target object t in the image to be displayed.
When the parameter information is area ratio, acquiring the area ratio of the target object t in each image to be displayed in the image to be displayed, specifically, calculating the ratio of the area of the target object t in each image to be displayed to the area of the image to be displayed, wherein the ratio reflects the distance information of the target object t relative to each camera, the larger the ratio is, the closer the distance of the target object t relative to the camera is, and the smaller the ratio is, the farther the distance of the target object t relative to the camera is.
Of course, the parameter information may also include both the location information and the area ratio.
The distance information of the target object t relative to each camera can be determined through the parameter information of the target object t in each image to be displayed, so that the camera closest to the target object t can be determined according to the distance information.
Substep 5022, determining a camera closest to the target object in the cameras as the target camera according to the distance information, and determining an image to be displayed acquired by the target camera as the preview image.
In the embodiment of the application, after the distance information of the target object t relative to each camera is determined, the camera closest to the target object t is determined from all the distance information, and the camera is determined as the target camera.
When the parameter information is position information, determining the minimum image distance from the acquired image distances, determining the camera corresponding to the minimum image distance as a target camera, and simultaneously determining the image to be displayed with the minimum image distance as a preview image.
For example, when the first electronic device includes three cameras a1, a2, and A3, the images to be displayed captured by the three cameras are B1, B2, and B3, respectively, the coordinate of the center position O of each preview image is set to a (0, 0) point, the image distance between the target object t and the point O in the image to be displayed B1 is 1cm, the image distance between the target object t and the point O in the image to be displayed B2 is 1.3cm, and the image distance between the target object t and the point O in the image to be displayed B3 is 1.6cm, it is inferred that the camera a1 capturing the image to be displayed B1 is closest to the target object t, the camera a1 is determined as target shooting, and the image to be displayed B1 is determined as the preview image.
When the parameter information is the area ratio, determining the maximum area ratio from the area ratios of the obtained target objects t to the image to be displayed, determining the camera corresponding to the maximum area ratio as a target camera, and determining the image to be displayed with the maximum area ratio as a preview image.
For example, when the first electronic device includes three cameras a1, a2 and A3, images to be displayed acquired by the three cameras are B1, B2 and B3, the area ratio of the target object t in the image to be displayed B1 to the image to be displayed B1 is 1/6, the area ratio of the target object t in the image to be displayed B2 to the image to be displayed B2 is 1/8, and the area ratio of the target object t in the image to be displayed B3 to the image to be displayed B3 is 1/4, it may be inferred that the camera A3 acquiring the image to be displayed B3 is closest to the target object t, the camera A3 is determined as target shooting, and the image to be displayed B3 is determined as a preview image.
The distance information is determined according to different parameters of the target object T, and the target camera and the preview image are determined according to the determined distance information, so that various modes for determining the target camera and the preview image are provided, the target camera and the preview image are more accurately determined, and the determination of the target camera and the preview image is beneficial to determining the target display screen T which needs to be adjusted according to the target camera subsequently.
Step 503, under the condition of receiving a shooting instruction, acquiring images to be displayed, which are acquired by the cameras and are arranged on the display screens at each moment, in real time; the shooting instruction is a recording mode or a panoramic shooting mode.
In this application embodiment, collapsible display screen includes two at least display screens, all is provided with the camera on every display screen, and first electronic equipment is receiving under the condition of shooing the instruction, and the camera that sets up on each display screen of first electronic equipment acquires the image of waiting to display of every moment collection in real time.
The shooting instruction is a recording mode or a panoramic mode, namely, video recording or panoramic image shooting is performed, the user can manually select the video recording mode or the panoramic shooting mode in the shooting interface of the first electronic device, and the user can also select the video recording mode or the panoramic shooting mode in the shooting interface of the first electronic device through voice control.
The to-be-displayed images collected by the cameras arranged on the display screens at each moment are acquired, so that the cameras with the best shooting ranges can be screened out from the to-be-displayed images collected by the different cameras at each moment by the first electronic equipment, and the shooting files meeting the conditions better can be obtained.
Step 504, for the parameter information of the target object in each image to be displayed corresponding to each moment, determining a target camera from each camera, and determining the image to be displayed acquired by the target camera as the preview image; wherein the parameter information includes at least one of location information and area fraction.
In the embodiment of the application, when a moving target object t is shot, the target object t can move out of an optimal view angle range of a camera which is shooting at a certain moment due to the movement of the target object t, so that the shooting of a video is influenced, because the first electronic device comprises at least two display screens, and each display screen is provided with a camera, the first electronic device comprises at least two cameras, after an image to be displayed which is acquired by the cameras which are arranged on the display screens at each moment is acquired, when an image to be displayed which is acquired by each image to be displayed and acquired by each camera comprises a complete target object t, a first camera for video shooting or panoramic shooting needs to be determined from the plurality of cameras, when the target object t moves out of the optimal shooting range of the first camera which is shooting in the moving process, and when the user enters the optimal shooting range of the second camera, switching the cameras, controlling the second camera to shoot, and displaying a preview image shot by the second camera on a preview interface of the first electronic device.
The specific process of switching the cameras in the shooting process is as follows:
when the foldable display screen of the first electronic device includes the first display screen P1 and the second display screen P2, as shown in fig. 6 and 7, the first camera a is disposed on the first display screen P1, the second camera B is disposed on the second display screen P2, the image to be displayed acquired by the first camera a is a first image to be displayed, and the image to be displayed acquired by the second camera B is a second image to be displayed.
At a time t1, an image distance s1 between the position of the target object t in the first image to be displayed and the center position of the first image to be displayed and an image distance s2 between the position of the target object t in the second image to be displayed and the center position of the second image to be displayed are obtained, when s1 is smaller than or equal to s2, the first image to be displayed acquired by the first camera a is displayed in a preview interface of the first electronic device, a subsequently generated shooting file is stored at a time t1 and is also the first image to be displayed acquired by the first camera a, at this time, the first camera a1 is determined as the target camera, and the first image to be displayed is determined as a preview image.
When the time t2 is reached, an image distance s3 between the position of the target object t in the third image to be displayed acquired by the first camera a and the center position of the third image to be displayed and an image distance s4 between the position of the target object t in the fourth image to be displayed acquired by the second camera B and the center position of the fourth image to be displayed are acquired, when s3 is larger than s4, the fourth image to be displayed is displayed in a preview interface of the first electronic device, a subsequently generated shooting file stores the fourth image to be displayed at the time t2, the second camera B is determined to be the target camera, the fourth image to be displayed is determined to be a preview image, and therefore switching of the cameras is completed in the shooting process.
Or at the time t1, acquiring an area ratio k1 of the target object t in the first image to be displayed acquired by the first camera a and an area ratio k2 of the target object t in the second image to be displayed acquired by the second camera B, when k1 is greater than or equal to k2, displaying the first image to be displayed acquired by the first camera a in a preview interface of the first electronic device, and storing a subsequently generated shooting file in the time t1, which is also the first image to be displayed acquired by the first camera a, at this time, determining the first camera a1 as the target camera and determining the first image to be displayed as the preview image.
When the time t2 is reached, the area ratio k3 of the target object t in the third image to be displayed acquired by the first camera a and the area ratio k4 of the target object t in the fourth image to be displayed acquired by the second camera B are acquired, when k3 is smaller than k4, the fourth image to be displayed is displayed in the preview interface of the first electronic device, a subsequently generated shooting file is stored at the time t2 and is also the fourth image to be displayed acquired by the second camera B, at this time, the second camera B is determined as the target camera, the fourth image to be displayed is determined as the preview image, and therefore switching of the cameras is completed in the shooting process.
In this embodiment of the application, when the target object t moves in front of the first electronic device, and when a camera in the first electronic device collects an image to be displayed, a prompt box is displayed on the first electronic device, as shown in fig. 6 and 7, a moving condition of the target object t in front of the first electronic device is displayed in the prompt box, a dot on an arc line in the prompt box indicates a position of the target object t in front of the first electronic device, and when the origin is located on the right side of a center position of the arc line, as shown in fig. 6, it indicates that the target object t is located within an optimal shooting range of the first camera a in the first electronic device, and at this time, the first camera a is shooting. When the dot is moved to the left side of the arc center position, as shown in fig. 7, it indicates that the target object t is located within the optimal shooting range of the second camera B in the first electronic device, and at this time, the second camera B is shooting.
In the embodiment of the application, the to-be-displayed image is acquired by the plurality of cameras simultaneously, the cameras for video shooting or panoramic image shooting are switched according to the position information of the target object t in the to-be-displayed image and the area ratio of the target object t, so that the target object t in the finally acquired video or panoramic image is ensured to be at the best shooting visual angle, the video and panoramic image shooting efficiency is improved, and in addition, a display interface of the first electronic equipment can prompt a user whether the target object t moves out of the shooting range of the cameras or not through a display prompt box.
And 505, sending prompt information to a second electronic device connected with the first electronic device when the contour integrity of the target object in the preview image is smaller than a first set value.
This step is similar to the step 102 in the above embodiment, and is not described herein again.
Step 506, receiving a motion track returned by the second electronic device; the motion trail is acquired by the second electronic device when the holder of the second electronic device executes corresponding action according to the prompt message.
This step is similar to the step 103 in the above embodiment, and is not described herein again.
And 507, determining the folding direction of the target display screen where the target camera is located according to the movement direction.
In the embodiment of the application, the motion track of the second electronic device includes a motion direction and a motion distance, the folding parameters of the target display screen T include a folding direction and a folding angle, and when the motion direction in the motion track of the second electronic device moves from an initial position to a first direction, the target display screen T is folded towards the display surface of the display screen connected with the target display screen T; when the movement direction in the movement locus of the second electronic device is from the initial position to the second direction, the target display screen T is folded away from the display surface of the display screen connected with the target display screen T. Therefore, the folding direction of the target display screen T can be determined through the movement direction in the movement track of the second electronic device, so that the target display screen T can be folded subsequently.
The first direction may be upward movement along the initial position, and the second direction is downward movement along the initial position, or the first direction is forward movement along the initial position, and the second direction is backward movement along the initial position, or the first direction is rightward movement along the initial position, and the second direction is leftward movement along the initial position, and the specific direction may be set according to an actual situation, which is not limited in this embodiment of the application.
And step 508, determining the folding angle of the target display screen where the target camera is located according to the movement distance.
In this embodiment of the application, the movement locus of the second electronic device includes a movement distance, and the folding angle of the target display screen T may be determined according to the movement distance of the second electronic device in the first direction or the second direction.
For example, when the movement distance in the first direction is 3cm, the folding angle at which the target display screen T is folded toward the display surface of the display screen connected to the target display screen T is 30 °, the target display screen T can be folded according to the preset frequency in the folding process, for example, the target display screen T can be folded according to 10 ° per second, folding for 3 seconds is completed by 30 degrees, a correspondence table between the movement distance and the folding angle is stored in the first electronic device, after the movement distance is acquired, the folding angle corresponding to the movement distance can be searched in the correspondence table, and then the folding angle of the target display screen T is determined according to the folding angle.
In the embodiment of the application, the folding angle of the target display screen T can be determined through the movement distance in the movement track of the second electronic device, and the determination of the folding angle of the target display screen T can be used for folding the target display screen T so as to adjust the shooting range of the target camera positioned on the target display screen T.
And 509, controlling the target display screen to be folded according to the folding parameters so as to adjust the shooting range of the target camera.
This step is similar to the step 105 of the above embodiment, and is not described herein again.
In the practical use process, after the target display screen T is subjected to one folding operation, the integrity of the target object T included in the preview image acquired by the target display screen T may still not meet the requirement, and therefore the target display screen T may be folded for multiple times.
Therefore, after step 509, the method further comprises: determining an initial angle between the target display screen and a display screen connected with the target display screen; determining the difference value between the maximum folding angle of the target display screen and the initial angle as the preset angle; and under the condition that the folding angle of the target display screen reaches a preset angle and the contour integrity of the target object in the preview image collected by the target camera is smaller than a second set value, finishing shooting and generating a shooting file.
In the embodiment of the application, an initial angle between a display surface of a target display screen T and a display surface of a display screen connected to the target display screen T is determined, the display surface of the display screen connected to the target display screen T is used as a reference surface, an included angle between the display surface of the target display screen T and the reference surface is detected through a gyroscope in first electronic equipment, and the included angle is determined as the initial angle.
For example, when the display surface of the target display screen T and the display surface of the display screen connected thereto are located on the same plane, the initial angle between the target display screen T and the display screen connected thereto is 180 °.
In the embodiment of the application, when the display surface of the target display screen T is in full contact with the display surface of the display screen adjacent to the target display screen T, the target display screen T is folded, so that one side of the folded target display screen T, which is deviated from the display surface, is in full contact with one side of the display screen adjacent to the target display screen T, which is deviated from the display surface, 360 ° is folded in the folding process, and the folding angle is defined as the maximum folding angle.
In the embodiment of the application, a difference value between the maximum folding angle and the initial angle of the target display screen T is calculated, and the difference value is used as a preset angle to judge the folding process of the target display screen T, so as to judge whether the target display screen T can be continuously folded or not, and further determine whether to continuously shoot or not.
For example, when the initial angle of the target display screen T is 180 °, the maximum folding angle of the target display screen T is 360 °, and the preset angle is 360 ° -180 ° =180 °.
And controlling the target display screen T to be folded according to the folding parameters until the folding angle of the target display screen T in the folding process reaches a preset angle, at the moment, judging whether the integrity of the outline of the target object T in the preview image acquired by the target camera is smaller than a second set value or not, when the integrity of the outline of the target object T is smaller than the second set value, finishing the shooting and generating a shooting file, wherein the shooting file is stored in the first electronic equipment for a user to check.
The second setting value may be the same as or different from the first setting value, and this is not limited in this embodiment of the application.
For example, when the second setting value is 70%, the contour integrity of the target object t in the preview image captured by the target camera is 50%, and since 50% < 70%, this capturing is ended at this time.
In the embodiment of the application, when the folding angle of the target display screen T reaches the preset angle and the integrity of the contour of the target object T in the preview image is smaller than the second set value, that is, the integrity of the contour of the target object T in the preview image is lower at the moment, the shot preview image has no use value, and the shooting is finished at the moment, so that the electric quantity of a terminal can be saved, the utilization rate of shot files can be improved, and the storage space of the terminal can be saved.
It should be noted that when the integrity of the contour of the target object t in the preview image is greater than the second set value, the shooting is continued until the user actively terminates the shooting.
In the embodiment of the application, under the condition that the contour integrity of a target object in a preview image is smaller than a first set value, first electronic equipment sends prompt information to second electronic equipment, the first electronic equipment controls the folding direction of a target display screen according to the movement direction in a movement track returned by the second electronic equipment, controls the folding angle of the target display screen according to the movement distance in the movement track, and does not need a user to manually adjust the target display screen.
In the shooting method provided by the embodiment of the present application, the executing subject may be a shooting device, or a control module in the shooting device for executing the shooting method. In the embodiment of the present application, a shooting method executed by a shooting device is taken as an example, and the shooting method provided in the embodiment of the present application is described.
Referring to fig. 8, a block diagram of a shooting device according to an embodiment of the present disclosure is shown.
This shooting device 800 is applied to a first electronic equipment, the first electronic equipment includes at least one camera and collapsible display screen, device 800 includes:
a preview image acquiring module 801, configured to acquire a preview image acquired by a target camera; the target camera is any one of the at least one camera;
a prompt information sending module 802, configured to send a prompt information to a second electronic device connected to the first electronic device when the integrity of the contour of the target object in the preview image is smaller than a first set value;
a motion track receiving module 803, configured to receive a motion track returned by the second electronic device; the motion trail is acquired by the second electronic equipment when a holder of the second electronic equipment executes corresponding actions according to the prompt information;
a folding parameter determining module 804, configured to determine, according to the motion trajectory, a folding parameter of a target display screen where the target camera is located;
and a shooting range adjusting module 805, configured to control the target display screen to be folded according to the folding parameter, so as to adjust a shooting range of the target camera.
Referring to fig. 9, a block diagram of another photographing apparatus according to an embodiment of the present application is shown.
On the basis of fig. 8, optionally, the foldable display screen includes at least two display screens, and each display screen is provided with the camera; the preview image acquiring module 801 includes:
the to-be-displayed image first obtaining sub-module 8011 is configured to obtain to-be-displayed images collected by the cameras arranged on the display screens;
the preview image first determining sub-module 8012 is configured to determine, according to parameter information of the target object in each image to be displayed, a target camera from each camera, and determine an image to be displayed, which is acquired by the target camera, as the preview image;
wherein the parameter information includes at least one of location information and area fraction.
Optionally, the preview image first determining sub-module 8012 includes:
the distance information determining unit is used for determining the distance information between the target object and each camera according to the parameter information of the target object in each image to be displayed;
and the preview image determining unit is used for determining the camera closest to the target object in the cameras as the target camera according to the distance information, and determining the image to be displayed acquired by the target camera as the preview image.
Optionally, the foldable display screen includes at least two display screens, and each display screen is provided with the camera; the preview image acquiring module 801 includes:
the to-be-displayed image second obtaining sub-module 8013 is configured to obtain, in real time, an to-be-displayed image collected by the camera arranged on each display screen at each moment when the shooting instruction is received; the shooting instruction is a recording mode or a panoramic shooting mode;
the preview image second determining submodule 8014 is configured to determine, for the parameter information of the target object in each image to be displayed corresponding to each time, a target camera from each camera, and determine the image to be displayed acquired by the target camera as the preview image; wherein the parameter information includes at least one of location information and area fraction.
Optionally, the motion trajectory includes a motion direction and a motion distance, and the folding parameters include a folding direction and a folding angle; the folding parameter determining module 804 includes:
a folding direction determining submodule 8041, configured to determine, according to the moving direction, a folding direction of the target display screen where the target camera is located;
the folding angle determination submodule 8042 is configured to determine, according to the movement distance, a folding angle of the target display screen where the target camera is located.
Optionally, the apparatus 800 further includes:
and the shooting file generation module is used for finishing shooting and generating a shooting file under the condition that the folding angle of the target display screen reaches a preset angle and the contour integrity of the target object in the preview image collected by the target camera is smaller than a second set value.
Optionally, the apparatus 800 further includes:
the initial angle determining module is used for determining an initial angle between the target display screen and a display screen connected with the target display screen;
and the preset angle determining module is used for determining the difference value between the maximum folding angle of the target display screen and the initial angle as the preset angle.
In the embodiment of the application, when the contour of a target object in a preview image acquired by a target camera is incomplete, that is, only part of the target object is located in the preview image, prompt information is sent to a second electronic device through a first electronic device, a holder of the second electronic device executes corresponding actions according to the prompt information, the second electronic device acquires a corresponding motion track and sends the motion track to the first electronic device, the first electronic device determines a folding parameter of a target display screen where the target camera is located according to the motion track, so that the target display screen is folded according to the folding parameter to adjust the shooting range of the target camera, the adjusted preview image contains the complete contour of the target object, and a user does not need to manually fold the target display screen of the first electronic device to adjust the shooting range of the camera in the process, the adjustment process is simple, and the shooting efficiency is improved.
The shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided in the embodiment of the present application can implement each process implemented by the shooting device in the method embodiments of fig. 1 to 7, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 10, an electronic device 1000 is further provided in this embodiment of the present application, and includes a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and executable on the processor 1001, where the program or the instruction is executed by the processor 1001 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and the like.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The radio frequency unit 1101 is configured to receive a motion trajectory returned by the second electronic device; the motion trail is acquired by the second electronic device when the holder of the second electronic device executes corresponding action according to the prompt message.
A processor 1110 configured to obtain a preview image acquired by a target camera; the target camera is any one of the at least one camera; sending prompt information to second electronic equipment connected with the first electronic equipment under the condition that the contour integrity of the target object in the preview image is smaller than a first set value; determining folding parameters of a target display screen where the target camera is located according to the motion track; and controlling the target display screen to be folded according to the folding parameters so as to adjust the shooting range of the target camera.
In the embodiment of the application, when the contour of a target object in a preview image acquired by a target camera is incomplete, that is, only part of the target object is located in the preview image, a prompt message is sent to a second electronic device through a first electronic device, a holder of the second electronic device executes a corresponding action according to the prompt message, the second electronic device acquires a corresponding motion track and sends the motion track to a first and second electronic devices, the first electronic device determines a folding parameter of a target display screen where the target camera is located according to the motion track, so that the target display screen is folded according to the folding parameter to adjust the shooting range of the target camera, so that the adjusted preview image contains the complete contour of the target object, and a user does not need to manually adjust and fold the target display screen of the first electronic device to adjust the shooting range of the camera in the process, the adjustment process is simple, and the shooting efficiency is improved.
Optionally, the foldable display screen includes at least two display screens, and each display screen is provided with the camera; the processor 1110 is further configured to obtain images to be displayed, which are acquired by the cameras and arranged on the display screens; determining a target camera from the cameras according to the parameter information of the target object in each image to be displayed, and determining the image to be displayed acquired by the target camera as the preview image; wherein the parameter information includes at least one of position information and area fraction.
Optionally, the processor 1110 is further configured to determine, according to parameter information of the target object in each image to be displayed, distance information between the target object and each camera; and according to the distance information, determining a camera closest to the target object in the cameras as the target camera, and determining an image to be displayed acquired by the target camera as the preview image.
Optionally, the foldable display screen includes at least two display screens, and each display screen is provided with the camera; the processor 1110 is further configured to obtain, in real time, an image to be displayed, which is acquired by the camera and is set on each display screen at each moment, under the condition that a shooting instruction is received; the shooting instruction is a recording mode or a panoramic shooting mode; determining a target camera from the cameras according to the parameter information of the target object in each image to be displayed corresponding to each moment, and determining the image to be displayed acquired by the target camera as the preview image; wherein the parameter information includes at least one of location information and area fraction.
Optionally, the processor 1110 is further configured to determine, according to the moving direction, a folding direction of the target display screen where the target camera is located; determining the folding angle of the target display screen where the target camera is located according to the movement distance; the motion trail comprises a motion direction and a motion distance, and the folding parameters comprise a folding direction and a folding angle.
Optionally, the processor 1110 is further configured to finish the shooting and generate a shooting file when the folding angle of the target display screen reaches a preset angle and the integrity of the contour of the target object in the preview image acquired by the target camera is smaller than a second set value.
Optionally, the processor 1110 is further configured to determine an initial angle between the target display screen and a display screen connected to the target display screen; and determining the difference value between the maximum folding angle of the target display screen and the initial angle as the preset angle.
In the embodiment of the application, under the condition that the contour integrity of a target object in a preview image is smaller than a first set value, first electronic equipment sends prompt information to second electronic equipment, the first electronic equipment controls the folding direction of a target display screen according to the movement direction in a movement track returned by the second electronic equipment, controls the folding angle of the target display screen according to the movement distance in the movement track, and does not need a user to manually adjust the target display screen.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element identified by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.