Coordinate calibration method for multiple cameras and multiple cameras
By installing only one camera electronic compass in a multi-camera, the target angle of each camera is determined using the image brightness change curve, so that the lenses are in a relative state, the problems of high cost and low success rate of multi-camera coordinate calibration are solved, and the more Efficient coordinate calibration and linkage tracking and capture.
Patent Information
- Application Number
- CN202310519572.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-08
- Publication Date
- 2024-11-08
AI Technical Summary
The hardware cost of existing multi-camera coordinate calibration is high and has a low success rate, mainly due to the need to install electronic compass in multiple cameras, which increases interference risk and cost.
By installing only one camera's electronic compass in multiple cameras, the target angle of each camera is determined using the image brightness change curve, so that its lenses are in a relative state, thereby realizing coordinate calibration, reducing hardware costs and improving success rate.
It effectively reduces the hardware cost of multiple cameras, improves the success rate of coordinate calibration, avoids the problem of inconsistent coordinate calibration caused by different camera map images, and improves the speed of camera linkage tracking and capture.
Smart Images

Figure CN118918194A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of monitoring technology, and in particular to a multi-camera coordinate calibration method and the multi-camera. Background Art
[0002] With the emergence of many camera scenes, such as the rapid shooting and tracking of illegal vehicles, multi-camera products have emerged to meet the shooting needs in such scenes. Among them, multi-camera products include panoramic cameras and detail cameras. Generally, panoramic cameras are used to capture the overall picture of the outside world, while detail cameras are used to track the target. / /
[0003] In practical applications, it is necessary to calibrate the coordinates of multiple cameras first so that the images captured by the panoramic camera and the detail camera in the multi-camera can correspond to each other, thereby achieving accurate shooting and tracking of the target. At present, the main method of adding an electronic compass to each camera in the multi-camera is to achieve the coordinate calibration of multiple cameras.
[0004] However, such a calibration method not only increases the hardware cost of multiple cameras, but also makes the multiple cameras more susceptible to external interference due to the presence of multiple electronic compasses, resulting in a low success rate of coordinate calibration of the multiple cameras. Summary of the invention
[0005] The present invention provides a multi-camera coordinate calibration method and a multi-camera, which are used to solve the defects of high hardware cost of multi-camera and low success rate of coordinate calibration in the prior art, thereby achieving the purpose of not only reducing the hardware cost of multi-camera but also improving the success rate of coordinate calibration of multi-camera.
[0006] The present invention provides a coordinate calibration method for multiple cameras, wherein the multiple cameras include at least two cameras, wherein the at least two cameras include a first camera and a second camera, and the method includes:
[0007] The first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate in a first direction to the first target angle; the first brightness change curve is used to represent the corresponding relationship between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction;
[0008] The second camera determines a second target angle corresponding to a second maximum brightness based on a second brightness variation curve, and controls the first camera to rotate in the first direction to the second target angle; the second brightness variation curve is used to characterize the corresponding relationship between the brightness of a second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction;
[0009] The first camera calibrates the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the second camera.
[0010] According to a multi-camera coordinate calibration method provided by the present invention, the method further includes:
[0011] The first camera collects images of the second camera during rotation in the first direction to obtain at least two first images;
[0012] The first camera determines a first rotation angle corresponding to the second camera when shooting each first image, and determines the first brightness variation curve based on each first rotation angle and the brightness of the corresponding first image.
[0013] According to a multi-camera coordinate calibration method provided by the present invention, the method further includes:
[0014] When the first camera rotates in the first direction, the second camera captures images to obtain at least two second images;
[0015] The second camera determines a second rotation angle corresponding to the first camera when shooting each second image, and determines the second brightness variation curve based on each second rotation angle and the brightness of the corresponding second image.
[0016] According to a coordinate calibration method for multiple cameras provided by the present invention, the first brightness change curve includes at least two first maximum brightnesses; the first camera determines a first target angle corresponding to a first maximum brightness based on the first brightness change curve, including:
[0017] For each of the first maximum brightnesses, the first camera determines a first angle range based on a first angle corresponding to the first maximum brightness;
[0018] The first camera determines a first brightness integral based on the brightness of the first image corresponding to each first angle in the first angle range;
[0019] The first camera determines the first object angle based on each of the first brightness integrals.
[0020] According to a coordinate calibration method for multiple cameras provided by the present invention, the first camera determines the first target angle based on each of the first brightness integrals, including:
[0021] Determining, by the first camera, a maximum brightness integral of at least two of the first brightness integrals;
[0022] The first camera determines a first target angle range corresponding to the maximum brightness integral;
[0023] The first camera determines a first angle corresponding to a first maximum brightness in the first target angle range as the first target angle.
[0024] According to a multi-camera coordinate calibration method provided by the present invention, the method further includes:
[0025] The first camera determines a third target angle corresponding to a third maximum brightness based on a third brightness variation curve, and controls the second camera to rotate in a second direction to the third target angle; the third brightness variation curve is used to characterize the corresponding relationship between the brightness of a third image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the second direction; the second direction is perpendicular to the first direction;
[0026] The second camera determines a fourth target angle corresponding to a fourth maximum brightness based on a fourth brightness change curve, and controls the first camera to rotate in the second direction to the fourth target angle; the fourth brightness change curve is used to represent a corresponding relationship between the brightness of a fourth image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the fourth direction;
[0027] The first camera calibrates the coordinates of the first camera in the second direction and the coordinates of the second camera in the second direction based on the current position of the first camera and the current position of the second camera.
[0028] The present invention also provides a multi-camera, wherein the multi-camera includes at least two cameras, wherein the at least two cameras include a first camera and a second camera, and the device includes:
[0029] The first camera is used to determine a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and control the second camera to rotate in a first direction to the first target angle; the first brightness change curve is used to characterize the corresponding relationship between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction;
[0030] The second camera is used to determine a second target angle corresponding to a second maximum brightness based on a second brightness change curve, and control the first camera to rotate in the first direction to the second target angle; the second brightness change curve is used to characterize the corresponding relationship between the brightness of the second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction;
[0031] The first camera is used to calibrate the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the second camera.
[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a coordinate calibration method for multiple cameras as described above is implemented.
[0033] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the coordinate calibration method of multiple cameras as described in any one of the above methods is implemented.
[0034] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the coordinate calibration method of multiple cameras as described above is implemented.
[0035] The coordinate calibration method and multi-camera provided by the present invention are as follows: the first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate to the first target angle in the first direction; the second camera determines a second target angle corresponding to a second maximum brightness based on a second brightness change curve, and controls the first camera to rotate to the second target angle in the first direction; wherein the first brightness change curve represents the corresponding relationship between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; the second brightness change curve represents the corresponding relationship between the brightness of a second image captured by the second camera and the rotation angle of the second camera when the first camera is in a fill light state and rotates in the first direction. The corresponding relationship between brightness and the rotation angle of the first camera; therefore, the first target angle that the second camera needs to rotate to when it rotates to the position of maximum fill light for the first camera can be determined based on the first brightness change curve, and then the second camera can be controlled to rotate to the first target angle in the first direction, so that the second camera is at the position of maximum fill light for the first camera; then based on the second brightness change curve, the second target angle that the first camera needs to rotate to when it rotates to the position of maximum fill light for the second camera can be determined, and then the first camera can be controlled to rotate to the second target angle in the first direction, so that the shooting direction of the first camera can be opposite to the shooting direction of the second camera in the first direction, that is, the lens of the first camera is opposite to the lens of the second camera. Thus, the second camera can determine the current position of the first camera based on the position relationship and angle relationship between the first camera and the second camera when they are relative in the first direction, and the current position obtained by the electronic compass inside the second camera, and then the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction are calibrated, so as to achieve the purpose of unifying the coordinate system of the two in the first direction. Compared with the prior art, the present invention only needs to install an electronic compass in any one of the multiple cameras to realize the coordinate calibration of the multiple cameras, thereby reducing the hardware cost of the multiple cameras. In addition, since the present invention only uses the image brightness as a reference, it can control the lens of the first camera and the lens of the second camera to be in a relative state. Therefore, it can effectively avoid the problem of inconsistent coordinate calibration caused by different images mapped by each camera in the multiple cameras, that is, it improves the success rate of the coordinate calibration of the multiple cameras, and further improves the speed of linkage tracking and capturing of each camera in the multiple cameras. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a schematic diagram of the structure of multiple cameras in the prior art;
[0038] Figure 2 It is a schematic diagram of the flow of a coordinate calibration method for multiple cameras provided by an embodiment of the present invention;
[0039] Figure 3 is a schematic diagram of the initial position of each camera in the multi-camera provided in an embodiment of the present invention;
[0040] Figure 4 is a schematic diagram of a first brightness change curve provided by an embodiment of the present invention;
[0041] Figure 5 is a schematic diagram of the position corresponding to the detail camera after rotating to a first target angle provided by an embodiment of the present invention;
[0042] Figure 6 is a schematic diagram of two cameras facing each other provided by an embodiment of the present invention;
[0043] Figure 7 is a schematic diagram of determining the brightness of a first image provided by an embodiment of the present invention;
[0044] Figure 8 is a schematic diagram of the structure of multiple cameras provided by an embodiment of the present invention;
[0045] Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] With the continuous increase in the types of actual camera scenes, the traditional single camera can no longer meet the existing market shooting needs. Based on this, a multi-camera is proposed in the prior art, which can achieve more efficient target detail capture and target fast tracking, and is therefore widely used in security, transportation, military and other application fields.
[0048] Figure 1 It is a schematic diagram of the structure of multiple cameras in the prior art, such as Figure 1 As shown, the multi-camera includes a detail camera 101 and two panoramic cameras 102. It should be noted that the multi-camera may also include multiple detail cameras and multiple panoramic cameras, and the number of detail cameras and panoramic cameras is not specifically limited in the embodiment of the present invention. In the embodiment of the present invention, one detail camera and two panoramic cameras are used as examples for illustration. Specifically, before using the multi-camera, it is necessary to fix the angle of the panoramic camera 102 so that the image taken by the panoramic camera 102 and the image taken by the detail camera 101 can correspond to each other, thereby completing the master-slave azimuth calibration. However, this calibration method cannot guarantee that the panoramic camera 102 and the detail camera 101 obtain the same azimuth image when the external feature points are similar, resulting in a low success rate of calibration.
[0049] Therefore, the prior art proposes to add an electronic compass to all cameras to improve the success rate of coordinate calibration of multiple cameras. However, such a calibration method greatly increases the hardware cost of multiple cameras and makes multiple cameras more susceptible to interference from the external environment. Therefore, the success rate of coordinate calibration of multiple cameras is still not high.
[0050] In view of this problem, an embodiment of the present invention provides a method for calibrating the coordinates of multiple cameras. The method can establish a local communication network through the network IP information of multiple cameras in the multi-camera when the panoramic camera is not equipped with an electronic compass, and the calibration brightness is produced according to the fill light in each camera, and the position of the detail camera is determined by fixing the panoramic camera and rotating the detail camera, and then the lenses of the two cameras can reach a relative state by fixing the detail camera and rotating the panoramic camera. Based on the relative position relationship between the two cameras in this state and the current position determined by the electronic compass installed in the detail camera, the coordinates of the panoramic camera are calibrated. Specifically, in the process of determining that the two cameras are relative, the rotating camera can be used as the fill light source of another camera in a fixed state. Therefore, based on the principle of light brightness superposition, it can be known that when the two cameras are relative, the brightness of the image captured by the fixed camera is the largest. Therefore, the direction of the rotating camera can be determined according to the brightness change of the captured image, and then when it is determined that the two cameras are in a relative position, the coordinates of each camera in the multi-camera are calibrated. Compared with the prior art, the present invention only needs to install an electronic compass in any camera to realize the coordinate calibration of multiple cameras, thereby reducing the hardware cost of multiple cameras. In addition, since the present invention only uses the image brightness as a reference, it can control the lens of the first camera and the lens of the second camera to be in a relative state, thus effectively avoiding the problem of inconsistent coordinate calibration caused by different images mapped by each camera in the multiple cameras, thereby improving the success rate of coordinate calibration of multiple cameras.
[0051] Combine the following Figure 2-Figure 7 The coordinate calibration method of multiple cameras provided by an embodiment of the present invention is described, and the method can be applied to a scene where multiple cameras are used to capture images or monitor targets. In addition, the execution subject of the method can be a control device that is connected to the multiple cameras in communication, and the control device can be directly installed on the camera or set separately from the camera.
[0052] Figure 2 A schematic flow chart of a method for calibrating coordinates of multiple cameras provided in an embodiment of the present invention, wherein the multiple cameras include at least two cameras, the at least two cameras include a first camera and a second camera, such as Figure 2 As shown, the method includes:
[0053] Step 201: The first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness variation curve, and controls the second camera to rotate in a first direction to the first target angle.
[0054] The first brightness variation curve is used to represent the corresponding relationship between the brightness of the first image captured by the first camera and the rotation angle of the second camera when the second camera is in the fill light state and rotates in the first direction.
[0055] Among them, each camera is provided with a fill light, and the fill light is symmetrically arranged on both sides of the lens of each camera. In addition, the first camera can be a panoramic camera, and the second camera can be a detail camera. Of course, the first camera can also be a detail camera, and the second camera can also be a panoramic camera. Among them, only one camera among the multiple cameras is equipped with an electronic compass, which can be a detail camera or a panoramic camera, and this application does not make specific restrictions on this.
[0056] Exemplarily, in the embodiment of the present invention, an example is taken in which the first camera is a panoramic camera, the second camera is a detail camera, and an electronic compass is installed in the detail camera.
[0057] Specifically, all pan / tilt devices of multiple cameras need to be powered on first; then, the zero-point coordinates of each pan / tilt are found through the optical couplers on each pan / tilt. At this time, the pan / tilt coordinates are zero points, and the coordinate systems of each camera in the multiple cameras are established based on the zero-point coordinates. Then, the detail camera is controlled to rotate one circle to find the north direction through the magnetometer of the electronic compass installed on the detail camera, and the installation inclination model is created based on the gravity accelerometer in the electronic compass, so as to remove the fixed inclination deviation existing in the installation of multiple cameras based on the installation inclination model.
[0058] Figure 3 A schematic diagram of the initial position of each camera in the multi-camera provided in an embodiment of the present invention, such as Figure 3 As shown, 10 is a panoramic camera, and 20 is a detail camera. The lens directions of the panoramic camera 10 and the detail camera 20 are random, and the two may not be in relative positions in the initial state.
[0059] Furthermore, the pan / tilt of the panoramic camera 10 can be fixed to control the fill light of the detail camera 20 to turn on, and the fill light of the detail camera 20 can be rotated one circle according to the agreed protocol to obtain the various rotation angles of the detail camera 20 and the brightness of the first image captured by the panoramic camera 10 at each rotation angle. The brightness of the fill light of each camera remains unchanged.
[0060] In one possible implementation, since a local communication network is established between the panoramic camera and the detail camera, the detail camera can periodically send its own rotation angle to the panoramic camera, and the panoramic camera will obtain the brightness of the first image captured at the rotation angle and draw a first brightness change curve. In another possible implementation, since the detail camera rotates at a uniform speed, the panoramic camera can determine the rotation angle of the detail camera based on the rotation duration of the detail camera, and obtain the brightness of the first image captured at the rotation angle to draw a first brightness change curve. Exemplarily, Figure 4 A schematic diagram of a first brightness variation curve provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the X-axis represents the rotation angle of the detail camera; the Y-axis represents the brightness of the first image captured by the panoramic camera. The brightness of the first image can be the average brightness or weighted brightness of the first image. Figure 4 It can be seen that as the detail camera rotates, the brightness of the first image captured by the panoramic camera changes from small to large and then changes from large to small. Based on the first brightness change curve, at least one first maximum brightness can be determined.
[0061] Therefore, after acquiring the first brightness change curve, the panoramic camera can determine the corresponding first target angle based on the first maximum brightness on the first brightness change curve, and send the first target angle to the detail camera. The detail camera will rotate to the first target angle in the first direction, so that the detail camera can be in a position of maximum fill light for the panoramic camera. It should be understood that when the detail camera is in a position of maximum fill light for the panoramic camera, the lens of the detail camera will point to the panoramic camera. The first direction can be the horizontal direction of the pan / tilt head or the vertical direction of the pan / tilt head, and this application does not impose any specific limitation on this. For example, Figure 5 Schematic diagram of the position of the detail camera corresponding to the first target angle after the rotation provided by the embodiment of the present invention, wherein the field of view angle of the panoramic camera 10 is 2β, the field of view angle of the detail camera 20 is 2α, and the first target angle is θ. Figure 5 As shown, the fill light emitted by the detail camera 20 mostly falls within the field of view of the panoramic camera 10. Therefore, the brightness of the first image captured by the panoramic camera 10 is the highest at this time.
[0062] Step 202: The second camera determines a second target angle corresponding to a second maximum brightness based on a second brightness variation curve, and controls the first camera to rotate in the first direction to the second target angle.
[0063] The second brightness variation curve is used to represent the corresponding relationship between the brightness of the second image captured by the second camera and the rotation angle of the first camera when the first camera is in the fill light state and rotates in the first direction.
[0064] Similarly, the second brightness change curve can be obtained by fixing the detail camera pan / tilt and controlling the panoramic camera to rotate one circle. The method for obtaining the second brightness change curve can refer to the method for obtaining the first brightness change curve mentioned above, which will not be repeated here.
[0065] Furthermore, after acquiring the second brightness change curve, the detail camera can determine the corresponding second target angle through the second maximum brightness on the second brightness change curve, and send the second target angle to the panoramic camera. The panoramic camera will rotate in the first direction to the second target angle, so that the panoramic camera can be in a position of maximum fill light for the detail camera. It should be understood that when the panoramic camera is in a position of maximum fill light for the detail camera, the lens of the panoramic camera will point to the detail camera. At this time, by rotating the panoramic camera and the detail camera in step 201 and step 202, the shooting direction of the panoramic camera can be opposite to that of the detail camera, that is, the lenses of the two cameras are opposite. For example, Figure 6 This is a schematic diagram of two cameras facing each other provided in an embodiment of the present invention, wherein a panoramic camera 10 faces a detail camera 20 .
[0066] Step 203: The first camera calibrates the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the second camera.
[0067] The current position may be a polar coordinate position or a spherical coordinate position, which is not specifically limited in this application.
[0068] Specifically, the current position of the detail camera can be determined by the electronic compass in the detail camera and the rotation angle of the detail camera, and then the current position of the panoramic camera can be determined based on the current position of the detail camera and the distance relationship and angle relationship between the detail camera and the panoramic camera, so as to achieve a coordinate system or coordinate calibration of the two in the first direction. The distance between the detail camera and the panoramic camera is a preset distance.
[0069] In the coordinate calibration method for multiple cameras provided by an embodiment of the present invention, the first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate in the first direction to the first target angle; the second camera determines a second target angle corresponding to a second maximum brightness based on a second brightness change curve, and controls the first camera to rotate in the first direction to the second target angle; wherein the first brightness change curve represents the correspondence between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; the second brightness change curve represents the correspondence between the brightness of a second image captured by the second camera and the rotation angle of the second camera when the first camera is in a fill light state and rotates in the first direction. The corresponding relationship between brightness and the rotation angle of the first camera; therefore, the first target angle required for the second camera to rotate to the position of maximum fill light for the first camera can be determined based on the first brightness change curve, and then the second camera can be controlled to rotate to the first target angle in the first direction, that is, the second camera is in the position of maximum fill light for the first camera; then based on the second brightness change curve, the second target angle required for the first camera to rotate to the position of maximum fill light for the second camera can be determined, and then the first camera can be controlled to rotate to the second target angle in the first direction, so that the shooting direction of the first camera can be opposite to the shooting direction of the second camera in the first direction, that is, the lens of the first camera is opposite to the lens of the second camera. Thus, the second camera can determine the current position of the first camera based on the position relationship and angle relationship between the first camera and the second camera when they are relative in the first direction, and the current position obtained by the electronic compass inside the second camera, and then the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction are calibrated, so as to achieve the purpose of unifying the coordinate system of the two in the first direction. Compared with the prior art, the present invention only needs to install an electronic compass in any one of the multiple cameras to realize the coordinate calibration of the multiple cameras, thereby reducing the hardware cost of the multiple cameras. In addition, since the present invention only uses the image brightness as a reference, it can control the lens of the first camera and the lens of the second camera to be in a relative state. Therefore, it can effectively avoid the problem of inconsistent coordinate calibration caused by different images mapped by each camera in the multiple cameras, that is, it improves the success rate of the coordinate calibration of the multiple cameras, and further improves the speed of linkage tracking and capturing of each camera in the multiple cameras.
[0070] Furthermore, based on the above embodiments, the first brightness change curve can be determined in the following manner: the first camera captures images of the second camera during its rotation in the first direction to obtain at least two first images; the first camera determines the first rotation angle corresponding to the second camera when taking each first image, and determines the first brightness change curve based on each first rotation angle and the brightness of the corresponding first image.
[0071] Specifically, before determining the first brightness variation curve, it is necessary to first connect the cameras in the multiple cameras to each other through the Switch chip, and to establish a local communication network between the cameras when the self-calibration is turned on.
[0072] For example, when determining the first brightness change curve, the panoramic camera can capture the same background image by turning off the automatic focus of the panoramic camera and keeping the pan / tilt of the panoramic camera fixed. After the detail camera automatically points to the north, it is returned to the first direction, the fill light is turned on, and the pan / tilt motor of the detail camera is controlled to slowly rotate the detail camera counterclockwise for one circle. The detail camera rotates at a constant speed, that is, the rotation angle of the detail camera changes by one level per second.
[0073] Furthermore, while the detail camera is rotating, the panoramic camera captures the first image, so as to draw a first brightness change curve based on the brightness of the first image and the first rotation angle corresponding to the detail camera when the first image is captured. Figure 7 A schematic diagram of determining the brightness of a first image provided by an embodiment of the present invention is shown in FIG. Figure 7 As shown, after the histogram information of the first image is acquired, the brightness of the first image can be calculated based on the data of each pixel point in the histogram information.
[0074] In this embodiment, the first camera captures the image of the second camera during the rotation process in the first direction to obtain at least two first images, and then the first camera determines the first rotation angle corresponding to the second camera when shooting each first image, and determines the first brightness change curve based on each first rotation angle and the brightness of the corresponding first image, thereby providing a basis for subsequently determining the first target angle corresponding to the first maximum brightness based on the first brightness change curve. In addition, by utilizing the feature that the second camera's own fill light can provide external fill light, the first camera that is filled with light can determine the direction of the second camera through the brightness change of the captured first image, thereby providing a basis for subsequent coordinate calibration of multiple cameras.
[0075] Similarly, in Figure 1On the basis of the illustrated embodiment, when determining the second brightness change curve, it can be determined in the following manner: when the first camera rotates in the first direction, the second camera captures images to obtain at least two second images; the second camera determines the second rotation angle corresponding to the first camera when taking each second image, and determines the second brightness change curve based on each second rotation angle and the brightness of the corresponding second image.
[0076] Specifically, after the panoramic camera determines the first target angle corresponding to the first maximum brightness based on the first brightness change curve and controls the detail camera to rotate to the first target angle in the first direction, the detail camera can capture the same background image by turning off the automatic focus of the detail camera and keeping the pan / tilt of the detail camera fixed. Then, in the process of rotating the panoramic camera, the detail camera is controlled to capture the second image, so as to draw a second brightness change curve based on the brightness of the second image and the second rotation angle corresponding to the panoramic camera when capturing the first image. The brightness type of the second image is the same as that of the first image, that is, both are either the average brightness of the image or the weighted brightness of the image.
[0077] In this embodiment, during the rotation of the second camera in the first direction, the second camera is used to capture images to obtain at least two second images, and then the second camera is used to determine the second rotation angle corresponding to the first camera when taking each second image, and a second brightness change curve is determined based on each second rotation angle and the brightness of the corresponding second image, thereby providing a basis for subsequently determining the second target angle corresponding to the second maximum brightness based on the second brightness change curve.
[0078] Exemplarily, in the case where the first brightness change curve includes at least two first maximum brightnesses, when the first camera determines the first target angle corresponding to the first maximum brightness based on the first brightness change curve, the determination can be made in the following manner: for each first maximum brightness, the first camera determines the first angle range based on the first angle corresponding to the first maximum brightness; the first camera determines the first brightness integral based on the brightness of the first image corresponding to each first angle in the first angle range; the first camera determines the first target angle based on each first brightness integral.
[0079] When the first camera can receive the light emitted by the second camera, it is considered that the second camera has a fill light effect on the first camera.
[0080] Specifically, when there are at least two first maximum brightnesses in the first brightness change curve, it indicates that there may be interference light in the external environment, such as illumination from car lights, etc. Therefore, only when the second camera has a fill light effect on the first camera, the first target angle corresponding to the sum of the maximum brightnesses can be determined by summing the brightness of the first image corresponding to the first angle range of half a cycle with the first angle corresponding to each first maximum brightness as the midpoint. The sum of the brightness of the first image can be obtained by accumulation or by brightness integration, which is not limited in this application.
[0081] The first maximum brightness is 50cd / m 2 Taking the corresponding first angles of 100° and 110° as an example, the process of determining the first target angle is described in detail.
[0082] Specifically, it can be determined that the first angle range corresponding to 100° is 10° to 190°, and the first angle range corresponding to 110° is 20° to 200°. Among them, the midpoint of the first angle range 10° to 190° is 100°; the midpoint of the first angle range 20° to 200° is 110°. Based on this, the sum of the brightness of the first image corresponding to all first angles in each first angle range 10° to 190° and 20° to 200° can be determined through the brightness corresponding to each rotation angle in the first brightness change curve, that is, the first brightness integral corresponding to each first angle range can be calculated.
[0083] Further, when the first camera determines the first target angle based on each first brightness integral, the maximum brightness integral of at least two first brightness integrals can be determined by the first camera, and the first target angle range corresponding to the maximum brightness integral can be determined, so that the first angle corresponding to the first maximum brightness in the first target angle range is determined as the first target angle. For example, continuing with the above example, when the first brightness integral corresponding to the first angle range of 10° to 190° is 1000 cd / m 2 The first brightness integral corresponding to the first angle range of 20° to 200° is 900cd / m 2 When the first angle range is 10° to 190°, the first brightness integral corresponding to the first angle range is 1000 cd / m 2 is the maximum brightness integral, therefore, the first target angle can be determined to be 100°. This can effectively avoid interference from external light and thus make the acquired first target angle more accurate.
[0084] In this embodiment, when the first brightness change curve includes at least two first maximum brightnesses, a first angle range can be determined for each first maximum brightness through a first angle corresponding to the first maximum brightness. The first angle range can be used to characterize the rotation angle range of the second camera for effective fill light for the first camera. Thus, the sum of the brightnesses of the first images corresponding to the first angle range in the first brightness change curve, that is, the first brightness integral, can be calculated through the brightness of the first images corresponding to each first angle in the first angle range. This can eliminate the problem that the first brightness change curve includes at least two first maximum brightnesses due to external light interference, thereby making the acquired first target angle inaccurate, thereby improving the accuracy of the first target angle.
[0085] Furthermore, in order to realize the coordinate calibration of multiple cameras in a three-dimensional coordinate system and improve the accuracy of the coordinate calibration of the multiple cameras, Figure 1 On the basis of the illustrated embodiment, the coordinates of the first camera in the second direction and the coordinates of the second camera in the second direction can also be calibrated, wherein the second direction is perpendicular to the first direction. Exemplarily, the first camera determines a third target angle corresponding to a third maximum brightness based on a third brightness change curve, and controls the second camera to rotate to the third target angle in the second direction; the third brightness change curve is used to characterize the corresponding relationship between the brightness of the third image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the second direction; the second direction is perpendicular to the first direction; the second camera determines a fourth target angle corresponding to a fourth maximum brightness based on a fourth brightness change curve, and controls the first camera to rotate to the fourth target angle in the second direction; the fourth brightness change curve is used to characterize the corresponding relationship between the brightness of the fourth image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the fourth direction; the first camera calibrates the coordinates of the first camera in the second direction and the coordinates of the second camera in the second direction based on the current position of the first camera and the current position of the second camera.
[0086] The second direction is different from the first direction. For example, when the first direction is the horizontal direction of the gimbal, the second direction is the vertical direction of the gimbal; or, when the first direction is the vertical direction of the gimbal, the second direction is the horizontal direction of the gimbal.
[0087] The implementation process of the coordinate calibration of multiple cameras in the second direction in this embodiment is similar to Figure 1 Similar to the embodiment shown, please refer to Figure 1 The detailed description in the embodiments will not be repeated here.
[0088] In this embodiment, by enabling each camera in the multi-camera to also realize coordinate calibration in the second direction, wherein the second direction is different from the first direction, the purpose of unifying the coordinate system of each camera in the multi-camera can be achieved in both the horizontal direction and the vertical direction, that is, the unification of the three-dimensional coordinate system of each camera in the multi-camera is achieved, thereby improving the accuracy of the coordinate calibration of the multi-camera. In addition, since the present invention can control the lens of the first camera and the lens of the second camera to be in a relative state based only on the image brightness, it can effectively avoid the problem of inconsistent coordinate calibration caused by different mapping images of each camera in the multi-camera, improve the success rate of the coordinate calibration of the multi-camera, and thereby improve the speed of linkage tracking and capturing of each camera in the multi-camera.
[0089] Optionally, in Figure 1 On the basis of the illustrated embodiment, when the first camera determines the first target angle corresponding to the first maximum brightness based on the first brightness change curve, the second camera can be controlled to rotate a preset number of times to obtain multiple first brightness change curves, and then the first target angle can be determined through the target maximum brightness in each first maximum brightness in the multiple first brightness curves.
[0090] Among them, the preset number of weeks is at least 2.
[0091] Specifically, in the aforementioned embodiment, when the second camera rotates one circle, a first brightness change curve and a first maximum brightness can be obtained. However, the first maximum brightness may be inaccurate at this time. For example, when mosquitoes block the view, the first maximum brightness may be too low, thereby causing inaccurate first target angle. Therefore, the second camera can be controlled to continue rotating one circle to obtain a new first brightness change curve and a new first maximum brightness, and then a more accurate target maximum brightness can be determined based on the original first maximum brightness and the new first maximum brightness, that is, if a larger first maximum brightness is not generated, it means that the original first maximum brightness is accurate, otherwise, the new first maximum brightness is more accurate.
[0092] Exemplarily, the second camera may be controlled to rotate for multiple cycles to generate a first brightness variation curve integrating multiple cycles, thereby determining a more accurate first target angle corresponding to the maximum brightness of the target at one time.
[0093] In this embodiment, by controlling the second camera to rotate a preset number of times, multiple first brightness change curves can be obtained, and the multiple brightness change curves contain accurate first maximum brightness. Therefore, the target maximum brightness in each first maximum brightness in the multiple first brightness curves can be used to avoid the problem of inaccurate first target angle caused by inaccurate first maximum brightness determined only by controlling the second camera to rotate one circle, thereby determining a first target angle with higher accuracy.
[0094] Similarly, when the second camera determines the second target angle corresponding to the second maximum brightness based on the second brightness change curve, the second target angle can be determined in a manner similar to the above embodiment, which is not described in detail in this application.
[0095] The following is a description of a multi-camera coordinate calibration device provided by an embodiment of the present invention. The multi-camera coordinate calibration device described below and the multi-camera coordinate calibration method described above can correspond to each other.
[0096] Figure 8 The schematic diagram of the structure of the multi-camera provided in the embodiment of the present invention, wherein the multi-camera includes at least two cameras, and the at least two cameras include a first camera and a second camera. Figure 8 As shown, the multi-camera includes:
[0097] The first camera 810 is used to determine a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and control the second camera to rotate in a first direction to the first target angle; the first brightness change curve is used to represent the corresponding relationship between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction;
[0098] The second camera 820 is used to determine a second target angle corresponding to a second maximum brightness based on a second brightness change curve, and control the first camera to rotate in the first direction to the second target angle; the second brightness change curve is used to represent the corresponding relationship between the brightness of the second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction;
[0099] The first camera 810 is used to calibrate the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the first camera and the current position of the second camera.
[0100] In the multi-camera provided by the embodiment of the present invention, the first camera 810 determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate in the first direction to the first target angle; the second camera 820 determines a second target angle corresponding to a second maximum brightness based on a second brightness change curve, and controls the first camera to rotate in the first direction to the second target angle; wherein the first brightness change curve represents the correspondence between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; the second brightness change curve represents the brightness of a second image captured by the second camera when the first camera is in a fill light state and rotates in the first direction The corresponding relationship between the degree and the rotation angle of the first camera; therefore, the first target angle required for the second camera to rotate to the position of maximum fill light for the first camera can be determined based on the first brightness change curve, and then the second camera can be controlled to rotate to the first target angle in the first direction, that is, the second camera is in the position of maximum fill light for the first camera; then based on the second brightness change curve, the second target angle required for the first camera to rotate to the position of maximum fill light for the second camera can be determined, and then the first camera can be controlled to rotate to the second target angle in the first direction, so that the shooting direction of the first camera can be opposite to the shooting direction of the second camera in the first direction, that is, the lens of the first camera is opposite to the lens of the second camera. Thus, the second camera can determine the current position of the first camera based on the relative position relationship and angle relationship between the first camera and the second camera in the first direction, and the current position obtained by the electronic compass inside the second camera, and then the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction are calibrated by the first camera, so as to achieve the purpose of unifying the coordinate system of the two in the first direction. Compared with the prior art, the present invention only needs to install an electronic compass in any one of the multiple cameras to realize the coordinate calibration of the multiple cameras, thereby reducing the hardware cost of the multiple cameras. In addition, since the present invention only uses the image brightness as a reference, it can control the lens of the first camera and the lens of the second camera to be in a relative state. Therefore, it can effectively avoid the problem of inconsistent coordinate calibration caused by different images mapped by each camera in the multiple cameras, that is, it improves the success rate of the coordinate calibration of the multiple cameras, and further improves the speed of linkage tracking and capturing of each camera in the multiple cameras.
[0101] Optionally, the first camera 810 is further used to capture images of the second camera during rotation in the first direction to obtain at least two first images;
[0102] The first camera 810 is further used to determine the first rotation angle corresponding to the second camera when shooting each first image, and determine a first brightness change curve based on each first rotation angle and the brightness of the corresponding first image.
[0103] Optionally, the second camera 820 is further used to capture images of the first camera during its rotation in the first direction to obtain at least two second images;
[0104] The second camera 820 is further used to determine the second rotation angle corresponding to the first camera when shooting each second image, and determine a second brightness change curve based on each second rotation angle and the brightness of the corresponding second image.
[0105] Optionally, when the first brightness variation curve includes at least two first maximum brightnesses, the first camera 810 is specifically configured to:
[0106] For each first maximum brightness, determining a first angle range based on a first angle corresponding to the first maximum brightness;
[0107] Determining a first brightness integral based on the brightness of the first image corresponding to each first angle in the first angle range;
[0108] A first target angle is determined based on each first brightness integral.
[0109] Optionally, the first camera 810 is specifically used for:
[0110] determining a maximum brightness integral of at least two first brightness integrals;
[0111] Determine a first target angle range corresponding to a maximum brightness integral;
[0112] A first angle corresponding to a first maximum brightness in the first target angle range is determined as the first target angle.
[0113] Optionally, the first camera 810 is further used to determine a third target angle corresponding to a third maximum brightness based on a third brightness change curve, and control the second camera to rotate to the third target angle in the second direction; the third brightness change curve is used to characterize the corresponding relationship between the brightness of the third image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the second direction; the second direction is perpendicular to the first direction;
[0114] The second camera 820 is further used to determine a fourth target angle corresponding to a fourth maximum brightness based on a fourth brightness change curve, and control the first camera to rotate in the second direction to the fourth target angle; the fourth brightness change curve is used to characterize the correspondence between the brightness of the fourth image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the fourth direction;
[0115] The first camera 810 is further used to calibrate the coordinates of the first camera in the second direction and the coordinates of the second camera in the second direction based on the current position of the first camera and the current position of the second camera.
[0116] The device of this embodiment can be used to execute the method of any one of the embodiments in the aforementioned multi-camera coordinate calibration method embodiment. Its specific implementation process and technical effects are similar to those in the aforementioned multi-camera coordinate calibration method embodiment. For details, please refer to the detailed introduction in the aforementioned multi-camera coordinate calibration method embodiment, which will not be repeated here.
[0117] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor (processor) 910, a communication interface (Communications Interface) 920, a memory (memory) 930 and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 communicate with each other through the communication bus 940. The processor 910 can call the logic instructions in the memory 930 to execute the coordinate calibration method of multiple cameras provided by the above methods, where the multiple cameras include at least two cameras, and the at least two cameras include a first camera and a second camera. The method includes: the first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate to the first target angle in a first direction; the first brightness change curve is used to characterize the correspondence between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; the second camera determines a second target angle corresponding to a second maximum brightness based on the second brightness change curve, and controls the first camera to rotate to the second target angle in the first direction; the second brightness change curve is used to characterize the correspondence between the brightness of a second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction; the first camera calibrates the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the first camera and the current position of the second camera.
[0118] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0119] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the coordinate calibration method of multiple cameras provided by the above methods. The multiple cameras include at least two cameras, and the at least two cameras include a first camera and a second camera. The method includes: the first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate to the first target angle in a first direction; the first brightness change curve is used to characterize the correspondence between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; the second camera determines a second target angle corresponding to a second maximum brightness based on the second brightness change curve, and controls the first camera to rotate to the second target angle in the first direction; the second brightness change curve is used to characterize the correspondence between the brightness of a second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction; the first camera calibrates the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the first camera and the current position of the second camera.
[0120] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the coordinate calibration method of multiple cameras provided by the above methods, wherein the multiple cameras include at least two cameras, and the at least two cameras include a first camera and a second camera. The method includes: the first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate to the first target angle in a first direction; the first brightness change curve is used to characterize the correspondence between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; the second camera determines a second target angle corresponding to a second maximum brightness based on the second brightness change curve, and controls the first camera to rotate to the second target angle in the first direction; the second brightness change curve is used to characterize the correspondence between the brightness of a second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction; the first camera calibrates the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the first camera and the current position of the second camera.
[0121] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for calibrating coordinates of multiple cameras, characterized in that: The multi-camera comprises at least two cameras, wherein the at least two cameras comprise a first camera and a second camera, and the method comprises: The first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and controls the second camera to rotate in a first direction to the first target angle; the first brightness change curve is used to represent the corresponding relationship between the brightness of a first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; The second camera determines a second target angle corresponding to a second maximum brightness based on a second brightness variation curve, and controls the first camera to rotate in the first direction to the second target angle; the second brightness variation curve is used to characterize the corresponding relationship between the brightness of a second image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the first direction; The first camera calibrates the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the second camera.
2. The coordinate calibration method of multiple cameras according to claim 1, characterized in that: The method further comprises: The first camera collects images of the second camera during rotation in the first direction to obtain at least two first images; The first camera determines a first rotation angle corresponding to the second camera when shooting each first image, and determines the first brightness variation curve based on each first rotation angle and the brightness of the corresponding first image.
3. The coordinate calibration method of multiple cameras according to claim 1, characterized in that: The method further comprises: When the first camera rotates in the first direction, the second camera captures images to obtain at least two second images; The second camera determines a second rotation angle corresponding to the first camera when each second image is captured, and determines the second brightness variation curve based on each second rotation angle and the brightness of the corresponding second image.
4. The coordinate calibration method of multiple cameras according to claim 1, characterized in that: The first brightness variation curve includes at least two first maximum brightnesses; The first camera determines a first target angle corresponding to a first maximum brightness based on a first brightness change curve, including: For each of the first maximum brightnesses, the first camera determines a first angle range based on a first angle corresponding to the first maximum brightness; The first camera determines a first brightness integral based on the brightness of the first image corresponding to each first angle in the first angle range; The first camera determines the first object angle based on each of the first brightness integrals.
5. The coordinate calibration method of multiple cameras according to claim 4, characterized in that: The first camera determines the first target angle based on each of the first brightness integrals, including: Determining, by the first camera, a maximum brightness integral of at least two of the first brightness integrals; The first camera determines a first target angle range corresponding to the maximum brightness integral; The first camera determines a first angle corresponding to a first maximum brightness in the first target angle range as the first target angle.
6. The coordinate calibration method of multiple cameras according to any one of claims 1 to 5, characterized in that: The method further comprises: The first camera determines a third target angle corresponding to a third maximum brightness based on a third brightness variation curve, and controls the second camera to rotate in a second direction to the third target angle; the third brightness variation curve is used to characterize the corresponding relationship between the brightness of a third image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the second direction; the second direction is perpendicular to the first direction; The second camera determines a fourth target angle corresponding to a fourth maximum brightness based on a fourth brightness change curve, and controls the first camera to rotate in the second direction to the fourth target angle; the fourth brightness change curve is used to represent a corresponding relationship between the brightness of a fourth image captured by the second camera and the rotation angle of the first camera when the first camera is in a fill light state and rotates in the fourth direction; The first camera calibrates the coordinates of the first camera in the second direction and the coordinates of the second camera in the second direction based on the current position of the first camera and the current position of the second camera.
7. A multi-camera, characterized in that: The multi-camera comprises at least two cameras, and the at least two cameras comprise a first camera and a second camera; The first camera is used to determine a first target angle corresponding to a first maximum brightness based on a first brightness change curve, and control the second camera to rotate in a first direction to the first target angle; The first brightness variation curve is used to represent the corresponding relationship between the brightness of the first image captured by the first camera and the rotation angle of the second camera when the second camera is in a fill light state and rotates in the first direction; The second camera is used to determine a second target angle corresponding to a second maximum brightness based on a second brightness change curve, and control the first camera to rotate in the first direction to the second target angle; The second brightness variation curve is used to represent the corresponding relationship between the brightness of the second image captured by the second camera and the rotation angle of the first camera when the first camera is in the fill light state and rotates in the first direction; The first camera is used to calibrate the coordinates of the first camera in the first direction and the coordinates of the second camera in the first direction based on the current position of the second camera.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the coordinate calibration method of multiple cameras as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the coordinate calibration method of multiple cameras as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the coordinate calibration method of multiple cameras as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Dual-camera calibration method, device, system and mobile terminal
CN107958469A
Multi-camera calibration method and device, storage medium and electronic equipment
CN110503694A
Multi-view panoramic video stitching method and system
CN113920011A
Zero position calibration method and device of camera, electronic equipment and storage medium
CN115760998A
Method and system for calibrating binocular camera, and electronic device and storage medium
WO2023045147A1
