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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within 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 will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter 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, fig. 1 is a shooting method provided in an embodiment of the present application, where the shooting method includes:
step S101, under the condition that the electronic equipment is in a target shooting mode, a shooting preview interface is displayed, wherein the shooting preview interface comprises a target area, and the target area is used for indicating a first shooting focus.
The electronic device may include a normal shooting mode and the target shooting mode, a user may enter the normal shooting mode by default after starting a shooting application, a shooting preview interface may display a control for switching the shooting modes, and when the user selects the control for switching the shooting modes, the shooting mode of the electronic device may be switched to the target shooting mode. Of course, the target photographing mode may be entered by default after the user starts the photographing application. In addition, after the user starts the shooting application, a dialog box may pop up, where the dialog box includes a selection control for entering a normal shooting mode and a selection control for entering a target shooting mode, and the user enters the corresponding shooting mode based on a selection operation in the dialog box.
The target area may be a perspective floating window located on an upper layer of the shooting preview interface, or may be a closed area partitioned by a virtual line of the shooting preview interface on the shooting preview interface. Furthermore, the target area may be a partial area of the shooting preview interface, and the outline shape of the target area may be the same as that of the shooting preview interface, for example, as shown in fig. 2, when the shooting preview interface is a rectangular display interface, the target area may be a rectangular area located on the shooting preview interface.
The first shooting focus may be a core object that needs to be shot by a user during shooting, for example, if the user needs to shoot a portrait video of a certain person, the shot person may be used as the first shooting focus, and optionally, a facial feature of the shot person may also be used as the first shooting focus.
The target area is used for indicating the user to enable the first shooting focus to be always located in the target area in the process of shooting the target multimedia content, so that the user can enable the shot core object to be always located in the target area based on the indication of the target area in the specific shooting process.
Step S102, receiving a first input;
the first input may be a shooting instruction input by a user on the shooting preview interface, for example, the first input may be a click operation of a start shooting control by the user on the shooting preview interface.
Specifically, the first input may be an operation of taking a picture selected by the user in a target shooting mode, where the target multimedia content is a picture file that is shot by the electronic device in response to the first input of the user. In addition, the first input may also be an operation of shooting a video selected by the user in the target shooting mode, where the target multimedia content is a video file shot by the electronic device in response to the first input of the user.
And step S103, responding to the first input, and generating target multimedia content.
As can be seen from the above discussion, after receiving the first input, the electronic device will respond to the first input and generate the target multimedia content.
Step S104, storing the target multimedia content and the attribute information of the target area in a correlation manner;
when the target multimedia content is in a playing state and the electronic device rotates from the first position to the second position in the plane where the display interface is located, the picture content played by the display interface is switched from the first content to the second content, the display direction of the picture content is kept unchanged, and the second content is obtained after the first content is amplified based on the attribute information.
The attribute information of the target area may include position information of the target area in the shooting preview interface and attribute information of the shape, size, and the like of the target area. In addition, the attribute information of the target area may be coordinate information of a center point of the target area in the shooting preview interface.
And storing the target multimedia content in association with the attribute information of the target area so as to facilitate the subsequent amplification of the target multimedia content based on the attribute information associated with the target multimedia content in the process of playing the target multimedia content.
Specifically, assuming that the target multimedia device is a video obtained by shooting the electronic device in a target shooting mode in a vertical screen state, when the video is actually played, if a user plays the video in a horizontal screen mode, the video is usually rotated to a horizontal screen state in order to ensure that a video frame is consistent with the posture of the electronic device. However, referring to fig. 3, since the width d of the display interface of the electronic device is generally smaller than the height h, the width d of the display interface refers to the horizontal size of the display interface when the electronic device is in the vertical screen state, and the height h of the display interface refers to the vertical size of the display interface when the electronic device is in the vertical screen state. In the prior art, after a video frame is rotated, the height size of the video frame is reduced from h to d, and in order to make the video frame coordinate as a whole, the width size of the video frame is reduced by the same proportion, so that in a landscape display state, the video frame can only occupy a partial area of a display interface, which is not beneficial for a user to view the detailed content of the frame, for example, please refer to fig. 4 which is a state diagram before the frame is rotated, and fig. 5 which is a state diagram after the frame is rotated. In the embodiment of the application, in the process of rotating the electronic device, the position of the target area is taken as an amplification center, that is, the focus of the video image is taken as the amplification center, and the image of the video is amplified, so that the video image is amplified and displayed while the size of the video image is reduced due to rotation, the display range of the video image in a playing interface is enlarged in the horizontal screen playing state, and the display effect of multimedia content is improved. In addition, in the embodiment of the application, in the process of rotating the electronic device, the display direction of the picture content is kept unchanged, so that the problem that the direction of the picture display changes back and forth due to the rotation of the electronic device can be effectively solved, and the display effect of the multimedia content is further improved. For example, please refer to fig. 6 for a schematic diagram of rotating the image in fig. 4 until the diagonal line of the display interface is in a horizontal state, and fig. 7 for a schematic diagram of rotating the image in fig. 4 until the image is in a horizontal display state.
In the process of magnifying the target multimedia content, because the upper and lower edges of the video frame in the landscape state are flush with the upper and lower edges of the display interface before the target multimedia content is magnified, after the video frame is magnified as a whole, the upper and lower partial frames of the video frame cannot be displayed because the partial frames exceed the range of the display interface. In the process of amplification, the position of the target area is always used as an amplification center, so that the focus of the amplified picture can be ensured to be positioned in the middle of the display interface, the core content of the picture cannot be lost after the video is amplified, and the display effect of the multimedia content is improved.
In this embodiment, a target area is set on the shooting preview interface, so that a user can locate a first shooting focus in the target area during shooting, and after obtaining target multimedia content through shooting, the target multimedia content is stored in association with attribute information of the target area. Therefore, in the process of playing the target multimedia content, when the electronic equipment rotates on the plane where the display interface is located and the picture of the display interface is reduced, the picture of the multimedia content can be magnified and displayed based on the attribute information so as to increase the picture size in the display area, and meanwhile, the first shooting focus can be ensured to be positioned in the picture after the magnified display, so that the display effect of the multimedia content is improved. In addition, in the process of rotating the electronic equipment, the display direction of the picture content is kept unchanged, so that the problem that the display direction of the picture changes back and forth due to the rotation of the electronic equipment can be effectively solved, and the display effect of the multimedia content is further improved.
Optionally, the method further comprises:
determining a zoom factor, wherein the zoom factor is greater than or equal to a first preset value, and the first preset value is a ratio of a diagonal length of the shooting preview interface to a side length of a shorter side of the shooting preview interface;
and determining the target area at a preset position of the shooting preview interface, wherein the aspect ratio of the target area and the zoom factor are in a preset proportional relation, and the preset proportional relation is determined according to the preset position.
Referring to fig. 3, the first preset value is a ratio of a length L of a diagonal line of the shooting preview interface to a side length d of a shorter side of the shooting preview interface. Optionally, the first preset value is equal to L/d. The preset position may be any position of the shooting preview interface, optionally, the preset position is a central position of the shooting preview interface, and when the preset position is the central position of the shooting preview interface, the preset proportional relationship is 1.
Specifically, in the process of playing the target multimedia content, it is assumed that the target multimedia content is a multimedia content shot by the electronic device in a portrait screen state. When the electronic equipment rotates from the vertical screen state to the horizontal screen state, the picture of the display interface cannot rotate along with the electronic equipment. Therefore, in the process of rotating the electronic device, the width of the display interface will gradually increase, and the height will gradually decrease, at this time, the width of the display interface will be greater than the width of the picture, so that the picture displayed on the interface needs to be enlarged to make the picture of the target multimedia content spread over the display interface, and optionally, the picture of the target multimedia content can be gradually enlarged with the position of the target area as an enlargement center in the process of rotating the electronic device, so that the width of the picture of the target multimedia content is always matched with the width of the display interface.
When the electronic device rotates to a first position, the width of the display interface of the electronic device reaches the maximum, and at this time, the width of the display interface is the length L of the diagonal line of the display interface, where the first position is a position where the diagonal line of the display interface of the electronic device is in a horizontal state, that is, in the process of rotating the electronic device, when the display interface moves to the horizontal state, it is determined that the electronic device is in the first position, and at this time, the frame of the target multimedia content needs to be enlarged by L/d times, so that the frame of the target multimedia content has a width L. When the electronic device rotates from a first position to a second position, the width of a display interface of the electronic device is gradually reduced from L to h, wherein the second position is a position where the electronic device is in a landscape state, and in the process, the picture of the target multimedia content is reduced accordingly.
Therefore, in the process, the maximum magnification of the first content displayed on the display interface is L/d times. Because the frame width of the first content is always matched with the width of the display interface, the frame of the target area in the width direction can be ensured to be always within the display range of the display interface. In the process of amplification, in order to avoid that the picture in the height direction of the target area is amplified to exceed the display range of the display interface, when the first content is amplified to the amplification factor L/d, the height of the target area is equal to the minimum width d of the display interface, namely, when the picture is amplified to the maximum factor, the picture of the target area is located in the display range of the display interface, so that the picture of the target area in the height direction and the width direction is always located in the display range of the display interface in the whole rotation process, and further, the core picture of the target multimedia content is always in the display state.
Since there is no problem of losing the image of the target region in the width direction during the process of enlarging the image, in order to increase the area of the target region, the width of the target region may be selected to be the same as the width of the display interface, that is, the initial width of the target region may be set to be d. As can be seen from the above discussion, when the screen is enlarged to L/d times, the height of the target area is enlarged to d, and therefore, the initial height of the target area can be d2 And L. At this time, the aspect ratio of the target area is L/d, that is, the aspect ratio of the target area is equal to the scaling factor, and the preset ratio relationship is 1.
In addition, the scaling factor may also be greater than the first preset value, or may also be smaller than the first preset value. When the zoom factor is equal to the first preset value and the target area is enlarged to the maximum multiple, the size of the target area in the height direction is just d, so that the situation that the picture of the target area is enlarged to be positioned outside the electronic equipment in the rotating process is avoided. And when the zoom factor is smaller than the first preset value and the target area is enlarged to the maximum multiple, the size of the target area in the height direction is smaller than d, and at this time, although a part of non-display area exists on the display interface, since the image of the target area is displayed after being enlarged, compared with the prior art, the display effect of the multimedia content can be improved.
As can be seen from the above discussion, the aspect ratio of the target region is set to be in a preset proportional relationship with the scaling factor to increase the area of the target region, so that a user can locate as many core elements as possible in the target region during shooting, thereby improving the quality of the shot target multimedia content.
Optionally, after the target area is determined at the preset position of the shooting preview interface, the method further includes:
receiving a second input for offsetting the target area within the capture preview interface;
determining offset information for the target area in response to the second input;
and determining a first area on the shooting preview interface based on the offset information and the zoom factor, and taking the first area as a target area after offset.
Specifically, after entering a target shooting mode, the target area is set to the preset position, where the preset position may be a central position of the shooting preview interface, and a user may manually adjust the position of the target area in a specific shooting process, so as to meet a requirement of the user for adjusting the focus position in a specific shooting scenario.
For example, the target area is displayed on the upper layer of the perspective floating window of the shooting preview interface, the second input may be a drag operation of the user on the perspective floating window, and the position of the target area may be adjusted by dragging the perspective floating window. In addition, several preset positions may also be preset as adjustable positions of the target area, and at this time, the user may perform a specific touch operation at the preset positions to move the target area to the preset area selected by the user. The specific touch operation may be a double click, a heavy pressure, a specific gesture, or the like.
As can be seen from the above discussion, in the portrait state, two sides of the target area are aligned with two sides of the display interface, and therefore, in order to avoid the target area moving out of the display range of the display interface during the process of adjusting the position of the target area, the adjusting the position of the target area may refer to shifting the position of the target area in the height direction of the electronic device.
The offset information may be a distance by which the target area is offset in the height direction of the electronic device. The distance may refer to a distance between a horizontal centerline of the target region before the offset and a horizontal centerline of the target region after the offset.
In this embodiment, the first region may be used as the target region after the offset, and the size and the specific position of the first region may be determined based on the offset information and the scaling factor, so as to implement the adjustment process for the position of the target region.
Optionally, the determining, at the shooting preview interface, a first area based on the offset information and the zoom factor includes:
determining the size of the first area based on the offset information and the scaling coefficient, wherein the aspect ratio of the first area and the scaling coefficient are in a first proportional relationship, and the first proportional relationship is determined according to the offset information;
determining a position of the first area in the photographing preview interface based on the offset information.
The first proportional relationship may be h/(h-2 x): 1, wherein x is more than 0 and less than h/2, wherein h is the height of the display interface, and x is the offset of the target area. Similarly, the predetermined ratio relationship can also be defined by h/(h-2 x): 1, where x is the distance that the target area deviates from the centered position of the display interface.
Specifically, when the offset of the target area is x, the focus picture of the target multimedia content captured at this time deviates from the center position of the picture. In the process of playing the target multimedia content, when the electronic device needs to be rotated, the target area can be moved to the central position of the display interface, so that the target area is prevented from being enlarged to be positioned outside the display interface due to the fact that the target area is close to the edge of the display interface. Assuming that the distance between the target area and the horizontal center line of the display interface is x, before the screen needs to be enlarged, the target area may be moved downward by x, at this time, the height of the screen located above the horizontal center line is (h-2 x)/2, and the height of the display area located above the horizontal center line is h/2, at this time, in order to ensure that the screen can be fully spread over the entire display area, the screen may be enlarged first, so that the top of the screen and the height of the display area are equal to h/2The top is aligned, that is, the height of the picture is enlarged from (h-2 x)/2 to h/2, and the magnification in the process is h/(h-2 x). Then, the rotation process step in the above embodiment is performed, and it can be known from the above embodiment that the maximum magnification of the picture is L/d times during the rotation process. I.e. the actual maximum magnification of the magnification process for the image after the shift is

