Mirror operation parameter adjusting method, device and equipment

By automatically adjusting the camera's mirror-moving parameters, according to the changes in the light source or character in the stage scene, the problem of users being unable to capture images in time when shooting stage scenes is solved, achieving a more dynamic shooting effect.

CN119421045APending Publication Date: 2025-02-11XIAN WEIWO SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411547067.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

During the shooting of a stage scene, when the user manually moves the mirror to capture the light changes, he cannot take the desired image in time because the user cannot quickly track changes on the stage.

Method used

By determining the camera's mirror-operation parameters based on the light information of the object light source in the preview image, the camera's mirror-operation parameters are automatically adjusted to track the changes in the light source or the movement of the person on the stage.

Benefits of technology

It enables users to capture images of interest in the stage scene in a timely manner, adds the dynamic effect of the video shooting, and creates a dynamic atmosphere.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119421045A_ABST
    Figure CN119421045A_ABST
Patent Text Reader

Abstract

The invention discloses a mirror operation parameter adjusting method, device and equipment, and belongs to the technical field of camera shooting. The mirror moving parameter adjusting method comprises the steps that first mirror moving parameter information of a camera is determined according to first light ray information of an object light source in a first preview image, and the object light source is a light source, corresponding to a tracked shooting object, in at least two light sources in a shooting scene; and adjusting the mirror operation parameter of the camera according to the first mirror operation parameter information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of camera technology, and specifically relates to a method, device and equipment for adjusting camera movement parameters. Background Art

[0002] With the development of electronic devices and photography technology, most electronic devices have auto focus (AF) motor components and optical image stabilizer (OIS) motor components in their cameras. By controlling the movement of the AF motor component, the image of the electronic device can be clear, and by controlling the movement of the OIS motor component, the blur caused by user shaking can be reduced.

[0003] Stage scenes are common scenes in daily photography. Stage scenes are often accompanied by lighting, which can create a variety of stage effects. In the process of shooting stage scenes, users need to manually move the camera to capture the changes in stage lighting and stage changes. However, during the process of manual camera movement, the object that the user wants to take a photo of has changed, and the image that the user expects cannot be captured in time. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device and equipment for adjusting camera movement parameters, which can enable a user to use an electronic device to capture images of interest in a stage scene in a timely manner.

[0005] In a first aspect, an embodiment of the present application provides a method for adjusting camera movement parameters, comprising:

[0006] Determining first camera movement parameter information of the camera according to first light information of the object light source in the first preview image, wherein the object light source is a light source corresponding to the tracked shooting object among at least two light sources in the shooting scene;

[0007] According to the first camera movement parameter information, the camera movement parameters are adjusted.

[0008] In a second aspect, an embodiment of the present application provides a device for adjusting camera movement parameters, comprising:

[0009] a determination module, configured to determine first camera movement parameter information of the camera according to first light information of the object light source in the first preview image, wherein the object light source is a light source corresponding to the tracked shooting object among at least two light sources in the shooting scene;

[0010] The adjustment module is used to adjust the camera's camera movement parameters according to the first camera movement parameter information.

[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the camera movement parameter adjustment method provided in the embodiment of the present application are implemented.

[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for adjusting the camera movement parameters provided in the embodiment of the present application are implemented.

[0013] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the camera movement parameter adjustment method provided in the embodiment of the present application.

[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the camera movement parameter adjustment method provided in an embodiment of the present application.

[0015] In the embodiment of the present application, the first camera movement parameter information of the camera is determined according to the first light information of the object light source in the first preview image, wherein the object light source is the light source corresponding to the tracked shooting object among the at least two light sources in the shooting scene; and the camera movement parameter of the camera is adjusted according to the first camera movement parameter information. In this way, the camera movement parameter can be automatically adjusted according to the light source in the shooting scene, so that the user can use the electronic device to capture the image of interest in the stage scene in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flowchart of a camera movement control method provided by some embodiments of the present application;

[0017] Figure 2 is a schematic diagram of selecting a light source object provided by some embodiments of the present application;

[0018] Figure 3 is a schematic diagram of setting the camera movement control direction provided by some embodiments of the present application;

[0019] Figure 4 is a schematic diagram of selecting a character provided by some embodiments of the present application;

[0020] Figure 5 is another schematic diagram of setting the camera movement control direction provided by some embodiments of the present application;

[0021] Figure 6is a schematic diagram of light provided by some embodiments of the present application;

[0022] Figure 7 is a schematic diagram of setting the lens movement range provided in some embodiments of the present application;

[0023] Figure 8 is a schematic diagram of the appearance of a newly added light source provided in some embodiments of the present application;

[0024] Fig. 9 is a schematic diagram of setting a mirror control direction of a newly added light source provided in an embodiment of the present application;

[0025] Fig.10 It is a schematic diagram of the appearance of a newly added character provided by some embodiments of the present application;

[0026] Fig.11 is a schematic diagram of setting the camera movement control direction of a newly added character provided in an embodiment of the present application;

[0027] Fig.12 is a schematic diagram of the structure of a camera movement parameter adjustment device provided in some embodiments of the present application;

[0028] Fig.13 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present application;

[0029] Fig.14 It is a schematic diagram of the hardware structure of an electronic device implementing some embodiments of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0032] The following, in conjunction with the accompanying drawings, describes in detail the method, device and equipment for adjusting the mirror movement parameters provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0033] The object light source in the embodiment of the present application refers to the light source corresponding to the tracked object in the shooting scene. When the tracked object is a light source object in the shooting scene, the object light source is the tracked light source object itself; when the tracked object is a non-light source object in the shooting scene, the object light source is the light source in the shooting scene that illuminates the non-light source object. The tracked object can be set according to actual needs.

[0034] The light information in the embodiments of the present application includes but is not limited to the light direction and the light angle.

[0035] The lens movement parameter information in the embodiments of the present application includes but is not limited to the movement of the focus motor and the movement of the anti-shake motor, wherein the movement of the anti-shake motor includes the lateral movement and longitudinal movement of the anti-shake motor, the lateral movement refers to the movement in the horizontal direction relative to the camera, and the longitudinal movement refers to the movement in the vertical direction relative to the camera.

[0036] It should be noted that the camera movement parameter adjustment method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the camera movement parameter adjustment method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the camera movement parameter adjustment method as an example.

[0037] The camera movement parameter adjustment method provided in the embodiment of the present application can be applied to the scene of shooting a stage.

[0038] Among them, one specific application scenario is that when a user is watching a concert of singer A, he or she takes a photo of the stage of the concert. The user hopes to achieve automatic camera movement and shooting of the stage by means of changes in light from the light sources on the stage. Another specific application scenario is that when a user is watching a concert of singer A, he or she takes a photo of the stage of the concert. The user hopes to achieve automatic camera movement and shooting of the stage by means of movements of characters on the stage.

[0039] It should be noted that the above application scenario is only an example, and other application scenarios may also be included in actual application, for example, a user wishes to realize automatic camera movement shooting of the stage through light changes of light sources on the stage and character movements at the same time.

[0040] Figure 1 : is a flowchart of a method for adjusting camera movement parameters provided by some embodiments of the present application. The method for adjusting camera movement parameters may include:

[0041] Step 101: determining first camera movement parameter information of a camera according to first light information of an object light source in a first preview image, wherein the object light source is a light source corresponding to a tracked shooting object among at least two light sources in a shooting scene;

[0042] In some embodiments of the present application, when the camera application of the electronic device is started, the camera application runs, and the camera application in the running state detects objects in the preview image, detects multiple objects included in the preview image, and the user selects a photographic object that needs to be tracked from the multiple objects.

[0043] The embodiments of the present application do not limit the method used to detect the object, and any available method can be applied to the embodiments of the present application. For example, when performing light source detection, the preview image can be binarized to obtain a black-and-white binary image, in which the light source irradiation area is white and other areas are black; edge straight line detection is performed on the black-and-white binary image to detect the edge straight lines in the black-and-white binary image; the intersection of the detected edge straight lines and the area with the highest brightness in the image are the imaging position of the light source in the preview image. When performing person detection, the person detection algorithm in the related art can be used to detect the person in the image.

[0044] After selecting a photographic object to be tracked from multiple objects, a corresponding camera movement control direction can be set for the photographic object to be tracked. When the object to be tracked is a light source, at least one camera movement control direction can be set for the light source. When the object to be tracked is a non-light source object, each non-light source object can be set to correspond to only one camera movement control direction, and different non-light source objects correspond to different camera movement control directions. A maximum of three non-light source objects to be tracked can be selected. Of course, when the object to be tracked is a non-light source object, at least one camera movement control direction can be set for each light source like a light source object, and the non-light source objects to be tracked are not limited to three.

[0045] In a scenario where the user wishes to automatically move the camera to shoot the stage by changing the light of the light source on the stage, the user can select the light source to be tracked from the detected light sources. Figure 2 As shown, Figure 2 It is a schematic diagram of selecting a light source object provided in some embodiments of the present application.

[0046] exist Figure 2 middle, Figure 2 Six light sources are shown in FIG. 1 , which are light source A, light source B, light source C, light source D, light source E, and light source F. When the user clicks Figure 2 After a certain light source is selected, the light source is determined as the light source to be tracked. Assume that the light sources selected by the user from the six light sources are: light source A, light source C, light source D and light source F.

[0047] After selecting the light source to be tracked, set the camera control direction corresponding to the light source. Figure 3 As shown, Figure 3 is a schematic diagram of setting the camera movement control direction provided by some embodiments of the present application. Figure 3 In the embodiment, the lens movement control direction of light source A, light source C and light source D is set to the front-to-back lens movement direction, the lens movement control direction of light source C is set to the left-right lens movement direction, and the lens movement control direction of light source F is set to the up-down lens movement direction. That is, light source A, light source C and light source D are set to control the lens movement in the front-to-back lens movement direction together, light source C is set to control the lens movement in the left-right lens movement direction, and light source F is set to control the lens movement in the up-down lens movement direction.

[0048] In a scene where the user wishes to realize automatic camera movement of the stage through the movement of characters on the stage, the user can select the character to be tracked from the detected characters. Figure 4 As shown, Figure 4 Schematic diagram of selecting characters provided by some embodiments of the present application. Figure 4 middle, Figure 4 Six light sources and three characters are shown in the figure. The six light sources are light source A, light source B, light source C, light source D, light source E and light source F. The three characters are character I, character J and character K. When the user clicks Figure 4 After selecting a character in the tracking method, the character is determined as the character to be tracked. Assume that the characters selected by the user from the three characters are: character I and character J.

[0049] After selecting the person to be tracked, set the camera control direction corresponding to the person. Figure 5 As shown, Figure 5 FIG. 1 is another schematic diagram of setting the direction of the camera movement control provided by some embodiments of the present application. Figure 5 , the camera movement control direction of characters I and J is set to the front-to-back camera movement direction, the camera movement control direction of character I is set to the left-right camera movement direction, and the camera movement control direction of character J is set to the up-down camera movement direction.

[0050] In some possible implementations of the embodiments of the present application, the mirror movement control information may include the movement amount of the focus motor and the movement amount of the anti-shake motor. Accordingly, step 101 may include: determining the angle change amount corresponding to the object light source in the three mirror movement directions respectively according to the first light information and the second light information; wherein the second light information is the light information of the object light source in the second preview image, the second preview image is a preview image adjacent to the first preview image, the acquisition time of the second preview image is earlier than the acquisition time of the first preview image, and the three mirror movement directions include the front-to-back mirror movement direction, the left-to-right mirror movement direction, and the up-and-down mirror movement direction; according to the angle change amount, determining the average angle change amount in each mirror movement direction; according to the average angle change amount and the preset mirror movement range corresponding to each mirror movement direction, determining the movement amount of the focus motor and the movement amount of the anti-shake motor.

[0051] In an embodiment of the present application, the changes in the light source corresponding to the tracked object in the shooting scene can be converted into the movement of the focus motor and the anti-shake motor. The movement of the focus motor and the anti-shake motor is utilized to increase the dynamic effect of the captured video and create a dynamic atmosphere of the shooting scene.

[0052] In some possible implementations of the embodiments of the present application, determining the angular changes of the object light source in three mirror movement directions respectively according to the first light information and the second light information may include: establishing a rectangular coordinate system with the imaging position of the object light source in the first preview image as the origin, the horizontal direction as the X-axis, and the vertical direction as the Y-axis; determining a first difference between a first angle corresponding to the first light information and a second angle corresponding to the second light information as the angular change of the object light source in the front-back mirror movement direction; determining a second difference between a third angle and a fourth angle as the angular change of the object light source in the left-right mirror movement direction; wherein the third angle is the angle between the bisector of the first angle and the X-axis, and the fourth angle is the angle between the bisector of the second angle and the X-axis; determining a third difference between the fifth angle and the sixth angle as the angular change of the object light source in the up-down mirror movement direction; wherein the fifth angle is the angle between the bisector of the first angle and the Y-axis, and the sixth angle is the angle between the bisector of the second angle and the Y-axis.

[0053] For example, Figure 6 As shown, Figure 6 It is a schematic diagram of light provided by some embodiments of the present application.

[0054] In a scenario where the user wishes to automatically move the camera to shoot the stage by changing the light source on the stage, Figure 6In the example, r11 and r12 are two boundaries of the imaging range of the illumination range of the tracked light source in the first preview image; r21 and r22 are two boundaries of the imaging range of the illumination range of the tracked light source in the second preview image. Figure 6 In the figure, r11 and r12 are two boundaries of the imaging range of the illumination range of the light source illuminating the tracked person in the first preview image; r21 and r22 are two boundaries of the imaging range of the illumination range of the light source illuminating the tracked person in the second preview image.

[0055] r10 is the bisector of the angle between r11 and r12; r20 is the bisector of the angle between r21 and r22. Assume that the angle between r11 and r12 is 30°, the angle between r21 and r22 is 25°, the angle between r10 and the X-axis is 30°, the angle between r20 and the X-axis is 45°, the angle between r10 and the Y-axis is 60°, and the angle between r20 and the X-axis is 45°.

[0056] Then the angle change of the light source in the front-to-back mirror movement direction is 5°; the angle change of the light source in the left-right mirror movement direction is -15°; and the angle change of the light source in the up-and-down mirror movement direction is 15°.

[0057] In some possible implementations of the embodiments of the present application, the object light source includes N light sources, where N is an integer greater than 1; determining the average value of the angle change in each mirror movement direction based on the angle change may include: when the tracked shooting object is the object light source, calculating the sum of the angle changes of the first reference light source in the front-to-back mirror movement direction to obtain a first sum value; determining the ratio of the first sum value to the number of first reference light sources as the average value of the angle change in the front-to-back mirror movement direction; wherein the first reference light source is a light source corresponding to the front-to-back mirror movement direction among the N light sources; calculating the sum of the angle changes of the second reference light source in the left-to-right mirror movement direction to obtain a second sum value; determining the ratio of the second sum value to the number of second reference light sources as the average value of the angle change in the left-to-right mirror movement direction; wherein the second reference light source is a light source corresponding to the left-to-right mirror movement direction among the N light sources; calculating the sum of the angle changes of the third reference light source in the up-down mirror movement direction to obtain a third sum value; determining the ratio of the third sum value to the number of third reference light sources as the average value of the angle change in the up-down mirror movement direction; wherein the third reference light source is a light source corresponding to the up-down mirror movement direction among the N light sources.

[0058] In some possible implementations of the embodiments of the present application, in a scenario where a user wishes to achieve automatic camera movement shooting of a stage by means of light changes of a light source on the stage, when the tracked shooting object is an object light source, the average value of the angle change in each camera movement direction can be calculated according to the following formula (1).

[0059]

[0060] In formula (1), ΔAF1 is the average value of the angle change in the forward and backward mirror movement direction, N AF1 is the number of all light sources in the forward and backward mirror movement direction, ΔZ i ΔOIS is the angle change of the i-th light source in the front-to-back mirror direction when the mirror control direction is the front-to-back mirror direction; x1 is the average value of the angle change in the left and right mirror directions, N oisx1 is the number of all light sources whose mirror control direction is the left or right mirror direction, ΔX i ΔOIS is the angle change of the i-th light source in the left and right mirror movement direction when the mirror movement control direction is the left and right mirror movement direction; y1 is the average value of the angle change in the up and down mirror movement direction, N oisy1 is the number of all light sources whose mirror control direction is up and down, ΔY i is the angle change of the i-th light source in the up-down mirror movement direction whose mirror movement control direction is the up-down mirror movement direction.

[0061] For example, in combination with the above Figure 3 The tracked light sources include light source A, light source C, light source D and light source F; the mirror movement control directions of light source A, light source C and light source D are set to be the front-to-back mirror movement direction, the mirror movement control direction of light source C is the left-right mirror movement direction, and the mirror movement control direction of light source F is the up-down mirror movement direction.

[0062] The angle changes of light source A in the front-to-back, left-to-right, and up-and-down directions are 6°, -15°, and 15°, respectively; the angle changes of light source C in the front-to-back, left-to-right, and up-and-down directions are 10°, 30°, and -30°, respectively; the angle changes of light source D in the front-to-back, left-to-right, and up-and-down directions are -10°, -20°, and 20°, respectively; the angle changes of light source F in the front-to-back, left-to-right, and up-and-down directions are 8°, 16°, and -16°, respectively.

[0063] Then the average value of the angle change in the front-back mirror movement direction is: (6°+10°-10°) / 3, that is, 2°. The average value of the angle change in the left-right mirror movement direction is: 30° / 1, that is, 30°. It can be understood that since only light source C is controlling the mirror movement in the left-right mirror movement direction, at this time, the average value of the angle change in the left-right mirror movement direction is the angle change of light source C in the left-right mirror movement direction. The average value of the angle change in the up-down mirror movement direction is: -16° / 1, that is, -16°. It can be understood that since only light source F is controlling the mirror movement in the up-down mirror movement direction, at this time, the average value of the angle change in the up-down mirror movement direction is the angle change of light source F in the up-down mirror movement direction.

[0064] In some possible implementations of the embodiments of the present application, determining an average value of the angle change in each mirror movement direction based on the angle change may include: when the tracked photographic object is a non-light source object, calculating the sum of the angle changes of the fourth reference light source in the front and back mirror movement directions to obtain a fourth sum value; determining the ratio of the fourth sum value to the number of fourth reference light sources as the average value of the angle changes in the front and back mirror movement directions; wherein the fourth reference light source is a light source among the object light sources that illuminates the photographic object; calculating the sum of the angle changes of the fourth reference light source in the left and right mirror movement directions to obtain a fifth sum value; determining the ratio of the fifth sum value to the number of fourth reference light sources as the average value of the angle changes in the left and right mirror movement directions; calculating the sum of the angle changes of the fourth reference light source in the up and down mirror movement directions to obtain a sixth sum value; and determining the ratio of the sixth sum value to the number of fourth reference light sources as the average value of the angle changes in the up and down mirror movement directions.

[0065] In some possible implementations of the embodiments of the present application, in a scenario where a user wishes to automatically move the camera to shoot the stage through the movement of characters on the stage, when the tracked subject is a person, the average value of the angle change in each camera direction can be calculated according to the following formula (2).

[0066]

[0067] In formula (2), ΔAF2 is the average value of the angle change in the front and rear mirror movement directions, N AF2 is the number of light sources corresponding to all characters in the forward and backward camera movement direction, ΔZ j ΔOIS is the angle change of the jth light source in the forward and backward direction among all the light sources corresponding to the characters in the forward and backward direction; x2 is the average value of the angle change in the left and right mirror directions, N oisx2 is the number of light sources corresponding to all characters whose camera movement direction is left or right, ΔX jΔOIS is the angle change of the jth light source in the left and right direction of the camera among all the light sources corresponding to the characters in the left and right direction of the camera; y2 is the average value of the angle change in the up and down mirror movement direction, N oisy2 ΔY is the number of light sources corresponding to all characters in the up and down camera movement direction. j It is the angle change of the jth light source in the up-down direction among the light sources corresponding to all characters whose camera control direction is the up-down direction.

[0068] For example, in combination with the above Figure 5 , the tracked characters include character I and character J; the camera movement control directions of character I and character J are set to be the front-to-back camera movement direction, the camera movement control direction of character I is the left-right camera movement direction, and the camera movement control direction of character J is the up-down camera movement direction. When character I and character J are set as tracked characters, the light sources irradiating character I are light source A, light source C, light source D, and light source F, and the light source irradiating character J is light source B.

[0069] When calculating the average value of the angle change in each direction of movement, the angle changes of light source A in the front-to-back direction, left-to-right direction, and up-down direction are 6°, -15°, and 15°, respectively; the angle changes of light source B in the front-to-back direction, left-to-right direction, and up-down direction are 10°, 30°, and -30°, respectively; the angle changes of light source C in the front-to-back direction, left-to-right direction, and up-down direction are 10°, 30°, and -30°, respectively; the angle changes of light source D in the front-to-back direction, left-to-right direction, and up-down direction are -10°, -20°, and 20°, respectively; the angle changes of light source F in the front-to-back direction, left-to-right direction, and up-down direction are 14°, 16°, and -16°, respectively.

[0070] The average value of the angle change in the forward and backward movement direction is: (6°+10°+10°-10°+14°) / 5, that is, 6°; the average value of the angle change in the left and right movement direction is: (6°+10°-10°+14°) / 5, that is, 6°; the average value of the angle change in the up and down movement direction is: (-30°) / 1, that is, -30°.

[0071] In some possible implementations of the embodiments of the present application, it is possible to select certain light sources and certain people as objects to be tracked. In this case, the average value of the angle change in each camera movement direction corresponding to the light source can be calculated according to the above formula (1), and the average value of the angle change in each camera movement direction corresponding to the person can be calculated according to the above formula (2), and then the two values ​​are averaged to obtain the final average value of the angle change in each camera movement direction.

[0072] In some possible implementations of the embodiments of the present application, determining the movement amount of the focus motor and the movement amount of the anti-shake motor according to the average value of the angle change and the preset mirror movement range corresponding to each mirror movement direction may include: calculating a fourth difference between the maximum value and the minimum value of the mirror movement range corresponding to the front and rear mirror movement directions; determining the movement amount of the focus motor according to the fourth difference and the average value of the angle change in the front and rear mirror movement directions; calculating a fifth difference between the maximum value and the minimum value of the mirror movement range corresponding to the left and right mirror movement directions; determining the lateral movement amount of the anti-shake motor according to the fifth difference and the average value of the angle change in the left and right mirror movement directions; calculating the sixth difference between the maximum value and the minimum value of the mirror movement range corresponding to the upper and lower mirror movement directions; and determining the longitudinal movement amount of the anti-shake motor according to the sixth difference and the average value of the angle change in the upper and lower mirror movement directions.

[0073] In some possible implementations of the embodiments of the present application, the camera movement range corresponding to each camera movement direction may be pre-set.

[0074] For example, Figure 7 As shown, Figure 7 Schematic diagram of setting the camera movement range provided in some embodiments of the present application. Figure 7 In the , the forward and backward movement direction corresponds to the movement range of Z1 to Z2, the left and right movement direction corresponds to the movement range of X1 to X2, and the up and down movement direction corresponds to the movement range of Y1 to Y2.

[0075] In some possible implementations of the embodiments of the present application, the movement amount of the focus motor, the lateral movement amount of the anti-shake motor, and the longitudinal movement amount of the anti-shake motor can be determined according to the following formula (3).

[0076]

[0077] In formula (3), AF code is the movement amount of the focus motor, ΔAF is the average value of the angle change in the front and back mirror movement direction, Z2 is the maximum value of the mirror movement range corresponding to the front and back mirror movement direction, and Z1 is the minimum value of the mirror movement range corresponding to the front and back mirror movement direction; OISx code is the lateral movement of the anti-shake motor, ΔOISx is the average value of the angle change in the left and right mirror movement directions, X2 is the maximum value of the mirror movement range corresponding to the left and right mirror movement directions, and X1 is the minimum value of the mirror movement range corresponding to the left and right mirror movement directions; OISy codeis the longitudinal movement of the anti-shake motor, ΔOISy is the average value of the angle change in the up and down mirror movement direction, Y2 is the maximum value of the mirror movement range corresponding to the up and down mirror movement direction, and Y1 is the minimum value of the mirror movement range corresponding to the up and down mirror movement direction; a, b, c, d, e and f are the conversion parameters for converting the average angle change to the movement amount, and a, b, c, d, e and f can be set according to actual needs. Optionally, the values ​​of a, c and e can be 180, the value of b can be 512, and the values ​​of d and f can be 1000.

[0078] For example, the average value of the angle change in the front-to-back direction is 9°, the average value of the angle change in the left-to-right direction is -27°, and the average value of the angle change in the up-down direction is 36°. The values ​​of a, c, and e are all 180, the value of b is 512, the values ​​of d and f are 1000, and Z2, Z1, X2, X1, Y2, and Y1 are 10, 5, 10, 5, 10, 5, respectively.

[0079] The movement of the focus motor AF code The lateral movement of the image stabilization motor is 128 steps (Code). code -750Code, the longitudinal movement of the anti-shake motor OISy code It is 1000Code.

[0080] In practical applications, after the movement amount of the motor in steps is determined, the movement amount of the motor in steps can be converted into the movement distance of the motor in micrometers according to the linearity of the motor.

[0081] For example, assuming that the linearity of the motor is 5000 steps / micron, after unit conversion, it can be concluded that the moving distance of the focus motor is 0.0256 microns, the lateral moving distance of the anti-shake motor is -0.15 microns, and the longitudinal moving distance of the anti-shake motor is 0.2 microns.

[0082] Step 102: Control the camera to move the camera according to the first camera movement control information.

[0083] After the movement amount of the focus motor, the lateral movement amount of the anti-shake motor and the longitudinal movement amount of the anti-shake motor are calculated by the above formula (3), the focus motor and the anti-shake motor can be controlled to move the corresponding movement amount to realize automatic mirror movement.

[0084] In some possible implementations of the embodiments of the present application, when the movement amount of the focus motor AF code When it is positive, the focus motor moves forward. When the movement amount of the focus motor is AF code When it is negative, the focus motor moves backward; when the lateral movement of the image stabilization motor OISx codeWhen it is positive, the image stabilization motor moves to the left. When the lateral movement of the image stabilization motor is OISx code When it is negative, the image stabilization motor moves to the right; when the longitudinal movement of the image stabilization motor OISy code When the vertical movement of the anti-shake motor is OISy, the anti-shake motor moves upward. code When negative, the image stabilization motor moves downward.

[0085] For example, the movement amount of the focus motor AF code The lateral movement of the image stabilization motor is 128 steps. code -750 steps, the longitudinal movement of the image stabilization motor OISy code The focus motor is controlled to move forward 128 steps, that is, to move forward 0.0256 microns, the anti-shake motor is controlled to move right 750 steps, that is, to move right 0.15 microns, and upward 1000 steps, that is, to move upward 0.2 microns.

[0086] It should be noted that the movement amount of the focus motor, the lateral movement amount of the anti-shake motor, and the longitudinal movement amount of the anti-shake motor calculated in the embodiment of the present application are only an example of the present application.

[0087] In an embodiment of the present application, the first camera movement parameter information is determined based on the first light information of the object light source in the first preview image, wherein the object light source is the light source corresponding to the tracked shooting object among at least two light sources in the shooting scene; and the camera movement parameters are adjusted based on the first camera movement parameter information. In this way, the camera movement parameters can be automatically adjusted based on the light source in the shooting scene, so that the user can use the electronic device to capture the image of interest in the stage scene in time, without missing any exciting and dynamic moments. By automatically adjusting the camera movement parameters, the dynamic effect of the video captured is increased, creating a dynamic atmosphere of the shooting scene.

[0088] It should be noted that after a certain light source is selected as the light source to be tracked, if the light source disappears from the first preview image, that is, the light source cannot be detected from the first preview image and the light information of the light source in the first preview image cannot be obtained, then in the process of determining the movement amount of the focus motor, the lateral movement amount of the anti-shake motor and the longitudinal movement amount of the anti-shake motor, the light source is ignored.

[0089] Exemplarily, in a scene where a user hopes to achieve automatic camera movement shooting of the stage by changing the light of the light sources on the stage, the tracked light sources include light source A, light source C, light source D and light source F. The camera movement control directions of light sources A, C and D are set to be front-to-back camera movement directions, the camera movement control direction of light source C is set to be left-to-right camera movement directions, and the camera movement control direction of light source F is set to be up-and-down camera movement directions.

[0090] When the light source C disappears, the average value of the angle change in the front-to-back direction is: the ratio of the sum of the angle change of the light source A in the front-to-back direction and the angle change of the light source D in the front-to-back direction to 2; the average value of the angle change in the left-right direction is 0, and no camera movement control is performed in the left-right direction; the average value of the angle change in the up-down direction is the angle change of the light source F in the up-down direction.

[0091] As another example, in a scene where a user wishes to achieve automatic camera movement of a stage through the movement of characters on the stage, after a certain character is selected as the object to be tracked, if the character disappears from the first preview image, that is, the character cannot be detected from the first preview image, then in the process of determining the movement amount of the focus motor, the lateral movement amount of the anti-shake motor, and the longitudinal movement amount of the anti-shake motor, the character is ignored.

[0092] For example, in combination with the above Figure 5 , the tracked persons are person I and person J. When the tracked persons are set to be person I and person J, the light sources irradiating person I are light source A, light source C, light source D and light source F, and the light source irradiating person J is light source B. The camera movement control directions of person I and person J are set to be the front-to-back camera movement direction, the camera movement control direction of person I is the left-to-right camera movement direction, and the camera movement control direction of person J is the up-down camera movement direction.

[0093] When character J disappears, the average value of the angle change in the front-to-back direction is: the ratio of the angle change of light source A, light source C, light source D, and light source F in the front-to-back direction to 4. Assuming that the angle changes of light source A, light source C, light source D, and light source F in the front-to-back direction are 5°, 6°, 2°, and 7°, respectively, then when character J disappears, the average value of the angle change in the front-to-back direction is (5°+6°+2°+7°) / 4, that is, 5°.

[0094] When character J disappears, the average value of the angle change in the left and right camera direction is: the ratio of the angle change of light source A, light source C, light source D and light source F in the left and right camera direction to 4. Assuming that the angle changes of light source A, light source C, light source D and light source F in the left and right camera direction are 3°, 3°, 2° and 0° respectively, then when character J disappears, the average value of the angle change in the front and back camera direction is (3°+3°+2°+0°) / 4, that is, 2°.

[0095] When character J disappears, since the camera movement control direction of character J is the up-down camera movement direction, character I does not perform camera movement control in the up-down camera movement direction. When character J disappears, no camera movement control is performed in the up-down camera movement direction.

[0096] As another example, in a scene where the user hopes to achieve automatic camera movement of the stage through the movement of characters on the stage, after a certain character is selected as the object to be tracked, if a light source illuminating the character disappears from the first preview image, that is, the light source cannot be detected from the first preview image, then in the process of determining the movement amount of the focus motor, the lateral movement amount of the anti-shake motor, and the longitudinal movement amount of the anti-shake motor, the light source is ignored.

[0097] For example, in combination with the above Figure 5 , the tracked persons are person I and person J. When the tracked persons are set to be person I and person J, the light sources irradiating person I are light source A, light source C, light source D and light source F, and the light source irradiating person J is light source B. The camera movement control directions of person I and person J are set to be the front-to-back camera movement direction, the camera movement control direction of person I is the left-to-right camera movement direction, and the camera movement control direction of person J is the up-down camera movement direction.

[0098] When light source A has not disappeared, the average value of the angle change in the front-to-back direction is: the ratio of the sum of the angle change of light source A in the front-to-back direction, the angle change of light source C in the front-to-back direction, the angle change of light source D in the front-to-back direction, the angle change of light source F in the front-to-back direction and the angle change of light source B in the front-to-back direction to 5; when light source A disappears, the average value of the angle change in the front-to-back direction is: the ratio of the sum of the angle change of light source C in the front-to-back direction, the angle change of light source D in the front-to-back direction, the angle change of light source F in the front-to-back direction and the angle change of light source B in the front-to-back direction to 4.

[0099] When light source A has not disappeared, the average value of the angle change in the left and right mirror movement direction is: the ratio of the sum of the angle change of light source A in the front and back mirror movement direction, the angle change of light source C in the front and back mirror movement direction, the angle change of light source D in the front and back mirror movement direction and the angle change of light source F in the front and back mirror movement direction to 4; when light source A disappears, the average value of the angle change in the left and right mirror movement direction is: the ratio of the sum of the angle change of light source C in the front and back mirror movement direction, the angle change of light source D in the front and back mirror movement direction and the angle change of light source F in the front and back mirror movement direction to 3.

[0100] When light source A is not gone, the average value of the angle change in the up-down direction is: the angle change of light source B; when light source A disappears, the average value of the angle change in the up-down direction is: the angle change of light source B. Since light source A is not the light source illuminating person J, it will not affect the control of the up-down direction.

[0101] Exemplarily, when light source A, light source C, light source D, light source F and light source B are all present, the angle changes of light source A in the front-to-back direction, left-to-right direction and up-and-down direction are 6°, -15° and 15° respectively; the angle changes of light source C in the front-to-back direction, left-to-right direction and up-and-down direction are 10°, 30° and -30° respectively; the angle changes of light source D in the front-to-back direction, left-to-right direction and up-and-down direction are -10°, -20° and 20° respectively; the angle changes of light source F in the front-to-back direction, left-to-right direction and up-and-down direction are 14°, 16° and -16° respectively, and the angle changes of light source B in the front-to-back direction, left-to-right direction and up-and-down direction are 5°, 17° and -17° respectively.

[0102] The average value of the angle change in the forward and backward movement direction is: (6°+10°-10°+14°+5°) / 5, that is, 5°; the average value of the angle change in the left and right movement direction is: (-15°+30°-20°+17°) / 4, that is, 3°; the average value of the angle change in the up and down movement direction is: (-17°) / 1, that is, -17°.

[0103] When light source C, light source D, light source F and light source B are not disappeared, but light source A disappears, the angle changes of light source C in the front-to-back direction, left-to-right direction and up-down direction are 10°, 30° and -30° respectively; the angle changes of light source D in the front-to-back direction, left-to-right direction and up-down direction are -10°, -20° and 20° respectively; the angle changes of light source F in the front-to-back direction, left-to-right direction and up-down direction are 14°, 16° and -16° respectively; the angle changes of light source B in the front-to-back direction, left-to-right direction and up-down direction are 5°, 17° and -17° respectively.

[0104] The average value of the angle change in the forward and backward movement direction is: (10°-10°+14°+5°) / 4, that is, 4.75°; the average value of the angle change in the left and right movement direction is: (30°-20°+17°) / 3, that is, 9°; the average value of the angle change in the up and down movement direction is: (-17°) / 1, that is, -17°.

[0105] In some possible implementations of the embodiments of the present application, after step 102, the camera movement control method provided by the embodiments of the present application may further include: when a new object in the shooting scene is detected through the first preview image, displaying prompt information; wherein the prompt information is used to determine whether to determine the new object as the tracked shooting object; when the second object is determined as the tracked shooting object, determining second camera movement parameter information of the camera according to third light information of the object light source in the third preview image, wherein the object light source includes the light source corresponding to the new object in the shooting scene; and adjusting the camera movement parameters according to the second camera movement parameter information.

[0106] In some possible implementations of the embodiments of the present application, there is a situation where a new object appears in the shooting scene, for example, a new light source is started or a new person appears. At this time, when the newly added object is detected in the shooting scene, a prompt message can be displayed to prompt whether to determine the newly added object as the tracked shooting object. If the user determines the newly added object as the tracked shooting object, the camera movement control direction of the newly added object can be set, and then, according to the third light information of the object light source in the third preview image, the second camera movement parameter information of the camera is determined; according to the second camera movement parameter information, the camera movement parameters are adjusted. Among them, according to the third light information of the object light source in the third preview image, the second camera movement parameter information of the camera is determined; according to the second camera movement parameter information, the process of adjusting the camera movement parameters is similar to the above-mentioned process of determining the first camera movement parameter information of the camera according to the first light information of the object light source in the first preview image; according to the first camera movement parameter information, the camera movement parameters are adjusted, and the embodiments of the present application will not be repeated here.

[0107] For example, it is assumed that during the shooting process, light source A and light source B are set as the tracked objects, and the camera's camera movement parameters are adjusted according to the light information of light source A and light source B. When a new object C is detected in the preview image, the user sets light source C as the tracked object as well. Then, the camera's camera movement parameters are adjusted according to the light information of light sources A, B and C.

[0108] For example, in a scene where a user wants to realize automatic camera movement of a stage by changing the light of a light source on the stage, when a new light source appears on the stage, the following is displayed: Figure 8 The interface shown, Figure 8 is a schematic diagram of the appearance of a newly added light source provided in some embodiments of the present application. Figure 8 The new light source that appears in the image is light source G. When the user sets light source G as the tracked light source, it is displayed Fig. 9 The interface shown, Fig. 9 Schematic diagram of the lens movement control direction of setting a new light source provided in an embodiment of the present application. Fig. 9The user can set the mirror control direction of the light source G.

[0109] In an exemplary embodiment, in a scene where the user wishes to realize automatic camera movement of the stage through the movement of characters on the stage, when a new character appears on the stage, the following is displayed: Fig.10 The interface shown, Fig.10 Schematic diagram of the appearance of new characters provided in some embodiments of the present application. Fig.10 The new character that appears in the image is character L. When the user sets character L as the tracked character, it is displayed Fig.11 The interface shown, Fig.11 Schematic diagram of setting the camera movement control direction of a newly added character provided in an embodiment of the present application. Fig.11 The user can set the camera control direction of character L.

[0110] In an embodiment of the present application, during the shooting process, when a new object appears in the shooting scene, the tracked shooting object can be updated in time, and then the camera movement parameters can be adjusted based on the light source corresponding to the updated shooting object, thereby meeting the user's shooting needs.

[0111] The camera movement parameter adjustment device provided in the embodiment of the present application can be executed by the camera movement parameter adjustment device. In the embodiment of the present application, the camera movement parameter adjustment device executing the camera movement parameter adjustment method is taken as an example to illustrate the camera movement parameter adjustment device provided in the embodiment of the present application.

[0112] Fig.12 1 is a schematic diagram of the structure of a camera movement parameter adjustment device provided in some embodiments of the present application. The camera movement parameter adjustment device 1200 may include:

[0113] A determination module 1201 is used to determine first camera movement parameter information of the camera according to first light information of the object light source in the first preview image, wherein the object light source is a light source corresponding to the tracked shooting object among at least two light sources in the shooting scene;

[0114] The adjustment module 1202 is used to adjust the camera's camera movement parameters according to the first camera movement parameter information.

[0115] In the embodiment of the present application, the first camera movement parameter information of the camera is determined according to the first light information of the object light source in the first preview image, wherein the object light source is the light source corresponding to the tracked shooting object among the at least two light sources in the shooting scene; and the camera movement parameter of the camera is adjusted according to the first camera movement parameter information. In this way, the camera movement parameter can be automatically adjusted according to the light source in the shooting scene, so that the user can use the electronic device to capture the image of interest in the stage scene in a timely manner.

[0116] In some possible implementations of the embodiments of the present application, the mirror movement control information includes the movement amount of the focus motor and the movement amount of the anti-shake motor; accordingly, the determination module 1201 may include:

[0117] A first determination submodule is used to determine the angle changes corresponding to the object light source in three camera movement directions according to the first light information and the second light information; wherein the second light information is the light information of the object light source in the second preview image, the second preview image is a preview image adjacent to the first preview image, the acquisition time of the second preview image is earlier than the acquisition time of the first preview image, and the three camera movement directions include a front-to-back camera movement direction, a left-to-right camera movement direction, and an up-and-down camera movement direction;

[0118] The second determination submodule is used to determine the average value of the angle variation in each mirror movement direction according to the angle variation;

[0119] The third determination submodule is used to determine the movement amount of the focus motor and the movement amount of the anti-shake motor according to the average value of the angle change amount and the preset lens movement range corresponding to each lens movement direction.

[0120] In an embodiment of the present application, the changes in the light source corresponding to the tracked object in the shooting scene can be converted into the movement of the focus motor and the anti-shake motor. The movement of the focus motor and the anti-shake motor is utilized to increase the sense of movement in the shooting, thereby creating a dynamic atmosphere that restores the shooting scene.

[0121] In some possible implementations of the embodiments of the present application, the first determining submodule is specifically used to:

[0122] A rectangular coordinate system is established with the imaging position of the object light source in the first preview image as the origin, the horizontal direction as the X-axis, and the vertical direction as the Y-axis;

[0123] Determine a first difference between a first angle corresponding to the first light information and a second angle corresponding to the second light information as an angle change amount of the object light source in the forward and backward mirror movement direction;

[0124] The second difference between the third angle and the fourth angle is determined as the angle change of the object light source in the left and right mirror movement direction; wherein the third angle is the angle between the bisector of the first angle and the X-axis, and the fourth angle is the angle between the bisector of the second angle and the X-axis;

[0125] The third difference between the fifth angle and the sixth angle is determined as the angular change of the object light source in the up and down mirror movement direction; wherein the fifth angle is the angle between the bisector of the first angle and the Y-axis, and the sixth angle is the angle between the bisector of the second angle and the Y-axis.

[0126] In some possible implementations of the embodiments of the present application, the object light source includes N light sources, where N is an integer greater than 1; and the second determining submodule is specifically configured to:

[0127] In the case where the tracked photographic object is an object light source, the sum of the angle changes of the first reference light source in the front-to-back mirror movement direction is calculated to obtain a first sum value; the ratio of the first sum value to the number of first reference light sources is determined as the average value of the angle changes in the front-to-back mirror movement direction; wherein the first reference light source is a light source corresponding to the front-to-back mirror movement direction among the N light sources;

[0128] Calculate the sum of the angle changes of the second reference light source in the left and right mirror movement directions to obtain a second sum value; determine the ratio of the second sum value to the number of second reference light sources as the average value of the angle changes in the left and right mirror movement directions; wherein the second reference light source is a light source corresponding to the left and right mirror movement directions among the N light sources;

[0129] Calculate the sum of the angular changes of the third reference light source in the up and down mirror movement direction to obtain a third sum value; determine the ratio of the third sum value to the number of third reference light sources as the average value of the angular changes in the up and down mirror movement direction; wherein the third reference light source is a light source corresponding to the up and down mirror movement direction among the N light sources.

[0130] In some possible implementations of the embodiments of the present application, the second determining submodule is specifically used to:

[0131] In the case where the tracked photographic object is a non-light source object, the sum of the angle changes of the fourth reference light source in the front-back mirror movement direction is calculated to obtain a fourth sum value; the ratio of the fourth sum value to the number of fourth reference light sources is determined as the average value of the angle changes in the front-back mirror movement direction; wherein the fourth reference light source is a light source in the object light source that illuminates the photographic object;

[0132] Calculating the sum of the angle changes of the fourth reference light source in the left and right mirror movement directions to obtain a fifth sum value; determining the ratio of the fifth sum value to the number of the fourth reference light sources as the average value of the angle changes in the left and right mirror movement directions;

[0133] The sum of the angle changes of the fourth reference light sources in the up-and-down mirror movement direction is calculated to obtain a sixth sum value; and the ratio of the sixth sum value to the number of fourth reference light sources is determined as the average value of the angle changes in the up-and-down mirror movement direction.

[0134] In some possible implementations of the embodiments of the present application, the third determining submodule is specifically used to:

[0135] Calculating a fourth difference between the maximum value and the minimum value of the mirror movement range corresponding to the front and rear mirror movement directions;

[0136] Determine the movement amount of the focus motor according to the fourth difference and the average value of the angle change in the front and rear mirror movement directions;

[0137] Calculate the fifth difference between the maximum value and the minimum value of the camera movement range corresponding to the left and right camera movement directions;

[0138] Determine the lateral movement of the anti-shake motor according to the fifth difference and the average value of the angle changes in the left and right mirror movement directions;

[0139] Calculate the sixth difference between the maximum value and the minimum value of the camera movement range corresponding to the up and down camera movement directions;

[0140] The longitudinal movement amount of the anti-shake motor is determined according to the sixth difference value and the average value of the angle change amounts in the up and down mirror movement directions.

[0141] In some possible implementations of the embodiments of the present application, the mirror movement control device provided in the embodiments of the present application further includes:

[0142] The display module is used to display prompt information when a new object in the shooting scene is detected through the first preview image; wherein the prompt information is used to prompt whether the new object is determined as the tracked shooting object; when the new object is determined as the tracked shooting object, the determination module 1201 is triggered.

[0143] In an embodiment of the present application, during the shooting process, when a new object appears in the shooting scene, the tracked shooting object can be updated in time, and then the camera movement parameters can be adjusted based on the light source corresponding to the updated shooting object, thereby meeting the user's shooting needs.

[0144] The mirror movement parameter adjustment device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0145] The camera movement parameter adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0146] The mirror movement parameter adjustment device provided in the embodiment of the present application can achieve Figures 1 to 11 To avoid repetition, the various processes implemented by the embodiment of the lens movement parameter adjustment device are not described here.

[0147] Alternatively, if Fig.13 As shown, the embodiment of the present application also provides an electronic device 1300, including a processor 1301 and a memory 1302, and the memory 1302 stores a program or instruction that can be executed on the processor 1301. When the program or instruction is executed by the processor 1301, the various steps of the embodiment of the lens movement parameter adjustment method provided in the embodiment of the present application are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0148] Fig.14 It is a schematic diagram of the hardware structure of an electronic device implementing some embodiments of the present application.

[0149] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, and a processor 1410 and other components.

[0150] Those skilled in the art will appreciate that the electronic device 1400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0151] Among them, the processor 1410 is used to: determine the first camera movement parameter information of the camera based on the first light information of the object light source in the first preview image, wherein the object light source is the light source corresponding to the tracked object among at least two light sources in the shooting scene; and adjust the camera movement parameters according to the first camera movement parameter information.

[0152] In the embodiment of the present application, the first camera movement parameter information is determined according to the first light information of the object light source in the first preview image, wherein the object light source is the light source corresponding to the tracked object among the at least two light sources in the shooting scene; and the camera movement parameter is adjusted according to the first camera movement parameter information. In this way, the camera movement parameter can be automatically adjusted according to the light source in the shooting scene, so that the user can capture the desired image in time.

[0153] In some possible implementations of the embodiments of the present application, the mirror movement control information includes the movement amount of the focus motor and the movement amount of the anti-shake motor; accordingly, the processor 1410 is specifically used to:

