Shooting method and device, electronic equipment and storage medium

By capturing multiple image frames and displaying corresponding marks according to the scene of the shooting subject, the problem of messy shooting images is solved, and the effect of dynamically adjusting the picture proportion and highlighting the shooting subject is achieved, and the video quality is improved.

CN120186460APending Publication Date: 2025-06-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311766191.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

During the shooting process, since the lens does not automatically adjust the screen proportion and position, the content of the shooting screen is messy and difficult to meet daily shooting needs.

Method used

By capturing a plurality of image frames, after detecting the operation of recording video, the first image frame and the first mark currently previewed are displayed, the first target spot type is determined based on the scene category of the first photographing subject in the first image frame, and a video image is generated based on the image of the area where the first mark is located.

Benefits of technology

It realizes dynamic adjustment of the proportion of the shooting screen, highlighting the subject, enhancing the visual impact, improving the quality of the video, and meeting users' needs for video shooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120186460A_ABST
    Figure CN120186460A_ABST
Patent Text Reader

Abstract

The invention relates to a shooting method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to a detected video recording operation, capturing a plurality of image frames, and displaying a first image frame which is previewed at present and a first mark in the plurality of image frames; wherein the first mark corresponds to a first target scene, and the first target scene is determined according to the scene of the first shooting main body in the first image frame; the first mark is used for identifying an area where the first shooting subject corresponds to the first target scene; and generating a first video image of the video based on the image of the area where the first mark is located in the first image frame. Through the scheme, the display effect of the video can be improved, and a user can shoot a more professional and natural high-quality video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of shooting technologies, and in particular, to a shooting method, an apparatus, an electronic device, and a storage medium. Background Art

[0002] During the shooting process, since the lens does not automatically adjust the ratio and position of the current picture following the movement of the shooting subject, the content of the shooting picture is large and there is no distinction between the primary and secondary. Shooters usually use the shooting technique of camera movement, manually moving the camera position or changing the lens distance and focal length to adjust the scene (long shot, panoramic view, medium shot, close-up, extreme close-up) to highlight the shooting subject, so as to enhance the user's sense of immersion, make the audience's attention focused, and create a stronger visual impact. However, this solution has relatively high requirements for the shooter's photography skills and is difficult to meet people's daily shooting needs. Summary of the Invention

[0003] The present disclosure provides a shooting method, an apparatus, an electronic device, and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a shooting method is provided, including:

[0005] In response to detecting an operation of recording a video, capturing a plurality of image frames, and displaying a first image frame currently previewed and a first mark among the plurality of image frames; wherein, the first mark corresponds to a first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame; the first mark is used to identify the area where the first shooting subject corresponds to the first target scene;

[0006] Generating a first video image of the video based on the image in the area where the first mark is located in the first image frame.

[0007] In some embodiments, the first image frame further includes a second shooting subject; the method further includes:

[0008] Displaying a second mark; wherein, the second mark corresponds to a second target scene, and the second target scene is determined according to the scene of the second shooting subject in the first image frame; the second mark is used to identify the area where the second shooting subject corresponds to the second target scene; the visual effect of the second mark is different from that of the first mark to highlight the image in the area where the first mark is located.

[0009] In some embodiments, the imaging range of the first shooting subject in the first target scene is smaller than that in the scene, and the frame occupied by the first shooting subject in the first target scene is larger than that in the scene.

[0010] In some embodiments, a second image frame is further included in the captured multiple image frames, and a third photographing subject is included in the second image frame; the method further includes:

[0011] In response to detecting a subject switching instruction, display the currently previewed second image frame and a third mark; wherein, the third mark corresponds to a third target scene, and the third target scene is determined according to the scene of the third photographing subject in the second image frame; the third mark is used to identify the area where the third photographing subject corresponds to the third target scene.

[0012] Generate a second video image of the video based on the image in the area where the third mark is located in the second image frame.

[0013] In some embodiments, the first photographing subject is further included in the second image frame; the method further includes:

[0014] In response to detecting the subject switching instruction, cancel the display of the first mark.

[0015] In some embodiments, a third image frame is further included in the captured multiple image frames, and the first photographing subject is included in the third image frame; the method further includes:

[0016] In response to detecting a scene switching instruction, display the currently previewed third image frame and a fourth mark; wherein, the fourth mark corresponds to the scene indicated by the scene switching instruction; the fourth mark is used to identify the area where the first photographing subject corresponds to the scene indicated by the scene switching instruction.

[0017] Generate a third video image of the video based on the image in the area where the fourth mark is located in the third image frame.

[0018] In some embodiments, the method further includes:

[0019] In response to detecting a photographing subject in the currently previewed first image frame, when the orientation of the photographing subject meets a preset orientation condition and / or the area ratio of the photographing subject is greater than a preset area ratio threshold, determine the photographing subject as the first photographing subject in the currently previewed first image frame.

[0020] In some embodiments, the generating the first video image of the video based on the image in the area where the first mark is located in the first image frame includes:

[0021] When the first photographing subject does not leave the shooting area of the currently previewed first image frame, crop the first image frame including the first photographing subject based on the first mark to generate the first video image.

[0022] In some embodiments, among the captured multiple image frames, there is also a fourth image frame, and the first shooting subject is included in the fourth image frame; the method further includes:

[0023] When the first shooting subject leaves the shooting area of the fourth image frame currently being previewed, based on the image in the fourth image frame, a fourth video image of the video is generated.

[0024] In some embodiments, the generating, when the first shooting subject leaves the shooting area of the fourth image frame currently being previewed, a fourth video image of the video based on the image in the fourth image frame includes:

[0025] When the duration for which the first shooting subject leaves the shooting area of the fourth image frame currently being previewed is greater than a preset duration threshold, based on the image in the fourth image frame, a fourth video image of the video is generated.

[0026] According to a second aspect of the embodiments of the present disclosure, there is provided a shooting device, including:

[0027] A first display module, configured to capture a plurality of image frames and display a first image frame currently being previewed and a first mark among the plurality of image frames in response to detecting an operation of recording a video; wherein, the first mark corresponds to a first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame; the first mark is used to identify the area where the first shooting subject corresponds to the first target scene;

[0028] A first generating module, configured to generate a first video image of the video based on the image in the area where the first mark is located in the first image frame.

[0029] In some embodiments, a second shooting subject is further included in the first image frame; the device further includes:

[0030] A second display module, configured to display a second mark; wherein, the second mark corresponds to a second target scene, and the second target scene is determined according to the scene of the second shooting subject in the first image frame; the second mark is used to identify the area where the second shooting subject corresponds to the second target scene; the visual effect of the second mark is different from that of the first mark to highlight the image in the area where the first mark is located.

[0031] In some embodiments, the imaging range of the first shooting subject in the first target scene is smaller than that in the scene, and the frame ratio occupied by the first shooting subject in the first target scene is larger than that in the scene.

[0032] In some embodiments, the plurality of captured image frames further includes a second image frame, and the second image frame includes a second photographed subject; the apparatus further includes:

[0033] A third display module, configured to display the currently previewed second image frame and a third mark in response to detecting a subject switching instruction; wherein, the third mark corresponds to a third target scene, and the third target scene is determined according to the scene of the third photographed subject in the second image frame; the third mark is used to identify the area where the third photographed subject is located corresponding to the third target scene;

[0034] A second generation module, configured to generate a second video image of the video based on the image of the area where the third mark is located in the second image frame.

[0035] In some embodiments, the first photographed subject is further included in the second image frame; the method further includes:

[0036] A cancellation module, configured to cancel the display of the first mark in response to detecting the subject switching instruction.

[0037] In some embodiments, the plurality of captured image frames further includes a third image frame, and the third image frame includes the first photographed subject; the apparatus further includes:

[0038] A fourth display module, configured to display the currently previewed third image frame and a fourth mark in response to detecting a scene switching instruction; wherein, the fourth mark corresponds to the scene indicated by the scene switching instruction; the fourth mark is used to identify the area where the first photographed subject is located corresponding to the scene indicated by the scene switching instruction;

[0039] A third generation module, configured to generate a third video image of the video based on the image of the area where the fourth mark is located in the third image frame.

[0040] In some embodiments, the apparatus further includes:

[0041] A determination module, configured to determine the photographed subject as the first photographed subject in the currently previewed first image frame when the orientation of the photographed subject meets a preset orientation condition and / or the area ratio of the photographed subject is greater than a preset area ratio threshold.

[0042] In some embodiments, the first generation module is configured to crop a first image frame including the first captured subject based on the first mark to generate the first video image when the first captured subject does not leave the shooting area of the first image frame currently being previewed.

[0043] In some embodiments, a fourth image frame among the captured multiple image frames includes the first captured subject; the apparatus further includes:

[0044] A fourth generation module configured to generate a fourth video image of the video based on the image in the fourth image frame when the first captured subject leaves the shooting area of the fourth image frame currently being previewed.

[0045] In some embodiments, the fourth generation module is configured to generate a fourth video image of the video based on the image in the fourth image frame when the duration for which the first captured subject leaves the shooting area of the fourth image frame currently being previewed is greater than a preset duration threshold.

[0046] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0047] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method as described in the first aspect above.

[0048] According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, including:

[0049] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in the first aspect above.

[0050] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0051] In an embodiment of the present disclosure, in response to detecting an operation of recording a video, a plurality of image frames are captured, a first image frame currently previewed and a first mark among the plurality of image frames are displayed, and an image of a region corresponding to a first target scene of a first shooting subject identified by the first mark in the first image frame is generated as a first video image of the video; since the first mark in the embodiment of the present disclosure corresponds to the first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame, it is thus possible to guide the generation of the first video image based on the region associated with the first target scene (i.e., the region where the first mark is located), presenting, for example, magnifying the first shooting subject to highlight it, or presenting a larger view including the first shooting subject to show a more content-rich picture, making the dynamic adjustment of the proportion of the shooting picture more reasonable, helping the user to shoot a more professional and natural high-quality video, and meeting the user's requirements for video shooting.

[0052] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0054] Figure 1 is an example of a shooting method flow shown in an embodiment of the present disclosure Figure 1 .

[0055] Figure 2 is a comparison example diagram before and after shooting processing shown in an embodiment of the present disclosure.

[0056] Figure 3 is an example of a shooting method flow shown in an embodiment of the present disclosure Figure 2 .

[0057] Figure 4 is an example of a shooting method flow provided by an embodiment of the present disclosure Figure 3 .

[0058] Figure 5 is a diagram of a shooting device shown in an embodiment of the present disclosure

[0059] Figure 6 is a block diagram of an electronic device shown in an embodiment of the present disclosure DETAILED DESCRIPTION OF THE EMBODIMENTS

[0060] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0061] In the related art, during the shooting process of electronic devices such as cameras (e.g., single-lens reflex cameras), mobile phones, and tablet computers, based on object detection technology, the shooting subject in the preview image is detected, and the shooting subject is kept in a prominent position by automatically adjusting the focal length or shooting angle, such as keeping the shooting subject always at the center of the screen. The user can also manually select the shooting subject to be tracked.

[0062] Although in the above related art, the shooting subject can be located at the center of the captured image based on technologies such as object detection, this solution is lacking in highlighting the shooting subject and enhancing the visual impact.

[0063] In view of this, an embodiment of the present disclosure provides a shooting method, and its execution subject can be a shooting device. For example, the shooting method can be executed by a terminal device or other electronic devices including an image acquisition component. Among them, the terminal device can be a mobile phone, a camera, a tablet computer, a vehicle-mounted device, a wearable device, a laptop computer, etc. The shooting method of the embodiment of the present disclosure can also be executed in cooperation by the terminal device and the server, or based on the cooperation of multiple terminals or devices; for example, the terminal device can capture and display image frames, and the terminal device can send the image frames to the server, and the server processes the image frames to obtain a processed video; or for another example, a terminal device with a camera function (such as a camera, a video camera, etc.) can capture image frames, a terminal device with a display function (such as a display, a TV, a mobile phone, a tablet, etc.) can preview and display the image frames, and a terminal device with image processing capabilities (such as a mobile phone, a tablet, a laptop computer, etc.) can process the image frames to obtain a video. In some possible implementation manners, the shooting method can be implemented by a processor calling computer-readable instructions stored in a memory.

[0064] It should be noted that the first image frame to the fourth image frame involved in the embodiment of the present disclosure are named for convenience of description of the image frames, and have nothing to do with the importance degree and the acquisition / display order of the image frames, and are not further limitations on the specific implementation manner of the image frames.

[0065] Figure 1 is an example of the shooting method flow shown in the embodiment of the present disclosure Figure 1 , from Figure 1 it can be seen that it includes the following steps:

[0066] S11, in response to detecting an operation of recording a video, capturing multiple image frames, and displaying a first image frame currently previewed among the multiple image frames and a first mark; wherein the first mark corresponds to a first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame; and the first mark is used to identify an area where the first shooting subject corresponds to the first target scene;

[0067] S12: Generate a first video image of the video based on an image of a region where the first mark is located in the first image frame.

