CN113873166A - Video shooting method and device, electronic equipment and readable storage medium - Google Patents

Video shooting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113873166A
CN113873166A CN202111249213.4A CN202111249213A CN113873166A CN 113873166 A CN113873166 A CN 113873166A CN 202111249213 A CN202111249213 A CN 202111249213A CN 113873166 A CN113873166 A CN 113873166A
Authority
CN
China
Prior art keywords
focus tracking
focus
shooting
area
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111249213.4A
Other languages
Chinese (zh)
Inventor
沈永镇
王昔珏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111249213.4A priority Critical patent/CN113873166A/en
Publication of CN113873166A publication Critical patent/CN113873166A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a video shooting method, a video shooting device, electronic equipment and a readable storage medium. Belongs to the technical field of shooting. An embodiment of the method comprises: receiving a first input of a user to a shooting preview interface; acquiring a focus tracking object and a focus tracking area in response to a first input; in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: object of focus tracking, area of focus tracking.

Description

Video shooting method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of shooting, in particular to a video shooting method and device, electronic equipment and a readable storage medium.
Background
Currently, a user can capture various videos such as short videos, video blogs (Vlog), and the like through an electronic device. During the process of shooting video by a user using the electronic device, focus tracking is usually required.
In the related art, a certain focus tracking object can be generally tracked in a video shooting process, for example, the face of a certain human object can be tracked, but the tracking mode is single, and the quality of a shot video is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a video shooting method, an apparatus, an electronic device, and a readable storage medium, which can solve the technical problem of poor video quality caused by a single focus tracking manner in the related art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video shooting method, where the method includes: receiving a first input of a user to a shooting preview interface; acquiring a focus tracking object and a focus tracking area in response to the first input; in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: object of focus tracking, area of focus tracking.
In a second aspect, an embodiment of the present application provides a video shooting apparatus, including: the receiving unit is used for receiving a first input of a user to the shooting preview interface; an acquisition unit configured to acquire a focus tracking object and a focus tracking area in response to the first input; a first updating unit, configured to update a focus tracking target in a case that object parameter information of the focus tracking object or a shooting scene is updated during shooting, where the focus tracking target includes at least one of: object of focus tracking, area of focus tracking.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method as described in the first aspect above.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method described in the first aspect.
In the embodiment of the application, in the video shooting process, a first input of a user to a shooting preview interface is received; acquiring a focus tracking object and a focus tracking area in response to a first input; in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: the focus tracking target and the focus tracking area are focused, so that the focus tracking target is flexibly switched in the video shooting process. In the shooting process, the focus tracking target can be flexibly switched along with the object parameter information of the focus tracking object or the shooting scene, so that the focus tracking area of the shot video can change along with the change of the video preview interface, the focus tracking mode is enriched, and the quality of the shot video is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a video shooting method provided in an embodiment of the present application;
fig. 2 is a schematic view of a focusing process of a video shooting method according to an embodiment of the present application;
fig. 3 is a schematic view illustrating a process of acquiring a focus area in a video capture method according to an embodiment of the present application;
fig. 4 is one of schematic diagrams of application scenarios of a video shooting method provided in an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a setting process of the configuration information of the focus tracking area of the video shooting method according to the embodiment of the present application;
fig. 6 is a second schematic view of an application scenario of the video shooting method according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of a video camera provided in an embodiment of the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device suitable for implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The video shooting method, the video shooting device, the electronic device and the readable storage medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Please refer to fig. 1, which shows one of the flowcharts of the video shooting method provided in the embodiment of the present application. The video shooting method provided by the embodiment of the application can be applied to a video shooting device. In practice, the video shooting device may be various electronic devices having a video shooting function, such as a smart phone, a tablet computer, a laptop portable computer, and the like.
The flow of the video shooting method provided by the embodiment of the application comprises the following steps:
step 101, receiving a first input of a user to a shooting preview interface.
In the present embodiment, an executing body of the video photographing method (the video photographing apparatus as described above) may receive a first input of the photographing preview interface by the user. The first input may be used to select a focusing mode. The focusing mode may include a manual focusing mode and an automatic focusing mode. When the manual focusing mode is selected, the first input can be further used for selecting a focus tracking object.
As an example, referring to the focusing process diagram of fig. 2, after the user starts the camera application, a shooting preview interface shown by reference numeral 201 may be presented. The interface may include a focus tracking setting control as shown at reference numeral 202. After the user clicks the focus tracking setting control, the interface shown by reference numeral 203 can be switched to. In the interface as shown by reference numeral 203, a "focus" control may be displayed. After the user clicks the "in focus" control, an interface may be presented as shown at reference numeral 204. In the interface, an "autofocus manner" control and a "manual focus manner" control may be displayed. The user may complete the first input by clicking on the "autofocus methods" control. The user may also manually select a focus tracking object (e.g., click an object in the shooting preview interface) after clicking the "manual focus mode" control, and further manually frame the focus tracking area, thereby completing the first input.
It should be noted that, in addition to the control described above, the interface may further include other controls, such as the control shown in fig. 2 or a control not shown, and this is not specifically limited in this embodiment of the application.
Further, the first input may be further used to select a shooting scene. With continued reference to fig. 2, the interface shown at reference numeral 201 includes scene mode controls, such as "automatic", "still", "moving", "street-shot", "ball", etc. The user can browse more hidden scene mode controls, such as scene mode controls of fireworks, sea waves, disorder and the like, by sliding the screen left and right. The scene mode controls are not limited to the above list. When a user clicks a certain scene mode control or slides a screen to enable the certain scene mode control to be located at a specific position, the scene mode corresponding to the scene mode control can be entered. For example, when the user slides the screen so that the "auto" scene mode control is centered, an auto scene mode may be entered, in which the scene of the video preview interface may be automatically identified. The execution subject can determine the current shooting scene by detecting the scene mode selected by the user. Thus, after the user clicks the "autofocus method" control, the execution subject can automatically select a focus following object based on the shooting scene.
Step 102, in response to a first input, acquiring a focus tracking object and a focus tracking area.
In this embodiment, the execution body may acquire a focus tracking object and a focus tracking area in response to the first input. The focus tracking object can be any object in the video preview interface, such as a person, an animal, a still, a scene, etc. The focus tracking area may be a partial area or an entire area of the focus tracking object. For example, in the case where the focus tracking object is a human body, the focus tracking area of the focus tracking object includes at least one of: eye region, face region, and person whole region.
When acquiring the focus tracking object, if the user selects the manual focusing method, the object selected by the user through the first input may be directly used as the focus tracking object. If the user selects the automatic focusing mode, the focus tracking object can be selected according to the shooting scene. Here, the focus tracking object setting may be performed in advance for different shooting scenes, for example, a first focus tracking object, a second focus tracking object, focus tracking objects distributed under different objects, and the like may be set for each shooting scene. Therefore, the execution body can select a focus tracking object in the video preview interface based on the current shooting scene.
As an example, if the shooting scene is a ball scene (such as a ping-pong ball sport scene), a ping-pong ball appearing in the video preview interface can be preferentially taken as a focus-following object. When the ping-pong ball does not exist in the video preview interface, the executive body can detect whether the moving character exists in the video preview interface. If there is a moving person, the moving person can be a target of focus tracking. If no moving person can be detected in the picture, the focus tracking object can be switched to an object (such as a ball table) in the middle area of the picture, so that the picture is ensured to be clear in real time, and the video quality is improved.
As another example, if the shooting scene is a firework scene, a firework with a continuously changing form in the shooting preview interface may be used as a focus tracking object, so that the picture is always focused in the firework area, thereby ensuring that the firework in the video is clear.
As another example, if the shooting scene is a street shooting scene, a person in the shooting preview interface may be taken as a focus-following object. Specifically, when the persons appear in the shooting preview interface in sequence, the person appearing first may be preferentially taken as the subject of focus tracking. When a plurality of persons appear in the screen at the same time, persons (which may include one or more persons) located in the middle area of the shooting preview interface may be the objects of focus tracking, and the like, and are not particularly limited herein.
Upon acquiring the focus tracking area, the focus tracking area may be framed by receiving an input from a user. The focus tracking area may also be automatically determined based on the distance of the focus tracking object from the lens. The priority information of the focus tracking area can be preset for different focus tracking objects, so that the focus tracking area can be selected according to the priority information.
As an example, in a scene in which the focus tracking area is determined based on the distance of the focus tracking object from the lens, the focus tracking area of the focus tracking object may be determined according to the distance of the focus tracking object from the lens. For example, if the object to be focused is a person, if the distance between the object to be focused and the lens is smaller than a first threshold value, the eye region can be used as a focusing region; if the distance between the face area and the lens is larger than or equal to the second threshold and smaller than a third threshold, the face area can be used as a focus following area; if the distance between the lens and the lens is larger than or equal to the third threshold value, the whole area can be used as a focus following area.
As yet another example, in a scenario where the focus tracking area is selected according to the priority information, targeted focus tracking area priority information may be set for different focus tracking objects to indicate a preferred focus tracking area, a next-selected focus tracking area, a re-selected focus tracking area, and the like. Only one focus tracking area may be involved in the focus tracking area priority information. An initial focus tracking area of the focus tracking object may be selected based on the focus tracking area priority information and a video preview interface. For example, if the object of focus tracking is a sphere, the initial focus tracking area may be fixed to the entire area of the sphere. For another example, as shown in the schematic diagram of the initial focusing region acquiring process shown in fig. 3, if the focusing object is a human body, the eye region can be used as the initial focusing region (as shown by reference numeral 301). When the eye region is not detected, the face region may be used as an initial focus tracking region (as indicated by reference numeral 302). When the face region is not detected, the entire region may be taken as a target focus-following region (as indicated by reference numeral 303). Thus, the target focus tracking area of the focus tracking object can be selected based on the preset information.
Step 103, in the shooting process, under the condition that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: object of focus tracking, area of focus tracking.
In the present embodiment, during shooting, the execution subject described above may update the focus tracking target with object parameter information of the focus tracking target updated. Further, the execution subject described above may also update the focus tracking target in the case of a shooting scene update. Wherein the object parameter information of the focus tracking object may include, but is not limited to, at least one of: the distance between the focus tracking object and the lens, and the number of focus tracking objects. The focus tracking targets may include, but are not limited to, at least one of: object of focus tracking, area of focus tracking.
In some optional implementations of this embodiment, the video camera may include a camera. The object parameter information of the focus tracking object may include distance information between the focus tracking object and the camera. In the case where the distance information between the focus tracking target and the camera is updated during the shooting, the focus tracking area of the focus tracking target may be updated based on the updated focus tracking area by updating the focus tracking position of the focus tracking target.
Here, the closer the distance between the focus tracking object and the lens is, the more conspicuous the detail feature of the target focus tracking area of the focus tracking object may be. As an example, fig. 4 shows one of schematic diagrams of application scenes of the video shooting method of the embodiment of the present application. As shown in fig. 4, the focusing object is a person. As shown by reference numeral 401, when the focus tracking object is far from the lens, the area occupied by the focus tracking object in the video preview interface is small, and at this time, the focus tracking can be performed on the whole part of the focus tracking object, and the focus tracking area is the whole person area. With the movement of the focus-following object or the photographer, when the focus-following object is within a moderate distance from the lens, as shown by reference numeral 402, the area occupied by the focus-following object in the video preview interface is moderate, at this time, the face of the focus-following object can be focused, and the focus-following area at this time is the face area of the focus-following object. As the focus tracking object or the photographer moves continuously, when the focus tracking object is closer to the lens, as shown by reference numeral 403, the area occupied by the focus tracking object in the video preview interface is larger, at this time, a certain detail (such as an eye part) of the focus tracking object can be tracked, and the current focus tracking area is the eye part area of the focus tracking object. Therefore, the situation that the focus tracking area is too large or too small can be avoided in the process of the movement of the focus tracking object or the movement of the photographer, and the size of the focus tracking area is more uniform and reasonable. Meanwhile, the image definition in the focus tracking area is higher, so that each frame of the video has a uniform and proper-sized definition area, and the video quality is improved.
Here, the focus tracking area configuration information may be set in advance. As an example, as shown in fig. 5, a schematic diagram of a setting process of the focus tracking area configuration information includes a "distance" control in the configuration interface shown by reference numeral 501. When the user clicks on the "distance" control, an interface may appear as shown at reference numeral 502. In the interface, the user can set the focus following areas corresponding to different distances. A slide bar may be displayed in the distance setting interface, and the slide bar may represent a distance between the focus tracking object and the lens. The left end (a as shown in the figure) represents a distance of zero and the right end (N as shown in the figure) represents a distance of infinity. A number of slidable slides (shown as triangular slides 1, 2, 3) may be shown below the slide. The triangle slider 1 indicates an eye region, the triangle slider 2 indicates a face region, and the triangle slider 3 indicates a person whole region. The user can slide the triangular sliders 1, 2 and 3 to set the four numerical value intervals.
Specifically, within the distance from the left end a to the triangular slider 1, the eye region of the object to be focused can be focused. As the distance gradually approaches the a region, the distance gradually decreases, and the focus tracking can be adjusted so as to track the region closest to the lens in the tracking target. Within the distance between the triangular slider 1 and the triangular slider 2, the face area of the object to be focused can be focused. Here, if the face region is not detected, the entire region can be focused. Within the distance from the triangular slider 2 to the triangular slider 3, the entire region of the object to be focused can be focused. Within the distance from the triangular slider 3 to the right end N, focus following can be carried out at infinity on a video preview interface.
In some optional implementations of this embodiment, the object parameter information of the focus-following object may include number information and position information of the focus-following object. In the case where the target information of the focus tracking target is changed during shooting, the focus tracking target may be updated from the first focus tracking area to the second focus tracking area. Wherein the target information may include, but is not limited to, at least one of: quantity information, location information. The first focus tracking area may be a current focus tracking area and the second focus tracking area may be an updated focus tracking area. The number of the focus tracking objects of the second focus tracking area may be larger than the number of the focus tracking objects of the first focus tracking area. As an example, in the street-shot scene mode, the object of focus-following is a character. If the number or position of the persons changes, the focus tracking area can be updated to an area where more persons are located. Therefore, more focus-following objects in the video preview interface can be clearly displayed.
In some optional implementations of the embodiment, in the case that the number of the focus tracking objects is increased during the shooting process, the execution subject may further update the focus tracking area to a focus tracking object located in a middle area of the shooting preview interface. As an example, in the street shooting scene mode, when characters appear in the screen in sequence, the appearing character may be preferentially taken as a focus-following object, and the entire character area may be taken as a target focus-following area. When multiple people appear in the screen at the same time, as shown in fig. 6, the people (which may include one or more people) located in the middle area of the video preview interface may be used as the focus tracking object, and the whole area of the people in the middle area of the video preview interface may be used as the target focus tracking area (as shown by reference numeral 601), so as to ensure that most areas are clear. When the object moves to the edge of the frame, the target focus area moves to the edge of the frame (as indicated by reference numeral 602). As more and more people are in the picture, the focus object may be switched to the people in the middle area of the picture again to ensure that most of the people are clearly visible (as shown by reference numeral 603). When a person in the screen moves to a position relatively close to the photographer, the person normally occupies the center position of the screen at this time, and therefore the subject of focus tracking can be switched to the person, and the target focus tracking area can be switched to the face area of the subject of focus tracking (as indicated by reference numeral 604). Further, when the object of focus tracking is further close to the photographer, the target focus tracking area may be switched to the eye area of the object of focus tracking (as indicated by reference numeral 605). Therefore, the focus tracking area can be flexibly switched according to the number of the focus tracking objects and the positions of the focus tracking objects, and the definition and the fluency of video shooting are improved.
In some optional implementations of the embodiment, during the shooting, the executing body may update the first focus tracking object to the second focus tracking object if the first focus tracking object is beyond a shooting range of the video shooting device. As an example, in a ball scene mode (such as a ping-pong scene), the executive may prioritize a ping-pong ball appearing in the video preview interface as the first focus object. When the ping-pong ball does not exist in the video preview interface, the executive body can detect whether the moving character exists in the video preview interface. If there is a moving person, the moving person may be the second focus tracking target. If no moving person can be detected in the picture, an object (such as a ball table) in the middle area of the picture can be used as a second focus tracking object, so that the picture is clear in real time, the picture is prevented from being out of focus, and the video quality is improved.
In some optional implementations of the embodiment, in the shooting process, in a case that the shooting scene is updated, the execution subject may update the focus tracking object according to the updated shooting scene. Therefore, the focus tracking object can be flexibly switched under the condition of updating the shooting scene, the picture is prevented from being out of focus, and the video quality is improved.
Here, the initial photographing scene may be determined based on a scene mode selected by a user. For example, in fig. 2, in the scene selection interface shown by reference numeral 201, several scene mode buttons, such as "automatic", "still", "moving", "street shooting", "ball" and the like scene mode buttons, may be included. The user can browse more hidden scene mode keys, such as scene mode keys of fireworks, sea waves, disorder and the like, by sliding the screen left and right. When a user clicks a certain scene mode key or slides the screen to enable the certain scene mode key to be located at a specific position, the scene mode corresponding to the scene mode key can be entered. In the shooting process, the execution subject can automatically identify the shooting scene in an artificial intelligence mode. For example, the video preview interface may be input to a pre-trained scene recognition model to obtain a detection result output by the scene recognition model. The scene recognition model can be obtained by pre-training through a machine learning method (such as a supervised learning mode).
Here, in the case of the shooting scene update, the execution subject described above may select a new focus-following object in various ways. In some examples, in the updated shooting scene, if only one object is included in the video preview interface, the object may be regarded as a new focus-following object. If at least two objects are included, the object closest to the lens can be set as a new focus tracking object. In other examples, a new focus tracking object may be selected based on the focus tracking object setting information corresponding to the updated scene model. For example, a primary focus tracking object, a secondary focus tracking object, focus tracking objects under different object distributions, and the like may be set for each shooting scene. Therefore, the execution subject can select a new focus tracking object in the video preview interface based on the current shooting scene. For example, if the shooting scene is updated to a ball scene (such as a ping-pong ball sport scene), the ping-pong ball appearing in the video preview interface can be preferentially taken as a new focus-following object. When the table tennis ball exceeds the shooting range of the video shooting device, whether a moving person exists in the video preview interface can be detected. If there is a moving person, the moving person can be a new focus tracking target. If no moving person can be detected in the picture, an object (such as a ball table) in the middle area of the picture can be used as a new focus tracking object, so that the picture is clear in real time, and the video quality is improved.
In some optional implementations of the embodiment, in the shooting process, in the case that the shooting scene is updated, the execution subject may update the focus tracking object and the focus tracking area at the same time according to the updated shooting scene. For example, the original shooting scene is a portrait shooting scene, the focus tracking object is a person, and the focus tracking area is a face area. The updated shooting scene is a firework shooting scene, the focus tracking object can be updated to be a firework, and the focus tracking area can be a firework area. Since the form of the firework changes in real time, the size of the focus following area also changes in real time.
According to the method provided by the embodiment of the application, in the video shooting process, the first input of a user to the shooting preview interface is received; acquiring a focus tracking object and a focus tracking area in response to a first input; in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: the focus tracking target and the focus tracking area are focused, so that the focus tracking target is flexibly switched in the video shooting process. In the shooting process, the focus tracking target can be flexibly switched along with the object parameter information of the focus tracking object or the shooting scene, so that the clear area of the shot video can change along with the change of the video preview interface, the focus tracking mode is enriched, and the quality of the shot video is improved.
It should be noted that, in the video shooting method provided in the embodiment of the present application, the execution subject may be a video shooting device, or a control module in the video shooting device, which is used for executing the loading of the video shooting method. In the embodiment of the present application, a video shooting device is taken as an example to execute a method for loading video shooting, and the video shooting method provided in the embodiment of the present application is described.
As shown in fig. 7, the video camera 700 of the present embodiment includes: a receiving unit 701, configured to receive a first input to a shooting preview interface by a user; an acquisition unit 702 configured to acquire a focus tracking object and a focus tracking area in response to the first input; a first updating unit 703, configured to update a focus tracking target when the object parameter information of the focus tracking target or the shooting scene is updated during shooting, where the focus tracking target includes at least one of the following: object of focus tracking, area of focus tracking.
In some optional implementations of this embodiment, the video capturing apparatus includes a camera, and the object parameter information of the focus-following object includes distance information between the focus-following object and the camera; the first updating unit 703 is further configured to: updating a focus tracking position of the focus tracking object when the distance information between the focus tracking object and the camera is updated; and updating the focus tracking area according to the updated focus tracking position. Therefore, the situation that the focus tracking area is too large or too small can be avoided in the process of the movement of the focus tracking object or the movement of the photographer, and the size of the focus tracking area is more uniform and reasonable. Meanwhile, the image definition in the focus tracking area is higher, so that each frame of the video has a uniform and proper-sized definition area, and the video quality is improved.
In some optional implementations of this embodiment, the apparatus further includes a second updating unit, configured to update the focus-following object according to the updated shooting scene when the shooting scene is updated; alternatively, the focus tracking target and the focus tracking area are updated based on the updated shooting scene. Therefore, the focus tracking object and the focus tracking area can be flexibly switched in the shooting process, the picture is prevented from being out of focus, and the video quality is improved.
In some optional implementations of this embodiment, the object parameter information of the focus-following object includes number information and position information of the focus-following objects; the first updating unit 703 is further configured to: updating the focus tracking target from a first focus tracking area to a second focus tracking area when target information of the focus tracking target changes, wherein the target information includes at least one of: number information, position information, and the number of the focus tracking objects in the second focus tracking area is larger than the number of the focus tracking objects in the first focus tracking area. Therefore, the focus tracking area can be flexibly switched according to the number of the focus tracking objects and the positions of the focus tracking objects, and the definition and the fluency of video shooting are improved.
In some optional implementations of the present embodiment, the first updating unit 703 is further configured to update the first focusing object to be a second focusing object when the first focusing object is beyond a shooting range of the video shooting device. Therefore, the picture can be ensured to be clear in real time, and the picture is prevented from being out of focus, so that the video quality is improved.
In some optional implementations of the embodiment, in a case that the focus tracking object is a human body, the focus tracking area includes at least one of: eye region, face region, and person whole region. This enriches the optional focus tracking area, thereby improving the quality of the captured video.
The video shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The video capture device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video shooting device provided in the embodiment of the present application can implement each process implemented by the video shooting device in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
According to the device provided by the embodiment of the application, in the video shooting process, the first input of a user to the shooting preview interface is received; acquiring a focus tracking object and a focus tracking area in response to a first input; in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: the focus tracking target and the focus tracking area are focused, so that the focus tracking target is flexibly switched in the video shooting process. In the shooting process, the focus tracking target can be flexibly switched along with the object parameter information of the focus tracking object or the shooting scene, so that the focus tracking area of the shot video can change along with the change of the video preview interface, the focus tracking mode is enriched, and the quality of the shot video is improved.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 810, a memory 809, and a program or an instruction stored in the memory 809 and executable on the processor 810, where the program or the instruction is executed by the processor 810 to implement each process of the above video shooting method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A user input unit 807 for receiving a first input of the shooting preview interface by the user; a processor 810 for acquiring a focus tracking object and a focus tracking area in response to the first input; the processor 810 is further configured to update a focus tracking target in a case that object parameter information of the focus tracking object or a shooting scene is updated during shooting, where the focus tracking target includes at least one of: object of focus tracking, area of focus tracking.
In the embodiment of the application, in the video shooting process, a first input of a user to a shooting preview interface is received; acquiring a focus tracking object and a focus tracking area in response to a first input; in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: the focus tracking target and the focus tracking area are focused, so that the focus tracking target is flexibly switched in the video shooting process. In the shooting process, the focus tracking target can be flexibly switched along with the object parameter information of the focus tracking object or the shooting scene, so that the clear area of the shot video can change along with the change of the video preview interface, the focus tracking mode is enriched, and the quality of the shot video is improved.
Optionally, the video capturing apparatus includes a camera, and the object parameter information of the focus-following object includes distance information between the focus-following object and the camera; the processor 810 is further configured to update a focus tracking position of the focus tracking object when the distance information between the focus tracking object and the camera is updated; and updating the focus tracking area according to the updated focus tracking position. Therefore, the situation that the focus tracking area is too large or too small can be avoided in the process of the movement of the focus tracking object or the movement of the photographer, and the size of the focus tracking area is more uniform and reasonable. Meanwhile, the image definition in the focus tracking area is higher, so that each frame of the video has a uniform and proper-sized definition area, and the video quality is improved.
Optionally, the processor 810 is further configured to, in a case that the shooting scene is updated, update the focus tracking object according to the updated shooting scene; alternatively, the focus tracking target and the focus tracking area are updated based on the updated shooting scene. Therefore, the focus tracking object and the focus tracking area can be flexibly switched in the shooting process, the picture is prevented from being out of focus, and the video quality is improved.
Optionally, the object parameter information of the focus-following object includes number information and position information of the focus-following object; a processor 810, further configured to update the focus tracking target from a first focus tracking area to a second focus tracking area if target information of the focus tracking target changes, wherein the target information includes at least one of: number information, position information, the number of the focus tracking objects of the second focus tracking area being larger than the number of the focus tracking objects of the first focus tracking area. Therefore, the focus tracking area can be flexibly switched according to the number of the focus tracking objects and the positions of the focus tracking objects, and the definition and the fluency of video shooting are improved.
Optionally, the processor 810 is further configured to update the first focus tracking object to the second focus tracking object if the first focus tracking object is beyond the shooting range of the video shooting device. Therefore, the picture can be ensured to be clear in real time, and the picture is prevented from being out of focus, so that the video quality is improved.
Optionally, in a case that the focus tracking object is a human body, the focus tracking area includes at least one of: eye region, face region, and person whole region. This enriches the optional focus tracking area, thereby improving the quality of the captured video.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control controls, switch controls, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above video shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A video shooting method is applied to a video shooting device and is characterized by comprising the following steps:
receiving a first input of a user to a shooting preview interface;
acquiring a focus tracking object and a focus tracking area in response to the first input;
in the shooting process, in the case that the object parameter information of the focus tracking object or the shooting scene is updated, updating a focus tracking target, wherein the focus tracking target comprises at least one of the following items: object of focus tracking, area of focus tracking.
2. The method according to claim 1, wherein the video camera comprises a camera, and the object parameter information of the focus-following object comprises distance information of the focus-following object from the camera;
in the case that the object parameter information of the focus tracking object is updated, updating the focus tracking target includes:
updating a focus tracking position of the focus tracking object when the distance information between the focus tracking object and the camera is updated;
and updating the focus tracking area according to the updated focus tracking position.
3. The method according to claim 1, wherein updating the focus tracking target in case of a shooting scene update comprises:
updating the focus tracking object according to the updated shooting scene;
alternatively, the focus tracking target and the focus tracking area are updated based on the updated shooting scene.
4. The method according to claim 1, wherein the object parameter information of the focus-following object includes number information and position information of the focus-following object;
in the case that the object parameter information of the focus tracking object is updated, updating the focus tracking target includes:
updating the focus tracking target from a first focus tracking area to a second focus tracking area in case target information of the focus tracking object changes, wherein the target information comprises at least one of: number information, position information, the number of the focus tracking objects of the second focus tracking area being larger than the number of the focus tracking objects of the first focus tracking area.
5. The method according to claim 1, wherein updating the focus tracking target in case of an update of the object parameter information of the focus tracking object comprises:
updating a first focus object to a second focus object when the first focus object is beyond a shooting range of the video camera.
6. The method of claim 1, wherein in the case that the focused object is a human figure, the focused area comprises at least one of: eye region, face region, and person whole region.
7. A video camera, the device comprising:
the receiving unit is used for receiving a first input of a user to the shooting preview interface;
an acquisition unit configured to acquire a focus tracking object and a focus tracking area in response to the first input;
a first updating unit, configured to update a focus tracking target in a case that object parameter information of the focus tracking object or a shooting scene is updated during shooting, where the focus tracking target includes at least one of: object of focus tracking, area of focus tracking.
8. The method according to claim 1, wherein the video camera comprises a camera, and the object parameter information of the focus-following object comprises distance information of the focus-following object from the camera;
the first updating unit is further configured to:
updating a focus tracking position of the focus tracking object when the distance information between the focus tracking object and the camera is updated;
and updating the focus tracking area according to the updated focus tracking position.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the video capture method of any of claims 1-6.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the video shooting method according to any one of claims 1-6.
CN202111249213.4A 2021-10-26 2021-10-26 Video shooting method and device, electronic equipment and readable storage medium Pending CN113873166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111249213.4A CN113873166A (en) 2021-10-26 2021-10-26 Video shooting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111249213.4A CN113873166A (en) 2021-10-26 2021-10-26 Video shooting method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113873166A true CN113873166A (en) 2021-12-31