[0154] Determine, according to the first light information and the second light information, the angle changes corresponding to the object light source in the three camera movement directions respectively; wherein the second light information is the light information of the object light source in the second preview image, the second preview image is a preview image adjacent to the first preview image, the acquisition time of the second preview image is earlier than the acquisition time of the first preview image, and the three camera movement directions include a front-to-back camera movement direction, a left-to-right camera movement direction, and an up-and-down camera movement direction;

[0155] According to the angle change, determine the average value of the angle change in each camera movement direction;

[0156] The movement amount of the focus motor and the movement amount of the anti-shake motor are determined according to the average value of the angle variation and the preset lens movement range corresponding to each lens movement direction.

[0157] In an embodiment of the present application, the changes in the light source corresponding to the tracked object in the shooting scene can be converted into the movement of the focus motor and the anti-shake motor. The movement of the focus motor and the anti-shake motor is utilized to increase the sense of movement in the shooting, thereby creating a dynamic atmosphere that restores the shooting scene.

[0158] In some possible implementations of the embodiments of the present application, the processor 1410 is specifically configured to:

[0159] A rectangular coordinate system is established with the imaging position of the object light source in the first preview image as the origin, the horizontal direction as the X-axis, and the vertical direction as the Y-axis;

[0160] Determine a first difference between a first angle corresponding to the first light information and a second angle corresponding to the second light information as an angle change amount of the object light source in the forward and backward mirror movement direction;

[0161] The second difference between the third angle and the fourth angle is determined as the angle change of the object light source in the left and right mirror movement direction; wherein the third angle is the angle between the bisector of the first angle and the X-axis, and the fourth angle is the angle between the bisector of the second angle and the X-axis;

[0162] The third difference between the fifth angle and the sixth angle is determined as the angular change of the object light source in the up and down mirror movement direction; wherein the fifth angle is the angle between the bisector of the first angle and the Y-axis, and the sixth angle is the angle between the bisector of the second angle and the Y-axis.

[0163] In some possible implementations of the embodiments of the present application, the object light source includes N light sources, where N is an integer greater than 1; the processor 1410 is specifically configured to:

[0164] In the case where the tracked photographic object is an object light source, the sum of the angle changes of the first reference light source in the front-to-back mirror movement direction is calculated to obtain a first sum value; the ratio of the first sum value to the number of first reference light sources is determined as the average value of the angle changes in the front-to-back mirror movement direction; wherein the first reference light source is a light source corresponding to the front-to-back mirror movement direction among the N light sources;

[0165] Calculate the sum of the angle changes of the second reference light source in the left and right mirror movement directions to obtain a second sum value; determine the ratio of the second sum value to the number of second reference light sources as the average value of the angle changes in the left and right mirror movement directions; wherein the second reference light source is a light source corresponding to the left and right mirror movement directions among the N light sources;

[0166] Calculate the sum of the angular changes of the third reference light source in the up and down mirror movement direction to obtain a third sum value; determine the ratio of the third sum value to the number of third reference light sources as the average value of the angular changes in the up and down mirror movement direction; wherein the third reference light source is a light source corresponding to the up and down mirror movement direction among the N light sources.

[0167] In some possible implementations of the embodiments of the present application, the processor 1410 is specifically configured to:

[0168] In the case where the tracked photographic object is a non-light source object, the sum of the angle changes of the fourth reference light source in the front-back mirror movement direction is calculated to obtain a fourth sum value; the ratio of the fourth sum value to the number of fourth reference light sources is determined as the average value of the angle changes in the front-back mirror movement direction; wherein the fourth reference light source is a light source in the object light source that illuminates the photographic object;

[0169] Calculating the sum of the angle changes of the fourth reference light source in the left and right mirror movement directions to obtain a fifth sum value; determining the ratio of the fifth sum value to the number of the fourth reference light sources as the average value of the angle changes in the left and right mirror movement directions;

[0170] The sum of the angle changes of the fourth reference light sources in the up-and-down mirror movement direction is calculated to obtain a sixth sum value; and the ratio of the sixth sum value to the number of fourth reference light sources is determined as the average value of the angle changes in the up-and-down mirror movement direction.