[0068] In step S11, the camera captures multiple image frames when detecting the operation of recording a video; wherein the operation of recording a video may be an interactive operation between a user and a physical button on the camera or a virtual button in a display interface on the camera, or a voice command issued by a user, etc., which is not limited in the embodiments of the present disclosure. For example, the multiple image frames are image frames captured by the camera (such as an image acquisition component of a terminal device) within a duration based on the operation of recording a video.

[0069] The disclosed embodiment captures multiple image frames and displays the first image frame currently previewed among the multiple image frames; wherein the first image frame includes a first photographing subject; the photographing device may process the first image frame based on a target detection algorithm, a foreground detection algorithm, etc., to determine the first photographing subject in the first image frame. The disclosed embodiment first photographing subject may be a person, an animal, a moving or immovable object, etc.

[0070] After identifying the first shooting subject in the first image frame, the shooting device of the embodiment of the present disclosure determines the scene of the first shooting subject in the first image frame; wherein the scene includes close-up, close-up, mid-shot, panorama, long shot, etc.; taking the first shooting subject as a person as an example, the close-up refers to the part above the shoulders of the human body, the close-up refers to the part above the chest of the human body, the mid-shot refers to the part above the knees of the human body, the panorama refers to the whole human body, and the long shot includes the whole human body and the surrounding environment.

[0071] In some embodiments, the photographing device automatically analyzes the first photographing subject based on a target detection algorithm, a key point detection algorithm, etc., determines the range information of the first photographing subject in the first image frame, and then uses the range information corresponding to the analyzed range information as the range of the first photographing subject in the first image frame according to the preset correspondence between the range information and the range. For example, if the first photographing subject is a person, the range information in the first image frame is analyzed as the range above the shoulders of the human body, and the corresponding range of the first photographing subject is a close-up; for another example, if the first photographing subject is an animal, the range information in the first image frame is analyzed as the whole body of the animal, and the corresponding range of the first photographing subject is a panoramic view.

[0072] In some embodiments, the photographing device may also determine the scene of the first photographed subject based on the area ratio of the first photographed subject in the first image frame and the corresponding relationship between the preset area ratio and the scene.

[0073] After determining the scene of the first photographed subject, the photographing device according to an embodiment of the present disclosure determines a first target scene based on the scene of the photographed subject; in some embodiments, the first target scene corresponding to the scene of the first photographed subject in the first image frame may be determined based on the corresponding relationship between the preset scene and the first target scene; wherein, in the corresponding relationship between the preset scene and the first target scene, the viewing range corresponding to the first target scene may be smaller than the viewing range corresponding to the mapped scene. For example, if the scene of the first photographed subject is a panoramic view, the corresponding first target scene may be a medium shot, a close-up shot, or a close-up, so as to present an effect of zooming in (focusing on the local part) based on the viewing image corresponding to the first target scene; in addition, the viewing range corresponding to the first target scene may also be larger than the viewing range corresponding to the mapped scene. For example, if the scene of the first photographed subject is a close-up shot, the corresponding first target scene may be a medium shot, a close-up shot, or a panoramic view, so as to present an effect of zooming out (focusing on the whole) based on the viewing image corresponding to the first target scene, etc.

[0074] After determining the first target scene according to an embodiment of the present disclosure, a first mark is displayed on the first image frame; wherein, the first mark corresponds to the first target scene, and the first mark is used to identify the area where the first photographed subject corresponds to the first target scene. For example, if the first target scene is a close-up shot, the corresponding viewing range is above the shoulders of the human body, so the first mark identifies the area above the shoulders of the first photographed subject; if the first target scene is a close-up shot, the corresponding viewing range is above the chest of the human body, so the first mark identifies the area above the chest of the first photographed subject, etc. The shape of the first mark according to an embodiment of the present disclosure may be a square, a rectangle, a circle, or other polygons, and the line of the first mark may be a solid line, a dotted line, etc. The present disclosure does not limit this.

[0075] The first mark according to an embodiment of the present disclosure can highlight the first photographed subject in the first image frame, and the presence of the first mark does not affect the content of the first image frame. For example, the interface for displaying the image frame according to an embodiment of the present disclosure includes a layer for displaying the image frame (displaying the previewed first image frame), and the first mark may be displayed by overlaying a mask layer on the layer for displaying the first image frame; or, the interface for displaying the image frame includes multiple layers, and the first mark may be displayed on the layer above the layer where the first image frame is located, so as to bring an overall display effect to the user.

[0076] It should be noted that while the shooting device in the embodiments of the present disclosure displays the first image frame, it also displays the area corresponding to the first target scene of the first shooting subject, so that the first mark moves following the movement of the first shooting subject.

[0077] In step S12, the shooting device generates the first video image of the video based on the image of the area where the first mark is located in the first image frame. Exemplarily, the shooting device crops the first image frame according to the area where the first mark is located to obtain the image of the area where the first mark is located, and thus uses the image of the area where the first mark is located as the first video image of the video.

[0078] Another exemplarily, the shooting device can perform processing such as stretching, tiling, and interpolation on the image of the area where the first mark is located to obtain the first video image of the video, etc., so that the size of the first video image adapts to the display size of the display component (such as a display screen).

[0079] Figure 2 is a comparative example diagram before and after shooting processing shown in the embodiments of the present disclosure. Figure 2 In the figure, L1 identifies the first image frame, L2 identifies the first video image generated by using the shooting method provided by the embodiments of the present disclosure, and a1 identifies the first mark; the shooting range of the first target scene is smaller than the shooting range of the first shooting subject in the first image frame. It can be seen that the first shooting subject in the first video image identified by L2 is more prominent and has a stronger visual impact.

[0080] It can be understood that the embodiments of the present disclosure respond to the detected operation of recording a video, capture multiple image frames, display the currently previewed first image frame and the first mark in the multiple image frames, and generate the first video image of the video based on the image of the area corresponding to the first shooting subject corresponding to the first target scene identified by the first mark in the first image frame; since the first mark in the embodiments of the present disclosure corresponds to the first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame, it thus realizes guiding the generation of the first video image based on the area associated with the first target scene (i.e., the area where the first mark is located), presenting, for example, magnifying the first shooting subject to highlight the first shooting subject, or presenting a larger view including the first shooting subject to show a more content-rich picture, making the dynamic adjustment of the shooting picture ratio more reasonable, helping the user to shoot a more professional and natural high-quality video, and meeting the user's needs for video shooting.

[0081] In some embodiments, the first image frame further includes a second shooting subject; the method further includes:

[0082] Display a second marker; wherein, the second marker corresponds to a second target scene, and the second target scene is determined according to the scene of the second shooting subject in the first image frame; the second marker is used to identify the area where the second shooting subject corresponds to the second target scene; the visual effect of the second marker is different from that of the first marker to highlight the image in the area where the first marker is located.

