Multi-camera control method, electronic device, and computer-readable storage medium

By automatically adjusting the installation angle and target height of the lens in the multi-camera, the problem of changes in the lens viewing area of ​​the multi-camera is solved, and automatic parameter adjustment and field of view consistency of the multi-camera are achieved.

CN119583922BActive Publication Date: 2025-10-03ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411516100.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-10-03
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

In a multi-camera system, how can we automatically adjust the control parameters of the associated lenses to maintain field of view consistency when the visible area of ​​another lens changes?

Method used

By responding to changes in the control parameters of the first lens, automatically updating the installation angle of the first lens, and adjusting the installation angle of the second lens according to a preset relationship, it is determined whether the target height and installation distance of the second lens need to be updated, and different strategies are used to determine the control parameters of the second lens.

Benefits of technology

It realizes the automatic determination of the control parameters of the associated lenses after the parameters of the first lens change, ensures the consistency of the visual area of ​​​​multi-cameras, and provides technical support for subsequent stitching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583922B_ABST
    Figure CN119583922B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, electronic device, and computer-readable storage medium for a multi-lens camera. The control method includes: in response to an update of at least one of the first control parameters of a first lens, updating the installation angle of the first lens according to the updated first control parameter of the first lens; updating the installation angle of the second lens according to the updated installation angle of the first lens; determining whether the target height of the second lens needs to be updated; in response to the target height of the second lens not needing to be updated, updating the installation distance of the second lens according to the target height of the second lens; otherwise, updating the installation distance and target height of the second lens according to the length of the line segment between the vertex of the monitoring target corresponding to the second lens and the second lens, the vertical field of view angle of the second lens, and the installation angle of the second lens. The method of the present application can automatically determine the control parameters of the associated second lens when the control parameters of the first lens change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of multi-cameras, and in particular to a control method, electronic device, and computer-readable storage medium for a multi-camera. Background Art

[0002] A multi-lens camera is a camera that includes multiple lenses, and the viewing areas of these lenses are affected. When the control parameters of one lens are adjusted, the viewing area of ​​that lens changes, and the viewing areas of the other lenses must also change accordingly. However, how to determine the viewing area of ​​the other lens after the change is a current problem. Summary of the Invention

[0003] The present application provides a control method, electronic device, and computer-readable storage medium for a multi-camera, which can automatically determine the control parameters of an associated second lens when the control parameters of a first lens in the multi-camera change.

[0004] A first aspect of an embodiment of the present application provides a control method for a multi-camera, wherein the multi-camera includes an associated first lens and a second lens, and the control method includes: in response to an update of at least one parameter in a first control parameter of the first lens, updating the installation angle of the first lens according to the updated first control parameter of the first lens, the first control parameter including the installation height, target height, installation distance and focal length of the first lens; updating the installation angle of the second lens according to the updated installation angle of the first lens so that the installation angle of the first lens and the installation angle of the second lens maintain a preset relationship; determining whether it is necessary to update the target height of the second lens; in response to the target height of the second lens not needing to be updated, keeping the target height of the second lens unchanged and updating the installation distance of the second lens according to the target height of the second lens; otherwise, updating the installation distance of the second lens and the target height of the second lens according to the length of the line segment between the vertex of the monitoring target corresponding to the second lens and the second lens, the vertical field of view of the second lens and the installation angle of the second lens.

[0005] A second aspect of an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a communication circuit. The processor is coupled to the memory and the communication circuit respectively. Program data is stored in the memory. The processor implements the steps in the above method by executing the program data in the memory.

[0006] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the above method.

[0007] The beneficial effect is: the control method of the present application updates the installation angle of the first lens after the control parameters of the first lens change, and updates the installation angle of the second lens based on the preset relationship between the installation angles of the first lens and the second lens, and then determines whether the target height of the second lens needs to be updated, and adopts different strategies to determine the installation distance and target height of the second lens based on the judgment result. Therefore, the control method of the present application can automatically determine the control parameters of the associated second lens when the control parameters of the first lens change, providing technical support for the subsequent determination of the visual area of ​​the second lens. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort, among which:

[0009] Figure 1 is a side view schematic diagram of the relationship between the first lens and the second lens in an application scenario;

[0010] Figure 2 is a side view schematic diagram of the relationship between the first lens and the second lens in another application scenario;

[0011] Figure 3 This is a flow chart of an embodiment of a method for controlling a multi-camera according to the present application;

[0012] Figure 4 is a side view schematic diagram of a first lens in an application scenario;

[0013] Figure 5 is a side view schematic diagram of a second lens in an application scenario;

[0014] Figure 6 is a side view schematic diagram of the second lens in another application scenario;

[0015] Figure 7 is a schematic diagram of the relationship between the relevant parameters of the second lens;

[0016] Figure 8 This is a schematic structural diagram of an embodiment of the electronic device of the present application;

[0017] Figure 9 This is a schematic structural diagram of another embodiment of the electronic device of the present application;

[0018] Figure 10 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0020] It should be noted that the terms "first" and "second" in this application are only used for descriptive purposes and should not be understood as indicating or suggesting relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0021] The multi-eye camera of the present application can be applied to an electronic map display solution. In this solution, the visual area of ​​the multi-eye camera is spliced ​​together by the visual areas of different lenses, and the visual area of ​​each lens is determined according to the control parameters of the respective lenses. Therefore, after the control parameters of one lens are adjusted, the control parameters of another lens need to be re-determined. The purpose of the present application is to automatically determine the control parameters of another lens in the multi-eye camera after the user changes the control parameters of one lens in the multi-eye camera.

[0022] For the sake of convenience, the two associated lenses of the multi-lens camera are defined as the first lens and the second lens respectively. The control parameters corresponding to each lens include the current installation height, target height, installation distance and focal length of the lens. Figure 1 , taking the first lens as an example, the installation height corresponding to the first lens is Refers to the vertical distance between the first lens and the ground, the target height corresponding to the first lens Refers to the height of the monitoring target corresponding to the first lens and the installation distance corresponding to the first lens Refers to the straight-line distance between the vertical plane where the first lens is installed and the plane where the monitored target is located. For the sake of convenience, the control parameter corresponding to the first lens is defined as the first control parameter, and the control parameter corresponding to the second lens is defined as the second control parameter. It can be understood that since the first lens and the second lens belong to the same multi-lens camera, the installation height corresponding to the first lens is equal to the installation height corresponding to the second lens. At the same time, combined with Figure 1 and Figure 2 There are two situations in the relationship between the first lens and the second lens. The first situation is that the vertical field angle α1 of the first lens is smaller than the vertical field angle α2 of the second lens, such as Figure 1 As shown, the second case is that the vertical field angle α1 of the first lens is greater than or equal to the vertical field angle α2 of the second lens, as shown in Figure 2 As shown, Figure 2 Only the case where the vertical field angle α1 of the first lens is greater than the vertical field angle α2 of the second lens is shown.

[0023] See Figure 3 In one embodiment of the present application, a method for controlling a multi-camera includes:

[0024] S110: In response to at least one parameter of the first control parameters of the first lens being updated, updating the installation angle of the first lens according to the updated first control parameters of the first lens.

[0025] The first control parameters include an installation height, a target height, an installation distance, and a focal length of the first lens.

[0026] Specifically, when the user changes any parameter of the first control parameters corresponding to the first lens, the installation angle β1 of the first lens is calculated. Figure 1 As shown, the installation angle β1 of the first lens refers to the angle between the optical axis of the first lens and the horizontal line.

[0027] In one embodiment, the installation angle β1 of the first lens is updated according to the following formula:

[0028]

[0029] in, is the installation height of the first lens, is the target height of the first shot, is the installation distance of the first lens, is the vertical field of view of the first lens.

[0030] The following describes the derivation process of the above formula:

[0031] Combine Figure 4 , according to the sine and cosine principles, we can get:

[0032]

[0033] at the same time

[0034]

[0035] Therefore, we can get

[0036]

[0037] So we can finally get

[0038]

[0039] S120: updating the installation angle of the second lens according to the updated installation angle of the first lens, so that the installation angles of the first lens and the second lens maintain a preset relationship.