[0171] In some possible implementations of the embodiments of the present application, the processor 1410 is specifically configured to:

[0172] Calculating a fourth difference between the maximum value and the minimum value of the mirror movement range corresponding to the front and rear mirror movement directions;

[0173] Determine the movement amount of the focus motor according to the fourth difference and the average value of the angle change in the front and rear mirror movement directions;

[0174] Calculate the fifth difference between the maximum value and the minimum value of the camera movement range corresponding to the left and right camera movement directions;

[0175] Determine the lateral movement of the anti-shake motor according to the fifth difference and the average value of the angle changes in the left and right mirror movement directions;

[0176] Calculate the sixth difference between the maximum value and the minimum value of the camera movement range corresponding to the up and down camera movement directions;

[0177] The longitudinal movement amount of the anti-shake motor is determined according to the sixth difference value and the average value of the angle change amounts in the up and down mirror movement directions.

[0178] In some possible implementations of the embodiments of the present application, the display unit 1406 is used to:

[0179] In the case where a newly added object in the shooting scene is detected through the first preview image, prompt information is displayed; wherein the prompt information is used to prompt whether to determine the added object as a tracked shooting object;

[0180] Processor 1410 is also used to: when a newly added object is determined as a tracked photographic object, determine second camera movement parameter information of the camera based on third light information of the object light source in a third preview image, wherein the object light source includes a light source corresponding to the newly added object in the photographic scene; and adjust the camera movement parameters according to the second camera movement parameter information.

[0181] In an embodiment of the present application, during the shooting process, when a new object appears in the shooting scene, the tracked shooting object can be updated in time, and then the camera movement parameters can be adjusted based on the light source corresponding to the updated shooting object, thereby meeting the user's shooting needs.

[0182] It should be understood that in the embodiment of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1407 includes a touch panel 14071 and at least one of other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0183] The memory 1409 can be used to store software programs and various data. The memory 1409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0184] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.

[0185] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the embodiment of the lens movement parameter adjustment method provided in the embodiment of the present application are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0186] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, and examples of computer-readable storage media include non-transitory computer-readable media, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0187] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the embodiment of the lens movement parameter adjustment method provided in the embodiment of the present application, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0188] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0189] The embodiment of the present application also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the embodiment of the lens movement parameter adjustment method provided in the embodiment of the present application, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0190] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0191] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0192] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for adjusting camera parameters, characterized in that: The method comprises: Determining first camera movement parameter information of the camera according to first light information of the object light source in the first preview image, wherein the object light source is a light source corresponding to the tracked shooting object among at least two light sources in the shooting scene; Adjust the camera movement parameters according to the first camera movement parameter information.

2. The method according to claim 1, characterized in that: The first lens movement parameter information includes a movement amount of a focus motor and a movement amount of an anti-shake motor; The determining, according to first light information of the object light source in the first preview image, first camera movement parameter information includes: Determine, according to the first light information and the second light information, the angle changes corresponding to the object light source in three camera movement directions respectively; wherein the second light information is the light information of the object light source in the second preview image, the second preview image is a preview image adjacent to the first preview image, the acquisition time of the second preview image is earlier than the acquisition time of the first preview image, and the three camera movement directions include a front-to-back camera movement direction, a left-to-right camera movement direction, and an up-and-down camera movement direction; According to the angle variation, determining an average value of the angle variation in each camera movement direction; The movement amount of the focus motor and the movement amount of the anti-shake motor are determined according to the average value of the angle variation and a preset lens movement range corresponding to each lens movement direction.

3. The method according to claim 2, characterized in that The step of determining the angle changes of the object light source in three mirror movement directions respectively according to the first light information and the second light information includes: Establishing a rectangular coordinate system with the imaging position of the object light source in the first preview image as the origin, the horizontal direction as the X-axis, and the vertical direction as the Y-axis; Determine a first difference between a first angle corresponding to the first light information and a second angle corresponding to the second light information as an angle change of the object light source in the forward and backward mirror movement direction; Determine a second difference between the third angle and the fourth angle as an angle change of the object light source in the left-right mirror movement direction; wherein the third angle is an angle between the bisector of the first angle and the X-axis, and the fourth angle is an angle between the bisector of the second angle and the X-axis; The third difference between the fifth angle and the sixth angle is determined as the angular change of the object light source in the up and down mirroring direction; wherein the fifth angle is the angle between the bisector of the first angle and the Y-axis, and the sixth angle is the angle between the bisector of the second angle and the Y-axis.

4. The method according to claim 2, characterized in that: The object light source includes N light sources, where N is an integer greater than 1; Determining the average value of the angle variation in each mirror movement direction according to the angle variation includes: In the case where the tracked photographic object is the object light source, the sum of the angle changes of the first reference light sources in the front-to-back mirror movement direction is calculated to obtain a first sum value; the ratio of the first sum value to the number of the first reference light sources is determined as the average value of the angle changes in the front-to-back mirror movement direction; wherein the first reference light source is a light source corresponding to the front-to-back mirror movement direction among the N light sources; Calculating the sum of the angle changes of the second reference light sources in the left-right mirror movement direction to obtain a second sum value; determining the ratio of the second sum value to the number of the second reference light sources as the average value of the angle changes in the left-right mirror movement direction; wherein the second reference light source is a light source corresponding to the left-right mirror movement direction among the N light sources; Calculate the sum of the angular changes of the third reference light source in the up-and-down mirror movement direction to obtain a third sum value; determine the ratio of the third sum value to the number of the third reference light sources as the average value of the angular changes in the up-and-down mirror movement direction; wherein the third reference light source is a light source among the N light sources corresponding to the up-and-down mirror movement direction.