[0083] In the embodiments of the present disclosure, the first image frame currently previewed includes a first shooting subject and a second shooting subject, wherein the second shooting subject can be one object or multiple objects.

[0084] While displaying the first image frame and the first marker currently previewed in multiple image frames in the embodiments of the present disclosure, a second marker is displayed, such as Figure 2 the rectangular frame other than the first marker identified by a1 in the figure; wherein, the second marker corresponds to a second target scene, and the second target scene is determined according to the scene of the second shooting subject in the first image frame. The manner in which the embodiments of the present disclosure determine the scene of the second shooting subject in the first image frame is similar to the foregoing manner of determining the scene of the first shooting subject in the first image frame; the manner in which the embodiments of the present disclosure determine the second target scene according to the scene of the second shooting subject in the first image frame is similar to the foregoing manner of determining the first target scene according to the scene of the first shooting subject in the first image frame, which will not be elaborated here.

[0085] The second marker displayed in the embodiments of the present disclosure is used to identify the area where the second shooting subject corresponds to the second target scene; wherein, the visual effect of the second marker is different from that of the first marker, for example, their shapes, sizes, colors, etc. are different, and the first marker is more prominent visually than the second marker. Exemplarily, the size of the first marker is larger than that of the second marker; the line color of the first marker is yellow, and the line color of the second marker is gray, etc., so that the image in the area where the first marker is located can be highlighted based on the displayed first marker and second marker.

[0086] It can be understood that in the case where the first image frame includes multiple shooting subjects in the embodiments of the present disclosure, based on the different markers corresponding to the first shooting subject and other shooting subjects (i.e., the second shooting subject), the image in the area where the first marker including the first shooting subject is located is highlighted, facilitating the user to intuitively learn the current focus image. In addition, in the case where the user intends to switch the subject, the focus object can be switched conveniently and quickly by clicking on the area where the second marker is located.

[0087] In some embodiments, the imaging range of the first shooting subject under the first target scene is smaller than that under the scene, and the frame occupied by the first shooting subject under the first target scene is larger than that under the scene.

[0088] In the embodiments of the present disclosure, the imaging range of the first shooting subject at the first target scene is smaller than that at the scene, that is, compared with the scene of the first shooting subject in the first image frame, the view-finding range corresponding to the first target scene in the embodiments of the present disclosure is smaller; and the frame occupied by the first shooting subject at the first target scene in the embodiments of the present disclosure is larger than that at the scene, so that the local part of the first shooting subject within the view-finding range corresponding to the first target scene is visually highlighted and magnified.

[0089] Exemplarily, as Figure 3 shown, Figure 3 is an example of the shooting method flow shown in the embodiments of the present disclosure Figure 2 , from Figure 3 it can be seen that the following steps are included:

[0090] S401. Identify the human subject in the picture;

[0091] In the embodiments of the present disclosure, the picture corresponds to the first image frame shown above, and the human subject corresponds to the first shooting subject shown above; the shooting device in the embodiments of the present disclosure can use target detection algorithms, foreground algorithms, etc. to identify the human subject in the picture.

[0092] S402. The current is a long-shot portrait;

[0093] In the embodiments of the present disclosure, the shooting device determines the scene of the human subject in the picture, that is, identifies the scene of the first shooting subject in the first image frame; if the current scene is a long-shot portrait, step S403 is executed.

[0094] S403. Crop the picture to the full-shot portrait range, and at the same time display the cropped range on the interface;

[0095] In the embodiments of the present disclosure, when the current scene is a long-shot portrait, the first target scene is determined to be a full-shot portrait, so as to display the first mark; wherein, the first mark is used to identify the area where the human corresponds to the full-shot portrait range; and the first image frame is cropped based on the area where the first mark is located, and a first video image including the full-shot portrait is displayed on the interface.

[0096] S404. The imaging effect after recording is a full-shot portrait;

[0097] In the embodiments of the present disclosure, the shooting device continuously records the images within the full-shot portrait range where the first mark is located, and obtains a video with an imaging effect of a full-shot portrait.

[0098] S405. The current is a full-shot portrait;

[0099] In the embodiments of the present disclosure, the photographing device determines the scene of the human subject in the frame; if the current scene is a panoramic portrait, step S406 is executed.

[0100] S406. Crop the frame to the range of a half-length portrait, and at the same time, display the cropped range on the interface;

[0101] In the embodiments of the present disclosure, when the current scene is a panoramic portrait and the target scene is determined to be a half-length portrait, a first mark is displayed; wherein, the first mark is used to identify the area where the corresponding half-length portrait range of the person is located; and the first image frame is cropped based on the area where the first mark is located, and a first video image including the half-length portrait is displayed on the interface.

[0102] S407. The imaging effect after recording is a half-length portrait;

[0103] In the embodiments of the present disclosure, the photographing device continuously records the images within the range of the half-length portrait where the first mark is located, and obtains a video with an imaging effect of a half-length portrait.

[0104] S408. Currently, it is a half-length portrait;

[0105] In the embodiments of the present disclosure, the photographing device determines the scene of the human subject in the frame; if the current scene is a half-length portrait, step S409 is executed.

[0106] S409. Crop the frame to the range of a bust portrait, and at the same time, display the cropped range on the interface;

[0107] In the embodiments of the present disclosure, when the current scene is a half-length portrait and the target scene is determined to be a bust portrait, a first mark is displayed; wherein, the first mark is used to identify the area where the corresponding bust portrait range of the person is located; and the first image frame is cropped based on the area where the first mark is located, and a first video image including the bust portrait is displayed on the interface.

[0108] S410. The imaging effect after recording is a bust portrait;

[0109] In the embodiments of the present disclosure, the photographing device continuously records the images within the range of the bust portrait where the first mark is located, and obtains a video with an imaging effect of a bust portrait.

[0110] S411. Currently, it is a bust portrait;

[0111] In the embodiments of the present disclosure, the photographing device determines the scene of the human subject in the frame; if the current scene is a bust portrait, step S412 is executed.

[0112] S412. Crop the frame to the range of a close-up portrait, and at the same time, display the cropped range on the interface;

[0113] In an embodiment of the present disclosure, when the current scene is a bust shot, the target scene is determined to be a close-up shot, and thus a first mark is displayed; wherein the first mark is used to identify the area where the corresponding close-up range of the person is located; and the first image frame is cropped based on the area where the first mark is located, and a first video image including the close-up shot is displayed on the interface.

[0114] S413. After recording, the imaging effect is a close-up portrait.

[0115] In an embodiment of the present disclosure, the shooting device continuously records the images within the close-up portrait range where the first mark is located, and obtains a video with an imaging effect of a close-up portrait.

[0116] It can be understood that the imaging range of the first shooting subject in the first target scene in the embodiment of the present disclosure is smaller than that in the scene, and the frame occupied by the first shooting subject in the first target scene is larger than that in the scene. Therefore, the first image frame of the video is generated based on the image within the first mark corresponding to the first target scene, visually pulling the first shooting subject closer, and it is possible to highlight the first shooting subject and improve the visual impact on the user without adjusting the focal length.

[0117] In some embodiments, the captured multiple image frames further include a second image frame, and the second image frame includes a third shooting subject; the method further includes:

[0118] In response to detecting a subject switching instruction, the currently previewed second image frame and a third mark are displayed; wherein the third mark corresponds to a third target scene, and the third target scene is determined according to the scene of the third shooting subject in the second image frame; the third mark is used to identify the area where the third shooting subject corresponds to the third target scene;

[0119] Based on the image in the area where the third mark is located in the second image frame, a second video image of the video is generated.

[0120] In an embodiment of the present disclosure, the captured multiple image frames further include a second image frame, wherein the second image frame includes at least a third shooting subject, and the third shooting subject is not limited to a person, an animal, a moving or immovable item, etc.

[0121] In the shooting device according to the embodiments of the present disclosure, when a subject switching instruction is detected, the second image frame currently being previewed and a third marker for identifying the area where the third shooting subject corresponds to the third target scene are displayed; wherein, the third marker corresponds to the third target scene, and the third target scene is determined according to the scene of the third shooting subject in the second image frame. The method for determining the scene of the third shooting subject in the second image frame in the embodiments of the present disclosure is similar to the method for determining the scene of the first shooting subject in the first image frame; the method for determining the third target scene according to the scene of the third shooting subject in the second image frame in the embodiments of the present disclosure is similar to the method for determining the first target scene according to the scene of the first shooting subject in the first image frame, which will not be elaborated here.

[0122] In the embodiments of the present disclosure, detecting the subject switching instruction may be detecting a touch instruction, a voice instruction, a gesture instruction, etc. issued by the user. In addition, the shooting device may also identify the subject switching instruction automatically; for example, when there are multiple shooting subjects in the second image frame, the shooting device in the embodiments of the present disclosure determines the area ratio of each shooting subject in the second image frame, and in response to the change of the shooting subject with the largest area ratio, detects the subject switching instruction, and uses the shooting subject with the largest area ratio as the third shooting subject after switching the subject.

[0123] After determining the third marker for identifying the area where the third shooting subject corresponds to the third target scene in the embodiments of the present disclosure, a second video image of the video is generated based on the image in the area where the third marker is located in the second image frame.

[0124] It can be understood that, based on the detected subject switching instruction, the embodiments of the present disclosure can switch to the third shooting subject intended by the user or automatically identify and present the third shooting subject, and display the third marker based on the third target scene corresponding to the third shooting subject to generate a second video image, so as to meet the requirement of generating videos by switching different shooting subjects.

[0125] In some embodiments, the first shooting subject is further included in the second image frame; the method further includes:

[0126] In response to detecting the subject switching instruction, the display of the first marker is cancelled.

[0127] In the embodiments of the present disclosure, when the first shooting subject and the second shooting subject are included in the second image frame, in response to detecting the subject switching instruction, the second image frame currently being previewed and the second marker are displayed, and the display of the first marker is cancelled; and then a second video image of the video is generated based on the image in the area where the second marker is located in the second image frame.

[0128] It can be understood that when the second image frame also includes the first shooting subject, in response to detecting a subject switching instruction, that is, switching from the first shooting subject to the second shooting subject, the first mark corresponding to the first shooting subject is cancelled and only the second mark corresponding to the second shooting subject is displayed, which can reduce the visual interference caused by the display of the first mark to the user and improve the purposefulness of responding to the subject switching instruction.

[0129] In some embodiments, the captured multiple image frames further include a third image frame, and the third image frame includes the first shooting subject; the method further includes:

[0130] In response to detecting a scene switching instruction, display the currently previewed third image frame and a fourth mark; wherein, the fourth mark corresponds to the scene indicated by the scene switching instruction; the fourth mark is used to identify the area where the first shooting subject is located corresponding to the scene indicated by the scene switching instruction;

[0131] Generate a third video image of the video based on the image in the area where the fourth mark is located in the third image frame.

[0132] In the embodiments of the present disclosure, the captured multiple image frames further include a third image frame, wherein the third image frame at least includes the first shooting subject.

[0133] When the shooting device in the embodiments of the present disclosure detects a scene switching instruction, it displays the currently previewed third image frame and a fourth mark for identifying the scene corresponding to the first shooting subject indicated by the scene switching instruction; wherein, detecting the scene switching instruction in the embodiments of the present disclosure can be a touch instruction, a voice instruction, a gesture instruction, etc. issued by the detected user. For example, the display interface includes a plurality of virtual buttons, and each virtual button corresponds to a scene. When detecting a touch instruction of the user on a certain virtual button, the scene corresponding to the virtual button to which the touch instruction acts is determined as the scene indicated by the scene switching instruction.

[0134] In addition, the shooting device can also identify the scene switching instruction in an automatic manner; for example, when the area ratio of the first shooting subject in the third image frame is greater than a first preset ratio threshold, a scene switching instruction is detected, and the first preset scene is determined as the scene indicated by the scene switching instruction; or, when the area ratio of the first shooting subject in the third image frame is less than a second preset ratio threshold, a scene switching instruction is detected, and the second preset scene is determined as the scene indicated by the scene switching instruction.

[0135] After determining the fourth mark for identifying the scene corresponding to the first shooting subject indicated by the scene switching instruction in the embodiments of the present disclosure, a third video image of the video is generated based on the image in the area where the fourth mark is located in the third image frame.

[0136] It can be understood that the embodiments of the present disclosure can switch to the scene in which the first shooting subject is presented according to the detected scene switching instruction, or automatically identify the scene of the first shooting subject that is preferably presented, and generate a third video image based on the area where the scene indicated by the scene switching instruction corresponding to the first shooting subject is located, so as to meet the requirement of generating a video by switching different shooting scenes.

[0137] In some embodiments, the method further includes:

[0138] In response to detecting a shooting subject in the first image frame of the current preview, when the orientation of the shooting subject meets the preset orientation condition and / or the area ratio of the shooting subject is greater than the preset area ratio threshold, the shooting subject is determined as the first shooting subject in the first image frame of the current preview.

