Shooting method and device
By receiving user input when shooting videos, and automatically adjusting the target area size in the framing screen, the problem of unstable changes in picture size during shooting is solved, and a smooth picture size adjustment and smooth transition effect is achieved.
Patent Information
- Application Number
- CN202210603818.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2042-05-30
AI Technical Summary
When shooting videos, users change the size of objects in the framing screen by adjusting the camera focal length, resulting in unstable changes in the picture size.
By displaying the initial framing screen, receiving user input, determining the target area, and gradually adjusting the display screen of the target area to the target size within the preset time, automatically scaling the content size of the framing screen.
It realizes smooth adjustment of the shooting screen size, improves the user's operating experience during the shooting process, and ensures the smoothness of the picture transition effect.
Smart Images

Figure CN114785969B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a shooting method and device. Background Art
[0002] As video recording equipment becomes increasingly popular, more and more people begin to record their lives by recording videos. During the video recording process, users often need to adjust the focal length of the camera to change the size of the object in the viewfinder.
[0003] In the related art, in order to "zoom in" or "zoom out" the subject in the viewfinder, the user can, in one way, perform a two-finger or multi-finger zoom operation on the viewfinder of the video shooting device to change the size of the object in the viewfinder. In another way, a zoom slider can be displayed in the viewfinder, and the user drags the zoom slider to perform optical zoom and / or digital zoom to change the size of the object in the viewfinder.
[0004] However, it is difficult for the user's hand movements to be completely smooth, so the smoothness of the framing image adjusted through the operations in the above-mentioned related technologies is not good. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a shooting method, device, electronic device and readable storage medium, which can solve the problem of unstable picture size changes during shooting.
[0006] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:
[0007] Display the initial framing screen;
[0008] receiving a first input;
[0009] In response to the first input, a target framing picture is displayed, wherein the target framing picture includes a display picture of a target area, the target area is determined from the initial framing picture based on the first input, and within a preset time, the display picture of the target area is gradually adjusted to a target size.
[0010] In a second aspect, an embodiment of the present application provides a photographing device, the device comprising:
[0011] A first display module, used for displaying an initial framing picture;
[0012] A receiving module, configured to receive a first input;
[0013] A second display module is used to display a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0018] In an embodiment of the present application, the method includes displaying an initial framing screen; receiving a first input; and displaying a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size. The present application can generate and display a target framing screen by obtaining a user's first input when displaying the initial framing screen, so as to automatically scale the display screen of the target area in the initial framing screen, so that the display screen of the target area reaches the target size, thereby allowing the user to conveniently adjust the size of the content in the framing screen, and achieving the effect of smoothly adjusting the size of the shooting screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flowchart of a shooting method provided by an embodiment of the present application;
[0020] Figure 2 This is a schematic diagram of a framing interface provided by an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a target framing screen sequence provided by an embodiment of the present application;
[0022] Figure 4 is a flowchart of another shooting method provided by an embodiment of the present application;
[0023] Figure 5 This is a schematic diagram of a selection box provided in an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of a target area provided in an embodiment of the present application;
[0025] Figure 7 This is a schematic diagram of a preset time adjustment provided in an embodiment of the present application;
[0026] Figure 8 This is a schematic diagram of multi-camera switching provided by an embodiment of the present application;
[0027] Fig. 9 is a block diagram of a photographing device provided in an embodiment of the present application;
[0028] Fig.10 An electronic device provided by an embodiment of the present application;
[0029] Fig.11 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or at least two. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0032] The following is a detailed description of the shooting method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] Reference Figure 1 , Figure 1A flowchart of a shooting method provided by an embodiment of the present application is shown. Figure 1 As shown, the specific steps include:
[0034] Step 101, displaying an initial framing image.
[0035] After the user enters the camera function of the electronic device or starts recording a video through the electronic device, the framing interface can be displayed on the screen of the electronic device, and the initial framing screen captured by the current image sensor is displayed in real time in the framing interface. Among them, the initial framing screen is not necessarily the same as the image captured by the image sensor. For example, the image ratio captured by an image sensor with a ratio of 4:3 is 4:3. If the shooting ratio selected by the user is 16:9, the image captured by the image sensor needs to be cropped to obtain a 16:9 initial framing screen from the 4:3 image sensor captured image. In other words, the initial framing screen can be the same as the image captured by the image sensor, or it can be a partial area in the image captured by the image sensor.
[0036] Step 102: Receive a first input.
[0037] In the embodiment of the present application, the first input may be a user's selection operation for a target area in the initial viewfinder screen, and the selection operation may be a point selection operation, a frame selection operation, a circle selection operation, etc., which is not specifically limited in the embodiment of the present application. For example, the user may perform a sliding operation in the initial viewfinder screen, and the starting position and the ending position of the sliding operation are used as a pair of vertex angles to generate a corresponding rectangular frame, and then the rectangular frame is determined as the target area.
[0038] The user can also specify a target position in the viewfinder through a tapping operation, and automatically determine the target area based on the target position. For example, the user can select the center position of the viewfinder through a tapping operation, and use the area within a certain range of the center position of the viewfinder as the target area.
[0039] Reference Figure 2 , Figure 2 is a schematic diagram of a framing interface provided in an embodiment of the present application, such as Figure 2 As shown, the viewfinder interface 21 is displayed on the screen of the electronic device 20 , and an initial viewfinder screen is displayed in the viewfinder interface 21 . The user can determine the target area 22 in the initial viewfinder screen through a first input.
[0040] The user can select a target area in the initial framing screen being displayed on the framing interface, and adjust the size of the target area in subsequent steps, changing the size of the display screen of the target area in the framing interface, thereby achieving a "zooming in" or "pull-out" effect on the display screen in the target area during the shooting process.
[0041] Step 103, in response to the first input, display a target framing picture, wherein the target framing picture includes a display picture of a target area, the target area is determined from the initial framing picture based on the first input, and within a preset time, the display picture of the target area is gradually adjusted to a target size.
[0042] In an embodiment of the present application, the target size may be the size of the viewfinder interface. For example, the display screen of the target area may be enlarged to fill the entire viewfinder interface. The target size may also be the shooting focal length of the viewfinder screen. For example, the camera module may be subjected to optical zoom, digital zoom or other zoom operations so that the shooting focal length of the target viewfinder screen containing the target area captured reaches the target focal length. The target size may also be the target magnification for magnifying the display screen of the target area. For example, the display screen of the target area may be magnified by 1 times, or reduced to 1 / 2 times. The target size may also be a target resolution. The embodiment of the present application does not specifically limit the target size. The target size may be manually set by the user. For example, the user may manually set the target focal length or manually set the target magnification. The target size may also be a preset value. For example, the size of the viewfinder interface of the current shooting mode may be used as the target size.
[0043] The first input can also be used to trigger a size adjustment operation for the target area. After the user inputs the first input, the initial framing screen can be enlarged or reduced, so that the size of the display screen of the target area in the framing screen changes in the framing screen, until the size of the display screen of the target area in the framing screen reaches the target size, and a target framing screen with the display screen of the target area being the target size is obtained. It should be noted that in order to gradually adjust the display screen of the target area to the target size, after displaying the initial framing screen, the display screen of the target area is gradually changed to a plurality of frames of the target framing screen of the target size.
[0044] For example, when the target size is the target resolution, the display screen size of the target area in the initial framing screen is 100*100, and the target size is 200*200, then the display screen size of the target area in the target framing screen is 200*200, and a target framing screen may be a framing screen in which the display screen size of the target area is 120*120, and a target framing screen sequence composed of multiple target framing screens may be a sequence composed of multiple framing screens in which the display sizes of the target area are 120*120, 140*140, 160*160, 180*180, and 200X200.
[0045] When the target size is the target focal length, if the shooting focal length of the initial framing picture is 28mm and the target focal length is 38mm, then the shooting focal length of the target framing picture is 38mm. The shooting focal length of a target framing picture may be 30mm, and the target framing picture sequence may be a sequence consisting of multiple framing pictures with shooting focal lengths of 30mm, 32mm, 34mm, 36mm, and 38mm.
[0046] It should be noted that, in order to make the target frame sequence show the process of the display image of the target area changing evenly to the target size, the size change of the display image of the target area of adjacent target frame sequences can be a fixed value.
[0047] Reference Figure 3 , Figure 3 A schematic diagram of a target framing picture sequence provided by an embodiment of the present application is shown. Figure 3 As shown, when the target size is the viewfinder size, Figure 2 The target view picture sequence in which the display picture of the target area 22 is adjusted to the target size may include target view pictures 31 to 35 .
[0048] In summary, a shooting method provided by an embodiment of the present application includes displaying an initial framing screen; receiving a first input; and displaying a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size. The present application can generate and display a target framing screen by obtaining a user's first input when displaying the initial framing screen, so as to automatically scale the display screen of the target area in the initial framing screen, so that the display screen of the target area reaches the target size, thereby allowing the user to conveniently resize the content in the framing screen, and achieving the effect of smoothly adjusting the size of the shooting screen.
[0049] Reference Figure 4 , Figure 4 FIG. 2 shows another step flow chart of a shooting method provided by an embodiment of the present application. Figure 4 As shown, the specific steps include:
[0050] Step 201: Display the initial framing image.
[0051] Step 202: In response to a selection operation of a target object in the initial framing image, a target area including the target object is determined.
[0052] The target area can be further divided into a fixed target area that does not correspond to the target object and a dynamic target area that corresponds to the target object. The fixed target area refers to a fixed area in the image captured by the image sensor. For example, if the user determines an area at the center of the initial viewfinder, the area can be used as the fixed target area.
[0053] The dynamic target area corresponding to the target object represents a dynamic area in the image captured by the image sensor for tracking the target object. For example, the user determines a dynamic target area including person A in the upper left corner of the initial framing screen. When person A moves to the lower right corner of the initial framing screen, the dynamic target area also moves to the lower right corner of the initial framing screen following person A. The target object may be an object (such as a vehicle, a building), a person, a scene (such as a river, the sky), etc. in the framing screen.
[0054] Since the target area is the area in the image captured by the image sensor, and the user cannot directly operate the image captured by the image sensor, for a fixed target area, it is first necessary to determine a first area from the initial framing screen, and then map the first area to the image captured by the sensor to obtain a fixed target area located in the image captured by the sensor.
[0055] Specifically, the user can determine the first area in the initial viewfinder screen by sliding operation, for example, the starting position and the ending position of the sliding operation input by the user can be obtained, and the starting position and the ending position are used as a pair of vertices to generate the corresponding first area. The user can also determine the first area by clicking the initial viewfinder screen, for example, the click position of the click operation input by the user can be obtained, and a rectangular frame of a preset size is generated at the click position, and the rectangular frame is directly used as the first area, or the user's adjustment operation of the size and position of the rectangular frame is received, and the adjusted rectangular frame is used as the first area.
[0056] For determining the dynamic target area corresponding to the target object, the first input may include a selection operation on the target object in the initial framing screen. The user may first determine the target object from the initial framing screen by performing a selection operation on the target object in the initial framing screen, and then determine the dynamic target area for tracking the target object based on the target object.
[0057] Specifically, the user can directly specify a target object in the viewfinder screen by means of box selection. For example, the user can perform a sliding operation in the viewfinder screen, use the starting position and the ending position of the sliding operation as a pair of vertices to generate a corresponding rectangular frame, and then determine the rectangular frame or the object within the rectangular frame as the target object. The user can also specify a target position in the viewfinder screen, and automatically determine the target object based on the target position. For example, the user can select the center position of the viewfinder screen by tapping, and perform image recognition on images within a certain range of the center position of the viewfinder screen, and use the object closest to the center position as the target object. The embodiments of the present application do not specifically limit the method for determining the target object. For example Figure 2 As shown, the viewfinder interface 21 is displayed on the screen of the electronic device 20 , and a viewfinder picture is displayed in the viewfinder interface 21 , and the user can identify the target object 23 in the viewfinder picture.
[0058] In the embodiment of the present application, the user can quickly determine the corresponding target area from the initial framing screen by selecting the target object in the initial framing screen, which significantly improves the efficiency and convenience of the user in determining the target area through the first input.
[0059] For details, please refer to sub-steps 2021 to 2023.
[0060] Optionally, step 202 may further include:
[0061] Sub-step 2021: In response to a selection operation on a target object in the initial framing image, a selection box corresponding to the target object is displayed.
[0062] The target object may be an object (such as a person, an animal, a vehicle, etc.) contained in the initial framing picture, or may be a scene (such as a street, the sky, a lake, etc.) contained in the initial framing picture.
[0063] In an embodiment of the present application, real-time image recognition can be performed on the initial framing screen to determine the objects and scenes contained in the initial framing screen. A first input of the user to the initial framing screen is received, and a target object corresponding to the first input is determined based on the position of the first input in the initial framing screen and the positions of various objects or scenes in the initial framing screen. For example, an object or scene overlapping with the first input position can be determined as the target object, and an object or scene closest to the first input position can also be determined as the target object.
[0064] After determining the target object, a selection box corresponding to the target object can be generated at the target object, and the size of the selection box can be determined according to the size of the target object or can be a preset size. Therefore, the selection box can completely contain the target object or only contain a partial area of the target object.
[0065] Sub-step 2022: In response to the adjustment operation on the selection box, determine the selection box size of the selection box and the positional relationship between the selection box and the target object.
[0066] In order to take more beautiful pictures, users usually have certain requirements for picture composition when taking pictures. Therefore, after determining the selection box of the target object, the user's adjustment operation on the selection box can be received to change the size of the selection box and the position relationship between the selection box and the target object to meet the user's requirements for picture composition.
[0067] For example, the user can change the size of the selection box by dragging the corner points of the selection box, the user can change the aspect ratio of the selection box by dragging the edge of the selection box, and the user can change the position of the selection box by dragging the starting position inside the selection box. The embodiments of the present application do not specifically limit the selection operation.
[0068] like Figure 5 As shown, Figure 5 A schematic diagram of a selection box provided in an embodiment of the present application is shown. Figure 5 As shown, after the user selects the target object 51 , a selection frame 52 is generated around the target object 51 , and the user then adjusts the selection frame 52 to adjust the composition when the image is enlarged to the target size, thereby obtaining an adjusted selection frame 53 .
[0069] Sub-step 2023: Based on the selection box size and the position relationship, determine a target area for real-time tracking of the target object from the image captured by the sensor.
[0070] Since the framing screen is a partial area (framing area) in the sensor acquired image, the target object in the framing screen also exists in the sensor acquired image. Therefore, after determining the selection box, the target object can be identified from the sensor acquired image, and based on the size of the selection box and the positional relationship between the selection box and the target object, a dynamic target area corresponding to the target object is generated in the sensor acquired image for real-time tracking of the target object.
[0071] Reference Figure 6 , Figure 6 FIG. 1 shows a schematic diagram of a target area provided in an embodiment of the present application. Figure 6 As shown, the framing screen of the electronic device is the screen in the framing area 63 of the sensor captured image 64. After mapping the selection box 61 to the sensor captured image 64, the dynamic target area 62 located in the sensor captured image 64 can be obtained.
[0072] In the embodiment of the present application, a corresponding selection box can be automatically generated according to the target object selected by the user in the initial framing screen, thereby improving the efficiency of the user in determining the target area. The user can also adjust the size and position of the selection box through adjustment operations, thereby adjusting the composition of the target framing screen after the target area is enlarged, meeting the user's personalized shooting needs.
[0073] Step 203 : determining the preset time according to the current focal length of the initial framing image and the target focal length required to adjust the target area to the target size.
[0074] For a camera module, its shooting focal length can reflect the magnification of the image captured by the sensor. For example, if the zoom range of a camera module is from 28mm to 56mm, the magnification of the image captured at a focal length of 28mm is 1, and the magnification of the image captured at a focal length of 56mm is 2.
[0075] In the embodiment of the present application, the size of the target area can be adjusted by adjusting the focal length of the camera module. By increasing the shooting focal length of the camera module, the size of the target area can be increased, and by reducing the shooting focal length of the camera module, the size of the target area can be reduced. Therefore, in order to adjust the target area to the target size, it can be achieved by adjusting the shooting focal length of the camera module to the target focal length.
[0076] First, the target focal length required to adjust the target area to the target size can be calculated. Specifically, different algorithms can be used to calculate the target focal length according to different parameter types of the target size. For example, when the target size is the size of the viewfinder interface (i.e., the target area needs to be enlarged to fill the viewfinder interface), the target focal length can be determined based on the proportion of the height or width of the target area in the image sensor image. For example, if the minimum focal length of the camera module is 28mm, and the width of the target area accounts for 1 / 2 of the image captured by the image sensor, then in order to make the target area fill the entire viewfinder interface in the width direction, the target area needs to be enlarged to 2 times the size, and the corresponding target focal length is 56mm; correspondingly, if the height of the target area accounts for 1 / 2 of the image captured by the image sensor, then in order to make the target area fill the entire viewfinder interface in the height direction, the target area needs to be enlarged to 2 times the size, and the corresponding target focal length is 56mm.
[0077] In addition, in an embodiment of the present application, the proportion of the target area can be corrected before determining the target focal length so that the aspect ratio of the target area is the same as the aspect ratio of the framing interface (i.e., the shooting ratio of the current shooting mode, such as 16:9, 4:3, etc.), so that the target area can completely fill the entire framing interface.
[0078] Furthermore, after determining the target area, the user's input or selection operation for the target focal length can be received so that the user can independently determine the target focal length. For example, a focal length slider bar containing available focal lengths can be displayed in the viewfinder interface, and the user can determine the target focal length by dragging the slider on the focal length slider bar. A focal length input box can also be displayed to the user to obtain the target focal length input by the user through the input box.
[0079] After determining the target focal length, the preset time can be determined according to the difference between the target focal length and the current focal length of the camera module. The larger the difference between the target focal length and the current focal length, the longer the preset time required. Specifically, the difference between the target focal length and the current focal length can be calculated first, and then the difference can be multiplied by the preset time coefficient to determine the preset time. For example, if the current focal length is 28mm, the target focal length is 56mm, and the preset time coefficient is 0.1, the preset time can be (56-28)*0.1=2.8 seconds. Among them, the current focal length represents the focal length when shooting the initial framing picture.
[0080] Optionally, step 203 may further include:
[0081] Sub-step 2031, displaying a preset time adjustment control in the framing interface.
[0082] Furthermore, after the preset time is determined, a time adjustment control may be displayed to the user.
[0083] Sub-step 2032, in response to user input to the preset time adjustment control, adjusting the preset time.
[0084] The user can fine-tune the preset time through the time adjustment control to increase or decrease the preset time to meet the user's personalized needs.
[0085] Reference Figure 7 , Figure 7 A schematic diagram of a preset time adjustment provided in an embodiment of the present application is shown. Figure 7 As shown, the user can increase or decrease the preset time by dragging the adjustment slider of the preset time adjustment control 71.
[0086] In an embodiment of the present application, the target focal length that needs to be adjusted by the camera module can be determined based on the target area and the target size, and the preset time can be determined based on the target focal length and the current focal length, so that the preset times corresponding to the combinations of different target areas and target sizes can be different, thereby taking into account both the picture smoothness and the adjustment speed during adjustment, thereby improving the picture transition effect.
[0087] Step 204: determining a transition focal length corresponding to each framing image generation moment in the preset time according to the current focal length and the target focal length.
[0088] In the embodiment of the present application, after the preset time is determined, it is necessary to generate a corresponding target framing picture at each framing picture generation time in the preset time. The framing picture generation time may indicate the time when the camera module generates a framing picture for display in the framing interface. When the user is recording a video, the framing picture generation time may also indicate the time when the camera module generates a video frame stored in a recorded video file.
[0089] Specifically, the moment of generating the framing picture can be determined according to the refresh frame rate of the framing picture. For example, the refresh frame rate of the framing picture is 30 frames per second, and the refresh interval between two adjacent frames is 1 / 30 second. Within the preset time, a target framing picture needs to be generated every 1 / 30 second. If the preset time is 1 second, the moment of generating the framing picture includes 60 moments including the 1 / 30 second, the 2 / 30 second... the 1st second.
[0090] Furthermore, at each framing picture generation moment, the camera module needs to be used to frame at a transition focal length to obtain a target framing picture corresponding to each framing picture generation moment. Specifically, the transition focal length corresponding to each framing picture generation moment can be calculated by the following formula 1.
[0091]
[0092] Among them, t represents the moment when the framing picture is generated, T represents the preset time, midZoom(t) represents the transition focal length corresponding to the moment t when the framing picture is generated, dstZoom represents the target focal length, and curZoom represents the current focal length at t=0 (i.e., the focal length of the camera module when taking the initial framing picture).
[0093] Through the above formula, the transition focal length corresponding to each target framing image generation moment can be determined.
[0094] Step 205, according to the transition focal length corresponding to the moment when each framing picture is generated, at each framing picture generation moment, a target framing picture of the display screen including the target area is obtained through a camera module to obtain a multi-frame target framing picture for gradually adjusting the target area to a target size.
[0095] After determining the transition focal length corresponding to each framing picture generation moment, the focal length of the camera module can be adjusted so that the focal length of the camera module reaches the transition focal length corresponding to the framing picture generation moment at each framing picture generation moment. In this way, a target framing picture containing target areas of different sizes can be obtained from the sensor captured image at each framing picture generation moment.
[0096] Furthermore, some camera modules are composed of multiple cameras responsible for different focal lengths. For such multi-camera modules (Spatial Alignment Transform, SAT), as the focal length changes, it is necessary to switch the image sensors of different cameras to obtain the target framing picture. Therefore, in the embodiment of the present application, different sensors can also be selected to collect images to obtain the target framing picture according to the camera corresponding to the transition focal length.
[0097] For example, the multi-camera module may include camera A and camera B, wherein the focal length corresponding to camera A is 28mm to 56mm, and the focal length corresponding to camera B is 56mm to 112mm. If the transition focal length corresponding to a certain framing screen generation moment is 50mm, then the target framing screen can be obtained from the sensor acquisition image of camera A at this time; if the third focal length corresponding to a certain framing screen generation moment is 60mm, then the target framing screen can be obtained from the sensor acquisition image of camera B at this time.
[0098] It should be noted that, in the case where the camera module is a multi-camera module, there may be a corresponding target area in the sensor image captured by each camera in the camera module, and the target areas of the sensor images captured by different cameras contain the same photographed scene. In other words, if the target area in the sensor image captured by a certain camera tracks person A in real time, the target areas in the sensor images captured by other cameras also track person A in real time.
[0099] Furthermore, in the case where the camera module is a multi-camera module, due to the difference in physical positions of different cameras, when switching the camera used to obtain the view picture, the view picture may jump. In order to avoid the jump of the view picture when switching the camera, the switching focus between the cameras can also be delayed, so that when switching the camera, a part of the cropping area is reserved in the image collected by the camera sensor to avoid the jump of the view picture.
[0100] For example, a multi-camera module may include camera A and camera B, wherein the focal length corresponding to camera A is 28mm to 56mm, and the focal length corresponding to camera B is 56mm to 112mm. When the camera module zooms from 55mm to 56mm, it is necessary to switch to camera B and obtain the target framing picture from the sensor acquisition image of camera B. Since 56mm is the minimum focal length of camera B, at the focal length of 56mm, only the complete sensor acquisition image of camera B can be used as the target framing picture, and it cannot be cropped, which easily causes a large jump in the position of the target area in the previous frame of the target framing picture and this frame of the target framing picture. Therefore, the switching focal length corresponding to camera B can be delayed by a preset focal length. For example, the switching focal length corresponding to camera B can be delayed from 56mm to 66mm, so that the target framing picture is obtained from the sensor acquisition image of camera B at 66mm, and then the target framing picture in which the position of the target area is unchanged or changes slightly compared with the position of the target area in the previous frame of the target framing picture can be cropped from the sensor acquisition image of camera B.
[0101] Reference Figure 8 , Figure 8 A schematic diagram of multi-camera switching provided by an embodiment of the present application is shown. Figure 8As shown, the actual focal length of camera A is 28mm, and the actual focal length of camera B is 56mm. Due to the different physical positions of the sensor acquisition image 81 of camera A and the sensor acquisition image 85 of camera B, the captured images will be offset. The person in the sensor acquisition image 81 of camera A is located at the center line 84 of the sensor acquisition image of camera A, while the person in the sensor acquisition image 81 of camera B is located to the left of the center line 88 of the sensor acquisition image of camera B. If the target area 82 is located at the center of the target framing picture (obtained from the sensor acquisition image 81) generated before zooming (digital zoom) to 56mm, when zooming to 56mm, only the complete picture of the sensor acquisition image 85 can be used as the target framing picture, resulting in an obvious jump in the position of the target area in the two adjacent target framing pictures (the positions of the target area 82 and the target area 86 in their respective target framing pictures are different). Therefore, in the embodiment of the present application, if the camera A is switched to the camera B when the actual focal length of the camera B is 56 mm, and the target framing picture is obtained from the sensor image of the camera B, then only the sensor image of the camera B can be used as the target framing picture as a whole, and the content of this frame of the target framing picture cannot be matched with the content of the previous frame of the target framing picture by cropping, which may easily cause the picture content to jump (the same scene is not in the same position on the screen). Therefore, the switching focus of the camera B can be delayed (making the switching focus of the camera B When the switching focal length is larger than the actual focal length of camera B, the target framing picture 87 is obtained from the sensor acquisition image 85 of camera B when the zoom is changed to a switching focal length larger than 56mm (for example, the switching focal length can be 66mm). At this time, the target framing picture 87 to be captured is smaller than the sensor acquisition image 85 of camera B. Therefore, the capture position of the target framing picture 87 in the sensor acquisition image 85 can be flexibly adjusted so that the content of the target framing picture 87 can match the target framing picture 83, thereby reducing or eliminating the jump of the framing picture when switching from camera A to camera B.
[0102] In the embodiment of the present application, the focal length can be adjusted evenly and continuously within a preset time, and the target framing picture of the camera module at the transition focal length is obtained at the framing picture generation moment in the preset time, thereby obtaining a target framing picture sequence composed of the target framing pictures corresponding to each framing picture generation moment, thereby achieving smooth zooming in or out of the target area. In addition, in the case of an electronic device equipped with a multi-camera module, the switching focal length of the camera can be delayed so that the target framing pictures obtained before and after the camera is switched do not jump, further improving the smoothness of adjusting the size of the target area.
[0103] Optionally, step 205 may further include:
[0104] Sub-step 2051 , according to the transition focal length corresponding to each framing picture generation moment, at each framing picture generation moment, an initial target picture of the display picture including the target area is captured from the sensor captured image.
[0105] The adjustment of focal length can usually be divided into optical zoom and digital zoom. When the camera module includes a variable focal length lens, the focal length of the lens can be directly adjusted to achieve optical zoom. When the camera module only includes a fixed focal length lens, the image collected by the sensor can be intercepted and enlarged to achieve digital zoom.
[0106] Specifically, the ratio of the transition focal length to the fixed focal length of the camera may be used as the interception ratio of the sensor-captured image of the camera, and a partial area of the sensor-captured image may be intercepted to obtain the initial target image.
[0107] For example, if the fixed focal length of the camera is 28mm, and the transition focal length corresponding to a certain framing screen generation moment is 36mm, then the interception ratio is 28 / 32=0.875, and the framing screen acquisition area corresponding to the framing screen generation moment can be determined in the sensor acquisition image with the height or width of the sensor acquisition image at 0.875 times and the shooting ratio of the current shooting mode, and the sensor acquisition image in the framing screen acquisition area is obtained as the initial target screen corresponding to the framing screen generation moment. It should be noted that the framing screen acquisition area includes the target area.
[0108] Sub-step 2052, adjusting the resolution of the initial target image to obtain a target framing image whose resolution matches the current shooting resolution.
[0109] Since the initial target image is obtained by intercepting the image collected by the sensor, its resolution may be lower than the shooting resolution corresponding to the current shooting mode. Therefore, after obtaining the initial target image, if its resolution is lower than the current shooting resolution, an image interpolation algorithm can be used to improve the resolution of the initial target image to obtain a target framing image with a resolution that matches the current shooting resolution.
[0110] Similarly, the resolution of the initial target image may be higher than the shooting resolution corresponding to the current shooting mode. Therefore, after obtaining the initial target image, the image supersampling algorithm can be used to reduce the resolution of the initial target image to obtain a target framing image with a resolution matching the current shooting resolution. It should be noted that in the embodiments of the present application, technicians can select a variety of image resolution adjustment algorithms as needed, which are not specifically limited here.
[0111] For example, if the ratio of the sensor image is 4:3, the resolution is 4000*3000, the current shooting resolution is 2000*1500, and the current shooting ratio is 4:3, when the capture ratio is 0.2, the resolution of the initial target picture captured from the sensor image is 800*600. Since the resolution of the initial target picture is lower than the current shooting resolution, the image interpolation algorithm can be used to increase the number of pixels in the initial target picture to obtain a target framing picture with a resolution of 2000*1500.
[0112] Step 206: After the video recording is completed, a recorded video including the target framing image is obtained.
[0113] When entering the shooting interface (the viewfinder interface will be displayed but the video may not be recorded), the viewfinder screen needs to be generated based on the image collected by the sensor and displayed in the viewfinder interface. If the user starts recording a video, the viewfinder screen displayed in the viewfinder interface will be recorded to generate the corresponding recorded video.
[0114] Therefore, when the user turns on the shooting function but does not start recording the video, the target framing screen sequence can be displayed in the framing interface to achieve the purpose of smoothly adjusting the size of the target object, making the size adjustment process displayed in the framing interface smoother and more stable, and avoiding the unstable picture caused by the user manually adjusting the shooting focal length.
[0115] When the user turns on the shooting function and starts recording a video, not only can the target framing screen sequence be displayed in the framing interface, but the target framing screen can also be recorded synchronously as a video frame, so that after the user ends recording, a recorded video containing the target framing screen sequence can be obtained.
[0116] In an embodiment of the present application, the initial target image corresponding to the moment when each framing image is generated can be obtained from the sensor framing image, and then the resolution of the initial target image can be adjusted to obtain a target framing image with a resolution that matches the current shooting resolution, so that the target framing image sequence is consistent with the resolution of the currently shot video frame, thereby obtaining a better framing effect and / or video recording effect.
[0117] In summary, a shooting method provided by an embodiment of the present application includes displaying an initial framing screen; receiving a first input; and displaying a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size. The present application can generate and display a target framing screen by obtaining a user's first input while displaying the initial framing screen, so as to automatically scale the display screen of the target area in the initial framing screen, so that the display screen of the target area reaches the target size, thereby allowing the user to conveniently resize the content in the framing screen, and then record a video with a smoothly scaled screen.
[0118] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, a method for a shooting device to shoot a video is taken as an example to illustrate the shooting device provided in the embodiment of the present application.
[0119] Reference Fig. 9 , Fig. 9 is a block diagram of a photographing device provided in an embodiment of the present application, such as Fig. 9 As shown, the shooting device includes:
[0120] The first display module 401 is used to display the initial framing picture;
[0121] A receiving module 402, configured to receive a first input;
[0122] The second display module 403 is used to display a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size.
[0123] Optionally, the device further comprises:
[0124] A focal length module, used to determine the transition focal length corresponding to each framing picture generation moment in the preset time according to the current focal length and the target focal length;
[0125] The target framing picture module is used to obtain the target framing picture of the display screen including the target area through the camera module at each framing picture generation moment according to the transition focal length corresponding to the moment when each framing picture is generated, so as to obtain a multi-frame target framing picture for gradually adjusting the target area to the target size.
[0126] Optionally, the target view picture module includes:
[0127] An initial target picture submodule is used to intercept an initial target picture of a display picture including the target area from the sensor collected image at each moment of generating the viewfinder pictures according to the transition focal length corresponding to the moment of generating the viewfinder pictures;
[0128] The resolution submodule is used to adjust the resolution of the initial target image to obtain a target framing image whose resolution matches the current shooting resolution.
[0129] Optionally, the first input includes a selection operation on a target object in the initial framing image, and the device further includes:
[0130] The area determination module is used to determine a target area including the target object in response to a selection operation on the target object in the initial framing image.
[0131] Optionally, the area determination module includes:
[0132] A selection box submodule, configured to display a selection box corresponding to the target object in response to a selection operation on the target object in the initial framing image;
[0133] an adjustment submodule, configured to determine a selection box size of the selection box and a positional relationship between the selection box and the target object in response to an adjustment operation on the selection box;
[0134] The target area determination submodule is used to determine the target area for real-time tracking of the target object from the image collected by the sensor based on the selection box size and the position relationship.
[0135] Optionally, the device further comprises:
[0136] The preset time module is used to determine the preset time according to the current focal length of the initial framing picture and the target focal length required to adjust the target area to the target size.
[0137] Optionally, the device further comprises:
[0138] A control display submodule, used for displaying a preset time adjustment control in the framing interface;
[0139] The time adjustment submodule is used to adjust the preset time in response to user input to the preset time adjustment control.
[0140] Optionally, the device further comprises:
[0141] The recording module is used to obtain a recorded video containing the target framing image after the video recording is completed.
[0142] In summary, a shooting device provided by an embodiment of the present application includes a first display module for displaying an initial framing screen; a receiving module for receiving a first input; and a second display module for displaying a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size. The present application can generate and display a target framing screen by obtaining a user's first input while displaying the initial framing screen, so as to automatically scale the display screen of the target area in the initial framing screen, so that the display screen of the target area reaches the target size, thereby allowing the user to conveniently resize the content in the framing screen, and then record a video with a smoothly scaled screen.
[0143] The shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.
[0144] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0145] The shooting device provided in the embodiment of the present application can achieve Figures 1 to 8 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0146] Alternatively, if Fig.10As shown, an embodiment of the present application also provides an electronic device M00, including a processor M01 and a memory M02, wherein the memory M02 stores programs or instructions that can be executed on the processor M01, and when the program or instructions are executed by the processor M01, the various steps of the above-mentioned shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0147] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0148] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0149] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0150] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0151] The display unit 106 is used to display the initial framing picture.
[0152] The user input unit 107 is used to receive a first input.
[0153] The user input unit 107 is used to respond to the first input, and the processor 110 is used to display a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, and the target area is determined from the initial framing screen based on the first input. Within a preset time, the display screen of the target area is gradually adjusted to a target size.
[0154] The processor 110 is used to determine the transition focal length corresponding to each framing picture generation moment in the preset time according to the current focal length and the target focal length; and obtain the target framing picture of the display screen including the target area through the camera module at each framing picture generation moment according to the transition focal length corresponding to each framing picture generation moment, so as to obtain a multi-frame target framing picture for gradually adjusting the target area to the target size.
[0155] The processor 110 is used to capture, at each framing picture generation moment, an initial target picture of a display picture including the target area from the sensor captured image according to the transition focal length corresponding to the moment when each framing picture is generated; and adjust the resolution of the initial target picture to obtain a target framing picture with a resolution matching the current shooting resolution.
[0156] The user input unit 107 is used to respond to a selection operation on a target object in the initial framing picture, and the processor 110 is used to respond to a selection operation on a target object in the initial framing picture to determine a target area containing the target object.
[0157] The user input unit 107 is used to respond to the adjustment operation on the selection box, and the processor 110 determines the selection box size of the selection box and the position relationship between the selection box and the target object in response to the adjustment operation on the selection box.
[0158] The processor 110 is used to determine a target area for real-time tracking of the target object from the image captured by the sensor based on the selection frame size and the position relationship.
[0159] The processor 110 is configured to determine the preset time according to the current focal length of the initial framing image and the target focal length required to adjust the target area to the target size.
[0160] The display unit 106 is used to display a preset time adjustment control in the viewfinder interface.
[0161] The user input unit 107 is used to respond to user input to the preset time adjustment control, and the processor 110 is used to adjust the preset time in response to the user input to the preset time adjustment control.
[0162] The processor 110 is used to obtain a recorded video including the target framing image after the video recording is completed.
[0163] In summary, an electronic device provided by an embodiment of the present application includes: displaying an initial framing screen; receiving a first input; and displaying a target framing screen in response to the first input, wherein the target framing screen includes a display screen of a target area, the target area is determined from the initial framing screen based on the first input, and within a preset time, the display screen of the target area is gradually adjusted to a target size. The present application can generate and display a target framing screen by obtaining a user's first input when displaying the initial framing screen, so as to automatically scale the display screen of the target area in the initial framing screen, so that the display screen of the target area reaches the target size, thereby allowing the user to conveniently adjust the size of the content in the framing screen, and achieve the effect of smoothly adjusting the size of the shooting screen. .
[0164] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0165] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0166] The processor 110 may include one or at least two processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0167] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned video shooting embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] 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 computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0169] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video shooting embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0170] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0171] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video shooting embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0172] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0174] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting method, characterized in that: The method comprises: Display the initial framing screen; receiving a first input; In response to the first input, a target framing picture is displayed, wherein the target framing picture includes a display picture of a target area, the target area is determined from the initial framing picture based on the first input, and within a preset time, the display picture of the target area is gradually adjusted to a target size; The transition focal length corresponding to each framing picture generation moment in the preset time is determined according to the current focal length and the target focal length; and the target framing picture of the display screen including the target area is acquired through the camera module at each framing picture generation moment, so as to obtain a multi-frame target framing picture for gradually adjusting the target area to the target size.
2. The method according to claim 1, characterized in that: The method of acquiring a target framing picture including a display picture of the target area through a camera module at each framing picture generation moment according to the transition focal length corresponding to the framing picture generation moment comprises: According to the transition focal length corresponding to each framing picture generation moment, at each framing picture generation moment, an initial target picture of the display picture including the target area is intercepted from the sensor collected image; The resolution of the initial target image is adjusted to obtain a target framing image whose resolution matches the current shooting resolution.
3. The method according to claim 1, characterized in that The first input includes a selection operation of a target object in the initial framing picture, and the method further includes: In response to a selection operation of a target object in the initial framing image, a target area including the target object is determined.
4. The method according to claim 3, characterized in that The step of determining a target area including the target object in response to a selection operation on the target object in the initial framing picture includes: In response to a selection operation on a target object in the initial framing image, displaying a selection box corresponding to the target object; In response to an adjustment operation on the selection box, determining a selection box size of the selection box and a positional relationship between the selection box and the target object; Based on the selection frame size and the positional relationship, a target area for real-time tracking of the target object is determined from the image collected by the sensor.
5. The method according to claim 1, characterized in that The method further comprises: The preset time is determined according to the current focal length of the initial framing picture and the target focal length required to adjust the target area to the target size.
6. The method according to claim 5, characterized in that The method further comprises: Displaying a preset time adjustment control in the initial framing screen; In response to a user input to the preset time adjustment control, the preset time is adjusted.
7. The method according to claim 1, characterized in that The method further comprises: After the video recording is completed, a recorded video including the target view picture is obtained.
8. The method according to claim 1, characterized in that The gradually adjusting the display picture of the target area to the target size includes: gradually enlarging the display picture of the target area to the target size or gradually reducing the display picture of the target area to the target size.
9. The method according to claim 1, characterized in that: The target size includes the size of the initial viewfinder image.
10. A photographing device, characterized in that: The device comprises: A first display module, used for displaying an initial framing picture; A receiving module, configured to receive a first input; A second display module is configured to display a target framing picture in response to the first input, wherein the target framing picture includes a display picture of a target area, the target area is determined from the initial framing picture based on the first input, and within a preset time, the display picture of the target area is gradually adjusted to a target size; A focal length module, used to determine the transition focal length corresponding to each framing picture generation moment in the preset time according to the current focal length and the target focal length; The target framing picture module is used to obtain the target framing picture of the display screen including the target area through the camera module at each framing picture generation moment according to the transition focal length corresponding to the moment when each framing picture is generated, so as to obtain a multi-frame target framing picture for gradually adjusting the target area to the target size.
11. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 9 are implemented.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the shooting method described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Photographing method and apparatus, mobile terminal, and computer readable storage medium
CN111201773A
Shooting method and device, electronic equipment and medium
CN112954193A
Cited By
Photographing method and apparatus
EP4535771A1