Shooting method for multi-camera module with built-in gimbal
By using the preview interface to display indicator graphics and image recognition algorithms in the multi-camera module to adjust the gimbal module, the problem of target tracking difficulties and lack of video details caused by the small movement range of the micro gimbal is solved, achieving more stable shooting and Higher quality imaging.
Patent Information
- Application Number
- CN202010862208.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-08-25
AI Technical Summary
In the multi-camera module, the movement range of the micro gimbal is limited, which makes it difficult to track and shoot targets, and the lack of detailed information in the video due to the automatic anti-shake function being turned on affects the user experience.
By displaying the current position indication graphic and the target position indication graphic on the preview interface, the user is prompted to adjust the posture of the electronic device, and the gimbal is used to drive the main camera module to rotate so that the target object is always in the center of the image. The image recognition algorithm is used to monitor and adjust the telephoto The shooting angle of the module ensures that the target object is captured.
It effectively corrects the differences in videos captured by multi-camera modules, helping users to stably track and shoot with handheld devices, avoid target loss, and improve imaging quality and user experience.
Smart Images

Figure CN114125256B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical technology, and in particular to a shooting method for a multi-camera module with a built-in gimbal. Background Art
[0002] At present, multi-camera modules are widely used in smartphones on the market. For example, current flagship models are often equipped with wide-angle camera modules, telephoto camera modules, high-pixel main camera modules and periscope super telephoto camera modules at the same time, thus forming a multi-camera module. By taking advantage of the different advantages of these different types of camera modules and learning from each other's strengths and weaknesses, an unprecedented user experience can be obtained. Furthermore, in recent years, in order to further improve the imaging quality, some flagship models have also configured a gimbal structure for the main camera module. The gimbal structure is a miniaturized gimbal built into a multi-camera module that can drive the main camera module to move (for example, to achieve tilt adjustment). For ease of description, the main camera module equipped with a gimbal is sometimes referred to as a gimbal main camera in the following text.
[0003] In a multi-camera module, since the focal length of the periscope telephoto module is longer, it is generally used to shoot objects at a distance. The main camera module is equipped with a gimbal. When using the gimbal for shooting, the gimbal anti-shake often has a certain range of movement angles. Once the gimbal main camera rotates too much for shooting, the target object may exist in the gimbal main camera shooting picture, but the target object does not exist in the shooting range of the periscope super telephoto camera module. Since the target object is not recorded by the periscope super telephoto camera module, and the periscope super telephoto camera can capture the most details of the target object, there is often a problem of missing target object detail information when the mobile phone multi-camera gimbal anti-shake function is activated. In this way, when performing video editing or image synthesis in the later stage, regrets are caused due to the lack of super telephoto detail information.
[0004] On the other hand, users sometimes need to track and shoot the target object. For example, you can manually capture the subject and place the target object in the appropriate position of the shooting screen. For another example, in software such as Douyin and Kuaishou, the algorithm can achieve the effect of only tracking the face by cutting a large amount of pictures, that is, the software can automatically capture the object (face) and place the target object in the appropriate position of the shooting screen. However, when the subject is always in motion, it is difficult to stabilize it by manual tracking by the photographer, and the way of cutting by software reduces the size of the picture, reduces the image quality, and is not satisfactory in use. The use of the gimbal structure can solve the above problems well. However, the built-in gimbal structure in the multi-camera module of the mobile phone is limited by its size and often has a small range of movement. The main gimbal camera can generally only achieve a one-way rotation of about 3°-4° in the RX and RY directions (i.e., the direction of rotation around the X axis and the direction of rotation around the Y axis). Due to the small movable range, it is often necessary to rely on the user to hold the tracking shot, and the micro gimbal in the mobile phone can only assist the user in anti-shake tracking shooting. In comparison, some gimbals of security monitoring modules can achieve 360-degree rotation in the horizontal direction and 90-degree swing in the vertical direction. Therefore, the PTZ in security monitoring can realize the movement trajectory of the lens on a hemispherical surface, and then achieve tracking and shooting of the target object.
[0005] In summary, the market is also looking forward to a solution that can better track and shoot the target object by using a micro gimbal with a limited moving range.
[0006] Furthermore, people also expect the micro gimbal in the multi-camera module to better play its value so as to effectively enhance the user experience of the multi-camera module. Summary of the invention
[0007] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a solution that can better track and shoot a target object by using a micro pan-tilt head with a limited moving range.
[0008] Another object of the present invention is to overcome the deficiencies of the prior art and enable the micro gimbal in the multi-camera module to better play its value, so as to effectively improve the user experience of the multi-camera module.
[0009] To solve the above technical problems, the present invention provides a shooting method for a multi-camera module with a built-in gimbal, wherein the multi-camera module includes a telephoto module and a main camera module installed on the gimbal, and the shooting method includes: step 1) determining a target object to be tracked by the main camera module and the telephoto module; and step 2) during tracking shooting, the gimbal drives the main camera module to move to adjust its inclination so that the target object is always in the center position of the main camera image; and, displaying a current position indication graphic and a target position indication graphic in a preview interface; wherein the preview interface is displayed on a display screen of an electronic device equipped with the multi-camera module, the current position indication graphic represents the current pointing position of the telephoto module, and the target position indication graphic represents the pointing position to which the telephoto module needs to be adjusted.
[0010] Wherein, the step 2) also includes: real-time monitoring of the image taken by the telephoto module, when the tracked target object cannot be identified in the image taken by the telephoto module, generating and displaying the current position indication graphic and the target position indication graphic in the preview interface to prompt the user to adjust the posture of the electronic device.
[0011] In the process of tracking shooting, the current position indication graphic and the target position indication graphic are always displayed in the preview interface to prompt the user to adjust the posture of holding the electronic device.
[0012] The target object includes a first target object and a second target object, the first target object is the target object that the main camera module needs to track, the second target object is the target object that the telephoto module needs to track, and the second target object is a part of the first target object.
[0013] Wherein, the step 1) includes the following sub-steps: step 11) generating a preview interface, the preview interface at least including a main capture view window; step 12) determining the first target object and the second target object to be tracked based on the preview interface; step 13) prompting the user on the preview interface to determine whether to start tracking shooting; and step 14) generating a second view window on the preview interface for displaying the image or video of the second target object.
[0014] Wherein, in the step 11), the preview interface further includes a telephoto viewfinder; and in the step 14), the telephoto viewfinder is used as the second viewfinder.
[0015] Wherein, the step 12) also includes: prompting the user to select the area where the first target object is located and the area where the second target object is located in the preview interface; identifying the category, size and position of the first target object based on the determined area where the first target object is located, and identifying the category, size and position of the second target object based on the determined area where the second target object is located.
[0016] The current position indication graphic and the target position indication graphic are square frames.
[0017] The current position indication graphic and the target position indication graphic have different colors.
[0018] Wherein, the gimbal is suitable for driving the main camera module to rotate around the X-axis and / or around the Y-axis; wherein the X-axis and the Y-axis are perpendicular to each other, and both are perpendicular to the Z-axis, and the Z-axis is the coordinate axis in the thickness direction of the electronic device.
[0019] Wherein, the step 2) further includes: prompting the user to adjust the posture of the electronic device so that the current position indication graphic overlaps with the target position indication graphic.
[0020] Wherein, the gimbal is also suitable for driving the main camera module to rotate in the degree of freedom of rotation around the Z axis; in the step 2), a rotation indication graphic prompting the user to manually rotate the electronic device is also displayed on the preview interface.
[0021] Wherein, the step 2) also includes: calculating the offset of the target position indication graphic relative to the current position indication graphic based on the motion vector of the front and rear frame images of the main camera module and the motion vector of the front and rear frame images of the telephoto module, and displaying the target position indication graphic based on the calculation result of the offset.
[0022] Wherein, the step 2) also includes: extracting feature points in the front and rear frame images of the main camera module based on an image recognition algorithm, and deriving the motion vectors of the front and rear frame images of the main camera module according to the motion vectors of these feature points; extracting feature points in the front and rear frame images of the telephoto module based on an image recognition algorithm, and deriving the motion vectors of the front and rear frame images of the telephoto module according to the motion vectors of these feature points.
[0023] Wherein, the step 2) also includes: determining the offset (δ1, δ2) from the center of the main camera front frame image to the center of the rear frame image according to the motion vector of the feature points in the front and rear frame images of the main camera module, and determining the offset (c1, c2) from the center of the front frame image to the center of the rear frame image of the telephoto module according to the motion vector of the feature points in the front and rear frame images of the telephoto module; and setting the target position indication graphic at a position where the offset relative to the current position indication graphic is (-(δ1-c1), -(δ2-c2)).
[0024] According to another aspect of the present application, a shooting method for a multi-camera module with a built-in gimbal is also provided, wherein the multi-camera module includes a wide-angle module and a main camera module installed on the gimbal, and the shooting method includes: capturing at least one wide-angle image with the wide-angle module; driving the main camera module to rotate through the gimbal so that its shooting range covers the edge area of the wide-angle image; and merging the edge area of the wide-angle image with the corresponding area photographed by the main camera module through synthesis.
[0025] Compared with the prior art, the present invention has at least one of the following technical effects:
[0026] 1. This application can help correct the differences in videos shot by different camera modules, especially the differences in videos caused by the automatic anti-shake function being turned on during the shooting process of multiple camera modules.
[0027] 2. This application can prompt the user to adjust the shooting posture (i.e., the posture of the handheld electronic device) by displaying graphic marks on the preview interface, thereby conveniently helping the telephoto module and the gimbal main camera to always track their corresponding shooting targets.
[0028] 3. This application is particularly convenient for users to use handheld electronic devices to perform multi-camera shooting.
[0029] 4. In some embodiments of the present application, it is possible to prevent the target tracked by the telephoto module from being lost when the multi-camera module is shooting.
[0030] 5. In some embodiments of the present application, the mobility of the gimbal main camera can be used to cover the edge area of the picture taken by the wide-angle module, thereby obtaining a higher quality fused picture. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flowchart of a shooting method for a multi-camera module with a built-in gimbal according to an embodiment of the present application is shown;
[0032] Figure 2 A mobile phone and its multi-camera module are shown;
[0033] Figure 3An example of a shooting scene in one embodiment of the present application is shown;
[0034] Figure 4 The figure shows the shooting scene and the adjustable range of the gimbal in one embodiment of the present application;
[0035] Figure 5 A schematic diagram of adjusting a selection box in a preview interface in one embodiment of the present application is shown;
[0036] Figure 6 A schematic diagram showing a region where a second target object is located is shown in one embodiment of the present application;
[0037] Figure 7 A schematic diagram showing a prompt message and an operation button for determining whether to start tracking shooting is displayed on a preview interface;
[0038] Figure 8 An example of setting a second viewfinder in a "picture-in-picture" format in one embodiment of the present application is shown;
[0039] Fig. 9 An example of arranging the second viewfinders in a side-by-side arrangement in one embodiment of the present application is shown;
[0040] Fig.10 A schematic diagram showing a telephoto module losing a second target object in one embodiment of the present application is shown;
[0041] Fig.11 A schematic diagram showing a current position indication frame and a target position indication frame displayed on a preview interface in one embodiment of the present application is shown;
[0042] Fig.12 A schematic diagram showing a current position indication frame and a target position indication frame being adjusted to approximately overlap in one embodiment of the present application;
[0043] Fig.13 The main camera shooting area is shown when the gimbal has RZ degree of freedom adjustment capability in another embodiment of the present application;
[0044] Fig.14 A rotation adjustment indication diagram is shown when the gimbal has RZ degree of freedom adjustment capability in another embodiment of the present application;
[0045] Fig.15 A schematic diagram showing a second target object approaching a non-tilted state when the gimbal has RZ degree of freedom adjustment capability in another embodiment of the present application;
[0046] Fig.16 The figure shows the offset of the front and rear frame images of the gimbal main camera and telephoto module when shooting close-up shots;
[0047] Fig.17 The figure shows the offset of the front and rear frame images of the gimbal main camera and the telephoto module when shooting in the long-range scene;
[0048] Fig.18 The figure shows the setting positions of the current position indication frame and the target position indication frame in a preferred embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to better understand the present application, a more detailed description will be made of various aspects of the present application with reference to the accompanying drawings. It should be understood that these detailed descriptions are only descriptions of exemplary embodiments of the present application, and are not intended to limit the scope of the present application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.
[0050] It should be noted that in this specification, the expressions of first, second, etc. are only used to distinguish one feature from another feature, and do not represent any limitation on the feature. Therefore, without departing from the teaching of this application, the first subject discussed below can also be referred to as the second subject.
[0051] In the drawings, the thickness, size and shape of objects have been slightly exaggerated for ease of explanation. The drawings are only examples and are not drawn strictly to scale.
[0052] It should also be understood that the terms "comprises", "including", "having", "includes" and / or "comprising", when used in this specification, indicate the presence of the stated features, wholes, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, parts and / or combinations thereof. In addition, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire listed features rather than modifying the individual elements in the list. In addition, when describing embodiments of the present application, "may" is used to mean "one or more embodiments of the present application". And, the term "exemplary" is intended to refer to an example or illustration.
[0053] As used herein, the terms "substantially," "approximately," and similar terms are used as terms of approximation, not degree, and are intended to account for the inherent variations in measurements or calculations that would be recognized by one of ordinary skill in the art.
[0054] Unless otherwise defined, all terms (including technical terms and scientific terms) used in this article have the same meaning as commonly understood by ordinary technicians in the field to which this application belongs. It should also be understood that terms (such as terms defined in commonly used dictionaries) should be interpreted as having the same meaning as their meaning in the context of the relevant technology, and will not be interpreted in an idealized or overly formal sense unless explicitly defined in this article.
[0055] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0056] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0057] Figure 1 The flowchart of a shooting method for a multi-camera module with a built-in gimbal in one embodiment of the present application is shown. In this embodiment, the multi-camera module is installed in a mobile phone. Figure 2 A mobile phone and its multi-camera module are shown. In this embodiment, the multi-camera module includes at least a main camera module 100 and a telephoto module 200, wherein the main camera module 100 is installed in a pan-tilt structure, and the pan-tilt structure can be built into the mobile phone 1000, so it can also be called a micro pan-tilt. The pan-tilt structure can drive the main camera module to rotate around the X-axis, around the Y-axis, and around the Z-axis to achieve an anti-shake function. It should be noted that although the pan-tilt structure of this embodiment has three rotational degrees of freedom, this is not necessary. For example, in another embodiment, the pan-tilt structure may have only two rotational degrees of freedom, rotation around the X-axis and rotation around the Y-axis. For another example, in yet another embodiment, the pan-tilt structure may have only one rotational degree of freedom, rotation around the X-axis.
[0058] In this embodiment, the main camera module and the telephoto module can be used to simultaneously photograph the target object and track the target object. Figure 3 An example of a shooting scene in one embodiment of the present application is shown. Figure 3, the shooting area 101 of the main camera module can be larger than the shooting area 201 of the telephoto module (that is, the image captured by the main camera module can have a larger frame). Among them, the telephoto module can be a periscope module (for example, a 10X periscope telephoto camera module, whose field of view FOV can be 10°). Since the telephoto module can capture more details and usually has a higher zoom ratio (it can be an optical zoom ratio or a ratio corresponding to a digital zoom), the target captured by the telephoto module can be a part of the target tracked by the main camera module. For example, in a shooting scene, the main camera module can track the ship in the shooting scene, while the telephoto module tracks and shoots the people on the ship. Further, in this embodiment, the main camera module can be installed on a micro gimbal, which can drive the main camera module to rotate around the X-axis and around the Y-axis (in this article, these two degrees of freedom of movement are divided into RX and RY), that is, the gimbal can adjust the tilt of the main camera module. Figure 4 The figure shows the shooting scene and the adjustable range of the pan / tilt in one embodiment of the present application. Figure 4 In this embodiment, when the main camera module is in the reference position, the area it captures is the second image area 110. When the gimbal moves in the ±RX and ±RY directions, the additional coverage area is recorded as the first image area 120, which includes sub-area A 121, sub-area B 122, sub-area C 123 and sub-area D 124. The image area captured by the 10X periscope telephoto camera module is recorded as the third image area 210.
[0059] Below, combined with reference Figure 1 , the shooting method of the multi-camera module for the built-in pan / tilt in this embodiment is further described. In this embodiment, the shooting method includes the following steps.
[0060] Step S1, start the multi-camera tracking shooting mode, and display the preview interface on the mobile phone display. The preview interface may include a main capture window, which can display the first preview image taken by the main camera in real time. In this embodiment, the multi-camera tracking shooting mode can be triggered manually or automatically identified by AI. For example, the AI software of the mobile phone can automatically trigger the multi-camera tracking shooting mode according to the user's usage habits when certain conditions are met. For example, if the AI software recognizes a specific target object in the preview screen, such as the user himself, the self-timer mode can be triggered, and the self-timer mode can automatically track the user using the gimbal main camera and telephoto module. Manual triggering can be triggered by a physical button. For example, manual triggering can be configured as: double-clicking the volume button, or a physical button such as a lock screen button.
[0061] Furthermore, in another embodiment of the present application, the preview interface may also include a telephoto viewfinder, which may display a second preview image captured by the telephoto module in real time. The main capture viewfinder and the telephoto viewfinder may be combined in a "picture-in-picture" format. In another example, the main capture viewfinder and the telephoto viewfinder may also be arranged side by side, for example, the telephoto viewfinder may be located on the left or right side of the main capture viewfinder.
[0062] Step S2: determining the target object to be tracked based on the preview interface. Figure 5 A schematic diagram of adjusting a selection box in a preview interface in an embodiment of the present application is shown. Figure 5 In this step, the user may be prompted to select the area where the target object is located in the preview interface. For example, a selection box 301 may be generated on the preview interface, and the user may adjust the position and size of the selection box 301 by touch screen operation. In addition to the box selection operation, other operation modes for selecting the area where the target object is located, such as the point selection operation, may also be provided to the user. Among them, the point selection operation may be, for example, a single-click operation or a double-click operation obtained through a display screen. The device (in this embodiment, a smart phone, which will not be described in detail below) may use an area within a certain range around the point selection position as the area where the target object is located.
[0063] Furthermore, after determining the area where the target object is located, the device can detect the target object in the determined area through a face detection algorithm or a target contour detection algorithm, and can extract features of the target object to identify the category of the target object. For example, the user's own facial feature information can be pre-stored, and when the feature information of the target object detected by the face detection algorithm is consistent with the pre-stored facial feature information of the user, the target object can be determined to be the user's own face. For another example, the category of the target object can also be a human body, a car, a ship, etc., or a specific geometric shape, etc. The feature information can be a face shape, a digital symbol, a car color, a license plate number, etc., and through this information, the category of the target object can be determined or assisted in determining.
[0064] In another embodiment, the device may also detect the target object in the image (selected area) through a neural network model. The neural network model may detect the position and size of the target object in the image information and identify the category of the target object.
[0065] Furthermore, after determining the target object, a second target object tracked by the telephoto module may be determined. For ease of description, the target object mentioned above is referred to as the first target object, and the first target object is the target object to be tracked by the gimbal main camera. In one embodiment of the present application, the second target object may be consistent with the first target object.
[0066] In another embodiment, the second target object may be a part of the first target object, for example, when the first target object is a ship, the second target object may be a person on the ship. In this case, the device may prompt the user to select the area where the second target object is located on the preview interface. Figure 6 A schematic diagram of selecting the area where the second target object is located in one embodiment of the present application is shown. Figure 6 In this embodiment, the second target object is the target object photographed by 10X periscope super telephoto, so more local detail information can be obtained than the main camera module. After determining the area where the second target object is located, face recognition or contour extraction can be performed to identify the position, size and category of the second target object. The recognition method is the same as that of the first target object and will not be repeated.
[0067] Step S3, prompting the user to determine whether to start tracking shooting on the preview interface. After the target object is determined, the option of whether to start tracking can be displayed on the display screen. Figure 7 A schematic diagram showing a prompt message and an operation button for determining whether to start tracking shooting on a preview interface is shown. The user can choose whether to start tracking shooting by clicking (or other touch screen operations). When the device receives a user input to start tracking shooting (for example, the user clicks the "Start Tracking" virtual button), tracking shooting begins.
[0068] Step S4, generating a second viewfinder for displaying the second target object image or video on the preview interface. When in step S1, the preview interface has both a main viewfinder and a telephoto viewfinder, the telephoto viewfinder can be directly used as the second viewfinder in this step. When in step S1, the preview interface does not provide a telephoto viewfinder, a second viewfinder can be generated in this step, and the second viewfinder can be set in the main viewfinder (i.e., in the form of "picture-in-picture"). Figure 8 1 shows an example of setting a second viewfinder in a "picture-in-picture" format in one embodiment of the present application), and can also be set side by side with the main capture view window, for example, the second viewfinder can be set on the left or right side of the main capture view window ( Fig. 9 An example of setting the second viewfinder in a side-by-side manner in one embodiment of the present application is shown). Further, the preview interface may also provide an operation tool for the user to adjust the position and size of the second viewfinder.
[0069] Step S5, during the tracking and shooting process, the gimbal drives the main camera module to move to adjust its inclination so that the first target object is always in the center of the main camera image; at the same time, the device monitors the image taken by the telephoto module (i.e., the telephoto image), and when the second target object cannot be detected in the telephoto image, the device posture correction is started. Device posture correction refers to prompting the user to adjust the device posture so that the telephoto module can shoot the second target object. Specifically, in order to track and shoot the first target object (such as a boat), the gimbal will drive the main camera module to rotate. Sometimes, in order to keep the first target object (such as a boat) in the center of the picture, the rotation angle of the gimbal may be large. At this time, the telephoto module does not rotate together (the telephoto module may not have an anti-shake function), resulting in the loss of the second target object (note that when the telephoto module has a certain anti-shake function, the second target object may also be lost due to insufficient movement of the anti-shake function). Fig.10 A schematic diagram showing a telephoto module losing a second target object in one embodiment of the present application is shown. Fig.10 Due to the rotation of the gimbal, the orientation of the main camera module may be at a large angle to the orientation of the telephoto module, resulting in the telephoto image area being unable to cover the second target object (such as a person), which in turn causes the second target object to be lost in the telephoto image (for example, the device cannot identify the second target object from the telephoto image). At this time, the device can prompt the user to adjust the device posture so that the telephoto module can be aimed at the second target object. At the same time, the main camera module can still maintain its tracking of the first target object under the automatic adjustment of the gimbal. In this step, prompting the user to adjust the device posture can be achieved by setting an indicator box on the preview interface. For example, a current position indicator box 401 representing the current pointing position of the telephoto module and a target position indicator box 402 representing the pointing position to which the telephoto module needs to be adjusted can be displayed in the preview interface. Fig.11 A schematic diagram of displaying a current position indication frame and a target position indication frame on a preview interface in one embodiment of the present application is shown. When a user adjusts the posture of a device (e.g., a mobile phone), the position of the current position indication frame 401 can change with the change of the mobile phone posture, so that the user can adjust the mobile phone posture in real time according to the position of the current position indication frame 401 displayed on the preview interface, and finally make the current position indication frame 401 overlap with the target position indication frame 402 ( Fig.12 A schematic diagram showing that the current position indication frame and the target position indication frame are adjusted to approximately overlap in one embodiment of the present application. When the two overlap, the device posture adjustment is completed. The device can continue to perform tracking shooting normally.
[0070] Furthermore, in another embodiment of the present application, the current position indicating frame and the target position indicating frame may use different colors or line types to facilitate user differentiation. For example, the current position indicating frame may be blue, and the target position indicating frame may be red. In addition, the current position indicating frame and the target position indicating frame are not limited to square frames, and they may also be replaced by other graphics, such as round frames, dots, crosshair patterns, and the like.
[0071] Furthermore, in another embodiment of the present application, the current position indication frame and the target position indication frame can be directly displayed when the tracking shooting starts, that is, the current position indication frame and the target position indication frame do not need to be triggered by the loss of the target object, but are directly triggered when the tracking shooting starts.
[0072] Furthermore, the processor of the device can calculate the deviation of the image center of the current telephoto module and the main camera module according to the image recognition algorithm or the working index recorded by the gimbal, and according to the calculated deviation, the current position and the target position can be indicated by a block diagram (or other position indication graphic) in the preview interface. In this embodiment, a blue frame and a red frame can be used as the current position indication graphic and the target position indication graphic, respectively. The user rotates the terminal to adjust the blue frame to coincide with the red frame, thereby ensuring that the first target object and the second target object can be captured, thereby ensuring that the images or videos of the two target objects of interest to the user can be saved in the preview image video, which can facilitate the user to find the full range of detailed information of the first target object and the second target object in the preview image or the two video files saved later for post-production.
[0073] Further, in one embodiment of the present application, the method for generating a current position indication frame and a target position indication frame includes: the processor of the device calculates the coordinate value of the first target object in the first preview image of the preview interface, wherein the coordinate value may refer to the geometric center of the target object, or may refer to the center of the frame shape containing the first target object or its feature point position (for example, the upper left corner position of the frame shape, since the length and width of the frame shape may be pre-set, the coordinates of the upper left corner position may represent the position of the frame shape). Similarly, the processor of the device calculates the coordinate value of the second target object in the first preview image, wherein the coordinate value may refer to the geometric center of the target object, or may refer to the center of the frame shape containing the second target object or its feature point position (for example, the upper left corner position of the frame shape, since the length and width of the frame shape may be pre-set, the coordinates of the upper left corner position may represent the position of the frame shape). According to the calculated coordinate value representing the position of the first target object and the coordinate value representing the position of the second target object, the current position indication frame and the target position indication frame may be displayed in the preview interface (for example, in the first preview image). For example, the current position indication frame may be displayed according to the coordinate value representing the position of the second target object, and the target position indication frame may be displayed according to the coordinate value representing the position of the first target object.
[0074] Further, in a preferred embodiment, the method for generating the current position indication frame and the target position indication frame includes: the processor of the device can obtain the motion position information of the current pan / tilt, and the motion position information includes the actual angle value of the pan / tilt main camera module that has been rotated during the user's handheld device tracking the target shooting process. The actual angle value can be the working value recorded by the pan / tilt, that is, the code value. In one embodiment of the present application, the code value can be recorded as (X1, Y1). Among them, 1code can represent 1 unit of current. The X1 value can represent the angle that the pan / tilt has rotated in the RX direction, and the Y1 value can represent the angle that the pan / tilt has rotated in the RY direction. By obtaining the current working value of the pan / tilt and the deviation value between the center of the second target object and the center of the first target object, the deviation of the second target object from the first target object in the telephoto camera can be calculated. For example, the coordinates of the starting image center position of the pan / tilt are recorded (X0, Y0), and the coordinates of the image center position after the pan / tilt is working are (X1, Y1), then the image center movement distance is (X1-X0, Y1-Y0). Where X1-X0, Y1-Y0 are the moving distances of the image center in the X and Y directions, respectively. The current position indication frame and the target position indication frame can be set according to the moving distance (X1-X0, Y1-Y0) of the image center. For example, the target position indication frame can be set at a position where the offset relative to the current position indication frame is (-(X1-X0), -(Y1-Y0)).
[0075] Furthermore, in another embodiment, the method for generating the current position indication frame and the target position indication frame includes: the processor of the device can calculate the motion vector of each feature point in the front and rear frame images taken by the gimbal main camera module. The motion vector of each feature point can reflect the tilt of the picture in the video sample data. On the one hand, the motion vector can be provided to the gimbal main camera module for anti-shake. On the other hand, the motion vector can analyze the actual rotation angle of the gimbal relative to the device in this embodiment. Similarly, the processor of the device can also calculate the motion vector of each feature point in the front and rear frame images at the telephoto end. Fig.16 The figure shows the offset of the front and back frame images of the gimbal main camera and the telephoto module when shooting close-up. When shooting close-up, the pictures taken by the gimbal main camera and the telephoto module often have a certain parallax. Fig.16 As shown, the image center of the telephoto front frame image 290 does not coincide with the image center of the main camera front frame image 190 of the gimbal main camera. In the same time period, the shooting area of the telephoto module is transferred to the position of the telephoto rear frame image 291, and the shooting area of the gimbal main camera is transferred to the position of the main camera rear frame image 191. According to the motion vectors of each feature point in the front and rear frame images taken by the gimbal main camera module, the offset (δ1, δ2) from the center of the main camera front frame image to the center of the rear frame image can be determined, and according to the motion vectors of each feature point in the front and rear frame images at the telephoto end, the offset (c1, c2) from the center of the telephoto module front frame image to the center of the rear frame image can be determined. Fig.17 The figure shows the offset of the front and back frames of the gimbal main camera and telephoto module when shooting in the long-range. Fig.17 When shooting long-range shots, it can be assumed that the images taken by the gimbal main camera and the telephoto module have no parallax, that is, the image center of the telephoto front frame image 290 and the image center of the main camera front frame image 190 of the gimbal main camera can coincide. In this case, the offset (δ1, δ2) from the center of the main camera front frame image to the center of the rear frame image can be determined based on the motion vector of each feature point in the front and rear frame images taken by the gimbal main camera module, and the offset (c1, c2) from the center of the front frame image of the telephoto module to the center of the rear frame image can be determined based on the motion vector of each feature point in the front and rear frame images at the telephoto end. Further, in this embodiment, the target position indication frame can be set at a position where the offset relative to the current position indication frame is (-(δ1-c1), -(δ2-c2)). Further, Fig.18 The figure shows the current position indication frame and the target position indication frame in a preferred embodiment of the present application. Fig.18 Preferably, the center of the target position indication frame 402 can be set on the line connecting the telephoto shooting center and the pan-tilt main camera shooting center. The telephoto shooting center is the image center of the image currently shot by the telephoto module (i.e., the telephoto rear frame image 291), and the pan-tilt main camera shooting center is the image center of the image currently shot by the main camera module (i.e., the main camera rear frame image 191).
[0076] Furthermore, in another embodiment of the present application, the device can also obtain the magnetic field strength measured by the Hall element, and the Hall element can be recorded as values in the RX and RY directions. The values of the Hall element in the RX and RY directions can represent the angle at which the gimbal has rotated in the RX direction and the angle at which the gimbal has rotated in the RY axis direction, thereby obtaining the deviation value of the gimbal main camera shooting center.
[0077] In the above embodiment, through steps S1-S5, the gimbal tracking shooting operation of the multi-camera module can be simplified, so that the pictures taken by the gimbal camera are smoother and more coherent, and the gimbal main camera and telephoto camera module can capture their respective target objects, thereby retaining the richest detail information.
[0078] Further, Fig.13 FIG. 2 shows the main camera shooting area when the gimbal has RZ degree of freedom adjustment capability in another embodiment of the present application. Fig.13 In this embodiment, the RZ rotation capability of the gimbal enables the main camera shooting picture (i.e., the main camera module shooting area 101) to rotate around the center. After rotation, the main camera module can shoot additional rotation extension areas A, B, C, and D. In this embodiment, steps S1-S4 of the shooting method for a multi-camera module with a built-in gimbal can be consistent with steps S1-S4 in the previous embodiment, and step S5 can be adjusted. Specifically, step S5 of this embodiment may include: obtaining the current moving position of the gimbal, including obtaining the actual angle value that has been rotated in the RZ direction when the gimbal tracks the target (this value is recorded as the gimbal working value), and outputting the code value of the gimbal working. In this solution, the code value is recorded as (X1), where the X1 value current represents the angle that the gimbal has rotated in the RZ axis direction (in another embodiment, the value that has rotated in the RZ direction can be recorded by obtaining the magnetic field strength measured by the Hall element. According to the value that has rotated in the RZ direction of the Hall element, the angle that the gimbal has rotated in the RZ direction can be obtained). Further, Fig.14 The figure shows a rotation adjustment indication graphic when the gimbal has RZ degree of freedom adjustment capability in another embodiment of the present application. In this embodiment, according to the rotation angle of the gimbal in the RZ direction in the current state, a rotation indication graphic 501 prompting the user to manually rotate the phone can be displayed in real time on the preview interface. The rotation indication graphic 501 can be, for example, a circle with a rotation arrow. If the user rotates according to the rotation indication graphic 501, the second target object photographed by the telephoto module can be restored from a tilted state to a non-tilted state. Fig.15 A schematic diagram showing a second target object approaching a non-tilted state when the gimbal has RZ degree of freedom adjustment capability in another embodiment of the present application.
[0079] Further, in one embodiment of the present application, the rotation indication graphic can be generated by the following method. The method may include: by obtaining the gimbal working value and the deviation value between the center of the second target object and the center of the first target object, calculating the deviation of the telephoto camera from the first target object in the second target object, and using a block diagram to indicate in the screen that the third image area is represented as a red frame, and in the block diagram, the second image area is represented as a blue frame, and the user rotates the terminal to adjust the overlap between the red frame indicator arrow and the blue frame horizontal line, thereby indicating the user to correct the RZ angle of the gimbal image shooting area to be close to the angle of the telephoto shooting area, ensuring that the first target object and the second target object can be captured, thereby ensuring that the two target objects of interest to the user can be saved in the preview image video, so that it is convenient for the user to include the first target object and the second target object in the preview image or the two video files saved later.
[0080] Furthermore, in one embodiment of the present application, a shooting method of a multi-camera module based on a gimbal main camera and a wide-angle module is also provided, the method comprising: the FOV of the wide-angle module is about 100°, the FOV of the gimbal main camera is 90°, wherein the gimbal of the gimbal main camera has a rotation angle of ±10° around the X and Y axis directions, when the gimbal main camera and the wide-angle module are both in the initial position, the wide-angle module is larger than the gimbal main camera in terms of picture size, but when the anti-shake function of the gimbal main camera is activated, the rotation along the RX and RY directions can make the gimbal main camera's shooting picture larger than the wide-angle module. Therefore, when the user is shooting, the wide-angle module can be used to capture at least one photo first, and then the gimbal main camera is rotated along the RX and RY directions, so that its shooting range covers the four edge areas of the wide-angle image, and then the edge areas of the wide-angle image are merged with the corresponding areas shot by the gimbal main camera through synthesis. This shooting method can reduce the more serious distortion of the edge of the wide-angle lens, and can also solve the problem of inconsistent depth of field in the existing fusion pictures of the wide-angle and main camera modules. Therefore, this embodiment can effectively improve the imaging quality of the wide-angle picture. Specifically, in the existing fusion pictures of the wide-angle and main camera modules, due to the different focal lengths, apertures, and pixels of the wide-angle and main camera modules, when the pictures are fused, the wide-angle edge area has no corresponding imaging of the main camera module, and can only use the information of the wide-angle shooting alone, while the image quality of the middle area of the image is improved after the fusion of the wide-angle and main camera. Therefore, the clarity transition between the edge area and the middle area of the fused wide-angle picture may be uneven, and the transition of the depth of field is also uneven. In this embodiment, during the shooting stage, the main camera is moved in the RX and RY directions by the gimbal to shoot, so that the main camera image can cover the edge area of the wide-angle module screen, thereby obtaining a better fusion picture. The fusion picture can reduce the more serious distortion of the edge of the wide-angle lens, and can also solve the problem of inconsistent depth of field in the existing fusion pictures of the wide-angle and main camera modules, and can also make the transition between the middle area and the edge area in the fusion picture smoother.
[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.
Claims
1. A shooting method for a multi-camera module with a built-in pan / tilt head, characterized in that: The multi-camera module includes a telephoto module and a main camera module installed on a gimbal, and the multi-camera module is mounted in an electronic device. The shooting method includes: Step 1) determining target objects to be tracked by the main camera module and the telephoto module, wherein the target objects include a first target object and a second target object, wherein the first target object is the target object to be tracked by the main camera module, and the second target object is the target object to be tracked by the telephoto module; and Step 2) tracking and shooting the first target object and the second target object of interest to the user to obtain two video files of the two target objects; during the tracking and shooting process, the gimbal drives the main camera module to move to adjust its inclination, so that the target object is always in the center of the main camera image; and when the rotation of the gimbal causes the orientation of the main camera module and the orientation of the telephoto module to have too large an angle, so that the image taken by the telephoto module cannot cover the second target object, a current position indication graphic and a target position indication graphic of the second target object are displayed in the preview interface to prompt the user to adjust the posture of holding the electronic device so that the current position indication graphic of the second target object overlaps with the target position indication graphic; The preview interface is displayed on a display screen of an electronic device equipped with the multi-camera module, the current position indication graphic represents the current pointing position of the telephoto module, and the target position indication graphic represents the pointing position to which the telephoto module needs to be adjusted; In the step 2), while the user adjusts the posture of holding the electronic device, the position of the current position indication graphic of the second target object changes with the change of the posture of the electronic device, so that the user can adjust the posture of the electronic device in real time, and finally make the current position indication graphic coincide with the target position indication graphic; and while the user adjusts the posture of holding the electronic device, the gimbal automatically adjusts the main camera module to keep tracking the first target object.
2. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: The step 2) also includes: monitoring the image taken by the telephoto module in real time, and when the tracked target object cannot be identified in the image taken by the telephoto module, generating and displaying the current position indication graphic and the target position indication graphic in the preview interface to prompt the user to adjust the posture of the electronic device.
3. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: During the tracking shooting process, the current position indication graphic and the target position indication graphic are always displayed in the preview interface to prompt the user to adjust the posture of holding the electronic device.
4. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: The second target object is a part of the first target object.
5. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 4, characterized in that: The step 1) comprises the following sub-steps: Step 11) generating a preview interface, wherein the preview interface at least includes a main capture window; Step 12) determining the first target object and the second target object to be tracked based on the preview interface; Step 13) prompting the user to confirm whether to start tracking shooting on the preview interface; as well as Step 14) Generate a second viewfinder on the preview interface for displaying the second target object image or video.
6. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 5, characterized in that: In the step 1), the preview interface further includes a telephoto viewfinder; in the step 14), the telephoto viewfinder is used as the second viewfinder.
7. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 5, characterized in that: The step 12) also includes: prompting the user to select the area where the first target object is located and the area where the second target object is located in the preview interface; identifying the category, size and position of the first target object based on the determined area where the first target object is located, and identifying the category, size and position of the second target object based on the determined area where the second target object is located.
8. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: The current position indication graphic and the target position indication graphic are square frames.
9. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: The current position indication graphic and the target position indication graphic have different colors.
10. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: The gimbal is suitable for driving the main camera module to rotate around the X-axis and / or around the Y-axis; wherein the X-axis and the Y-axis are perpendicular to each other, and both are perpendicular to the Z-axis, and the Z-axis is the coordinate axis in the thickness direction of the electronic device.
11. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 10, characterized in that: The gimbal is also suitable for driving the main camera module to rotate in the degree of freedom of rotation around the Z axis; In the step 2), a rotation indication graphic is also displayed on the preview interface to prompt the user to manually rotate the electronic device.
12. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 1, characterized in that: The step 2) also includes: calculating the offset of the target position indication graphic relative to the current position indication graphic based on the motion vectors of the front and rear frame images of the main camera module and the motion vectors of the front and rear frame images of the telephoto module, and displaying the target position indication graphic based on the calculation result of the offset.
13. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 12, characterized in that: The step 2) also includes: extracting feature points in the front and rear frame images of the main camera module based on an image recognition algorithm, and deriving the motion vectors of the front and rear frame images of the main camera module based on the motion vectors of these feature points; extracting feature points in the front and rear frame images of the telephoto module based on an image recognition algorithm, and deriving the motion vectors of the front and rear frame images of the telephoto module based on the motion vectors of these feature points.
14. The shooting method for a multi-camera module with a built-in pan / tilt head according to claim 13, characterized in that: The step 2) also includes: determining the offset (δ1, δ2) from the center of the main camera front frame image to the center of the rear frame image according to the motion vector of the feature points in the front and rear frame images of the main camera module, and determining the offset (c1, c2) from the center of the front frame image to the center of the rear frame image of the telephoto module according to the motion vector of the feature points in the front and rear frame images of the telephoto module; and setting the target position indication graphic at a position where the offset relative to the current position indication graphic is (-(δ1-c1), -(δ2-c2)).
15. The shooting method for a multi-camera module with a built-in pan / tilt head according to any one of claims 1 to 14, characterized in that: The multi-camera module also includes a wide-angle module, and the shooting method also includes: Capture at least one wide-angle image using the wide-angle module; driving the main camera module to rotate by means of a gimbal so that its shooting range covers the edge area of the wide-angle image; and The edge area of the wide-angle image is merged with the corresponding area captured by the main camera module through synthesis.