In the enlarging process, in order to prevent the picture in the height direction of the target area from being enlarged to exceed the display range of the display interface, the first content may be enlarged to the maximum magnification
During the doubling, the height of the target area is equal to the minimum width d of the display interface, namely, when the picture is enlarged to the maximum multiple, the picture of the target area is positioned within the display range of the display interface, so that the picture of the target area in the height direction is always positioned within the display range of the display interface in the whole rotating process, and the core picture of the target multimedia content is always in a display state.
As can be seen from the above discussion, when the frame is enlarged to
At times, the height of the target area is enlarged to d, and thus, the initial height of the target area may be ^ greater than or equal to>
Since the initial width of the target area is still d, the aspect ratio of the target area is ≧>
And the scaling factor is L/d, therefore, in this state, the ratio of the aspect ratio of the first region to the scaling factor is h/(h-2 x): 1.
since the first region has a width d and a height d
And the distance of the offset display interface is x, and when the offset information x is a determined value, the position and the size of the first area can be determined. And the aspect ratio of the first area and the scaling factor are in a first proportional relationship to increase the area of the target area, so that a user can enable as many core elements as possible to be positioned in the target area in the shooting process, and the quality of the shot target multimedia content is improved.
Optionally, before generating the target multimedia content, the method further includes:
and displaying prompt information on the shooting preview interface, wherein the prompt information is used for prompting a user to enable the first shooting focus to be located in the target area in the shooting process.
The prompt information may be a text prompt information displayed on the shooting preview interface after the user enters the target shooting mode, for example, "please place the shooting focus in the framed area", and the prompt information may also be an animation tutorial, which may show the standard operation of the shooting process for the user.
In this embodiment, after the user enters the target shooting mode, the prompt message is displayed on the shooting preview interface, so as to guide the user to shoot according to the standard operation, thereby improving the quality of the shot target multimedia content.
Optionally, an area of the display region of the second content is the same as an area of the display region of the first content.
Specifically, please refer to fig. 4 for a schematic diagram of displaying the first content in the vertical screen state on the display interface, when the screen content needs to be displayed through the horizontal screen, the first content rotates to the state shown in fig. 5, at this time, the first content displayed in fig. 5 may be displayed in an enlarged manner to obtain the second content, and refer to fig. 7 for a display state diagram of the second content obtained after the first content displayed in fig. 5 is enlarged. Since the first content is displayed on the display interface in a full screen mode in the original state (see fig. 4), the second content can be displayed on the display interface in a full screen mode, so that the phenomenon that the viewing experience of a user is affected due to the fact that the picture is reduced in the rotating process is avoided. Therefore, according to the embodiment of the application, the area of the display area of the second content is the same as that of the display area of the first content, so that the viewing experience of a user is improved.
It should be noted that, in the process that the electronic device rotates from the vertical screen state shown in fig. 4 to the horizontal screen state shown in fig. 7, the magnification of the picture content in the display interface may be adjusted in real time according to the rotation angle of the electronic device, so that the picture area of the enlarged picture content is always the same as the area of the display area of the first content, for example, as shown in fig. 6, when the diagonal line of the display interface rotates to the electronic device is in the horizontal state, the state diagram of the display interface is displayed, and at this time, the picture area of the enlarged picture content is the same as the area of the display area of the first content, thereby improving the display effect of the multimedia content.
Optionally, when the first content is displayed in full screen on the display interface, the horizontal width of the enlarged screen content may be always equal to the horizontal width of the display interface after rotation. Because the height of the picture content is larger than h after the picture content is amplified, and the height size of the display interface is smaller than h after the electronic device rotates, the size of the amplified picture content in the height direction is always larger than the size of the display area in the height direction, and thus, the picture area of the amplified picture content can be ensured to be always the same as the area of the display area of the first content only by ensuring that the horizontal width of the amplified picture content is always equal to the horizontal width of the display interface after rotation.
Please refer to fig. 8, which is a flowchart illustrating a photographing method according to another embodiment of the present disclosure. The method specifically comprises the following steps: after a user starts a shooting application, whether a target shooting mode is entered or not is judged, when the user selects to enter the target shooting mode, a target area is displayed, whether the position of the target area is adjusted or not is judged, if yes, the target area after offset is displayed, offset information and a zoom factor are recorded, target multimedia content is shot based on a shooting instruction of the user, and the target multimedia content, the offset information and the zoom factor are stored in an associated mode. And when the user does not select to enter the target shooting mode, executing common shooting operation based on the shooting operation of the user. Further, when the user does not select the position of the adjustment target area, the generation target multimedia content is stored in association with the zoom factor based on the photographing operation of the user. After the target multimedia content, the offset information and the zoom factor which are stored in association are obtained, the target multimedia content, the offset information and the zoom factor can be uploaded to a server, so that other electronic equipment except for the electronic equipment for shooting the video can play the rotating video by downloading the target multimedia content, the offset information and the zoom factor which are stored in association.
It should be noted that, in the shooting method provided in the embodiment of the present application, the execution 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 device executes a shooting method as an example, and a device of the shooting method provided in the embodiment of the present application is described.
Referring to fig. 9, fig. 9 is acamera 900 according to an embodiment of the present disclosure, which includes:
thedisplay module 901 is configured to display a shooting preview interface when the electronic device is in a target shooting mode, where the shooting preview interface includes a target area, and the target area is used to indicate a first shooting focus;
afirst receiving module 902, configured to receive a first input;
agenerating module 903, configured to generate target multimedia content in response to the first input;
astorage module 904, configured to store the target multimedia content in association with the attribute information of the target area;
under the condition that the target multimedia content is in a playing state and the electronic equipment rotates from a first position to a second position in a plane where a display interface is located, the picture content played by the display interface is switched from first content to second content, the display direction of the picture content is kept unchanged, and the second content is obtained after the first content is amplified based on the attribute information.
Optionally, thedisplay module 901 further includes:
the first determining sub-module is used for determining a zoom factor, wherein the zoom factor is greater than or equal to a first preset value, and the first preset value is a ratio of the length of a diagonal line of the shooting preview interface to the length of a shorter side of the shooting preview interface;
and the second determining submodule is used for determining the target area at a preset position of the shooting preview interface, wherein the aspect ratio of the target area and the zoom coefficient are in a preset proportional relation, and the preset proportional relation is determined according to the preset position.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive a second input for shifting the target area within the shooting preview interface;
a first determining module for determining offset information of the target area in response to the second input;
and the second determining module is used for determining a first area on the shooting preview interface based on the offset information and the zoom factor, and taking the first area as a target area after offset.
Optionally, the second determining module includes:
a third determining sub-module, configured to determine a size of the first region based on the offset information and the scaling factor, where an aspect ratio of the first region and the scaling factor have a first proportional relationship, and the first proportional relationship is determined according to the offset information;
and the fourth determining submodule is used for determining the position of the first area in the shooting preview interface based on the offset information.
Optionally, the apparatus further comprises:
and the prompting module is used for displaying prompting information on the shooting preview interface, wherein the prompting information is used for prompting a user to enable the first shooting focus to be positioned in the target area in the shooting process.
Optionally, an area of the display region of the second content is the same as an area of the display region of the first content.
According to the method and the device, the target area is set on the shooting preview interface, so that a user can conveniently enable the first shooting focus to be located in the target area in the shooting process, and after the target multimedia content is obtained through shooting, the target multimedia content and the attribute information of the target area are stored in an associated mode. Therefore, in the process of playing the target multimedia content, when the electronic equipment rotates on the plane where the display interface is located and the picture of the display interface is reduced, the picture of the multimedia content can be magnified and displayed based on the attribute information so as to increase the picture size in the display area, and meanwhile, the first shooting focus can be ensured to be located in the picture after the magnified display, so that the display effect of the multimedia content is improved. In addition, in the process of rotating the electronic equipment, the display direction of the picture content is kept unchanged, so that the problem that the display direction of the picture changes back and forth due to the rotation of the electronic equipment can be effectively solved, and the display effect of the multimedia content is further improved.
Thecamera 900 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 photographingapparatus 900 in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
Theshooting device 900 provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 10, anelectronic device 1000 is further provided in this embodiment of the present application, and includes aprocessor 1001, amemory 1002, and a program or an instruction stored in thememory 1002 and executable on theprocessor 1001, where the program or the instruction is executed by theprocessor 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 device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Theelectronic device 1100 includes, but is not limited to:radio frequency unit 1101,network module 1102,audio output unit 1103,input unit 1104,sensor 1105,display unit 1106, user input unit 1107,interface unit 1108,memory 1109, andprocessor 1110.
Those skilled in the art will appreciate that theelectronic 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 theprocessor 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.
Thedisplay unit 1106 is configured to display a shooting preview interface when the electronic device is in a target shooting mode, where the shooting preview interface includes a target area, and the target area is used for indicating a first shooting focus; theinput unit 1104 is used for receiving a first input;processor 1110 is configured to generate a target multimedia content in response to the first input, and store the target multimedia content in association with attribute information of the target area; under the condition that the target multimedia content is in a playing state and the electronic equipment rotates from a first position to a second position in a plane where a display interface is located, the picture content played by the display interface is switched from first content to second content, the display direction of the picture content is kept unchanged, and the second content is obtained after the first content is amplified based on the attribute information.
According to the method and the device for setting the target area in the shooting preview interface, the target area is set in the shooting preview interface, so that a user can conveniently enable the first shooting focus to be located in the target area in the shooting process, and after the target multimedia content is obtained through shooting, the target multimedia content and the attribute information of the target area are stored in an associated mode. Therefore, in the process of playing the target multimedia content, when the electronic equipment rotates on the plane where the display interface is located and the picture of the display interface is reduced, the picture of the multimedia content can be magnified and displayed based on the attribute information so as to increase the picture size in the display area, and meanwhile, the first shooting focus can be ensured to be located in the picture after the magnified display, so that the display effect of the multimedia content is improved. In addition, in the process of rotating the electronic equipment, the display direction of the picture content is kept unchanged, so that the problem that the display direction of the picture changes back and forth due to the rotation of the electronic equipment can be effectively solved, and the display effect of the multimedia content is further improved.
It should be understood that in the embodiment of the present application, theinput Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and amicrophone 11042, and theGraphics processor 11041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. Thedisplay unit 1106 may include adisplay panel 11061, and thedisplay panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes atouch panel 11071 andother input devices 11072. Atouch panel 11071, also called a touch screen. Thetouch panel 11071 may include two portions of a touch detection device and a touch controller.Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Thememory 1109 may be used for storing software programs and various data including, but not limited to, application programs and an operating system.Processor 1110 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 1110.
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 run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
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 defined by the phrases "comprising a component of' ...does not exclude the presence of another like element in a 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 above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application 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 (such as 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.