Family

ID=78997983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111249213.4A Pending CN113873166A (en) 2021-10-26 2021-10-26 Video shooting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113873166A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055868A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Shooting method and related equipment
WO2023231698A1 (en) * 2022-05-30 2023-12-07 荣耀终端有限公司 Photographing method and related device
WO2023231616A1 (en) * 2022-05-30 2023-12-07 荣耀终端有限公司 Photographing method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744148A (en) * 2014-12-24 2016-07-06 佳能株式会社 Zoom control device and control method of zoom control device
CN111225157A (en) * 2020-03-03 2020-06-02 Oppo广东移动通信有限公司 Focus tracking method and related equipment
CN111935389A (en) * 2019-12-30 2020-11-13 苏州臻迪智能科技有限公司 Shot object switching method and device, shooting equipment and readable storage medium
CN112243581A (en) * 2019-11-26 2021-01-19 深圳市大疆创新科技有限公司 Pan-tilt, control device of pan-tilt, control method of pan-tilt and storage medium
CN113473015A (en) * 2021-06-08 2021-10-01 荣耀终端有限公司 Holder control method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744148A (en) * 2014-12-24 2016-07-06 佳能株式会社 Zoom control device and control method of zoom control device
CN112243581A (en) * 2019-11-26 2021-01-19 深圳市大疆创新科技有限公司 Pan-tilt, control device of pan-tilt, control method of pan-tilt and storage medium
CN111935389A (en) * 2019-12-30 2020-11-13 苏州臻迪智能科技有限公司 Shot object switching method and device, shooting equipment and readable storage medium
CN111225157A (en) * 2020-03-03 2020-06-02 Oppo广东移动通信有限公司 Focus tracking method and related equipment
CN113473015A (en) * 2021-06-08 2021-10-01 荣耀终端有限公司 Holder control method and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055868A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Shooting method and related equipment
CN116055868B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Shooting method and related equipment
WO2023231698A1 (en) * 2022-05-30 2023-12-07 荣耀终端有限公司 Photographing method and related device
WO2023231616A1 (en) * 2022-05-30 2023-12-07 荣耀终端有限公司 Photographing method and electronic device

Similar Documents

Publication Publication Date Title
US20170192500A1 (en) Method and electronic device for controlling terminal according to eye action
CN113873166A (en) Video shooting method and device, electronic equipment and readable storage medium
CN112954210B (en) Photographing method and device, electronic equipment and medium
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112954214B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112333382B (en) Shooting method and device and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN112532881A (en) Image processing method and device and electronic equipment
CN114390201A (en) Focusing method and device thereof
US10216381B2 (en) Image capture
CN112492215A (en) Shooting control method and device and electronic equipment
CN112887615B (en) Shooting method and device
CN112437231B (en) Image shooting method and device, electronic equipment and storage medium
CN112291480B (en) Tracking focusing method, tracking focusing device, electronic device and readable storage medium
CN112788244B (en) Shooting method, shooting device and electronic equipment
CN112511743B (en) Video shooting method and device
CN113866782A (en) Image processing method and device and electronic equipment
CN114025100B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN112367467B (en) Display control method, display control device, electronic apparatus, and medium
CN114466140A (en) Image shooting method and device
CN111582258B (en) Image processing method, device, electronic equipment and readable storage medium
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN113923392A (en) Video recording method, video recording device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination