CN113473018B - Video shooting method and device, shooting terminal and storage medium - Google Patents

Video shooting method and device, shooting terminal and storage medium Download PDF

Info

Publication number
CN113473018B
CN113473018B CN202110745106.4A CN202110745106A CN113473018B CN 113473018 B CN113473018 B CN 113473018B CN 202110745106 A CN202110745106 A CN 202110745106A CN 113473018 B CN113473018 B CN 113473018B
Authority
CN
China
Prior art keywords
camera
shooting
video frame
zoom
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.)
Active
Application number
CN202110745106.4A
Other languages
Chinese (zh)
Other versions
CN113473018A (en
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.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte 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 Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202110745106.4A priority Critical patent/CN113473018B/en
Publication of CN113473018A publication Critical patent/CN113473018A/en
Application granted granted Critical
Publication of CN113473018B publication Critical patent/CN113473018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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

Abstract

The embodiment of the application discloses a video shooting method, a device, a shooting terminal and a storage medium, wherein the video shooting method is applied to the shooting terminal provided with a plurality of cameras and comprises the following steps: providing a zooming control on a shooting preview interface; in the process of controlling the first camera to shoot video, when detecting that a user operates the zoom control, determining a target zoom multiple; determining a second camera from a plurality of cameras according to the target zoom multiple; and controlling the second camera to shoot video. According to the embodiment of the application, on the shooting terminal provided with the cameras, the cameras can be automatically switched to shoot according to the zooming operation of the user, the cameras in different zooming intervals are fully utilized to shoot videos, the user does not need to manually select the cameras, and the operation cost of the user is reduced.

Description

Video shooting method and device, shooting terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of shooting, in particular to a video shooting method, a video shooting device, a shooting terminal and a storage medium.
Background
With the development of live broadcast and short video technologies, users can live broadcast or record short videos through shooting equipment and upload the live broadcast or the short videos to a platform.
After miniaturization of the cameras, a plurality of cameras are arranged on a part of the shooting terminals, for example, a macro, ultra-wide angle, optical zoom, tele cameras and the like can be arranged on one shooting terminal. At present, most of shooting applications on the market select a default camera as a main camera to shoot videos, a user cannot select a camera with corresponding zoom multiple according to a scene such as macro shooting, long-distance shooting and the like to shoot videos, for example, the user cannot select a wide-angle macro camera to shoot when shooting at macro, the user cannot use a long-focus camera to shoot when shooting at long distance, so that the advantages of multiple cameras on a shooting terminal cannot be fully utilized, and of course, part of shooting applications also exist to switch the cameras, but the user is required to manually select and switch the cameras in the process of shooting the videos, and the operation cost of the user is increased.
Disclosure of Invention
The embodiment of the application provides a video shooting method, a video shooting device, a shooting terminal and a storage medium, which are used for solving the problem that a camera cannot be switched or needs to be manually switched in the process of shooting a video by adopting the shooting terminal with multiple cameras.
In a first aspect, an embodiment of the present application provides a video photographing method, which is applied to a photographing terminal provided with a plurality of cameras, including:
providing a zooming control on a shooting preview interface;
in the process of controlling the first camera to shoot video, when detecting that a user operates the zoom control, determining a target zoom multiple;
determining a second camera from a plurality of cameras according to the target zoom multiple;
and controlling the second camera to shoot video.
In a second aspect, an embodiment of the present application provides a video photographing apparatus applied to a photographing terminal provided with a plurality of cameras, including:
the zooming control providing module is used for providing a zooming control on the shooting preview interface;
the target zoom multiple determining module is used for determining the target zoom multiple when detecting that a user operates the zoom control in the process of controlling the first camera to shoot a video;
the second camera determining module is used for determining a second camera among the cameras according to the target zoom multiple;
and the second camera shooting module is used for controlling the second camera to shoot videos.
In a third aspect, an embodiment of the present application provides a photographing terminal, including:
one or more processors;
storage means for storing one or more computer programs,
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the video capture method according to the first aspect of the present application.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the video capturing method according to the first aspect of the present application.
The video shooting method is applied to a shooting terminal provided with a plurality of cameras, and is used for determining a target zoom multiple when a user is detected to operate the zoom control in the process of controlling a first camera to shoot a video by providing the zoom control on a shooting preview interface, determining a second camera among the plurality of cameras according to the target zoom multiple, and controlling the second camera to shoot the video. According to the embodiment of the application, on the shooting terminal provided with the cameras, the cameras can be automatically switched to shoot according to the zooming operation of the user, the cameras in different zooming intervals are fully utilized to shoot videos, the user does not need to manually select the cameras, and the operation cost of the user is reduced.
Drawings
Fig. 1 is a flowchart of steps of a video shooting method according to a first embodiment of the present application;
fig. 2A is a flowchart of steps of a video shooting method according to a second embodiment of the present application;
FIG. 2B is a schematic diagram of a zoom control in an embodiment of the present application;
fig. 2C is a schematic diagram of a photographing region of a different camera according to an embodiment of the present application;
FIG. 2D is a schematic diagram of video frame cropping in an embodiment of the application;
fig. 3 is a block diagram of a video capturing apparatus according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a photographing terminal according to a fourth embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings. Embodiments of the application and features of the embodiments may be combined with each other without conflict.
Example 1
Fig. 1 is a flowchart of steps of a video capturing method according to a first embodiment of the present application, where the embodiment of the present application is applicable to a case of capturing video using a capturing terminal provided with a plurality of cameras, the method may be performed by a video capturing apparatus according to the embodiment of the present application, the video capturing apparatus may be implemented by hardware or software, and integrated into the capturing terminal provided by the embodiment of the present application, and specifically, as shown in fig. 1, the video capturing method according to the embodiment of the present application may include the following steps:
s101, providing a zoom control on a shooting preview interface.
In the embodiment of the application, the shooting terminal can be a mobile terminal such as a mobile phone, a tablet personal computer and the like, and also can be a shooting cradle head and the like, and the shooting terminal can be provided with a display screen and a plurality of cameras, wherein the number of the cameras can be 3 or more than 3. The cameras can comprise macro lenses, common wide-angle lenses, ultra-wide-angle lenses, tele lenses and the like. Taking a mobile phone as an example, a plurality of cameras can be arranged on the back of the mobile phone and arranged according to a certain arrangement mode, and when the mobile phone shoots videos, shot video pictures can be displayed on a display screen of the mobile phone for a user to preview.
In one video shooting scene, the position of the shooting terminal can be fixed, and a zoom control is provided on a shooting preview interface, wherein the zoom control can be a sliding zoom control, a rotating zoom control and the like, and when a user operates the zoom control, the zoom multiple of the shooting video changes.
S102, determining a target zoom multiple when detecting that a user operates the zoom control in the process of controlling the first camera to shoot a video.
In the embodiment of the application, the plurality of cameras comprise a main camera, the main camera can be a camera which is used for shooting video by default when shooting video is started, the first camera is a camera which is used for shooting video currently, when a user has a micro-distance or telephoto requirement when controlling the first camera to shoot video, the zoom control is operated, and the current target zoom multiple can be obtained by operating and detecting the zoom control. In one example, when the user operates the zoom control to increase from a 1.0 zoom to a 3.0 zoom, the target zoom factor is 3.0.
S103, determining a second camera from the cameras according to the target zoom multiple.
Specifically, each camera has a specific zoom interval, the cameras can be ordered according to the zoom intervals of the cameras and are given with camera numbers, after the target zoom multiple is determined based on the operation of a user on the zoom control, whether the current target zoom multiple is within the boundary range of the first camera can be judged, if yes, the first camera is continuously used for shooting videos, if not, the target zoom interval where the target zoom multiple is located is searched in a preset zoom interval-camera comparison table where the target zoom multiple is located, and the camera corresponding to the target zoom interval is determined to be the second camera.
S104, controlling the second camera to shoot videos.
After the second camera is determined, the second camera can be controlled to be started to shoot the video, so that the video shooting is switched from shooting by the first camera to shooting by the second camera.
The video shooting method is applied to a shooting terminal provided with a plurality of cameras, and is used for determining a target zoom multiple when a user is detected to operate the zoom control in the process of controlling a first camera to shoot a video by providing the zoom control on a shooting preview interface, determining a second camera among the plurality of cameras according to the target zoom multiple, and controlling the second camera to shoot the video. According to the embodiment of the application, on the shooting terminal provided with the cameras, the cameras can be automatically switched to shoot according to the zooming operation of the user, the cameras in different zooming intervals are fully utilized to shoot videos, the user does not need to manually select the cameras, and the operation cost of the user is reduced.
Example two
Fig. 2A is a step flow chart of a video shooting method according to a second embodiment of the present application, where the optimization is performed based on the first embodiment of the present application, specifically, as shown in fig. 2A, the video shooting method according to the embodiment of the present application may include the following steps:
s201, providing a zoom control on a shooting preview interface.
In the embodiment of the application, the shooting terminal can comprise a plurality of cameras, optical zoom intervals and electronic zoom intervals of all cameras on the shooting terminal can be obtained, the minimum zoom multiple and the maximum zoom multiple are determined according to the optical zoom intervals and the electronic zoom intervals of all cameras, a zoom control is provided on a shooting preview interface, and the zoom interval of the zoom control is an interval formed by the minimum zoom multiple and the maximum zoom multiple.
In one example, taking a Camera terminal including four cameras of Camera ID0, camera ID1, camera ID2, camera ID3, and Camera ID4 as an example, the Camera ID4 zoom zone is [0.5x,1x ], the Camera ID0 zoom zone is [1x,3x ], the Camera ID1 zoom zone is [3x,5x ], the Camera ID2 zoom zone is [5x,15x ], and the Camera ID3 zoom zone is [15x,30x ], a zoom control having a zoom range of [0.5x,30x ] can be generated by the entire Camera terminal.
Fig. 2B is a schematic diagram of a zoom control, in the zoom control during sliding shown in fig. 2B, a zoom interval is [0.5x,30x ], a zoom multiple is increased when the zoom control is slid upwards, and a zoom multiple is decreased when the zoom control is slid downwards, however, a rotary type and button type zoom control can be further provided in practical application, and the embodiment of the application does not limit the form of the zoom control.
S202, determining target zoom multiple when detecting that a user operates the zoom control in the process of controlling the first camera to shoot video.
In the embodiment of the application, the plurality of cameras comprise a main camera, the main camera can be a camera which is used for shooting video by default, the main camera is used for shooting by default when shooting is started, the first camera can be a camera which is used for shooting currently, when a user has a macro or telephoto requirement when the first camera is controlled to shoot video, the zoom control is operated, and the current target zoom multiple can be obtained by detecting the operation of the zoom control. In one example, when the user operates the zoom control to increase from a 1.0 zoom to a 3.0 zoom, the target zoom factor is 3.0.
S203, judging whether the target zoom multiple is in a zoom zone of the first camera.
Specifically, the first camera has a zoom interval, and illustratively, the zoom interval of the first camera may be [1x,3x ], after determining the target zoom factor, it may be determined whether the target zoom factor is within the zoom interval of the first camera [1x,3x ], for example, the target zoom factor is 2.5x, the target zoom factor is within the zoom interval of the first camera, the target zoom factor is 4x, the target zoom factor is outside the zoom interval of the first camera, when the target zoom factor is within the zoom interval of the first camera, S204 is performed, and when the target zoom factor is outside the zoom interval of the first camera, S205 is performed.
S204, controlling the first camera to shoot videos.
When the user operates the zoom control to change the target zoom multiple, if the target zoom multiple is within the zoom interval of the first Camera, the first Camera can be continuously used for shooting the video, and as an example, the Camera ID0 is currently used for shooting the video, the zoom interval of the Camera ID0 is [1x,3x ], the current zoom multiple is adjusted from 1x to 2x, and still within the zoom interval [1x,3x ] of the Camera ID0, and then the Camera ID0 is continuously used for shooting the video.
S205, searching a target zoom interval matched with the target zoom multiple from a preset zoom interval-camera comparison table.
The embodiment of the application can preset a zoom interval-camera comparison table, specifically, the zoom interval-camera comparison table is shown in the following table 1:
if the target zoom magnification is not within the zoom interval of the first camera, the zoom interval where the target zoom magnification is located may be determined through a zoom interval-camera comparison table, and as shown in table 1, assuming that the target zoom magnification is 4x, the target zoom interval matching the target zoom magnification of 4x may be determined as [3x,5x ].
S206, searching a camera matched with the target zoom interval from the preset zoom interval-camera comparison table to serve as a second camera.
Specifically, as shown in table 1 above, each camera has a corresponding zoom interval, after determining a target zoom interval with a target zoom multiple matching, a camera ID matching the target zoom interval may be found in table 1, where the camera corresponding to the camera ID is the second camera.
In an alternative embodiment of the present application, the first camera zoom may include an optical zoom and an electronic zoom, and when the target zoom multiple is outside the optical zoom interval of the first camera and the target zoom multiple is within the electronic zoom interval of the first camera and within the optical zoom interval of the second camera, if the resolution of the video frame photographed after the electronic zoom of the first camera is greater than the resolution of the optical zoom photographing of the second camera, photographing with the first camera is continued.
Illustratively, the optical zoom interval of the first camera is [1.0x,5.0x ], the first camera supports 10 times of electronic zoom at the same time, that is, the zoom interval of the first camera is [1.0x,50.0x ], the optical zoom interval of the second camera is [5.0x,15.0x ], assuming that the zoom magnification is adjusted from 4.0x to 11.0x by a user operating the zoom control, the target zoom magnification is 11.0x outside the optical zoom interval of the first camera [1.0x,5.0x ], and if the resolution of the first camera is 1 hundred million pixels and the resolution of the second camera is 1200w pixels, the resolution of the video frame obtained electronically is better than the resolution of the video frame obtained electronically by clipping the video frame by the first camera, the zoom frame is obtained electronically by clipping the video frame by continuing to be enlarged by clipping the first camera, and the electronic frame is obtained electronically.
S207, acquiring a first resolution of a first video frame shot by the first camera.
In the embodiment of the present application, when each camera is used to capture video, a selectable resolution may be provided, and the user selects a desired resolution to capture video, and in particular, in the embodiment of the present application, when the user first selects a resolution to capture video, such as 320P, 480P, 640P, 720P, 1080P, etc., the resolution selected by the user may be obtained as the first resolution.
S208, controlling the second camera to shoot a second video frame with a second resolution, wherein the second resolution is the resolution with the smallest distance from the first resolution in a plurality of resolutions of the second camera, and a second shooting area covered by the second video frame is larger than or equal to a first shooting area covered by the first video frame.
In a preferred embodiment, when the second camera is controlled to capture video, capturing parameters of the first camera when capturing the first video frame may be obtained first, where the capturing parameters may include at least one of white balance, focusing distance, sensitivity, and exposure time, then determining a resolution closest to the first resolution from the selectable resolutions of the second camera as the second resolution, and controlling the second camera to capture the second video frame with the capturing parameters of the first camera and the second resolution.
Illustratively, the first camera captures video frames at a resolution of 480P, and if the second camera has an alternative resolution of 640P, 720P, 1080P, the second camera may be controlled to capture video frames at 640P. When the second camera shoots the video frame, shooting parameters such as white balance, focusing distance, photosensitivity and exposure time of the second camera are also set.
In an alternative embodiment, the shooting parameters of the first camera may be inherited to the second camera, and the second camera shoots the video frames directly with the shooting parameters of the first camera, for example, when the shooting terminal manufacturer can debug each camera when manufacturing the shooting terminal, so that when each camera shoots the video frames with the same shooting parameters, the pictures output by each camera can keep consistent under the same illumination condition.
In another alternative embodiment, a camera-shooting parameter comparison table may be preset, and a correspondence between shooting parameters when two cameras are switched is recorded in the camera-shooting parameter comparison table, so that a target shooting parameter of the second camera may be searched in the preset camera-shooting parameter comparison table according to the identification of the first camera, the identification of the second camera and the shooting parameters, and the second camera is controlled to shoot the second video frame with the target shooting parameter and the second resolution. Illustratively, the Camera ID0 may be used as a reference, and when the exposure time when the Camera ID0 shoots a video frame is 33ms and iso is 100, in the Camera-shooting parameter comparison table, the exposure time corresponding to the Camera ID2 is 40ms, the ISO is 150, namely, when the Camera ID0 is switched to shooting by the Camera ID2, the exposure time of the Camera ID2 is set to 40ms, and the ISO is set to 150.
When the video is shot by switching from the first camera to the second camera, the shooting parameters of the second camera are set through the shooting parameters such as white balance, focusing distance, light sensitivity, exposure time and the like of the first camera, the video frames shot by the second camera and the video frames shot by the second camera have good consistency, the switching between the video frames is smoother when the cameras are switched, and the consistency of video pictures is ensured.
S209, when the second shooting area is larger than the first shooting area, clipping the second video frame so that the shooting area covered by the clipped second video frame is the first shooting area.
In the multiple cameras of the shooting terminal of the embodiment of the application, one main camera is default set, when a user starts to enter a shooting video, the main camera is the default camera, for other cameras, under the same resolution, the shooting area of the other cameras in the zooming interval is larger than that of the main camera, and the shooting area of the camera with large zoom multiple is larger than that of the camera with small zoom multiple, for example, as shown in fig. 2C, the zooming interval of the first camera is [1.0x,2.0x ], the zooming interval of the second camera is [1.0x,5.0x ], the area a in fig. 2C is the shooting area when the zoom multiple of the first camera is 2.0x, the area B is the shooting area when the zoom multiple of the first camera is 2.0x, and the shooting area D is the shooting area when the zoom multiple of the second camera is 1.0x, so that the zoom multiple of the second camera is 5.0x, and thus, when the user operates the first camera and the zoom multiple of the second camera is equal to or larger than the first camera, the user can be enabled to switch from the first camera to the second camera to the first camera when the first camera is equal to the first camera, or the second camera is equal to the first camera, and the first camera can be enabled to the specific to the shooting area when the first camera is equal to the first camera and the second camera is equal to the first and higher than the first camera and the first camera.
In order to avoid video frame jumping during camera switching, the video frames shot by the second camera are needed to be cut, so that the second video frames shot by the second camera and the first video frames shot by the first camera have the same shooting area. Specifically, image recognition may be performed on the first video frame and the second video frame to obtain an image overlapping region, and a region other than the image overlapping region is removed from the second video frame to obtain a cropped second video frame, where the image overlapping region may refer to a region in the image, in which the same shooting region in the shooting regions of the first video frame and the second video frame is mapped to.
As shown in fig. 2D, the region a is a shooting region when the first camera shoots a first video frame, the region B is a shooting region when the second camera shoots a second video frame, and if the overlapping region is the region a, the region other than the region a can be removed from the second video frame to obtain a cropped second video frame, and when the first camera is switched to the second camera, the video frames are switched from the first video frame to the cropped second video frame to display the same region, so as to ensure that the continuity of the frames does not jump.
In another example, boundary coordinates of the image overlapping region in the second video frame may also be calculated, the second video frame may be cropped based on the boundary coordinates, so that the cropped second video frame retains the image overlapping region, specifically, the image overlapping region may be mapped into a photosensitive device of the second camera, to obtain the boundary coordinates of the image overlapping region in the photosensitive device, and the second camera outputs an image within a boundary formed by the boundary coordinates when outputting the video frame.
The video shooting method is applied to a shooting terminal provided with a plurality of cameras, a zoom control is provided in a shooting preview interface, when a user is detected to operate the zoom control in the process of controlling the first camera to shoot video, a target zoom multiple is determined, whether the target zoom multiple is in a zoom zone of the first camera or not is judged, if yes, the first camera is controlled to shoot video, if not, a target zoom zone matched with the target zoom multiple is searched in a preset zoom zone-camera comparison table, a camera matched with the target zoom zone is further searched in the preset zoom zone-camera comparison table to serve as a second camera, a first resolution of a first video frame shot by the first camera is obtained, the second camera is controlled to shoot a second video frame with a second resolution, the second resolution is a resolution which is the smallest in distance from the first resolution, a second shooting area covered by the second video frame is larger than or equal to a first shooting area covered by the first video frame, and when the second shooting area is larger than the second shooting area covered by the second video frame, and the second shooting area is enabled to shoot the second video frame. According to the embodiment of the application, on the shooting terminal provided with the cameras, on one hand, the cameras can be automatically switched to shoot according to the zooming operation of a user, the cameras in different zooming intervals are fully utilized to shoot videos, the user does not need to manually select the cameras, and the operation cost of the user is reduced.
Further, the resolution difference of the first camera and the second camera is small when the first camera and the second camera shoot videos, the resolution difference of video picture switching is small when the cameras are switched, and the video pictures have good consistency.
Furthermore, the shooting parameters of the second camera can be set according to the shooting parameters such as white balance, focusing distance, photosensitivity and exposure time when the first camera shoots a video, and the pictures output by the first camera and the second camera can be kept consistent under the same illumination condition, so that the video pictures are smoothly switched.
Example III
Fig. 3 is a block diagram of a video capturing apparatus according to a third embodiment of the present application, and as shown in fig. 3, the video capturing apparatus according to the embodiment of the present application is applied to a capturing terminal provided with a plurality of cameras, and includes:
the zoom control providing module 301 is configured to provide a zoom control on a shooting preview interface;
the target zoom multiple determining module 302 is configured to determine a target zoom multiple when detecting that a user operates the zoom control during the process of controlling the first camera to capture a video;
a second camera determining module 303, configured to determine a second camera from a plurality of the cameras according to the target zoom multiple;
the second camera shooting module 304 is configured to control the second camera to shoot a video.
The video shooting device provided by the embodiment of the application can execute the video shooting method provided by the first embodiment or the second embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Referring to fig. 4, a schematic diagram of a photographing terminal in one example of the present application is shown. As shown in fig. 4, the photographing terminal may specifically include: a processor 401, a storage device 402, a display screen 403 with a touch function, an input device 404, an output device 405, a communication device 406, and a plurality of cameras 407. The number of processors 401 in the photographing terminal may be one or more, and one processor 401 is exemplified in fig. 4. The processor 401, the storage device 402, the display 403, the input device 404, the output device 405, the communication device 406 and the camera 407 of the photographing terminal may be connected by a bus or other means, and in fig. 4, the photographing terminal is used to perform the video photographing method according to any embodiment of the present application, for example, through a bus connection.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program in the storage medium is executed by a processor of a shooting terminal, so that the shooting terminal can execute the video shooting method according to the embodiment of the method.
It should be noted that, for the device, the photographing terminal, and the storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and the relevant points should be referred to in the description of the method embodiments.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In the present specification, a schematic representation of the above terms does not specifically refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Note that the above is only a preferred embodiment of the present application and the technical principle applied. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious alterations, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the application, which is set forth in the following claims.

Claims (11)

1. A video photographing method, which is applied to a photographing terminal provided with a plurality of cameras, comprising:
providing a zooming control on a shooting preview interface;
in the process of controlling the first camera to shoot video, when detecting that a user operates the zoom control, determining a target zoom multiple;
determining a second camera from a plurality of cameras according to the target zoom multiple;
acquiring a first resolution of a first video frame shot by the first camera;
controlling the second camera to shoot a second video frame with a second resolution, wherein the second resolution is the resolution with the smallest distance from the first resolution in a plurality of resolutions of the second camera, and a second shooting area covered by the second video frame is larger than or equal to a first shooting area covered by the first video frame;
when the second shooting area is larger than the first shooting area, clipping the second video frame so that the shooting area covered by the clipped second video frame is the first shooting area;
and when the second shooting area is larger than the first shooting area, clipping the second video frame so that the shooting area covered by the clipped second video frame is the first shooting area, including:
performing image recognition on the first video frame and the second video frame to obtain an image overlapping region;
and mapping the image superposition area into a photosensitive device of a second camera to obtain boundary coordinates of the image superposition area in the photosensitive device, and outputting an image within a boundary formed by the boundary coordinates by the second camera when outputting a video frame.
2. The video photographing method according to claim 1, wherein said determining a second camera among the plurality of cameras according to the target zoom factor comprises:
judging whether the target zoom multiple is in a zoom interval of the first camera;
if yes, controlling the first camera to shoot a video;
if not, searching a target zoom interval matched with the target zoom multiple from a preset zoom interval-camera comparison table;
and searching a camera matched with the target zoom interval from the preset zoom interval-camera comparison table to serve as a second camera.
3. The video capturing method according to claim 1, wherein when the second capturing area is larger than the first capturing area, cropping the second video frame so that the capturing area covered by the cropped second video frame is the first capturing area, comprising:
and removing the area except the image overlapping area from the second video frame to obtain a cropped second video frame.
4. The video capturing method according to claim 3, wherein the removing the region other than the image overlapping region from the second video frame results in a cropped second video frame, comprising:
calculating boundary coordinates of the image overlapping region in the second video frame;
and clipping the second video frame based on the boundary coordinates, so that the clipped second video frame keeps the image overlapping area.
5. The video capturing method according to any one of claims 1, 3, and 4, wherein the controlling the second camera to capture a second video frame at a second resolution includes:
acquiring shooting parameters when the first camera shoots a first video frame, wherein the shooting parameters comprise at least one of white balance, focusing distance and exposure time;
and controlling the second camera to shoot a second video frame with the shooting parameters and the second resolution.
6. The video capturing method according to any one of claims 1, 3, and 4, wherein the controlling the second camera to capture a second video frame at a second resolution includes:
acquiring shooting parameters when the first camera shoots a first video frame, wherein the shooting parameters comprise at least one of white balance, focusing distance, photosensitivity and exposure time;
searching target shooting parameters of the second camera in a preset camera-shooting parameter comparison table according to the identification of the first camera, the identification of the second camera and the shooting parameters,
and controlling the second camera to shoot a second video frame with the target shooting parameter and the second resolution.
7. The video capture method of claim 1, further comprising, prior to the capturing preview interface providing the zoom control:
and acquiring optical zoom intervals and electronic zoom intervals of all cameras on the shooting terminal.
8. The video capturing method according to claim 7, wherein providing a zoom control at a capturing preview interface comprises:
determining minimum zoom multiple and maximum zoom multiple according to the optical zoom interval and the electronic zoom interval of all cameras;
and providing a zoom control on a shooting preview interface, wherein a zoom interval of the zoom control is an interval formed by the minimum zoom multiple and the maximum zoom multiple.
9. A video photographing apparatus, which is applied to a photographing terminal provided with a plurality of cameras, comprising:
the zooming control providing module is used for providing a zooming control on the shooting preview interface;
the target zoom multiple determining module is used for determining the target zoom multiple when detecting that a user operates the zoom control in the process of controlling the first camera to shoot a video;
the second camera determining module is used for determining a second camera among the cameras according to the target zoom multiple;
the second camera shooting module is used for acquiring a first resolution of a first video frame shot by the first camera; controlling the second camera to shoot a second video frame with a second resolution, wherein the second resolution is the resolution with the smallest distance from the first resolution in a plurality of resolutions of the second camera, and a second shooting area covered by the second video frame is larger than or equal to a first shooting area covered by the first video frame; when the second shooting area is larger than the first shooting area, clipping the second video frame so that the shooting area covered by the clipped second video frame is the first shooting area;
the image clipping module is used for carrying out image recognition on the first video frame and the second video frame to obtain an image overlapping area; and mapping the image superposition area into a photosensitive device of a second camera to obtain boundary coordinates of the image superposition area in the photosensitive device, and outputting an image within a boundary formed by the boundary coordinates by the second camera when outputting a video frame.
10. A photographing terminal, characterized in that the photographing terminal comprises:
one or more processors;
storage means for storing one or more computer programs,
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the video capture method of any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the video capturing method according to any one of claims 1-8.
CN202110745106.4A 2021-07-01 2021-07-01 Video shooting method and device, shooting terminal and storage medium Active CN113473018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110745106.4A CN113473018B (en) 2021-07-01 2021-07-01 Video shooting method and device, shooting terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110745106.4A CN113473018B (en) 2021-07-01 2021-07-01 Video shooting method and device, shooting terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113473018A CN113473018A (en) 2021-10-01
CN113473018B true CN113473018B (en) 2023-10-31

Family

ID=77877286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110745106.4A Active CN113473018B (en) 2021-07-01 2021-07-01 Video shooting method and device, shooting terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113473018B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116723394A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Multi-shot strategy scheduling method and related equipment thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008241491A (en) * 2007-03-28 2008-10-09 Hitachi Ltd Three-dimensional measurement instrument
CN101632296A (en) * 2007-03-09 2010-01-20 伊斯曼柯达公司 The multiple lens camera of improved focusing power is provided
CN107277355A (en) * 2017-07-10 2017-10-20 广东欧珀移动通信有限公司 camera switching method, device and terminal
CN108918542A (en) * 2018-08-29 2018-11-30 成都理工大学 A kind of cable surface defect detecting device and method
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium
CN110572581A (en) * 2019-10-14 2019-12-13 Oppo广东移动通信有限公司 zoom blurring image acquisition method and device based on terminal equipment
CN111147755A (en) * 2020-01-02 2020-05-12 普联技术有限公司 Zoom processing method and device for double cameras and terminal equipment
CN112565589A (en) * 2020-11-13 2021-03-26 北京爱芯科技有限公司 Photographing preview method and device, storage medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101632296A (en) * 2007-03-09 2010-01-20 伊斯曼柯达公司 The multiple lens camera of improved focusing power is provided
JP2008241491A (en) * 2007-03-28 2008-10-09 Hitachi Ltd Three-dimensional measurement instrument
CN107277355A (en) * 2017-07-10 2017-10-20 广东欧珀移动通信有限公司 camera switching method, device and terminal
CN108918542A (en) * 2018-08-29 2018-11-30 成都理工大学 A kind of cable surface defect detecting device and method
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium
CN110572581A (en) * 2019-10-14 2019-12-13 Oppo广东移动通信有限公司 zoom blurring image acquisition method and device based on terminal equipment
WO2021073331A1 (en) * 2019-10-14 2021-04-22 Oppo广东移动通信有限公司 Zoom blurred image acquiring method and device based on terminal device
CN111147755A (en) * 2020-01-02 2020-05-12 普联技术有限公司 Zoom processing method and device for double cameras and terminal equipment
CN112565589A (en) * 2020-11-13 2021-03-26 北京爱芯科技有限公司 Photographing preview method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于嵌入式的工业图像检测系统;顾桥磊;《数字技术与应用》;全文 *

Also Published As

Publication number Publication date
CN113473018A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
US8605199B2 (en) Adjustment of imaging properties for an imaging assembly having light-field optics
US9374520B2 (en) Digital image processing apparatus and method of controlling the same
JP5782813B2 (en) Imaging apparatus and image display method
JP2011120143A (en) Image pickup device and image pickup method
CN112887609B (en) Shooting method and device, electronic equipment and storage medium
JP2022502871A (en) Image processing methods, devices, equipment and media based on multiple imaging modules
US9177395B2 (en) Display device and display method for providing image display in first color mode and second color mode
JP4640198B2 (en) Electronic camera, multi-point simultaneous focusing frame display method, and program
JP2011217103A (en) Compound eye photographing method and apparatus
CN113473018B (en) Video shooting method and device, shooting terminal and storage medium
JP2024029115A (en) Imaging device and its control method and program
CN108810326B (en) Photographing method and device and mobile terminal
JP6116436B2 (en) Image processing apparatus and image processing method
KR101812585B1 (en) Method for providing User Interface and image photographing apparatus thereof
JP5278483B2 (en) Imaging apparatus, imaging method, and imaging program
CN112653841B (en) Shooting method and device and electronic equipment
US8319838B2 (en) Method for enabling auto-focus function, electronic device thereof, recording medium thereof, and computer program product using the method
JP2008028890A (en) Imaging apparatus, imaging method, and imaging program
CN114430456A (en) Image capturing method, image capturing apparatus, and storage medium
JP2015185870A (en) Image processing apparatus, image processing method, and program of image processing apparatus
CN113132614B (en) Camera optical zooming electronic device, method, unit and memory
CN114866680B (en) Image processing method, device, storage medium and electronic equipment
JP2013153321A (en) Imaging apparatus, imaging method, and program
US20230156326A1 (en) Electronic device and method for controlling the same
JP5641352B2 (en) Image processing apparatus, image processing method, and program

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
GR01 Patent grant
GR01 Patent grant