[0139] In the embodiments of the present disclosure, the shooting device uses a target detection algorithm to detect the shooting subject in the first image frame, and determines the orientation of the shooting when the shooting is detected in the first image frame; wherein, the orientation of the shooting subject is such as the face orientation, body orientation, etc.; for example, the face orientation recognition can be realized by using a Learning Vector Quantization (LVQ) neural network, a model based on a self-attention mechanism (Vision Transformer, VT), etc.

[0140] In addition, the shooting device determines the area ratio of the shooting subject in the first image frame; for example, the ratio between the size of the shooting subject and the size of the first image frame can be determined as the area ratio, or the ratio between the number of pixel points included in the shooting subject and the number of pixel points included in the first image frame can be determined as the area ratio.

[0141] In the embodiments of the present disclosure, if the orientation of the shooting subject is the preset direction (such as the face facing the shooting device) or is within the preset angle range with the normal line of the photosensitive surface of the image sensor, it is determined that the orientation of the shooting subject meets the preset orientation condition, so as to determine the shooting subject with the orientation meeting the preset orientation condition and / or the area ratio greater than the preset area ratio threshold as the first shooting subject in the first image frame.

[0142] It can be understood that the first shooting subject in the embodiments of the present disclosure is the shooting subject facing the direction that meets the preset direction condition and / or occupies a larger proportion in the picture, that is, the first shooting subject is more likely to be the object that the user pays more attention to. Therefore, in the embodiments of the present disclosure, the shooting subject whose direction meets the preset direction condition and / or the area proportion is greater than the preset area proportion threshold is determined as the first shooting subject in the first image frame, and then the first video frame is generated based on the image of the area corresponding to the first shooting subject identified by the first mark in the first target scene, so that the first video frame better meets the user's attention expectation, thereby improving the intelligence of video generation and the user's shooting experience.

[0143] In some embodiments, generating the first video image of the video based on the image of the area where the first mark is located in the first image frame includes:

[0144] When the first shooting subject does not leave the shooting area of the first image frame in the current preview, the first image frame including the first shooting subject is cropped based on the first mark to generate the first video image.

[0145] In the embodiments of the present disclosure, the first shooting subject in the captured image frame may move out of the shooting area. In this regard, when the first shooting subject does not leave the shooting area of the first image frame in the current preview, at this time, the first mark always identifies the area corresponding to the first target scene of the first shooting subject, so that the first image frame including the first shooting subject is cropped based on the first mark to generate the first video image, which can improve the accuracy and rationality of generating the first video image.

[0146] In some embodiments, the plurality of captured image frames further include a fourth image frame, and the fourth image frame includes the first shooting subject; the method further includes:

[0147] When the first shooting subject leaves the shooting area of the fourth image frame in the current preview, the fourth video image of the video is generated based on the image in the fourth image frame.

[0148] In the embodiments of the present disclosure, among the captured multiple image frames, there is also a fourth image frame, and the first shooting subject is included in the fourth image frame. In the embodiments of the present disclosure, when the first shooting subject leaves the shooting area of the currently previewed fourth image frame, that is, when there is no area in the fourth image frame corresponding to the first mark where the first shooting subject is located, a fourth video image of the video is generated based on the image in the fourth image frame. For example, when the shooting device determines that the first shooting subject has left the shooting area of the currently previewed fourth image frame, it directly uses the image in the second image frame as the fourth video image; or, it crops the fourth image frame within a preset range (such as the central 1 / 3 area of the fourth image frame), and obtains the fourth video image based on the cropped image. This enables the fourth video frame to include more environmental information when the first shooting subject leaves the shooting area, improving the visual experience of the fourth video frame.

[0149] In addition, during the process of shooting a video, if the first shooting subject leaves the shooting area, the shooting range can be gradually expanded to obtain a video frame with an expanded shooting range, making the visual transition of the video imaging smoother and the visual effect better.

[0150] In some embodiments, the generating the fourth video image of the video based on the image in the fourth image frame when the first shooting subject leaves the shooting area of the currently previewed fourth image frame includes:

[0151] When the duration for which the first shooting subject leaves the shooting area of the currently previewed fourth image frame is greater than a preset duration threshold, a fourth video image of the video is generated based on the image in the fourth image frame.

[0152] In the embodiments of the present disclosure, the shooting device determines the duration for which the first shooting subject leaves the shooting area, and when the duration for which the first shooting subject leaves the shooting area is greater than a preset duration threshold, a fourth video image of the video is generated based on the image in the fourth image frame; when the duration for which the first shooting subject leaves the shooting area is less than or equal to the preset duration threshold, the fourth video image of the video is continuously generated based on the image in the area where the first mark including the first shooting subject is located in the fourth image frame.

[0153] It can be understood that since there may be a situation where the shooting subject occasionally leaves the shooting area, or the shooting subject is occasionally blocked, resulting in the shooting subject not being detected and misjudged as leaving the shooting area. In this regard, in the embodiments of the present disclosure, when the duration for which the first shooting subject leaves the shooting area is greater than a preset duration threshold, the shooting device generates a fourth video image of the video based on the image in the fourth image frame, which can reduce problems such as visual fatigue caused by frequently changing the shooting range due to the occasional failure to detect the first shooting subject.

[0154] Figure 4An example of a shooting method provided by an embodiment of the present disclosure Figure 3 , it can be seen from Figure 4 that it includes the following steps:

[0155] S501. Identify the number of human subjects in the picture;

[0156] In an embodiment of the present disclosure, the picture corresponds to the aforementioned currently displayed first image frame, and the human subject corresponds to the first shooting subject in the first image frame; the shooting device in the embodiment of the present disclosure uses algorithms such as object detection to identify the number of human subjects in the picture.

[0157] S502. Single-person scenario;

[0158] In an embodiment of the present disclosure, if the number of human subjects is 1, it is determined as a single-person scenario, and the detected target object is determined as the first shooting subject.

[0159] S503. Automatically identify the current subject, crop the recorded picture, and simultaneously display the cropped range on the interface;

[0160] In an embodiment of the present disclosure, the shooting device automatically identifies the first shooting subject, determines the scene of the first shooting subject in the first image frame; determines the first target scene according to this scene, and displays the first mark while displaying the first image frame; wherein, the first mark corresponds to the first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame; the first mark is used to identify the area where the first shooting subject corresponds to the first target scene. Furthermore, the shooting device crops the recorded picture based on the area where the first mark is located in the first image frame to generate the first video image of the video; the area where the first video image is located in the embodiment of the present disclosure is the cropped range.

[0161] S504. After the subject leaves the shooting area, maintain the current frame size;

[0162] In an embodiment of the present disclosure, it is determined whether the first shooting subject leaves the shooting area, and when the first shooting subject leaves the shooting area, the current frame size is maintained, that is, continue to generate and display the first video image of the video based on the image in the area where the first mark is located in the first image frame.

[0163] S505. Determine whether the duration of the subject leaving is greater than 3 seconds; if so, execute step S506; if not, execute step S507;

[0164] In an embodiment of the present disclosure, the duration of the first shooting subject leaving the shooting area is determined, and when the duration of the first shooting subject leaving the shooting area is greater than 3 seconds, step S506 is executed; otherwise, step S507 is executed.

[0165] S506. Restore the original shooting frame, and the crop frame disappears;

[0166] In an embodiment of the present disclosure, when the duration that the first shooting subject leaves the shooting range is greater than 3 seconds, the original shooting frame is restored, that is, a first video image is generated and displayed based on the image in the first image frame, and the display of the first mark is removed.

[0167] S507. The subject returns within 3 seconds;

[0168] In an embodiment of the present disclosure, if the first shooting subject leaves the shooting area and returns to the shooting area within 3 seconds, that is, when the duration that the first shooting subject leaves the shooting area is less than or equal to 3 seconds, step S508 is executed;

[0169] S508. Continue to shoot with the current subject as the center;

[0170] In an embodiment of the present disclosure, when the first shooting subject returns to the shooting area within 3 seconds, a first video image of the video is continuously generated based on the image in the area where the first mark is located in the first image frame.

[0171] S509. Multi-person scenario;

[0172] In an embodiment of the present disclosure, if the number of person subjects is greater than 1, it is determined as a multi-person scenario, and step S510 is executed.

[0173] S510. Automatically select the subject A with the largest weight, crop the recording screen, and simultaneously display the cropped range on the interface;

[0174] In an embodiment of the present disclosure, the shooting device automatically selects the shooting subject A with the largest weight, wherein the weight of the shooting subject facing the preset orientation condition is greater than the weight of the shooting subject not facing the preset orientation condition, and the area ratio of the shooting subject in the preview image is positively correlated with the weight. Corresponding to detecting the shooting subject in the first image frame being previewed currently, when the orientation of the shooting subject meets the preset orientation condition and / or the area ratio of the shooting subject is greater than the preset area ratio threshold, the shooting subject is determined as the first shooting subject in the first image frame being previewed currently.

[0175] Exemplarily, in response to detecting multiple person objects in the preview image, the orientation and / or the area ratio in the preview image of each person are determined respectively, and the person whose orientation meets the preset orientation condition and / or the area ratio is greater than the preset area ratio threshold is determined as the shooting subject A.

[0176] After determining the shooting subject A, the shooting device determines the scene of the shooting subject A in the preview image; determines the first target scene according to the scene; and simultaneously displays the first mark while displaying the first image frame; the shooting device crops the recording screen based on the area where the first mark is located in the first image frame to generate a first video image of the video.

[0177] S511. The user can choose to switch to another recognized subject B, and the recorded picture is cropped centered on subject B, and the cropping frame on the interface smoothly switches from subject A to around subject B;

[0178] In the embodiments of the present disclosure, the user learns that the current shooting subject is A based on the cropping frame displayed on the interface. When the user intends to switch the shooting subject to B (corresponding to the aforementioned third shooting subject), the user can click on interface B to switch the shooting subject; thus, the shooting device detects the subject switching instruction, determines the scene of shooting subject B in the preview image (corresponding to the aforementioned second image frame); determines the third target scene according to this scene, and displays the third mark while displaying the second image frame; wherein, the third mark corresponds to the third target scene, and the third target scene is determined according to the scene of the third shooting subject in the first image frame; the third mark is used to identify the area where the third shooting subject corresponds to the third target scene; furthermore, the shooting device crops the recorded picture based on the area where the third mark is located in the second image frame to generate the second video image of the video, and obtains the recorded picture cropped centered on subject B. In addition, the first mark on the interface is updated to the third mark, which visually reflects that the mark smoothly switches from subject A to around subject B.

[0179] S512. Determine whether the duration of the subject leaving is greater than 3 seconds; if so, execute step S513; if not, execute step S514;

[0180] In the embodiments of the present disclosure, determine the duration of shooting subject B leaving the shooting area, and execute step S513 when the duration of shooting subject B leaving the shooting area is greater than 3 seconds; otherwise, execute step S514.

[0181] S513. Restore the original shooting frame, and the cropping frame disappears;

[0182] In the embodiments of the present disclosure, when the duration of shooting subject B leaving the shooting area is greater than 3 seconds, restore the original shooting frame, that is, generate and display the second video image based on the image in the second image frame, and cancel the display of the third mark.

[0183] S514. The subject returns within 3 seconds;

[0184] In the embodiments of the present disclosure, if shooting subject B leaves the shooting area and returns to the shooting area within 3 seconds, that is, when the duration of shooting subject B leaving the shooting area is less than or equal to 3 seconds, execute step S508;

[0185] S515. Continue to shoot centered on the current subject;

[0186] In an embodiment of the present disclosure, when the captured subject B returns to the shooting area within 3 seconds, the second video image of the video is continuously generated based on the image of the area where the third marker is located in the second image frame.

[0187] Figure 5 This is a diagram of a shooting device shown in an embodiment of the present disclosure, which consists of Figure 5 It can be seen that it includes:

[0188] A first display module 601, configured to capture a plurality of image frames in response to detecting an operation of recording a video, and display a currently previewed first image frame and a first marker in the plurality of image frames; wherein, the first marker corresponds to a first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame; the first marker is used to identify the area where the first shooting subject is located corresponding to the first target scene;

[0189] A first generation module 602, configured to generate a first video image of the video based on the image of the area where the first marker is located in the first image frame.

[0190] In some embodiments, the first image frame further includes a second shooting subject; the device further includes:

[0191] A second display module, configured to display a second marker; wherein, the second marker corresponds to a second target scene, and the second target scene is determined according to the scene of the second shooting subject in the first image frame; the second marker is used to identify the area where the second shooting subject is located corresponding to the second target scene; the visual effect of the second marker is different from that of the first marker to highlight the image of the area where the first marker is located.

[0192] In some embodiments, the imaging range of the first shooting subject under the first target scene is smaller than that under the scene, and the frame ratio occupied by the first shooting subject under the first target scene is larger than that under the scene.

[0193] In some embodiments, the captured plurality of image frames further includes a second image frame, and the second image frame includes a second shooting subject; the device further includes:

[0194] A third display module, configured to display a currently previewed second image frame and a third marker in response to detecting a subject switching instruction; wherein, the third marker corresponds to a third target scene, and the third target scene is determined according to the scene of the third shooting subject in the second image frame; the third marker is used to identify the area where the third shooting subject is located corresponding to the third target scene;

[0195] A second generation module, configured to generate a second video image of the video based on an image of a region where the third marker is located in the second image frame.

[0196] In some embodiments, the second image frame further includes the first shooting subject; the method further includes:

[0197] A cancellation module, configured to cancel the display of the first marker in response to detecting the subject switching instruction.

[0198] In some embodiments, the plurality of captured image frames further includes a third image frame, and the third image frame includes the first shooting subject; the apparatus further includes:

[0199] A fourth display module, configured to display the currently previewed third image frame and a fourth marker in response to detecting a scene switching instruction; wherein, the fourth marker corresponds to the scene indicated by the scene switching instruction; the fourth marker is used to identify a region where the first shooting subject corresponds to the scene indicated by the scene switching instruction.

[0200] A third generation module, configured to generate a third video image of the video based on an image of a region where the fourth marker is located in the third image frame.

[0201] In some embodiments, the apparatus further includes:

[0202] A determination module, configured to determine the shooting subject as the first shooting subject in the currently previewed first image frame when the shooting subject is detected in the currently previewed first image frame and the orientation of the shooting subject satisfies a preset orientation condition and / or the area ratio of the shooting subject is greater than a preset area ratio threshold.

[0203] In some embodiments, the first generation module 602 is configured to crop the first image frame including the first shooting subject based on the first marker to generate the first video image when the first shooting subject does not leave the shooting area of the currently previewed first image frame.

[0204] In some embodiments, the plurality of captured image frames further includes a fourth image frame, and the fourth image frame includes the first shooting subject; the apparatus further includes:

[0205] A fourth generation module, configured to generate a fourth video image of the video based on the image in the fourth image frame when the first shooting subject leaves the shooting area of the currently previewed fourth image frame.

[0206] In some embodiments, the fourth generation module is configured to generate a fourth video image of the video based on the image in the fourth image frame when the duration for which the first photographing subject leaves the photographing area of the currently previewed fourth image frame is greater than a preset duration threshold.

[0207] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0208] Figure 6 It is a block diagram of an electronic device 800 shown in an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a mobile computer, etc.

[0209] Referring to Figure 6 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0210] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0211] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0212] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0213] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of a touch or swipe action but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0214] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0215] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0216] The sensor component 814 includes one or more sensors for providing an assessment of the various aspects of the status of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0217] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a communication standard-based wireless network, such as Wi-Fi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0218] In an exemplary embodiment, the electronic device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method.

[0219] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above-described method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0220] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the foregoing shooting method.

[0221] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0222] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A shooting method, characterized in that, The method includes: In response to detecting an operation of recording a video, capturing a plurality of image frames, and displaying a first image frame and a first marker that are currently previewed among the plurality of image frames; wherein, the first marker corresponds to a first target scene type, and the first target scene type is determined according to the scene type of the first shooting subject in the first image frame; the first marker is used to identify the area where the first shooting subject corresponds to the first target scene type; Generating a first video image of the video based on the image of the area where the first marker is located in the first image frame.

2. The method according to claim 1, characterized in that, The first image frame further includes a second shooting subject; the method further includes: Displaying a second marker; wherein, the second marker corresponds to a second target scene type, and the second target scene type is determined according to the scene type of the second shooting subject in the first image frame; the second marker is used to identify the area where the second shooting subject corresponds to the second target scene type; the visual effect of the second marker is different from that of the first marker to highlight the image of the area where the first marker is located.

3. The method according to claim 1, characterized in that, The imaging range of the first shooting subject under the first target scene type is smaller than the imaging range under the scene type, and the frame ratio occupied by the first shooting subject under the first target scene type is larger than the frame ratio occupied under the scene type.

4. The method according to claim 1, characterized in that, The plurality of captured image frames further includes a second image frame, and the second image frame includes a third shooting subject; the method further includes: In response to detecting a subject switching instruction, displaying the second image frame and a third marker that are currently previewed; wherein, the third marker corresponds to a third target scene type, and the third target scene type is determined according to the scene type of the third shooting subject in the second image frame; the third marker is used to identify the area where the third shooting subject corresponds to the third target scene type; Generating a second video image of the video based on the image of the area where the third marker is located in the second image frame.

5. The method according to claim 4, characterized in that, The second image frame further includes the first shooting subject; the method further includes: In response to detecting the subject switching instruction, canceling the display of the first marker.

6. The method according to claim 1, characterized in that, The plurality of captured image frames further includes a third image frame, and the third image frame includes the first shooting subject; the method further includes: In response to detecting a scene switching instruction, displaying the third image frame and a fourth marker that are currently previewed; wherein, the fourth marker corresponds to the scene type indicated by the scene switching instruction; the fourth marker is used to identify the area where the first shooting subject corresponds to the scene type indicated by the scene switching instruction; Generating a third video image of the video based on the image of the area where the fourth marker is located in the third image frame.

7. The method according to claim 1, characterized in that, The method further includes: In response to detecting a shooting subject in the currently previewed first image frame, when the orientation of the shooting subject meets a preset orientation condition and / or the area ratio of the shooting subject is greater than a preset area ratio threshold, determining the shooting subject as the first shooting subject in the currently previewed first image frame.

8. The method according to claim 1, characterized in that, Generating a first video image of the video based on an image of a region where the first marker is located in the first image frame includes: When the first shooting subject does not leave the shooting area of the first image frame being currently previewed, cropping the first image frame including the first shooting subject based on the first marker to generate the first video image.

9. The method according to claim 1, characterized in that, The plurality of captured image frames further includes a fourth image frame, and the fourth image frame includes the first shooting subject; the method further includes: When the first shooting subject leaves the shooting area of the fourth image frame being currently previewed, generating a fourth video image of the video based on the image in the fourth image frame.

10. The method according to claim 9, characterized in that, The generating a fourth video image of the video based on the image in the fourth image frame when the first shooting subject leaves the shooting area of the fourth image frame being currently previewed includes: When the duration for which the first shooting subject leaves the shooting area of the fourth image frame being currently previewed is greater than a preset duration threshold, generating a fourth video image of the video based on the image in the fourth image frame.

11. A shooting device, characterized in that, The apparatus includes: A first display module, configured to capture a plurality of image frames in response to detecting an operation of recording a video, and display the first image frame being currently previewed and the first marker among the plurality of image frames; wherein, the first marker corresponds to a first target scene, and the first target scene is determined according to the scene of the first shooting subject in the first image frame; the first marker is used to identify the region where the first shooting subject is located corresponding to the first target scene; A first generation module, configured to generate a first video image of the video based on an image of a region where the first marker is located in the first image frame.

12. An electronic device, characterized in that, including: A processor; A memory for storing processor-executable instructions; wherein, the processor is configured to execute the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that,When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 10.