5. The method according to claim 2, characterized in that: Determining the average value of the angle variation in each mirror movement direction according to the angle variation includes: In the case where the tracked photographic object is a non-light source object, the sum of the angle changes of the fourth reference light sources in the front-to-back mirror movement direction is calculated to obtain a fourth sum value; the ratio of the fourth sum value to the number of the fourth reference light sources is determined as the average value of the angle changes in the front-to-back mirror movement direction; wherein the fourth reference light source is a light source among the object light sources that illuminates the photographic object; Calculating the sum of the angle changes of the fourth reference light sources in the left and right mirror movement directions to obtain a fifth sum value; determining the ratio of the fifth sum value to the number of the fourth reference light sources as the average value of the angle changes in the left and right mirror movement directions; The sum of the angular changes of the fourth reference light sources in the up-and-down mirror movement direction is calculated to obtain a sixth sum value; and the ratio of the sixth sum value to the number of the fourth reference light sources is determined as the average angular change value in the up-and-down mirror movement direction.

6. The method according to claim 2, characterized in that The step of determining the movement amount of the focus motor and the movement amount of the anti-shake motor according to the average value of the angle variation and a preset lens movement range corresponding to each lens movement direction includes: Calculating a fourth difference between the maximum value and the minimum value of the mirror movement range corresponding to the front and rear mirror movement directions; Determining the movement amount of the focus motor according to the fourth difference and the average value of the angle change in the front-back mirror movement direction; Calculating a fifth difference between the maximum value and the minimum value of the mirror movement range corresponding to the left and right mirror movement directions; Determining a lateral movement amount of the anti-shake motor according to the fifth difference and an average value of the angle changes in the left and right mirror movement directions; Calculating a sixth difference between the maximum value and the minimum value of the mirror movement range corresponding to the up and down mirror movement directions; The longitudinal movement amount of the anti-shake motor is determined according to the sixth difference and the average value of the angle change amount in the up and down mirror movement direction.

7. The method according to claim 1, characterized in that After adjusting the camera movement parameters according to the first camera movement parameter information, the method further includes: In the case where a new object in the shooting scene is detected through the first preview image, prompt information is displayed; wherein the prompt information is used to prompt whether to determine the new object as a tracked shooting object; In the case where the newly added object is determined as the tracked photographic object, second camera movement parameter information of the camera is determined according to third light information of the object light source in the third preview image, wherein the object light source includes the light source corresponding to the newly added object in the shooting scene; and according to the second camera movement parameter information, the camera's camera movement parameters are adjusted.

8. A device for adjusting camera parameters, characterized in that: The device comprises: a determination module, configured to determine first camera movement parameter information of the camera according to first light information of the object light source in the first preview image, wherein the object light source is a light source corresponding to the tracked shooting object among at least two light sources in the shooting scene; An adjustment module is used to adjust the camera movement parameters according to the first camera movement parameter information.

9. The device according to claim 8, characterized in that The first lens movement parameter information includes a movement amount of a focus motor and a movement amount of an anti-shake motor; The determination module comprises: A first determination submodule is used to determine the angle changes corresponding to the object light source in three camera movement directions according to the first light information and the second light information; wherein the second light information is the light information of the object light source in the second preview image, the second preview image is a preview image adjacent to the first preview image, the acquisition time of the second preview image is earlier than the acquisition time of the first preview image, and the three camera movement directions include a front-to-back camera movement direction, a left-to-right camera movement direction, and an up-and-down camera movement direction; A second determination submodule is used to determine an average value of the angle variation in each mirror movement direction according to the angle variation; The third determination submodule is used to determine the movement amount of the focus motor and the movement amount of the anti-shake motor according to the average value of the angle change amount and a preset lens movement range corresponding to each lens movement direction.

10. The device according to claim 9, characterized in that The first determining submodule is specifically used for: Establishing a rectangular coordinate system with the imaging position of the object light source in the first preview image as the origin, the horizontal direction as the X-axis, and the vertical direction as the Y-axis; Determine a first difference between a first angle corresponding to the first light information and a second angle corresponding to the second light information as an angle change of the object light source in the forward and backward mirror movement direction; Determine a second difference between the third angle and the fourth angle as an angle change of the object light source in the left-right mirror movement direction; wherein the third angle is an angle between the bisector of the first angle and the X-axis, and the fourth angle is an angle between the bisector of the second angle and the X-axis; The third difference between the fifth angle and the sixth angle is determined as the angular change of the object light source in the up and down mirroring direction; wherein the fifth angle is the angle between the bisector of the first angle and the Y-axis, and the sixth angle is the angle between the bisector of the second angle and the Y-axis.

11. The device according to claim 9, characterized in that The object light source includes N light sources, where N is an integer greater than 1; the second determination submodule is specifically used for: In the case where the tracked photographic object is the object light source, the sum of the angle changes of the first reference light sources in the front-to-back mirror movement direction is calculated to obtain a first sum value; the ratio of the first sum value to the number of the first reference light sources is determined as the average value of the angle changes in the front-to-back mirror movement direction; wherein the first reference light source is a light source corresponding to the front-to-back mirror movement direction among the N light sources; Calculating the sum of the angle changes of the second reference light sources in the left-right mirror movement direction to obtain a second sum value; determining the ratio of the second sum value to the number of the second reference light sources as the average value of the angle changes in the left-right mirror movement direction; wherein the second reference light source is a light source corresponding to the left-right mirror movement direction among the N light sources; Calculate the sum of the angular changes of the third reference light source in the up-and-down mirror movement direction to obtain a third sum value; determine the ratio of the third sum value to the number of the third reference light sources as the average value of the angular changes in the up-and-down mirror movement direction; wherein the third reference light source is a light source among the N light sources corresponding to the up-and-down mirror movement direction.

12. The device according to claim 9, characterized in that The second determining submodule is specifically used for: In the case where the tracked photographic object is a non-light source object, the sum of the angle changes of the fourth reference light sources in the front-to-back mirror movement direction is calculated to obtain a fourth sum value; the ratio of the fourth sum value to the number of the fourth reference light sources is determined as the average value of the angle changes in the front-to-back mirror movement direction; wherein the fourth reference light source is a light source among the object light sources that illuminates the photographic object; Calculating the sum of the angle changes of the fourth reference light sources in the left and right mirror movement directions to obtain a fifth sum value; determining the ratio of the fifth sum value to the number of the fourth reference light sources as the average value of the angle changes in the left and right mirror movement directions; The sum of the angular changes of the fourth reference light sources in the up-and-down mirror movement direction is calculated to obtain a sixth sum value; and the ratio of the sixth sum value to the number of the fourth reference light sources is determined as the average angular change value in the up-and-down mirror movement direction.

13. The device according to claim 9, characterized in that The third determining submodule is specifically used for: Calculating a fourth difference between the maximum value and the minimum value of the mirror movement range corresponding to the front and rear mirror movement directions; Determining the movement amount of the focus motor according to the fourth difference and the average value of the angle change in the front-back mirror movement direction; Calculating a fifth difference between the maximum value and the minimum value of the mirror movement range corresponding to the left and right mirror movement directions; Determining a lateral movement amount of the anti-shake motor according to the fifth difference and an average value of the angle changes in the left and right mirror movement directions; Calculating a sixth difference between the maximum value and the minimum value of the mirror movement range corresponding to the up and down mirror movement directions; The longitudinal movement amount of the anti-shake motor is determined according to the sixth difference and the average value of the angle change amount in the up and down mirror movement direction.

14. The device according to claim 8, characterized in that The device also includes: A display module is used to display prompt information when a new object in the shooting scene is detected through the first preview image; wherein the prompt information is used to prompt whether the new object is determined as a shooting object to be tracked; when the new object is determined as a shooting object to be tracked, the determination module is triggered.

15. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method for adjusting the mirror movement parameters as described in any one of claims 1-7 are implemented.