[0040] Specifically, the relationship between the mounting angle of the first lens and the mounting angle of the second lens is related to the type of multi-lens camera. For example, when the multi-lens camera is a multi-lens fixed camera, the mounting angles of the first lens and the second lens are always equal. A common multi-lens fixed camera is a multi-lens thermal imaging camera. In this case, one of the first lens and the second lens is a thermal imaging lens and the other is a visible light lens. For another example, when the multi-lens camera is a multi-lens adjustable camera, the difference between the mounting angles of the first lens and the second lens is always within a range. For another example, when the multi-lens camera is a special type of camera, the ratio of the mounting angle of the first lens to the mounting angle of the second lens is always equal. In summary, this application does not impose any restrictions on the relationship between the mounting angles of the first lens and the second lens, and it can be set specifically according to product requirements.

[0041] In one embodiment, step S120 specifically includes: in response to the multi-eye camera being a multi-eye fixed camera, determining the updated installation angle of the first lens as the installation angle of the second lens; in response to the multi-eye camera being a multi-eye adjustable camera, determining the installation angle of the second lens based on the difference range and the updated installation angle of the first lens.

[0042] Specifically, when the multi-eye camera is a multi-eye fixed camera, since the installation angles of the first lens and the second lens are always equal, the installation angle β2 of the second lens is equal to the installation angle β1 of the first lens; when the multi-eye camera is a multi-eye adjustable camera, the difference between the installation angles of the first lens and the second lens is always within a range, so the installation angle of the second lens can be determined based on the preset difference range and the installation angle of the first lens. At this time, the difference between the installation angle of the second lens and the installation angle of the first lens can always be equal to the same value, or the difference between the installation angle of the second lens and the installation angle of the first lens can be changed, but the difference is always within a preset range.

[0043] S130: Determine whether the target height of the second lens needs to be updated.

[0044] If the judgment result is not necessary, step S140 is executed; otherwise, step S150 is executed.

[0045] The specific process of determining whether the target height of the second lens needs to be updated can be found in the following description.

[0046] S140: Maintaining the target height of the second lens unchanged, and updating the installation distance of the second lens according to the target height of the second lens.

[0047] Specifically, if it is determined that there is no need to update the target height of the second lens, it means that the current target height of the second lens can meet the requirements, then the target height of the second lens is kept unchanged, and the installation distance of the second lens is directly updated according to the current target height of the second lens.

[0048] In one embodiment, the installation distance L2 of the second lens is updated according to the following formula:

[0049]

[0050] in, is the target height of the second lens, is the installation height of the second lens, is the installation angle of the second lens, is the vertical field of view of the second lens.

[0051] The following describes the derivation process of the above formula:

[0052] Combine Figure 5 , according to the sine and cosine principles, we can get:

[0053]

[0054] in

[0055]

[0056] Therefore, we can get

[0057]

[0058] So we can finally get

[0059]

[0060] S150: updating the installation distance of the second lens and the target height of the second lens according to the length of the line segment between the vertex of the monitoring target corresponding to the second lens and the second lens, the vertical field of view of the second lens, and the installation angle of the second lens.

[0061] In one embodiment, the installation distance L2 of the second lens is updated according to the following formula:

[0062]

[0063] in, is the length of the line segment between the vertex of the monitoring target corresponding to the second lens and the second lens, is the vertical field of view of the second lens, is the installation angle of the second lens.

[0064] The following describes the derivation process of the above process:

[0065] Combine Figure 5 , according to the sine and cosine principles, we can get:

[0066]

[0067] because

[0068]

[0069] Therefore, we can get

[0070]

[0071] So we can finally get

[0072] In one embodiment, the process of updating the target height of the second lens includes:

[0073] Update the target height h2 of the second lens according to the following formula:

[0074]

[0075] The following describes the derivation process of the above formula:

[0076] Combine Figure 5 ,when When , according to the sine and cosine theorems, we can also get:

[0077]

[0078] because

[0079]

[0080] Therefore, we can get

[0081]

[0082]

[0083] So we can finally get

[0084]

[0085] See Figure 6 ,when When , according to the sine and cosine theorems, we can get:

[0086]

[0087] Therefore, we can get

[0088]

[0089] So no matter what the situation is, you can use the formula Update the target height of the second camera .

[0090] The following combination Figure 5 , introduces the length of the line segment between the vertex of the monitored target corresponding to the second lens and the second lens The calculation process:

[0091] First, draw a vertical line segment perpendicular to the optical axis of the second lens from the vertex of the monitored target, and then according to the sine and cosine theorems, we can get:

[0092]

[0093] Therefore, we can get

[0094]

[0095] And combined Figure 7 , according to the relationship between the parameters of the second lens, we can get:

[0096]

[0097] Among them, a is the horizontal field of view width of the second camera. Therefore, we can finally pass Find Then, through the formula Find .

[0098] In one embodiment, the resolution width of the second lens can be adjusted. and pixel density Get the horizontal field of view angle width of the second lens, specifically: In one embodiment, the pixel density It can be equal to 12.5px. It should be noted that this application determines the horizontal field of view width of the second lens. There is no restriction on the process.

[0099] In other embodiments, combined Figure 5 , can also be determined based on c ,in, , a is the vertical field of view angle width of the second lens.

[0100] In one embodiment, step S130 includes:

[0101] S131: In response to the vertex of the monitoring target of the second lens being able to be located at the upper boundary of the vertical field of view angle of the second lens, it is determined that the target height of the second lens does not need to be updated; otherwise, it is determined that the target height of the second lens needs to be updated, wherein the height of the monitoring target of the second lens is equal to the target height of the second lens.

[0102] Specifically, if translating the monitoring target of the second lens (the height is equal to the target height of the second lens) can make the vertex of the second lens be at the upper boundary of the vertical field of view angle of the second lens, then it is determined that the target height of the second lens meets the preset requirements and there is no need to update the target height of the second lens. However, if no matter how the monitoring target of the second lens is translated, the vertex of the monitoring target cannot be placed at the upper boundary of the vertical field of view angle of the second lens, then it is determined that the target height of the second lens does not meet the requirements and it is necessary to update the target height of the second lens.

[0103] The judgment in step S131 is divided into two scenarios: the first scenario is that the vertical field angle of the first lens is smaller than the vertical field angle of the second lens; the second scenario is that the vertical field angle of the first lens is greater than or equal to the vertical field angle of the second lens.

[0104] When it is determined that the vertical field of view angle of the first lens is smaller than the vertical field of view angle of the second lens, the following specific situations may occur:

[0105] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is greater than the target height, and the installation angle of the second lens is less than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0106] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is greater than the target height, and the installation angle of the second lens is equal to half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0107] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is greater than the target height, and the installation angle of the second lens is greater than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0108] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is equal to the target height, and the installation angle of the second lens is less than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0109] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is equal to the target height, and the installation angle of the second lens is equal to half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0110] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is equal to the target height, and the installation angle of the second lens is greater than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0111] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is less than the target height, and the installation angle of the second lens is less than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0112] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is less than the target height, and the installation angle of the second lens is equal to half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0113] If the installation height of the first lens is greater than the target height of the first lens, the installation height of the second lens is less than the target height, and the installation angle of the second lens is greater than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0114] If the installation height of the first lens is equal to the target height of the first lens, and the installation height of the second lens is greater than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0115] If the installation height of the first lens is equal to the target height of the first lens, and the installation height of the second lens is equal to the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0116] If the installation height of the first lens is equal to the target height of the first lens, and the installation height of the second lens is less than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0117] If the installation height of the first lens is less than the target height of the first lens, and the installation height of the second lens is greater than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0118] If the installation height of the first lens is less than the target height of the first lens, and the installation height of the second lens is equal to the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0119] If the installation height of the first lens is less than the target height of the first lens, and the installation height of the second lens is less than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0120] When determining that the vertical field of view angle of the first lens is greater than or equal to the vertical field of view angle of the second lens, the following specific situations may apply:

[0121] If the installation height of the first lens is greater than the target height of the first lens, and the installation height of the second lens is greater than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0122] If the installation height of the first lens is greater than the target height of the first lens, and the installation height of the second lens is equal to the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0123] If the installation height of the first lens is greater than the target height of the first lens, and the installation height of the second lens is less than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0124] If the installation height of the first lens is equal to the target height of the first lens, and the installation height of the second lens is greater than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0125] If the installation height of the first lens is equal to the target height of the first lens, and the installation height of the second lens is equal to the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0126] If the installation height of the first lens is equal to the target height of the first lens, and the installation height of the second lens is less than the target height of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0127] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is greater than the target height, and the installation angle of the second lens is less than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0128] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is greater than the target height, and the installation angle of the second lens is equal to half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0129] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is greater than the target height, and the installation angle of the second lens is greater than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0130] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is equal to the target height, and the installation angle of the second lens is less than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0131] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is equal to the target height, and the installation angle of the second lens is equal to half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0132] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is equal to the target height, and the installation angle of the second lens is greater than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0133] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is less than the target height, and the installation angle of the second lens is less than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens can be located at the upper boundary of the vertical field of view of the second lens, and there is no need to update the target height of the second lens;

[0134] If the installation height of the first lens is less than the target height of the first lens, the installation height of the second lens is less than the target height, and the installation angle of the second lens is equal to half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located at the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated;

[0135] If the installation height of the first lens is less than the target height of the first lens, and the installation height of the second lens is less than the target height and the installation angle of the second lens is greater than half of the vertical field of view of the second lens, it is determined that the vertex of the monitoring target of the second lens cannot be located on the upper boundary of the vertical field of view of the second lens, and the target height of the second lens needs to be updated.

[0136] Of course, in other implementations, whether the target height of the second lens needs to be updated may be determined in other ways.

[0137] See Figure 8 , Figure 8 2 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 200 includes a processor 210, a memory 220, and a communication circuit 230. The processor 210 is coupled to the memory 220 and the communication circuit 230, respectively. The memory 220 stores program data. The processor 210 executes the program data in the memory 220 to implement the steps of any of the above-mentioned embodiments. The detailed steps can be found in the above-mentioned embodiments and will not be repeated here.

[0138] The electronic device 200 may be any device with algorithm processing capabilities, such as a computer or a mobile phone, and is not limited here.

[0139] See Figure 9 , Figure 9 3 is a structural diagram of another embodiment of the electronic device of the present application. The electronic device 300 includes a first update module 310 , a second update module 320 , a judgment module 330 , a third update module 340 and a fourth update module 350 .

[0140] When at least one parameter among the first control parameters of the first lens is updated, the first update module 310 updates the installation angle of the first lens according to the updated first control parameters of the first lens, where the first control parameters include the installation height, target height, installation distance, and focal length of the first lens.

[0141] The second updating module 320 is connected to the first updating module 310 and is used to update the installation angle of the second lens according to the updated installation angle of the first lens, so that the installation angles of the first lens and the second lens maintain a preset relationship.

[0142] The determination module 330 is connected to the second updating module 320 and is used to determine whether the target height of the second lens needs to be updated.

[0143] The third updating module 340 is connected to the judging module 330 and is configured to keep the target height of the second lens unchanged when the target height of the second lens does not need to be updated, and to update the installation distance of the second lens according to the target height of the second lens.

[0144] The fourth update module 350 is connected to the judgment module 330, and is used to update the installation distance of the second lens and the target height of the second lens according to the length of the connecting line between the vertex of the monitoring target corresponding to the second lens and the second lens, the vertical field of view angle of the second lens, and the installation angle of the second lens when the target height of the second lens needs to be updated.

[0145] The first update module 310, the second update module 320, the judgment module 330, the third update module 340, and the fourth update module 350 cooperate with each other to complete the method steps in any of the above-mentioned implementation methods. The detailed method steps can be found in the above introduction and will not be repeated here.

[0146] The electronic device 300 may be any device with algorithm processing capabilities, such as a computer or a mobile phone, and is not limited here.

[0147] See Figure 10 , Figure 10 The computer-readable storage medium 400 stores a computer program 410, which can be executed by a processor to implement the steps of any of the above methods.

[0148] The computer-readable storage medium 400 may specifically be a device that can store the computer program 410, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or may be a server that stores the computer program 410. The server may send the stored computer program 410 to other devices for execution, or may also execute the stored computer program 410 itself.

[0149] The above description is merely an embodiment of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A multi-camera control method, characterized in that: The multi-eye camera includes a first lens and a second lens associated with each other, and the control method includes: In response to an update of at least one of the first control parameters of the first lens, updating the installation angle of the first lens according to the updated first control parameters of the first lens, wherein the first control parameters include an installation height, a target height, an installation distance, and a focal length of the first lens, wherein the installation height of the first lens refers to a vertical distance between the first lens and the ground, the target height of the first lens refers to a height of a monitoring target corresponding to the first lens, the installation distance of the first lens refers to a straight-line distance between a vertical plane at a location where the first lens is installed and a plane where the monitoring target is located, and the installation angle of the first lens refers to an angle between an optical axis of the first lens and a horizontal line; updating the installation angle of the second lens according to the updated installation angle of the first lens, so that the installation angles of the first lens and the second lens maintain a preset relationship; Determining whether it is necessary to update the target height of the second lens; In response to the target height of the second lens not needing to be updated, maintaining the target height of the second lens unchanged, and updating the installation distance of the second lens according to the target height of the second lens; Otherwise, the installation distance of the second lens and the target height of the second lens are updated according to the length of the line segment between the vertex of the monitored target corresponding to the second lens and the second lens, the vertical field of view angle of the second lens, and the installation angle of the second lens.

2. The method according to claim 1, characterized in that The step of updating the installation angle of the second lens according to the updated installation angle of the first lens includes: In response to the multi-eye camera being a multi-eye fixed camera, determining the updated installation angle of the first lens as the installation angle of the second lens; In response to the multi-eye camera being a multi-eye adjustment camera, the installation angle of the second lens is determined according to the difference range and the updated installation angle of the first lens.

3. The method according to claim 1, characterized in that The step of updating the installation distance of the second lens according to the target height of the second lens includes: Update the installation distance L2 of the second lens according to the following formula: in, is the target height of the second lens, is the installation height of the second lens, is the installation angle of the second lens, is the vertical field angle of the second lens.

4. The method according to claim 1, wherein The step of updating the installation distance of the second lens and the target height of the second lens according to the length of the line segment between the vertex of the monitored target corresponding to the second lens and the second lens, the vertical field of view angle of the second lens, and the installation angle of the second lens includes: Update the installation distance L2 of the second lens according to the following formula: in, is the length of the line segment between the vertex of the monitoring target corresponding to the second lens and the second lens, is the vertical field angle of the second lens, is the installation angle of the second lens.

5. The method according to claim 1, wherein The step of updating the installation distance of the second lens and the target height of the second lens according to the length of the line segment between the vertex of the monitored target corresponding to the second lens and the second lens, the vertical field of view angle of the second lens, and the installation angle of the second lens includes: Update the target height h2 of the second lens according to the following formula: in, is the installation height of the second lens, is the length of the line segment between the vertex of the monitoring target corresponding to the second lens and the second lens, is the vertical field angle of the second lens, is the installation angle of the second lens.

6. The method according to claim 4 or 5, characterized in that The method further comprises: Determine the length of the line segment between the vertex of the monitored target corresponding to the second lens and the second lens according to the following formula: : Wherein, a is the horizontal field of view angle width of the second lens, is the horizontal field of view of the second lens, is the vertical field angle of the second lens.

7. The method according to claim 6, characterized in that The method further comprises: The horizontal field angle width a of the second lens is determined according to the following formula: in, The resolution of the second lens is wide, is the pixel density of the second lens.

8. The method according to claim 1, characterized in that The step of updating the installation angle of the first lens according to the updated first control parameter of the first lens includes: Update the installation angle β1 of the first lens according to the following formula: in, is the installation height of the first lens, is the target height of the first lens, is the installation distance of the first lens, is the vertical field angle of the first lens.

9. The method according to claim 1, characterized in that The step of determining whether the target height of the second lens needs to be updated includes: In response to the vertex of the monitoring target of the second lens being able to be located at the upper boundary of the vertical field of view angle of the second lens, it is determined that the target height of the second lens does not need to be updated; otherwise, it is determined that the target height of the second lens needs to be updated, wherein the height of the monitoring target of the second lens is equal to the target height of the second lens.

10. An electronic device, characterized in that: The electronic device includes a processor, a memory and a communication circuit, the processor is coupled to the memory and the communication circuit respectively, the memory stores program data, and the processor implements the steps in the method according to any one of claims 1 to 9 by executing the program data in the memory.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Camera for monitoring high-altitude area

    CN113194234A

  • Binocular vision module installation method and device, electronic equipment and storage medium

    CN116277149A